From 8e55c1f3bf01cf4d4810cf950bec8b53411f307b Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Mon, 1 Sep 2025 07:49:03 +0000 Subject: [PATCH] Generated SDK #7741 --- .openapi-generator/FILES | 281 +- .openapi-generator/VERSION | 2 +- README.md | 111 +- api/openapi.yaml | 11589 ++++++++++------ build.gradle | 15 +- docs/AbaPaymentInfo.md | 24 + docs/AccountConfig.md | 27 + docs/AccountIdentifier.md | 17 + docs/AccountType2.md | 47 + docs/AchPaymentInfo.md | 46 + docs/AddAssetToExternalWalletRequest.md | 36 +- docs/AddAssetToExternalWalletRequestOneOf1.md | 13 - ...ternalWalletRequestOneOf1AdditionalInfo.md | 46 - ...lWalletRequestOneOf1AdditionalInfoOneOf.md | 23 - ...WalletRequestOneOf1AdditionalInfoOneOf1.md | 23 - ...WalletRequestOneOf1AdditionalInfoOneOf2.md | 14 - docs/AdditionalInfoRequest.md | 14 + docs/AdditionalInfoRequestAdditionalInfo.md | 111 + docs/AmlVerdictManualRequest.md | 23 + ...cyRules.md => AmlVerdictManualResponse.md} | 5 +- docs/AmountOverTimeConfig.md | 26 + docs/AmountOverTimeConfigRange.md | 15 + docs/AmountRange.md | 16 + docs/ApproversConfig.md | 26 + docs/ApproversConfigApprovalGroupsInner.md | 15 + docs/AssetConfig.md | 16 + docs/AssetMedia.md | 4 +- docs/AssetTypesConfigInner.md | 28 + ...RequestOneOf.md => BasicAddressRequest.md} | 5 +- docs/BlockchainMedia.md | 4 +- docs/BlockchainOnchain.md | 2 +- docs/ChannelDvnConfigWithConfirmations.md | 4 +- ...DvnConfigWithConfirmationsReceiveConfig.md | 16 - ...nelDvnConfigWithConfirmationsSendConfig.md | 16 - docs/ComplianceApi.md | 89 + docs/ComplianceResultStatusesEnum.md | 42 +- docs/ContractMethodConfig.md | 25 + docs/ContractMethodPattern.md | 37 + docs/CreateMultichainTokenRequest.md | 2 +- ...reateMultichainTokenRequestCreateParams.md | 28 - docs/DerivationPathConfig.md | 15 + docs/DesignatedSignersConfig.md | 26 + docs/DestinationConfig.md | 40 + docs/EmbeddedWalletAlgoritm.md | 4 +- docs/EmbeddedWalletAssetResponse.md | 4 +- docs/EmbeddedWalletLatestBackupKey.md | 6 +- docs/IbanPaymentInfo.md | 24 + docs/InitiatorConfig.md | 19 + docs/InitiatorConfigPattern.md | 37 + docs/LbtPaymentInfo.md | 37 + ...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 + ...uleAmount.md => LegacyPolicyRuleAmount.md} | 18 +- ...d => LegacyPolicyRuleAmountAggregation.md} | 8 +- ...=> LegacyPolicyRuleAuthorizationGroups.md} | 4 +- ...licyRuleAuthorizationGroupsGroupsInner.md} | 2 +- docs/LegacyPolicyRuleCheckResult.md | 25 + ...d => LegacyPolicyRuleDesignatedSigners.md} | 2 +- ...olicyRuleDst.md => LegacyPolicyRuleDst.md} | 4 +- docs/LegacyPolicyRuleError.md | 33 + ...rators.md => LegacyPolicyRuleOperators.md} | 2 +- ...d => LegacyPolicyRuleRawMessageSigning.md} | 4 +- ...icyRuleRawMessageSigningDerivationPath.md} | 2 +- ...olicyRuleSrc.md => LegacyPolicyRuleSrc.md} | 4 +- docs/LegacyPolicyRules.md | 13 + ...ype.md => LegacyPolicySrcOrDestSubType.md} | 2 +- ...stType.md => LegacyPolicySrcOrDestType.md} | 2 +- docs/LegacyPolicyStatus.md | 23 + docs/LegacyPolicyValidation.md | 15 + docs/LegacyPublishDraftRequest.md | 13 + docs/LegacyPublishResult.md | 17 + docs/LegacySrcOrDestAttributesInner.md | 46 + docs/MomoPaymentInfo.md | 49 + docs/NotificationPaginatedResponse.md | 1 + docs/PixPaymentInfo.md | 50 + docs/PolicyEditorBetaApi.md | 82 +- docs/PolicyEditorV2BetaApi.md | 348 + docs/PolicyMetadata.md | 7 +- docs/PolicyOperator.md | 13 + docs/PolicyRule.md | 122 +- docs/PolicyRuleError.md | 10 +- docs/PolicyType.md | 49 + docs/ProgramCallConfig.md | 23 + docs/PublicKeyInformation.md | 6 +- docs/PublishDraftRequest.md | 4 +- docs/ScreeningMetadataConfig.md | 81 + docs/SepaPaymentInfo.md | 43 + docs/SessionDTO.md | 2 +- docs/SignedMessage.md | 4 +- docs/SmartTransferTicketTerm.md | 12 +- docs/SpeiAdvancedPaymentInfo.md | 38 + docs/SpeiBasicPaymentInfo.md | 15 + docs/SrcOrDestAttributesInner.md | 46 - docs/TimePeriodConfig.md | 17 + ...PeriodMethod.md => TimePeriodMatchType.md} | 2 +- docs/Transaction.md | 4 +- docs/TransactionRequest.md | 2 +- docs/TravelRuleCreateTransactionRequest.md | 4 +- ...ravelRuleValidateFullTransactionRequest.md | 4 +- docs/UpdateDraftRequest.md | 15 + docs/UsWirePaymentInfo.md | 44 + docs/VerdictConfig.md | 34 + docs/WebhooksV2Api.md | 14 +- gradle.properties | 6 + gradle/wrapper/gradle-wrapper.jar | Bin 59536 -> 43453 bytes gradle/wrapper/gradle-wrapper.properties | 4 +- gradlew | 189 +- gradlew.bat | 37 +- pom.xml | 16 +- .../java/com/fireblocks/sdk/ApiClient.java | 37 +- .../java/com/fireblocks/sdk/ApiException.java | 4 +- .../java/com/fireblocks/sdk/ApiResponse.java | 3 + .../com/fireblocks/sdk/Configuration.java | 36 +- .../java/com/fireblocks/sdk/Fireblocks.java | 8 + src/main/java/com/fireblocks/sdk/JSON.java | 21 +- src/main/java/com/fireblocks/sdk/Pair.java | 4 +- .../com/fireblocks/sdk/RFC3339DateFormat.java | 3 + .../sdk/RFC3339InstantDeserializer.java | 112 + .../fireblocks/sdk/RFC3339JavaTimeModule.java | 34 + .../fireblocks/sdk/ServerConfiguration.java | 15 + .../com/fireblocks/sdk/ServerVariable.java | 15 + .../com/fireblocks/sdk/api/ApiUserApi.java | 4 +- .../com/fireblocks/sdk/api/AssetsApi.java | 4 +- .../com/fireblocks/sdk/api/AuditLogsApi.java | 4 +- .../sdk/api/BlockchainsAssetsApi.java | 4 +- .../com/fireblocks/sdk/api/ComplianceApi.java | 89 +- .../ComplianceScreeningConfigurationApi.java | 4 +- .../fireblocks/sdk/api/ConsoleUserApi.java | 4 +- .../sdk/api/ContractInteractionsApi.java | 4 +- .../sdk/api/ContractTemplatesApi.java | 4 +- .../com/fireblocks/sdk/api/ContractsApi.java | 4 +- .../fireblocks/sdk/api/CosignersBetaApi.java | 4 +- .../sdk/api/DeployedContractsApi.java | 4 +- .../sdk/api/EmbeddedWalletsApi.java | 4 +- .../sdk/api/ExchangeAccountsApi.java | 4 +- .../sdk/api/ExternalWalletsApi.java | 4 +- .../fireblocks/sdk/api/FiatAccountsApi.java | 4 +- .../fireblocks/sdk/api/GasStationsApi.java | 4 +- .../sdk/api/InternalWalletsApi.java | 4 +- .../fireblocks/sdk/api/JobManagementApi.java | 4 +- .../fireblocks/sdk/api/KeyLinkBetaApi.java | 4 +- .../com/fireblocks/sdk/api/KeysBetaApi.java | 4 +- .../sdk/api/NetworkConnectionsApi.java | 4 +- .../java/com/fireblocks/sdk/api/NftsApi.java | 4 +- .../fireblocks/sdk/api/OffExchangesApi.java | 4 +- .../com/fireblocks/sdk/api/OtaBetaApi.java | 4 +- .../fireblocks/sdk/api/PaymentsPayoutApi.java | 4 +- .../sdk/api/PolicyEditorBetaApi.java | 159 +- .../sdk/api/PolicyEditorV2BetaApi.java | 412 + .../fireblocks/sdk/api/ResetDeviceApi.java | 4 +- .../fireblocks/sdk/api/SmartTransferApi.java | 4 +- .../com/fireblocks/sdk/api/StakingApi.java | 4 +- .../com/fireblocks/sdk/api/SwapBetaApi.java | 4 +- .../java/com/fireblocks/sdk/api/TagsApi.java | 4 +- .../fireblocks/sdk/api/TokenizationApi.java | 4 +- .../fireblocks/sdk/api/TransactionsApi.java | 4 +- .../com/fireblocks/sdk/api/TravelRuleApi.java | 4 +- .../fireblocks/sdk/api/UserGroupsBetaApi.java | 4 +- .../java/com/fireblocks/sdk/api/UsersApi.java | 4 +- .../com/fireblocks/sdk/api/VaultsApi.java | 4 +- .../sdk/api/Web3ConnectionsApi.java | 4 +- .../com/fireblocks/sdk/api/WebhooksApi.java | 4 +- .../com/fireblocks/sdk/api/WebhooksV2Api.java | 57 +- .../sdk/api/WhitelistIpAddressesApi.java | 4 +- .../sdk/api/WorkspaceStatusBetaApi.java | 4 +- .../com/fireblocks/sdk/model/APIUser.java | 63 +- ...nalInfoOneOf1.java => AbaPaymentInfo.java} | 298 +- .../com/fireblocks/sdk/model/AbiFunction.java | 86 +- .../sdk/model/AbstractOpenApiSchema.java | 4 +- .../com/fireblocks/sdk/model/Account.java | 38 +- .../fireblocks/sdk/model/AccountConfig.java | 384 + .../sdk/model/AccountIdentifier.java | 263 + .../fireblocks/sdk/model/AccountType2.java | 98 + .../fireblocks/sdk/model/AchPaymentInfo.java | 557 + .../sdk/model/AdapterProcessingResult.java | 41 +- .../sdk/model/AddAbiRequestDto.java | 56 +- .../AddAssetToExternalWalletRequest.java | 148 +- ...rnalWalletRequestOneOf1AdditionalInfo.java | 530 - .../sdk/model/AddCollateralRequestBody.java | 27 +- .../sdk/model/AddContractAssetRequest.java | 32 +- .../sdk/model/AddCosignerRequest.java | 46 +- .../sdk/model/AddCosignerResponse.java | 61 +- .../sdk/model/AddExchangeAccountRequest.java | 68 +- .../sdk/model/AddExchangeAccountResponse.java | 39 +- .../fireblocks/sdk/model/AdditionalInfo.java | 58 +- ...OneOf1.java => AdditionalInfoRequest.java} | 40 +- .../AdditionalInfoRequestAdditionalInfo.java | 924 ++ .../sdk/model/AddressNotAvailableError.java | 34 +- .../sdk/model/AmlRegistrationResult.java | 35 +- .../AmlRegistrationResultFullPayload.java | 36 +- .../sdk/model/AmlScreeningResult.java | 25 +- .../sdk/model/AmlVerdictManualRequest.java | 224 + .../sdk/model/AmlVerdictManualResponse.java | 189 + .../sdk/model/AmountAndChainDescriptor.java | 38 +- .../com/fireblocks/sdk/model/AmountInfo.java | 47 +- .../sdk/model/AmountOverTimeConfig.java | 257 + .../sdk/model/AmountOverTimeConfigRange.java | 187 + .../com/fireblocks/sdk/model/AmountRange.java | 230 + .../java/com/fireblocks/sdk/model/ApiKey.java | 39 +- .../sdk/model/ApiKeysPaginatedResponse.java | 29 +- .../fireblocks/sdk/model/ApproversConfig.java | 333 + .../ApproversConfigApprovalGroupsInner.java | 261 + .../java/com/fireblocks/sdk/model/Asset.java | 101 +- .../sdk/model/AssetAlreadyExistHttpError.java | 35 +- .../com/fireblocks/sdk/model/AssetAmount.java | 34 +- .../model/AssetBadRequestErrorResponse.java | 34 +- .../com/fireblocks/sdk/model/AssetConfig.java | 251 + .../sdk/model/AssetConflictErrorResponse.java | 34 +- .../sdk/model/AssetDetailsMetadata.java | 81 +- .../sdk/model/AssetDetailsOnchain.java | 66 +- .../model/AssetForbiddenErrorResponse.java | 34 +- .../AssetInternalServerErrorResponse.java | 34 +- .../com/fireblocks/sdk/model/AssetMedia.java | 43 +- .../sdk/model/AssetMediaAttributes.java | 17 +- .../fireblocks/sdk/model/AssetMetadata.java | 38 +- .../sdk/model/AssetMetadataDto.java | 144 +- .../sdk/model/AssetMetadataRequest.java | 10 +- .../sdk/model/AssetNotFoundErrorResponse.java | 34 +- .../com/fireblocks/sdk/model/AssetNote.java | 58 +- .../sdk/model/AssetNoteRequest.java | 16 +- .../fireblocks/sdk/model/AssetOnchain.java | 63 +- .../AssetPriceForbiddenErrorResponse.java | 34 +- .../AssetPriceNotFoundErrorResponse.java | 34 +- .../sdk/model/AssetPriceResponse.java | 73 +- .../fireblocks/sdk/model/AssetResponse.java | 59 +- .../sdk/model/AssetTypeResponse.java | 78 +- ...Params.java => AssetTypesConfigInner.java} | 139 +- .../com/fireblocks/sdk/model/AssetWallet.java | 114 +- .../fireblocks/sdk/model/AuditLogData.java | 83 +- .../com/fireblocks/sdk/model/AuditorData.java | 45 +- .../sdk/model/AuthorizationGroups.java | 38 +- .../sdk/model/AuthorizationInfo.java | 40 +- ...estOneOf.java => BasicAddressRequest.java} | 55 +- .../com/fireblocks/sdk/model/BlockInfo.java | 28 +- .../sdk/model/BlockchainExplorer.java | 52 +- .../fireblocks/sdk/model/BlockchainMedia.java | 37 +- .../sdk/model/BlockchainMetadata.java | 47 +- .../BlockchainNotFoundErrorResponse.java | 34 +- .../sdk/model/BlockchainOnchain.java | 60 +- .../sdk/model/BlockchainResponse.java | 80 +- .../fireblocks/sdk/model/CallbackHandler.java | 44 +- .../sdk/model/CallbackHandlerRequest.java | 42 +- .../sdk/model/CancelTransactionResponse.java | 16 +- .../sdk/model/ChainInfoResponse.java | 78 +- .../ChannelDvnConfigWithConfirmations.java | 25 +- ...nConfigWithConfirmationsReceiveConfig.java | 318 - ...lDvnConfigWithConfirmationsSendConfig.java | 316 - .../sdk/model/ClaimRewardsRequest.java | 51 +- .../sdk/model/CollectionBurnRequestDto.java | 47 +- .../sdk/model/CollectionBurnResponseDto.java | 23 +- .../sdk/model/CollectionDeployRequestDto.java | 99 +- .../sdk/model/CollectionLinkDto.java | 69 +- .../sdk/model/CollectionMetadataDto.java | 81 +- .../sdk/model/CollectionMintRequestDto.java | 78 +- .../sdk/model/CollectionMintResponseDto.java | 23 +- .../model/CollectionOwnershipResponse.java | 129 +- .../CollectionTokenMetadataAttributeDto.java | 48 +- .../sdk/model/CollectionTokenMetadataDto.java | 77 +- .../model/ComplianceResultFullPayload.java | 48 +- .../model/ComplianceResultStatusesEnum.java | 42 +- .../sdk/model/ComplianceResults.java | 46 +- .../sdk/model/ComplianceScreeningResult.java | 70 +- .../ComplianceScreeningResultFullPayload.java | 72 +- .../ConfigConversionOperationSnapshot.java | 48 +- .../ConfigDisbursementOperationSnapshot.java | 49 +- .../fireblocks/sdk/model/ConfigOperation.java | 4 +- .../sdk/model/ConfigOperationSnapshot.java | 4 +- .../ConfigTransferOperationSnapshot.java | 48 +- .../com/fireblocks/sdk/model/ConsoleUser.java | 82 +- .../sdk/model/ContractAbiResponseDto.java | 27 +- .../model/ContractAbiResponseDtoAbiInner.java | 4 +- .../sdk/model/ContractAttributes.java | 48 +- .../sdk/model/ContractDataDecodeError.java | 34 +- .../sdk/model/ContractDataDecodeRequest.java | 41 +- .../model/ContractDataDecodeRequestData.java | 12 +- .../ContractDataDecodeResponseParams.java | 46 +- .../model/ContractDataDecodedResponse.java | 36 +- .../sdk/model/ContractDataLogDataParam.java | 36 +- .../sdk/model/ContractDeployRequest.java | 79 +- .../sdk/model/ContractDeployResponse.java | 23 +- .../com/fireblocks/sdk/model/ContractDoc.java | 61 +- .../sdk/model/ContractMetadataDto.java | 78 +- .../sdk/model/ContractMethodConfig.java | 280 + .../sdk/model/ContractMethodPattern.java | 325 + .../sdk/model/ContractTemplateDto.java | 171 +- .../sdk/model/ContractUploadRequest.java | 123 +- .../sdk/model/ContractWithAbiDto.java | 89 +- .../sdk/model/ConversionConfigOperation.java | 67 +- .../ConversionOperationConfigParams.java | 71 +- .../model/ConversionOperationExecution.java | 60 +- .../ConversionOperationExecutionOutput.java | 44 +- .../ConversionOperationExecutionParams.java | 35 +- ...erationExecutionParamsExecutionParams.java | 63 +- .../sdk/model/ConversionOperationFailure.java | 41 +- .../sdk/model/ConversionOperationPreview.java | 33 +- .../ConversionOperationPreviewOutput.java | 58 +- .../model/ConversionValidationFailure.java | 68 +- .../sdk/model/ConvertAssetsRequest.java | 46 +- .../sdk/model/ConvertAssetsResponse.java | 23 +- .../com/fireblocks/sdk/model/Cosigner.java | 69 +- .../sdk/model/CosignersPaginatedResponse.java | 29 +- .../fireblocks/sdk/model/CreateAPIUser.java | 70 +- .../sdk/model/CreateAddressRequest.java | 29 +- .../sdk/model/CreateAddressResponse.java | 60 +- .../sdk/model/CreateAssetsBulkRequest.java | 40 +- .../sdk/model/CreateAssetsRequest.java | 18 +- .../model/CreateConfigOperationRequest.java | 4 +- .../sdk/model/CreateConnectionRequest.java | 4 +- .../sdk/model/CreateConnectionResponse.java | 35 +- .../sdk/model/CreateConsoleUser.java | 57 +- .../sdk/model/CreateContractRequest.java | 16 +- ...reateConversionConfigOperationRequest.java | 34 +- ...ateDisbursementConfigOperationRequest.java | 34 +- .../model/CreateInternalTransferRequest.java | 61 +- .../CreateInternalWalletAssetRequest.java | 32 +- .../model/CreateMultichainTokenRequest.java | 107 +- .../model/CreateMultipleAccountsRequest.java | 72 +- ...eateMultipleDepositAddressesJobStatus.java | 43 +- ...CreateMultipleDepositAddressesRequest.java | 90 +- .../CreateMultipleVaultAccountsJobStatus.java | 48 +- .../sdk/model/CreateNcwConnectionRequest.java | 75 +- .../sdk/model/CreateNetworkIdRequest.java | 30 +- .../sdk/model/CreatePayoutRequest.java | 30 +- .../sdk/model/CreateSigningKeyDto.java | 62 +- .../CreateSigningKeyDtoProofOfOwnership.java | 36 +- .../sdk/model/CreateTagRequest.java | 34 +- .../sdk/model/CreateTokenRequestDto.java | 101 +- .../CreateTokenRequestDtoCreateParams.java | 4 +- .../sdk/model/CreateTransactionResponse.java | 34 +- .../CreateTransferConfigOperationRequest.java | 34 +- .../sdk/model/CreateUserGroupResponse.java | 48 +- .../sdk/model/CreateValidationKeyDto.java | 41 +- .../model/CreateValidationKeyResponseDto.java | 63 +- .../CreateVaultAccountConnectionRequest.java | 66 +- .../sdk/model/CreateVaultAccountRequest.java | 72 +- .../sdk/model/CreateVaultAssetResponse.java | 93 +- .../sdk/model/CreateWalletRequest.java | 27 +- .../sdk/model/CreateWebhookRequest.java | 58 +- ...teWorkflowExecutionRequestParamsInner.java | 4 +- .../sdk/model/CustomRoutingDest.java | 52 +- .../sdk/model/DefaultNetworkRoutingDest.java | 24 +- .../com/fireblocks/sdk/model/Delegation.java | 239 +- .../sdk/model/DelegationSummary.java | 51 +- .../DeleteNetworkConnectionResponse.java | 23 +- .../sdk/model/DeleteNetworkIdResponse.java | 23 +- .../model/DeployLayerZeroAdaptersRequest.java | 93 +- .../sdk/model/DeployableAddressResponse.java | 23 +- .../model/DeployedContractNotFoundError.java | 34 +- .../model/DeployedContractResponseDto.java | 117 +- .../DeployedContractsPaginatedResponse.java | 31 +- .../DepositFundsFromLinkedDDAResponse.java | 23 +- .../sdk/model/DerivationPathConfig.java | 207 + .../sdk/model/DesignatedSignersConfig.java | 292 + .../com/fireblocks/sdk/model/Destination.java | 4 +- .../sdk/model/DestinationConfig.java | 464 + .../model/DestinationTransferPeerPath.java | 81 +- .../DestinationTransferPeerPathResponse.java | 76 +- .../model/DisbursementAmountInstruction.java | 44 +- .../model/DisbursementConfigOperation.java | 68 +- .../sdk/model/DisbursementInstruction.java | 4 +- .../model/DisbursementInstructionOutput.java | 35 +- .../DisbursementOperationConfigParams.java | 26 +- .../model/DisbursementOperationExecution.java | 70 +- .../DisbursementOperationExecutionOutput.java | 19 +- .../DisbursementOperationExecutionParams.java | 35 +- ...erationExecutionParamsExecutionParams.java | 32 +- .../sdk/model/DisbursementOperationInput.java | 42 +- .../model/DisbursementOperationPreview.java | 33 +- .../DisbursementOperationPreviewOutput.java | 20 +- ...ationPreviewOutputInstructionSetInner.java | 53 +- .../DisbursementPercentageInstruction.java | 46 +- .../model/DisbursementValidationFailure.java | 67 +- .../sdk/model/DispatchPayoutResponse.java | 23 +- .../fireblocks/sdk/model/DraftResponse.java | 51 +- .../DraftReviewAndValidationResponse.java | 29 +- .../sdk/model/DropTransactionRequest.java | 34 +- .../sdk/model/DropTransactionResponse.java | 37 +- .../com/fireblocks/sdk/model/DvnConfig.java | 56 +- .../sdk/model/DvnConfigWithConfirmations.java | 73 +- .../sdk/model/EVMTokenCreateParamsDto.java | 33 +- .../EditGasStationConfigurationResponse.java | 24 +- .../fireblocks/sdk/model/EmbeddedWallet.java | 34 +- .../sdk/model/EmbeddedWalletAccount.java | 35 +- .../model/EmbeddedWalletAddressDetails.java | 213 +- .../sdk/model/EmbeddedWalletAlgoritm.java | 28 +- .../sdk/model/EmbeddedWalletAssetBalance.java | 114 +- .../model/EmbeddedWalletAssetResponse.java | 214 +- .../model/EmbeddedWalletAssetRewardInfo.java | 27 +- .../sdk/model/EmbeddedWalletDevice.java | 49 +- .../EmbeddedWalletDeviceKeySetupResponse.java | 57 +- ...eviceKeySetupResponseSetupStatusInner.java | 46 +- .../model/EmbeddedWalletLatestBackupKey.java | 65 +- .../EmbeddedWalletLatestBackupResponse.java | 49 +- ...eddedWalletPaginatedAddressesResponse.java | 31 +- ...EmbeddedWalletPaginatedAssetsResponse.java | 31 +- ...mbeddedWalletPaginatedWalletsResponse.java | 30 +- .../sdk/model/EmbeddedWalletSetUpStatus.java | 26 +- .../fireblocks/sdk/model/ErrorResponse.java | 17 +- .../sdk/model/ErrorResponseError.java | 47 +- .../com/fireblocks/sdk/model/ErrorSchema.java | 25 +- .../sdk/model/EstimatedFeeDetails.java | 22 +- .../model/EstimatedNetworkFeeResponse.java | 33 +- .../EstimatedTransactionFeeResponse.java | 41 +- .../fireblocks/sdk/model/ExchangeAccount.java | 92 +- .../sdk/model/ExchangeAccountsPaged.java | 40 +- .../model/ExchangeAccountsPagedPaging.java | 25 +- .../fireblocks/sdk/model/ExchangeAsset.java | 66 +- ...xchangeSettlementTransactionsResponse.java | 19 +- .../sdk/model/ExchangeTradingAccount.java | 31 +- .../model/ExecutionConversionOperation.java | 76 +- .../model/ExecutionDisbursementOperation.java | 77 +- .../model/ExecutionScreeningOperation.java | 67 +- .../sdk/model/ExecutionTransferOperation.java | 74 +- .../sdk/model/ExternalWalletAsset.java | 87 +- .../fireblocks/sdk/model/FeeBreakdown.java | 4 +- .../sdk/model/FeeBreakdownOneOf.java | 45 +- .../sdk/model/FeeBreakdownOneOf1.java | 36 +- .../com/fireblocks/sdk/model/FeeInfo.java | 89 +- .../sdk/model/FetchAbiRequestDto.java | 39 +- .../com/fireblocks/sdk/model/FiatAccount.java | 51 +- .../com/fireblocks/sdk/model/FiatAsset.java | 27 +- .../sdk/model/FreezeTransactionResponse.java | 16 +- .../com/fireblocks/sdk/model/FunctionDoc.java | 40 +- .../java/com/fireblocks/sdk/model/Funds.java | 16 +- .../sdk/model/GasStationConfiguration.java | 38 +- .../GasStationConfigurationResponse.java | 40 +- .../model/GasStationPropertiesResponse.java | 23 +- .../model/GasslessStandardConfigurations.java | 16 +- ...onsGaslessStandardConfigurationsValue.java | 31 +- .../sdk/model/GetAPIUsersResponse.java | 17 +- .../sdk/model/GetAuditLogsResponse.java | 31 +- .../sdk/model/GetConnectionsResponse.java | 23 +- .../sdk/model/GetConsoleUsersResponse.java | 17 +- .../model/GetDeployableAddressRequest.java | 60 +- ...eAccountsCredentialsPublicKeyResponse.java | 37 +- .../sdk/model/GetFilterParameter.java | 78 +- .../model/GetLayerZeroDvnConfigResponse.java | 39 +- .../sdk/model/GetLayerZeroPeersResponse.java | 52 +- ...GetLinkedCollectionsPaginatedResponse.java | 23 +- .../model/GetMaxSpendableAmountResponse.java | 19 +- .../sdk/model/GetMpcKeysResponse.java | 31 +- .../fireblocks/sdk/model/GetNFTsResponse.java | 16 +- .../sdk/model/GetOtaStatusResponse.java | 16 +- .../sdk/model/GetOwnershipTokensResponse.java | 17 +- .../sdk/model/GetSigningKeyResponseDto.java | 29 +- .../model/GetValidationKeyResponseDto.java | 31 +- .../GetWhitelistIpAddressesResponse.java | 29 +- .../sdk/model/GetWorkspaceStatusResponse.java | 16 +- .../model/HttpContractDoesNotExistError.java | 25 +- ...nalInfoOneOf.java => IbanPaymentInfo.java} | 291 +- .../fireblocks/sdk/model/InitiatorConfig.java | 419 + .../sdk/model/InitiatorConfigPattern.java | 325 + .../sdk/model/InstructionAmount.java | 34 +- .../sdk/model/InternalTransferResponse.java | 34 +- .../sdk/model/InvalidParamaterValueError.java | 34 +- .../java/com/fireblocks/sdk/model/Job.java | 78 +- .../com/fireblocks/sdk/model/JobCreated.java | 16 +- .../model/LayerZeroAdapterCreateParams.java | 72 +- .../fireblocks/sdk/model/LbtPaymentInfo.java | 522 + .../fireblocks/sdk/model/LeanAbiFunction.java | 56 +- .../fireblocks/sdk/model/LeanContractDto.java | 109 +- .../LeanDeployedContractResponseDto.java | 70 +- ...acyAmountAggregationTimePeriodMethod.java} | 9 +- .../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 +++ ...mount.java => LegacyPolicyRuleAmount.java} | 61 +- ...=> LegacyPolicyRuleAmountAggregation.java} | 76 +- ... LegacyPolicyRuleAuthorizationGroups.java} | 78 +- ...cyRuleAuthorizationGroupsGroupsInner.java} | 79 +- .../model/LegacyPolicyRuleCheckResult.java | 290 + ...=> LegacyPolicyRuleDesignatedSigners.java} | 55 +- ...yRuleDst.java => LegacyPolicyRuleDst.java} | 40 +- .../sdk/model/LegacyPolicyRuleError.java | 334 + ...rs.java => LegacyPolicyRuleOperators.java} | 86 +- ...=> LegacyPolicyRuleRawMessageSigning.java} | 53 +- ...yRuleRawMessageSigningDerivationPath.java} | 43 +- ...yRuleSrc.java => LegacyPolicyRuleSrc.java} | 40 +- ...olicyRules.java => LegacyPolicyRules.java} | 30 +- ...java => LegacyPolicySrcOrDestSubType.java} | 8 +- ...pe.java => LegacyPolicySrcOrDestType.java} | 8 +- .../sdk/model/LegacyPolicyStatus.java | 78 + .../sdk/model/LegacyPolicyValidation.java | 186 + .../sdk/model/LegacyPublishDraftRequest.java | 139 + .../sdk/model/LegacyPublishResult.java | 288 + ...va => LegacySrcOrDestAttributesInner.java} | 139 +- .../sdk/model/ListAssetsResponse.java | 31 +- .../sdk/model/ListBlockchainsResponse.java | 32 +- .../model/ListOwnedCollectionsResponse.java | 17 +- .../sdk/model/ListOwnedTokensResponse.java | 16 +- .../sdk/model/MediaEntityResponse.java | 55 +- .../sdk/model/MergeStakeAccountsRequest.java | 64 +- .../sdk/model/MergeStakeAccountsResponse.java | 25 +- .../sdk/model/ModifySigningKeyAgentIdDto.java | 26 +- .../sdk/model/ModifySigningKeyDto.java | 27 +- .../sdk/model/ModifyValidationKeyDto.java | 23 +- .../fireblocks/sdk/model/MomoPaymentInfo.java | 610 + .../java/com/fireblocks/sdk/model/MpcKey.java | 68 +- .../model/MultichainDeploymentMetadata.java | 68 +- .../fireblocks/sdk/model/NetworkChannel.java | 26 +- .../sdk/model/NetworkConnection.java | 49 +- .../sdk/model/NetworkConnectionResponse.java | 84 +- .../NetworkConnectionRoutingPolicyValue.java | 4 +- .../com/fireblocks/sdk/model/NetworkFee.java | 56 +- .../com/fireblocks/sdk/model/NetworkId.java | 36 +- .../sdk/model/NetworkIdResponse.java | 46 +- .../model/NetworkIdRoutingPolicyValue.java | 4 +- .../fireblocks/sdk/model/NetworkRecord.java | 127 +- .../com/fireblocks/sdk/model/NewAddress.java | 47 +- .../sdk/model/NonWalletQuoteFee.java | 86 +- .../sdk/model/NonWalletQuoteResponse.java | 129 +- .../sdk/model/NoneNetworkRoutingDest.java | 24 +- .../sdk/model/NotFoundException.java | 35 +- .../fireblocks/sdk/model/Notification.java | 83 +- .../sdk/model/NotificationAttempt.java | 60 +- ...NotificationAttemptsPaginatedResponse.java | 31 +- .../model/NotificationPaginatedResponse.java | 72 +- .../sdk/model/NotificationWithData.java | 92 +- .../fireblocks/sdk/model/OneTimeAddress.java | 32 +- .../sdk/model/OneTimeAddressAccount.java | 35 +- .../sdk/model/OperationExecutionFailure.java | 34 +- .../sdk/model/PaginatedAddressResponse.java | 18 +- .../model/PaginatedAddressResponsePaging.java | 25 +- .../model/PaginatedAssetWalletResponse.java | 18 +- .../PaginatedAssetWalletResponsePaging.java | 25 +- .../sdk/model/PaginatedAssetsResponse.java | 38 +- .../java/com/fireblocks/sdk/model/Paging.java | 22 +- .../sdk/model/PairApiKeyRequest.java | 12 +- .../sdk/model/PairApiKeyResponse.java | 32 +- .../com/fireblocks/sdk/model/Parameter.java | 62 +- .../sdk/model/ParameterWithValue.java | 78 +- .../fireblocks/sdk/model/PayeeAccount.java | 36 +- .../sdk/model/PayeeAccountResponse.java | 27 +- .../fireblocks/sdk/model/PaymentAccount.java | 36 +- .../sdk/model/PaymentAccountResponse.java | 27 +- .../sdk/model/PayoutInstruction.java | 40 +- .../sdk/model/PayoutInstructionResponse.java | 64 +- .../fireblocks/sdk/model/PayoutResponse.java | 110 +- .../fireblocks/sdk/model/PeerAdapterInfo.java | 54 +- .../fireblocks/sdk/model/PixPaymentInfo.java | 598 + .../com/fireblocks/sdk/model/Players.java | 39 +- .../model/PolicyAndValidationResponse.java | 27 +- .../sdk/model/PolicyCheckResult.java | 33 +- .../fireblocks/sdk/model/PolicyMetadata.java | 106 +- .../fireblocks/sdk/model/PolicyOperator.java | 64 + .../fireblocks/sdk/model/PolicyResponse.java | 26 +- .../com/fireblocks/sdk/model/PolicyRule.java | 1560 +-- .../sdk/model/PolicyRuleCheckResult.java | 46 +- .../fireblocks/sdk/model/PolicyRuleError.java | 81 +- .../com/fireblocks/sdk/model/PolicyType.java | 100 + .../sdk/model/PolicyValidation.java | 32 +- .../fireblocks/sdk/model/PreScreening.java | 23 +- .../sdk/model/ProgramCallConfig.java | 188 + .../com/fireblocks/sdk/model/Provider.java | 108 +- .../sdk/model/ProviderAdditionalData.java | 25 +- .../sdk/model/PublicKeyInformation.java | 46 +- .../sdk/model/PublishDraftRequest.java | 103 +- .../fireblocks/sdk/model/PublishResult.java | 49 +- .../com/fireblocks/sdk/model/QuoteFee.java | 93 +- .../fireblocks/sdk/model/QuoteRequest.java | 87 +- .../fireblocks/sdk/model/QuoteResponse.java | 4 +- .../fireblocks/sdk/model/ReadAbiFunction.java | 77 +- .../sdk/model/ReadCallFunctionDto.java | 20 +- .../model/ReadCallFunctionDtoAbiFunction.java | 4 +- .../model/RedeemFundsToLinkedDDAResponse.java | 23 +- .../sdk/model/RegisterNewAssetRequest.java | 45 +- .../model/ReissueMultichainTokenRequest.java | 75 +- .../fireblocks/sdk/model/RelatedRequest.java | 56 +- .../sdk/model/RelatedTransaction.java | 35 +- .../model/RemoveCollateralRequestBody.java | 27 +- .../RemoveLayerZeroAdapterFailedResult.java | 27 +- .../model/RemoveLayerZeroAdaptersRequest.java | 44 +- .../RemoveLayerZeroAdaptersResponse.java | 39 +- .../model/RemoveLayerZeroPeersRequest.java | 78 +- .../model/RemoveLayerZeroPeersResponse.java | 26 +- .../fireblocks/sdk/model/RenameCosigner.java | 16 +- .../sdk/model/RenameVaultAccountResponse.java | 27 +- .../sdk/model/RescanTransaction.java | 25 +- ...dFailedNotificationsJobStatusResponse.java | 68 +- .../ResendFailedNotificationsRequest.java | 31 +- .../ResendFailedNotificationsResponse.java | 16 +- ...esendNotificationsByResourceIdRequest.java | 40 +- .../ResendTransactionWebhooksRequest.java | 32 +- ...ResendWebhooksByTransactionIdResponse.java | 24 +- .../sdk/model/ResendWebhooksResponse.java | 19 +- .../sdk/model/RespondToConnectionRequest.java | 23 +- .../com/fireblocks/sdk/model/RewardInfo.java | 28 +- .../com/fireblocks/sdk/model/RewardsInfo.java | 18 +- .../com/fireblocks/sdk/model/SOLAccount.java | 49 +- .../sdk/model/SOLAccountWithValue.java | 52 +- .../model/ScreeningConfigurationsRequest.java | 47 +- .../sdk/model/ScreeningMetadataConfig.java | 790 ++ .../model/ScreeningOperationExecution.java | 49 +- .../ScreeningOperationExecutionOutput.java | 19 +- .../sdk/model/ScreeningOperationFailure.java | 33 +- .../sdk/model/ScreeningPolicyResponse.java | 70 +- ...ingProviderRulesConfigurationResponse.java | 103 +- .../model/ScreeningUpdateConfigurations.java | 31 +- .../sdk/model/ScreeningValidationFailure.java | 35 +- .../sdk/model/ScreeningVerdict.java | 86 +- .../model/ScreeningVerdictMatchedRule.java | 29 +- .../sdk/model/SearchNetworkIdsResponse.java | 23 +- .../fireblocks/sdk/model/SepaPaymentInfo.java | 765 + .../com/fireblocks/sdk/model/SessionDTO.java | 140 +- .../fireblocks/sdk/model/SessionMetadata.java | 52 +- .../model/SetAdminQuorumThresholdRequest.java | 21 +- .../SetAdminQuorumThresholdResponse.java | 23 +- .../sdk/model/SetAssetPriceRequest.java | 34 +- .../sdk/model/SetAutoFuelRequest.java | 16 +- .../SetConfirmationsThresholdRequest.java | 19 +- .../SetConfirmationsThresholdResponse.java | 29 +- .../SetCustomerRefIdForAddressRequest.java | 19 +- .../sdk/model/SetCustomerRefIdRequest.java | 19 +- .../model/SetLayerZeroDvnConfigRequest.java | 79 +- .../model/SetLayerZeroDvnConfigResponse.java | 25 +- .../sdk/model/SetLayerZeroPeersRequest.java | 78 +- .../sdk/model/SetLayerZeroPeersResponse.java | 26 +- .../SetNetworkIdDiscoverabilityRequest.java | 27 +- .../sdk/model/SetNetworkIdNameRequest.java | 23 +- .../sdk/model/SetNetworkIdResponse.java | 23 +- .../SetNetworkIdRoutingPolicyRequest.java | 19 +- .../sdk/model/SetOtaStatusRequest.java | 16 +- .../sdk/model/SetOtaStatusResponse.java | 12 +- .../sdk/model/SetOtaStatusResponseOneOf.java | 16 +- .../sdk/model/SetRoutingPolicyRequest.java | 21 +- .../sdk/model/SetRoutingPolicyResponse.java | 23 +- .../sdk/model/SettlementRequestBody.java | 21 +- .../sdk/model/SettlementResponse.java | 61 +- .../fireblocks/sdk/model/SignedMessage.java | 59 +- .../sdk/model/SignedMessageSignature.java | 49 +- .../fireblocks/sdk/model/SigningKeyDto.java | 113 +- .../sdk/model/SmartTransferApproveTerm.java | 77 +- .../SmartTransferBadRequestResponse.java | 34 +- .../sdk/model/SmartTransferCoinStatistic.java | 25 +- .../sdk/model/SmartTransferCreateTicket.java | 90 +- .../model/SmartTransferCreateTicketTerm.java | 64 +- .../model/SmartTransferForbiddenResponse.java | 34 +- .../sdk/model/SmartTransferFundDvpTicket.java | 40 +- .../sdk/model/SmartTransferFundTerm.java | 99 +- .../model/SmartTransferManuallyFundTerm.java | 23 +- .../model/SmartTransferNotFoundResponse.java | 34 +- .../SmartTransferSetTicketExpiration.java | 25 +- .../SmartTransferSetTicketExternalId.java | 27 +- .../sdk/model/SmartTransferSetUserGroups.java | 28 +- .../sdk/model/SmartTransferStatistic.java | 63 +- .../model/SmartTransferStatisticInflow.java | 26 +- .../model/SmartTransferStatisticOutflow.java | 26 +- .../sdk/model/SmartTransferSubmitTicket.java | 17 +- .../sdk/model/SmartTransferTicket.java | 308 +- .../SmartTransferTicketFilteredResponse.java | 45 +- .../model/SmartTransferTicketResponse.java | 29 +- .../sdk/model/SmartTransferTicketTerm.java | 248 +- .../SmartTransferTicketTermResponse.java | 30 +- .../model/SmartTransferUpdateTicketTerm.java | 64 +- .../sdk/model/SmartTransferUserGroups.java | 28 +- .../SmartTransferUserGroupsResponse.java | 30 +- .../fireblocks/sdk/model/SolParameter.java | 34 +- .../sdk/model/SolParameterWithValue.java | 45 +- .../sdk/model/SolanaBlockchainData.java | 47 +- .../fireblocks/sdk/model/SolanaConfig.java | 34 +- .../sdk/model/SolanaInstruction.java | 56 +- .../sdk/model/SolanaInstructionWithValue.java | 59 +- .../sdk/model/SolanaSimpleCreateParams.java | 45 +- .../sdk/model/SourceTransferPeerPath.java | 73 +- .../model/SourceTransferPeerPathResponse.java | 74 +- .../sdk/model/SpamOwnershipResponse.java | 37 +- .../sdk/model/SpamTokenResponse.java | 23 +- .../sdk/model/SpeiAdvancedPaymentInfo.java | 560 + ...oOneOf2.java => SpeiBasicPaymentInfo.java} | 66 +- .../fireblocks/sdk/model/SplitRequest.java | 63 +- .../fireblocks/sdk/model/SplitResponse.java | 24 +- .../fireblocks/sdk/model/StakeRequest.java | 79 +- .../fireblocks/sdk/model/StakeResponse.java | 24 +- .../java/com/fireblocks/sdk/model/Status.java | 49 +- .../model/StellarRippleCreateParamsDto.java | 49 +- .../fireblocks/sdk/model/SwapFlowError.java | 34 +- .../fireblocks/sdk/model/SwapOperation.java | 242 +- .../sdk/model/SwapOperationRequest.java | 49 +- .../SwapOperationsPaginatedResponse.java | 30 +- .../fireblocks/sdk/model/SwapProvider.java | 107 +- .../model/SwapProvidersPaginatedResponse.java | 30 +- .../sdk/model/SwapRequiredAction.java | 52 +- .../sdk/model/SystemMessageInfo.java | 29 +- .../java/com/fireblocks/sdk/model/Tag.java | 47 +- .../sdk/model/TagsPagedResponse.java | 31 +- .../java/com/fireblocks/sdk/model/Task.java | 72 +- .../sdk/model/TemplatesPaginatedResponse.java | 29 +- .../sdk/model/ThirdPartyRouting.java | 31 +- .../sdk/model/TimePeriodConfig.java | 274 + .../sdk/model/TimePeriodMatchType.java | 64 + .../sdk/model/ToCollateralTransaction.java | 53 +- .../sdk/model/ToExchangeTransaction.java | 44 +- .../sdk/model/TokenCollectionResponse.java | 43 +- .../model/TokenInfoNotFoundErrorResponse.java | 34 +- .../fireblocks/sdk/model/TokenLinkDto.java | 84 +- .../sdk/model/TokenLinkDtoTokenMetadata.java | 4 +- .../sdk/model/TokenLinkExistsHttpError.java | 35 +- ...nLinkNotMultichainCompatibleHttpError.java | 36 +- .../sdk/model/TokenLinkRequestDto.java | 73 +- .../sdk/model/TokenOwnershipResponse.java | 265 +- .../TokenOwnershipSpamUpdatePayload.java | 34 +- .../TokenOwnershipStatusUpdatePayload.java | 37 +- .../fireblocks/sdk/model/TokenResponse.java | 174 +- .../sdk/model/TokensPaginatedResponse.java | 29 +- .../com/fireblocks/sdk/model/Transaction.java | 94 +- .../fireblocks/sdk/model/TransactionFee.java | 85 +- .../sdk/model/TransactionReceiptResponse.java | 184 +- .../sdk/model/TransactionRequest.java | 288 +- .../sdk/model/TransactionRequestAmount.java | 17 +- .../model/TransactionRequestDestination.java | 49 +- .../sdk/model/TransactionRequestFee.java | 17 +- .../sdk/model/TransactionRequestGasLimit.java | 17 +- .../sdk/model/TransactionRequestGasPrice.java | 17 +- .../model/TransactionRequestNetworkFee.java | 17 +- .../TransactionRequestNetworkStaking.java | 17 +- .../model/TransactionRequestPriorityFee.java | 17 +- .../sdk/model/TransactionResponse.java | 476 +- ...actionResponseContractCallDecodedData.java | 32 +- .../model/TransactionResponseDestination.java | 73 +- .../sdk/model/TransferConfigOperation.java | 67 +- .../model/TransferOperationConfigParams.java | 46 +- .../sdk/model/TransferOperationExecution.java | 68 +- .../TransferOperationExecutionOutput.java | 25 +- .../TransferOperationExecutionParams.java | 35 +- ...erationExecutionParamsExecutionParams.java | 41 +- .../sdk/model/TransferOperationFailure.java | 35 +- .../model/TransferOperationFailureData.java | 46 +- .../sdk/model/TransferOperationPreview.java | 33 +- .../model/TransferOperationPreviewOutput.java | 58 +- .../sdk/model/TransferValidationFailure.java | 62 +- .../sdk/model/TravelRuleAddress.java | 44 +- .../TravelRuleCreateTransactionRequest.java | 257 +- .../model/TravelRuleDateAndPlaceOfBirth.java | 31 +- .../model/TravelRuleGeographicAddress.java | 178 +- .../model/TravelRuleGetAllVASPsResponse.java | 39 +- .../sdk/model/TravelRuleIssuer.java | 24 +- .../sdk/model/TravelRuleIssuers.java | 137 +- .../sdk/model/TravelRuleLegalPerson.java | 70 +- .../TravelRuleLegalPersonNameIdentifier.java | 32 +- .../TravelRuleNationalIdentification.java | 59 +- .../TravelRuleNaturalNameIdentifier.java | 44 +- .../sdk/model/TravelRuleNaturalPerson.java | 78 +- ...TravelRuleNaturalPersonNameIdentifier.java | 34 +- .../sdk/model/TravelRuleOwnershipProof.java | 76 +- .../sdk/model/TravelRulePerson.java | 19 +- .../sdk/model/TravelRulePiiIVMS.java | 40 +- .../model/TravelRulePolicyRuleResponse.java | 162 +- .../TravelRuleTransactionBlockchainInfo.java | 37 +- .../model/TravelRuleUpdateVASPDetails.java | 35 +- .../fireblocks/sdk/model/TravelRuleVASP.java | 541 +- ...TravelRuleValidateDateAndPlaceOfBirth.java | 31 +- ...velRuleValidateFullTransactionRequest.java | 279 +- .../TravelRuleValidateGeographicAddress.java | 190 +- .../model/TravelRuleValidateLegalPerson.java | 74 +- ...RuleValidateLegalPersonNameIdentifier.java | 39 +- ...velRuleValidateNationalIdentification.java | 65 +- ...avelRuleValidateNaturalNameIdentifier.java | 54 +- .../TravelRuleValidateNaturalPerson.java | 82 +- ...leValidateNaturalPersonNameIdentifier.java | 36 +- .../sdk/model/TravelRuleValidatePerson.java | 20 +- .../sdk/model/TravelRuleValidatePiiIVMS.java | 38 +- .../TravelRuleValidateTransactionRequest.java | 169 +- ...TravelRuleValidateTransactionResponse.java | 129 +- .../sdk/model/TravelRuleVaspForVault.java | 16 +- .../java/com/fireblocks/sdk/model/TxLog.java | 122 +- .../model/UnfreezeTransactionResponse.java | 16 +- .../fireblocks/sdk/model/UnmanagedWallet.java | 55 +- .../fireblocks/sdk/model/UnspentInput.java | 25 +- .../sdk/model/UnspentInputsResponse.java | 52 +- .../fireblocks/sdk/model/UnstakeRequest.java | 60 +- .../model/UpdateAssetUserMetadataRequest.java | 11 +- .../model/UpdateCallbackHandlerRequest.java | 12 +- .../model/UpdateCallbackHandlerResponse.java | 33 +- .../sdk/model/UpdateDraftRequest.java | 231 + .../sdk/model/UpdateTagRequest.java | 27 +- .../model/UpdateTokenOwnershipStatusDto.java | 26 +- ...UpdateVaultAccountAssetAddressRequest.java | 19 +- .../sdk/model/UpdateVaultAccountRequest.java | 16 +- .../sdk/model/UpdateWebhookRequest.java | 48 +- .../sdk/model/UsWirePaymentInfo.java | 826 ++ .../sdk/model/UserGroupCreateRequest.java | 29 +- .../sdk/model/UserGroupCreateResponse.java | 48 +- .../sdk/model/UserGroupResponse.java | 48 +- .../sdk/model/UserGroupUpdateRequest.java | 29 +- .../fireblocks/sdk/model/UserResponse.java | 64 +- .../sdk/model/ValidateAddressResponse.java | 36 +- .../ValidateLayerZeroChannelResponse.java | 37 +- .../model/ValidatedTransactionsForRescan.java | 42 +- .../sdk/model/ValidationKeyDto.java | 75 +- .../com/fireblocks/sdk/model/Validator.java | 49 +- .../fireblocks/sdk/model/VaultAccount.java | 69 +- .../sdk/model/VaultAccountsPagedResponse.java | 41 +- .../VaultAccountsPagedResponsePaging.java | 25 +- .../VaultAccountsTagAttachmentsRequest.java | 43 +- .../sdk/model/VaultActionStatus.java | 16 +- .../com/fireblocks/sdk/model/VaultAsset.java | 179 +- .../sdk/model/VaultWalletAddress.java | 131 +- .../com/fireblocks/sdk/model/VendorDto.java | 36 +- .../fireblocks/sdk/model/VerdictConfig.java | 273 + .../com/fireblocks/sdk/model/Version.java | 22 +- .../com/fireblocks/sdk/model/WalletAsset.java | 76 +- .../sdk/model/WalletAssetAdditionalInfo.java | 197 +- .../sdk/model/WalletQuoteResponse.java | 170 +- .../com/fireblocks/sdk/model/Webhook.java | 101 +- .../sdk/model/WebhookPaginatedResponse.java | 29 +- .../fireblocks/sdk/model/WithdrawRequest.java | 51 +- .../sdk/model/WorkflowConfigurationId.java | 23 +- .../sdk/model/WorkflowExecutionOperation.java | 4 +- .../sdk/model/WriteAbiFunction.java | 79 +- .../sdk/model/WriteCallFunctionDto.java | 98 +- .../WriteCallFunctionDtoAbiFunction.java | 4 +- .../model/WriteCallFunctionResponseDto.java | 23 +- .../com/fireblocks/sdk/FireblocksTest.java | 8 + .../fireblocks/sdk/api/ComplianceApiTest.java | 18 + .../sdk/api/PolicyEditorBetaApiTest.java | 87 +- .../sdk/api/PolicyEditorV2BetaApiTest.java | 97 + .../fireblocks/sdk/api/WebhooksV2ApiTest.java | 20 +- .../com/fireblocks/sdk/model/APIUserTest.java | 18 +- ...neOf1Test.java => AbaPaymentInfoTest.java} | 37 +- .../fireblocks/sdk/model/AbiFunctionTest.java | 18 +- .../sdk/model/AccountConfigTest.java | 57 + .../sdk/model/AccountIdentifierTest.java | 51 + .../com/fireblocks/sdk/model/AccountTest.java | 10 +- ...estTypeTest.java => AccountType2Test.java} | 12 +- .../fireblocks/sdk/model/AccountTypeTest.java | 6 +- .../sdk/model/AchPaymentInfoTest.java | 75 + .../model/AdapterProcessingResultTest.java | 10 +- .../sdk/model/AddAbiRequestDtoTest.java | 14 +- ...RequestOneOf1AdditionalInfoOneOf2Test.java | 40 - ...WalletRequestOneOf1AdditionalInfoTest.java | 124 - .../AddAssetToExternalWalletRequestTest.java | 12 +- .../model/AddCollateralRequestBodyTest.java | 10 +- .../model/AddContractAssetRequestTest.java | 10 +- .../sdk/model/AddCosignerRequestTest.java | 12 +- .../sdk/model/AddCosignerResponseTest.java | 14 +- .../model/AddExchangeAccountRequestTest.java | 16 +- .../model/AddExchangeAccountResponseTest.java | 12 +- ...ditionalInfoRequestAdditionalInfoTest.java | 304 + ...st.java => AdditionalInfoRequestTest.java} | 17 +- .../sdk/model/AdditionalInfoTest.java | 12 +- .../model/AddressNotAvailableErrorTest.java | 10 +- .../AmlRegistrationResultFullPayloadTest.java | 12 +- .../sdk/model/AmlRegistrationResultTest.java | 12 +- .../sdk/model/AmlScreeningResultTest.java | 10 +- .../model/AmlVerdictManualRequestTest.java | 39 + .../model/AmlVerdictManualResponseTest.java | 39 + .../model/AmountAndChainDescriptorTest.java | 10 +- .../fireblocks/sdk/model/AmountInfoTest.java | 14 +- .../model/AmountOverTimeConfigRangeTest.java | 39 + .../sdk/model/AmountOverTimeConfigTest.java | 45 + .../fireblocks/sdk/model/AmountRangeTest.java | 45 + .../com/fireblocks/sdk/model/ApiKeyTest.java | 12 +- .../model/ApiKeysPaginatedResponseTest.java | 10 +- ...pproversConfigApprovalGroupsInnerTest.java | 46 + .../sdk/model/ApproversConfigTest.java | 51 + .../model/AssetAlreadyExistHttpErrorTest.java | 12 +- .../fireblocks/sdk/model/AssetAmountTest.java | 10 +- .../AssetBadRequestErrorResponseTest.java | 10 +- .../fireblocks/sdk/model/AssetClassTest.java | 6 +- .../fireblocks/sdk/model/AssetConfigTest.java | 45 + .../model/AssetConflictErrorResponseTest.java | 10 +- .../sdk/model/AssetDetailsMetadataTest.java | 20 +- .../sdk/model/AssetDetailsOnchainTest.java | 16 +- .../AssetForbiddenErrorResponseTest.java | 10 +- .../AssetInternalServerErrorResponseTest.java | 10 +- .../sdk/model/AssetMediaAttributesTest.java | 8 +- .../fireblocks/sdk/model/AssetMediaTest.java | 12 +- .../sdk/model/AssetMetadataDtoTest.java | 32 +- .../sdk/model/AssetMetadataRequestTest.java | 8 +- .../sdk/model/AssetMetadataTest.java | 10 +- .../model/AssetNotFoundErrorResponseTest.java | 10 +- .../sdk/model/AssetNoteRequestTest.java | 8 +- .../fireblocks/sdk/model/AssetNoteTest.java | 14 +- .../sdk/model/AssetOnchainTest.java | 16 +- .../AssetPriceForbiddenErrorResponseTest.java | 10 +- .../AssetPriceNotFoundErrorResponseTest.java | 10 +- .../sdk/model/AssetPriceResponseTest.java | 16 +- .../sdk/model/AssetResponseTest.java | 14 +- .../fireblocks/sdk/model/AssetScopeTest.java | 6 +- .../com/fireblocks/sdk/model/AssetTest.java | 22 +- .../sdk/model/AssetTypeResponseTest.java | 18 +- .../sdk/model/AssetTypesConfigInnerTest.java | 27 + .../fireblocks/sdk/model/AssetWalletTest.java | 28 +- .../sdk/model/AuditLogDataTest.java | 22 +- .../fireblocks/sdk/model/AuditorDataTest.java | 12 +- .../sdk/model/AuthorizationGroupsTest.java | 10 +- .../sdk/model/AuthorizationInfoTest.java | 12 +- ...Test.java => BasicAddressRequestTest.java} | 19 +- .../fireblocks/sdk/model/BlockInfoTest.java | 10 +- .../sdk/model/BlockchainExplorerTest.java | 14 +- .../sdk/model/BlockchainMediaTest.java | 10 +- .../sdk/model/BlockchainMetadataTest.java | 14 +- .../BlockchainNotFoundErrorResponseTest.java | 10 +- .../sdk/model/BlockchainOnchainTest.java | 14 +- .../sdk/model/BlockchainResponseTest.java | 18 +- .../sdk/model/CallbackHandlerRequestTest.java | 12 +- .../sdk/model/CallbackHandlerTest.java | 12 +- .../model/CancelTransactionResponseTest.java | 8 +- .../sdk/model/ChainDescriptorTest.java | 6 +- .../sdk/model/ChainInfoResponseTest.java | 16 +- ...figWithConfirmationsReceiveConfigTest.java | 52 - ...ConfigWithConfirmationsSendConfigTest.java | 52 - ...ChannelDvnConfigWithConfirmationsTest.java | 10 +- .../sdk/model/ClaimRewardsRequestTest.java | 14 +- .../model/CollectionBurnRequestDtoTest.java | 12 +- .../model/CollectionBurnResponseDtoTest.java | 8 +- .../model/CollectionDeployRequestDtoTest.java | 20 +- .../sdk/model/CollectionLinkDtoTest.java | 16 +- .../sdk/model/CollectionMetadataDtoTest.java | 18 +- .../model/CollectionMintRequestDtoTest.java | 18 +- .../model/CollectionMintResponseDtoTest.java | 8 +- .../CollectionOwnershipResponseTest.java | 18 +- ...llectionTokenMetadataAttributeDtoTest.java | 12 +- .../model/CollectionTokenMetadataDtoTest.java | 18 +- .../sdk/model/CollectionTypeTest.java | 6 +- .../ComplianceResultFullPayloadTest.java | 16 +- .../ComplianceResultStatusesEnumTest.java | 6 +- .../sdk/model/ComplianceResultsTest.java | 16 +- ...plianceScreeningResultFullPayloadTest.java | 16 +- .../model/ComplianceScreeningResultTest.java | 16 +- .../model/ConfigChangeRequestStatusTest.java | 6 +- ...ConfigConversionOperationSnapshotTest.java | 12 +- ...nfigDisbursementOperationSnapshotTest.java | 12 +- .../model/ConfigOperationSnapshotTest.java | 12 +- .../sdk/model/ConfigOperationStatusTest.java | 6 +- .../sdk/model/ConfigOperationTest.java | 16 +- .../ConfigTransferOperationSnapshotTest.java | 12 +- .../fireblocks/sdk/model/ConsoleUserTest.java | 22 +- .../ContractAbiResponseDtoAbiInnerTest.java | 24 +- .../sdk/model/ContractAbiResponseDtoTest.java | 10 +- .../sdk/model/ContractAttributesTest.java | 12 +- .../model/ContractDataDecodeDataTypeTest.java | 6 +- .../model/ContractDataDecodeErrorTest.java | 10 +- .../ContractDataDecodeRequestDataTest.java | 10 +- .../model/ContractDataDecodeRequestTest.java | 12 +- .../ContractDataDecodeResponseParamsTest.java | 12 +- .../ContractDataDecodedResponseTest.java | 10 +- .../model/ContractDataLogDataParamTest.java | 10 +- .../sdk/model/ContractDeployRequestTest.java | 18 +- .../sdk/model/ContractDeployResponseTest.java | 8 +- .../fireblocks/sdk/model/ContractDocTest.java | 16 +- .../sdk/model/ContractMetadataDtoTest.java | 16 +- .../sdk/model/ContractMethodConfigTest.java | 45 + .../sdk/model/ContractMethodPatternTest.java | 45 + .../sdk/model/ContractTemplateDtoTest.java | 34 +- .../sdk/model/ContractUploadRequestTest.java | 26 +- .../sdk/model/ContractWithAbiDtoTest.java | 20 +- .../model/ConversionConfigOperationTest.java | 16 +- .../ConversionOperationConfigParamsTest.java | 16 +- ...onversionOperationExecutionOutputTest.java | 12 +- ...ionExecutionParamsExecutionParamsTest.java | 16 +- ...onversionOperationExecutionParamsTest.java | 10 +- .../ConversionOperationExecutionTest.java | 16 +- .../model/ConversionOperationFailureTest.java | 10 +- .../ConversionOperationPreviewOutputTest.java | 14 +- .../model/ConversionOperationPreviewTest.java | 12 +- .../model/ConversionOperationTypeTest.java | 6 +- .../ConversionValidationFailureTest.java | 10 +- .../sdk/model/ConvertAssetsRequestTest.java | 12 +- .../sdk/model/ConvertAssetsResponseTest.java | 8 +- .../fireblocks/sdk/model/CosignerTest.java | 16 +- .../model/CosignersPaginatedResponseTest.java | 10 +- .../sdk/model/CreateAPIUserTest.java | 16 +- .../sdk/model/CreateAddressRequestTest.java | 10 +- .../sdk/model/CreateAddressResponseTest.java | 16 +- .../model/CreateAssetsBulkRequestTest.java | 12 +- .../sdk/model/CreateAssetsRequestTest.java | 8 +- .../CreateConfigOperationRequestTest.java | 10 +- .../model/CreateConnectionRequestTest.java | 18 +- .../model/CreateConnectionResponseTest.java | 10 +- .../sdk/model/CreateConsoleUserTest.java | 14 +- .../sdk/model/CreateContractRequestTest.java | 8 +- ...eConversionConfigOperationRequestTest.java | 10 +- ...isbursementConfigOperationRequestTest.java | 10 +- .../CreateInternalTransferRequestTest.java | 14 +- .../CreateInternalWalletAssetRequestTest.java | 10 +- ...ultichainTokenRequestCreateParamsTest.java | 40 - .../CreateMultichainTokenRequestTest.java | 22 +- .../CreateMultipleAccountsRequestTest.java | 16 +- ...MultipleDepositAddressesJobStatusTest.java | 12 +- ...teMultipleDepositAddressesRequestTest.java | 18 +- ...ateMultipleVaultAccountsJobStatusTest.java | 12 +- .../model/CreateNcwConnectionRequestTest.java | 16 +- .../sdk/model/CreateNetworkIdRequestTest.java | 10 +- .../sdk/model/CreatePayoutRequestTest.java | 10 +- ...eateSigningKeyDtoProofOfOwnershipTest.java | 10 +- .../sdk/model/CreateSigningKeyDtoTest.java | 14 +- .../sdk/model/CreateTagRequestTest.java | 10 +- ...CreateTokenRequestDtoCreateParamsTest.java | 18 +- .../sdk/model/CreateTokenRequestDtoTest.java | 22 +- .../model/CreateTransactionResponseTest.java | 12 +- ...ateTransferConfigOperationRequestTest.java | 10 +- .../model/CreateUserGroupResponseTest.java | 14 +- .../sdk/model/CreateValidationKeyDtoTest.java | 10 +- .../CreateValidationKeyResponseDtoTest.java | 14 +- ...eateVaultAccountConnectionRequestTest.java | 14 +- .../model/CreateVaultAccountRequestTest.java | 18 +- .../model/CreateVaultAssetResponseTest.java | 22 +- .../sdk/model/CreateWalletRequestTest.java | 10 +- .../sdk/model/CreateWebhookRequestTest.java | 14 +- ...rkflowExecutionRequestParamsInnerTest.java | 10 +- .../sdk/model/CustomRoutingDestTest.java | 12 +- .../model/DefaultNetworkRoutingDestTest.java | 8 +- .../sdk/model/DelegationSummaryTest.java | 14 +- .../fireblocks/sdk/model/DelegationTest.java | 42 +- .../DeleteNetworkConnectionResponseTest.java | 8 +- .../model/DeleteNetworkIdResponseTest.java | 8 +- .../DeployLayerZeroAdaptersRequestTest.java | 20 +- .../model/DeployableAddressResponseTest.java | 8 +- .../DeployedContractNotFoundErrorTest.java | 10 +- .../DeployedContractResponseDtoTest.java | 24 +- ...eployedContractsPaginatedResponseTest.java | 10 +- ...DepositFundsFromLinkedDDAResponseTest.java | 8 +- ...est.java => DerivationPathConfigTest.java} | 23 +- .../model/DesignatedSignersConfigTest.java | 45 + .../sdk/model/DestinationConfigTest.java | 63 + .../fireblocks/sdk/model/DestinationTest.java | 14 +- ...stinationTransferPeerPathResponseTest.java | 18 +- .../DestinationTransferPeerPathTest.java | 20 +- .../DisbursementAmountInstructionTest.java | 12 +- .../DisbursementConfigOperationTest.java | 16 +- .../DisbursementInstructionOutputTest.java | 12 +- .../model/DisbursementInstructionTest.java | 14 +- ...DisbursementOperationConfigParamsTest.java | 10 +- ...bursementOperationExecutionOutputTest.java | 8 +- ...ionExecutionParamsExecutionParamsTest.java | 12 +- ...bursementOperationExecutionParamsTest.java | 10 +- .../DisbursementOperationExecutionTest.java | 18 +- .../model/DisbursementOperationInputTest.java | 12 +- ...nPreviewOutputInstructionSetInnerTest.java | 14 +- ...isbursementOperationPreviewOutputTest.java | 8 +- .../DisbursementOperationPreviewTest.java | 12 +- .../model/DisbursementOperationTypeTest.java | 6 +- ...DisbursementPercentageInstructionTest.java | 12 +- .../DisbursementValidationFailureTest.java | 10 +- .../sdk/model/DispatchPayoutResponseTest.java | 8 +- .../sdk/model/DraftResponseTest.java | 14 +- .../DraftReviewAndValidationResponseTest.java | 10 +- .../sdk/model/DropTransactionRequestTest.java | 12 +- .../model/DropTransactionResponseTest.java | 12 +- .../fireblocks/sdk/model/DvnConfigTest.java | 12 +- .../model/DvnConfigWithConfirmationsTest.java | 14 +- .../model/EVMTokenCreateParamsDtoTest.java | 10 +- ...itGasStationConfigurationResponseTest.java | 8 +- .../sdk/model/EmbeddedWalletAccountTest.java | 10 +- .../EmbeddedWalletAddressDetailsTest.java | 38 +- .../sdk/model/EmbeddedWalletAlgoritmTest.java | 8 +- .../model/EmbeddedWalletAssetBalanceTest.java | 24 +- .../EmbeddedWalletAssetResponseTest.java | 40 +- .../EmbeddedWalletAssetRewardInfoTest.java | 8 +- ...eKeySetupResponseSetupStatusInnerTest.java | 12 +- ...eddedWalletDeviceKeySetupResponseTest.java | 14 +- .../sdk/model/EmbeddedWalletDeviceTest.java | 12 +- .../EmbeddedWalletLatestBackupKeyTest.java | 14 +- ...mbeddedWalletLatestBackupResponseTest.java | 12 +- ...dWalletPaginatedAddressesResponseTest.java | 10 +- ...ddedWalletPaginatedAssetsResponseTest.java | 10 +- ...dedWalletPaginatedWalletsResponseTest.java | 10 +- .../model/EmbeddedWalletSetUpStatusTest.java | 8 +- .../sdk/model/EmbeddedWalletTest.java | 10 +- .../sdk/model/ErrorResponseErrorTest.java | 10 +- .../sdk/model/ErrorResponseTest.java | 8 +- .../fireblocks/sdk/model/ErrorSchemaTest.java | 10 +- .../sdk/model/EstimatedFeeDetailsTest.java | 12 +- .../EstimatedNetworkFeeResponseTest.java | 12 +- .../EstimatedTransactionFeeResponseTest.java | 14 +- .../sdk/model/ExchangeAccountTest.java | 24 +- .../ExchangeAccountsPagedPagingTest.java | 10 +- .../sdk/model/ExchangeAccountsPagedTest.java | 14 +- .../sdk/model/ExchangeAssetTest.java | 18 +- ...ngeSettlementTransactionsResponseTest.java | 10 +- .../sdk/model/ExchangeTradingAccountTest.java | 12 +- .../sdk/model/ExchangeTypeTest.java | 6 +- .../ExecutionConversionOperationTest.java | 18 +- .../ExecutionDisbursementOperationTest.java | 18 +- .../model/ExecutionOperationStatusTest.java | 6 +- .../ExecutionScreeningOperationTest.java | 16 +- .../model/ExecutionTransferOperationTest.java | 18 +- .../sdk/model/ExternalWalletAssetTest.java | 22 +- .../sdk/model/FeeBreakdownOneOf1Test.java | 12 +- .../sdk/model/FeeBreakdownOneOfTest.java | 14 +- .../sdk/model/FeeBreakdownTest.java | 14 +- .../com/fireblocks/sdk/model/FeeInfoTest.java | 22 +- .../fireblocks/sdk/model/FeeLevelTest.java | 6 +- .../sdk/model/FetchAbiRequestDtoTest.java | 10 +- .../fireblocks/sdk/model/FiatAccountTest.java | 16 +- .../sdk/model/FiatAccountTypeTest.java | 6 +- .../fireblocks/sdk/model/FiatAssetTest.java | 10 +- .../model/FreezeTransactionResponseTest.java | 8 +- .../fireblocks/sdk/model/FunctionDocTest.java | 12 +- .../com/fireblocks/sdk/model/FundsTest.java | 8 +- .../GasStationConfigurationResponseTest.java | 12 +- .../model/GasStationConfigurationTest.java | 12 +- .../GasStationPropertiesResponseTest.java | 10 +- ...aslessStandardConfigurationsValueTest.java | 10 +- .../GasslessStandardConfigurationsTest.java | 8 +- .../sdk/model/GetAPIUsersResponseTest.java | 8 +- .../sdk/model/GetAuditLogsResponseTest.java | 12 +- .../sdk/model/GetConnectionsResponseTest.java | 10 +- .../model/GetConsoleUsersResponseTest.java | 8 +- .../GetDeployableAddressRequestTest.java | 14 +- ...ountsCredentialsPublicKeyResponseTest.java | 10 +- .../sdk/model/GetFilterParameterTest.java | 20 +- .../GetLayerZeroDvnConfigResponseTest.java | 10 +- .../model/GetLayerZeroPeersResponseTest.java | 12 +- ...inkedCollectionsPaginatedResponseTest.java | 10 +- .../GetMaxSpendableAmountResponseTest.java | 8 +- .../sdk/model/GetMpcKeysResponseTest.java | 10 +- .../sdk/model/GetNFTsResponseTest.java | 10 +- .../sdk/model/GetOtaStatusResponseTest.java | 8 +- .../model/GetOwnershipTokensResponseTest.java | 10 +- .../model/GetSigningKeyResponseDtoTest.java | 10 +- .../model/GetTransactionOperationTest.java | 6 +- .../GetValidationKeyResponseDtoTest.java | 10 +- .../GetWhitelistIpAddressesResponseTest.java | 10 +- .../model/GetWorkspaceStatusResponseTest.java | 8 +- .../HttpContractDoesNotExistErrorTest.java | 10 +- ...neOfTest.java => IbanPaymentInfoTest.java} | 37 +- .../com/fireblocks/sdk/model/IdlTypeTest.java | 6 +- .../sdk/model/InitiatorConfigPatternTest.java | 63 + .../sdk/model/InitiatorConfigTest.java | 63 + .../sdk/model/InstructionAmountTest.java | 10 +- .../model/InternalTransferResponseTest.java | 10 +- .../model/InvalidParamaterValueErrorTest.java | 10 +- .../fireblocks/sdk/model/JobCreatedTest.java | 8 +- .../com/fireblocks/sdk/model/JobTest.java | 22 +- .../LayerZeroAdapterCreateParamsTest.java | 14 +- .../sdk/model/LbtPaymentInfoTest.java | 75 + .../sdk/model/LeanAbiFunctionTest.java | 14 +- .../sdk/model/LeanContractDtoTest.java | 24 +- .../LeanDeployedContractResponseDtoTest.java | 14 +- ...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 + ...egacyPolicyRuleAmountAggregationTest.java} | 20 +- .../sdk/model/LegacyPolicyRuleAmountTest.java | 27 + ...leAuthorizationGroupsGroupsInnerTest.java} | 22 +- ...acyPolicyRuleAuthorizationGroupsTest.java} | 21 +- .../LegacyPolicyRuleCheckResultTest.java | 45 + ...egacyPolicyRuleDesignatedSignersTest.java} | 18 +- ...Test.java => LegacyPolicyRuleDstTest.java} | 16 +- .../sdk/model/LegacyPolicyRuleErrorTest.java | 51 + ...ava => LegacyPolicyRuleOperatorsTest.java} | 22 +- ...leRawMessageSigningDerivationPathTest.java | 34 + ...egacyPolicyRuleRawMessageSigningTest.java} | 18 +- ...Test.java => LegacyPolicyRuleSrcTest.java} | 16 +- .../sdk/model/LegacyPolicyRuleTest.java | 201 + ...esTest.java => LegacyPolicyRulesTest.java} | 16 +- ... => LegacyPolicySrcOrDestSubTypeTest.java} | 14 +- ...ava => LegacyPolicySrcOrDestTypeTest.java} | 12 +- ...eTest.java => LegacyPolicyStatusTest.java} | 12 +- .../sdk/model/LegacyPolicyValidationTest.java | 39 + .../model/LegacyPublishDraftRequestTest.java | 33 + .../sdk/model/LegacyPublishResultTest.java | 51 + .../LegacySrcOrDestAttributesInnerTest.java | 27 + .../sdk/model/ListAssetsResponseTest.java | 10 +- .../model/ListBlockchainsResponseTest.java | 10 +- .../ListOwnedCollectionsResponseTest.java | 10 +- .../model/ListOwnedTokensResponseTest.java | 10 +- .../sdk/model/MediaEntityResponseTest.java | 10 +- .../model/MergeStakeAccountsRequestTest.java | 16 +- .../model/MergeStakeAccountsResponseTest.java | 8 +- .../model/ModifySigningKeyAgentIdDtoTest.java | 8 +- .../sdk/model/ModifySigningKeyDtoTest.java | 8 +- .../sdk/model/ModifyValidationKeyDtoTest.java | 8 +- .../sdk/model/MomoPaymentInfoTest.java | 81 + .../com/fireblocks/sdk/model/MpcKeyTest.java | 16 +- .../MultichainDeploymentMetadataTest.java | 18 +- .../sdk/model/NetworkChannelTest.java | 10 +- .../model/NetworkConnectionResponseTest.java | 20 +- ...tworkConnectionRoutingPolicyValueTest.java | 12 +- .../model/NetworkConnectionStatusTest.java | 6 +- .../sdk/model/NetworkConnectionTest.java | 12 +- .../fireblocks/sdk/model/NetworkFeeTest.java | 16 +- .../sdk/model/NetworkIdResponseTest.java | 14 +- .../NetworkIdRoutingPolicyValueTest.java | 12 +- .../fireblocks/sdk/model/NetworkIdTest.java | 10 +- .../sdk/model/NetworkRecordTest.java | 32 +- .../fireblocks/sdk/model/NewAddressTest.java | 12 +- .../sdk/model/NonWalletQuoteFeeTest.java | 16 +- .../sdk/model/NonWalletQuoteResponseTest.java | 24 +- .../sdk/model/NoneNetworkRoutingDestTest.java | 8 +- .../sdk/model/NotFoundExceptionTest.java | 12 +- .../sdk/model/NotificationAttemptTest.java | 14 +- ...ficationAttemptsPaginatedResponseTest.java | 10 +- .../NotificationPaginatedResponseTest.java | 16 +- .../sdk/model/NotificationStatusTest.java | 6 +- .../sdk/model/NotificationTest.java | 18 +- .../sdk/model/NotificationWithDataTest.java | 20 +- .../sdk/model/OneTimeAddressAccountTest.java | 10 +- .../sdk/model/OneTimeAddressTest.java | 10 +- .../model/OperationExecutionFailureTest.java | 10 +- .../PaginatedAddressResponsePagingTest.java | 10 +- .../model/PaginatedAddressResponseTest.java | 10 +- ...aginatedAssetWalletResponsePagingTest.java | 10 +- .../PaginatedAssetWalletResponseTest.java | 10 +- .../model/PaginatedAssetsResponseTest.java | 12 +- .../com/fireblocks/sdk/model/PagingTest.java | 8 +- .../sdk/model/PairApiKeyRequestTest.java | 8 +- .../sdk/model/PairApiKeyResponseTest.java | 10 +- .../fireblocks/sdk/model/ParameterTest.java | 16 +- .../sdk/model/ParameterWithValueTest.java | 20 +- .../sdk/model/PayeeAccountResponseTest.java | 10 +- .../sdk/model/PayeeAccountTest.java | 10 +- .../sdk/model/PayeeAccountTypeTest.java | 6 +- .../sdk/model/PaymentAccountResponseTest.java | 10 +- .../sdk/model/PaymentAccountTest.java | 10 +- .../sdk/model/PaymentAccountTypeTest.java | 6 +- .../sdk/model/PayoutInitMethodTest.java | 6 +- .../model/PayoutInstructionResponseTest.java | 16 +- .../sdk/model/PayoutInstructionStateTest.java | 6 +- .../sdk/model/PayoutInstructionTest.java | 12 +- .../sdk/model/PayoutResponseTest.java | 24 +- .../fireblocks/sdk/model/PayoutStateTest.java | 6 +- .../sdk/model/PayoutStatusTest.java | 6 +- .../sdk/model/PeerAdapterInfoTest.java | 12 +- .../sdk/model/PixPaymentInfoTest.java | 81 + .../com/fireblocks/sdk/model/PlayersTest.java | 10 +- .../PolicyAndValidationResponseTest.java | 10 +- .../sdk/model/PolicyCheckResultTest.java | 10 +- .../sdk/model/PolicyMetadataTest.java | 20 +- .../sdk/model/PolicyOperatorTest.java | 25 + .../sdk/model/PolicyResponseTest.java | 10 +- .../sdk/model/PolicyRuleCheckResultTest.java | 12 +- .../sdk/model/PolicyRuleErrorTest.java | 14 +- .../fireblocks/sdk/model/PolicyRuleTest.java | 176 +- .../sdk/model/PolicyStatusTest.java | 6 +- .../fireblocks/sdk/model/PolicyTypeTest.java | 25 + .../sdk/model/PolicyValidationTest.java | 10 +- .../sdk/model/PreScreeningTest.java | 8 +- .../sdk/model/ProgramCallConfigTest.java | 33 + .../sdk/model/ProviderAdditionalDataTest.java | 8 +- .../sdk/model/ProviderCategoryEnumTest.java | 6 +- .../fireblocks/sdk/model/ProviderTest.java | 22 +- .../sdk/model/PublicKeyInformationTest.java | 12 +- .../sdk/model/PublishDraftRequestTest.java | 14 +- .../sdk/model/PublishResultTest.java | 14 +- .../fireblocks/sdk/model/QuoteFeeTest.java | 18 +- .../sdk/model/QuoteRequestTest.java | 18 +- .../sdk/model/QuoteResponseTest.java | 30 +- .../sdk/model/ReadAbiFunctionTest.java | 18 +- .../ReadCallFunctionDtoAbiFunctionTest.java | 24 +- .../sdk/model/ReadCallFunctionDtoTest.java | 8 +- .../RedeemFundsToLinkedDDAResponseTest.java | 8 +- .../model/RegisterNewAssetRequestTest.java | 12 +- .../ReissueMultichainTokenRequestTest.java | 16 +- .../sdk/model/RelatedRequestTest.java | 14 +- .../sdk/model/RelatedTransactionTest.java | 10 +- .../RemoveCollateralRequestBodyTest.java | 10 +- ...emoveLayerZeroAdapterFailedResultTest.java | 8 +- .../RemoveLayerZeroAdaptersRequestTest.java | 10 +- .../RemoveLayerZeroAdaptersResponseTest.java | 10 +- .../RemoveLayerZeroPeersRequestTest.java | 14 +- .../RemoveLayerZeroPeersResponseTest.java | 8 +- .../sdk/model/RenameCosignerTest.java | 8 +- .../model/RenameVaultAccountResponseTest.java | 10 +- .../sdk/model/RescanTransactionTest.java | 10 +- ...ledNotificationsJobStatusResponseTest.java | 14 +- .../ResendFailedNotificationsRequestTest.java | 10 +- ...ResendFailedNotificationsResponseTest.java | 8 +- ...dNotificationsByResourceIdRequestTest.java | 10 +- .../ResendTransactionWebhooksRequestTest.java | 10 +- ...ndWebhooksByTransactionIdResponseTest.java | 8 +- .../sdk/model/ResendWebhooksResponseTest.java | 8 +- .../model/RespondToConnectionRequestTest.java | 8 +- .../fireblocks/sdk/model/RewardInfoTest.java | 10 +- .../fireblocks/sdk/model/RewardsInfoTest.java | 8 +- .../fireblocks/sdk/model/SOLAccountTest.java | 14 +- .../sdk/model/SOLAccountWithValueTest.java | 14 +- .../ScreeningConfigurationsRequestTest.java | 12 +- .../model/ScreeningMetadataConfigTest.java | 93 + ...ScreeningOperationExecutionOutputTest.java | 8 +- .../ScreeningOperationExecutionTest.java | 14 +- .../model/ScreeningOperationFailureTest.java | 10 +- .../sdk/model/ScreeningOperationTypeTest.java | 6 +- .../model/ScreeningPolicyResponseTest.java | 16 +- ...roviderRulesConfigurationResponseTest.java | 18 +- .../ScreeningUpdateConfigurationsTest.java | 10 +- .../model/ScreeningValidationFailureTest.java | 10 +- .../ScreeningVerdictMatchedRuleTest.java | 10 +- .../sdk/model/ScreeningVerdictTest.java | 18 +- .../model/SearchNetworkIdsResponseTest.java | 10 +- .../sdk/model/SepaPaymentInfoTest.java | 111 + .../fireblocks/sdk/model/SessionDTOTest.java | 24 +- .../sdk/model/SessionMetadataTest.java | 14 +- .../SetAdminQuorumThresholdRequestTest.java | 8 +- .../SetAdminQuorumThresholdResponseTest.java | 8 +- .../sdk/model/SetAssetPriceRequestTest.java | 10 +- .../sdk/model/SetAutoFuelRequestTest.java | 8 +- .../SetConfirmationsThresholdRequestTest.java | 8 +- ...SetConfirmationsThresholdResponseTest.java | 10 +- ...SetCustomerRefIdForAddressRequestTest.java | 8 +- .../model/SetCustomerRefIdRequestTest.java | 8 +- .../SetLayerZeroDvnConfigRequestTest.java | 16 +- .../SetLayerZeroDvnConfigResponseTest.java | 8 +- .../model/SetLayerZeroPeersRequestTest.java | 14 +- .../model/SetLayerZeroPeersResponseTest.java | 8 +- ...etNetworkIdDiscoverabilityRequestTest.java | 8 +- .../model/SetNetworkIdNameRequestTest.java | 8 +- .../sdk/model/SetNetworkIdResponseTest.java | 8 +- .../SetNetworkIdRoutingPolicyRequestTest.java | 8 +- .../sdk/model/SetOtaStatusRequestTest.java | 8 +- .../model/SetOtaStatusResponseOneOfTest.java | 8 +- .../sdk/model/SetOtaStatusResponseTest.java | 8 +- .../model/SetRoutingPolicyRequestTest.java | 8 +- .../model/SetRoutingPolicyResponseTest.java | 8 +- .../sdk/model/SettlementRequestBodyTest.java | 8 +- .../sdk/model/SettlementResponseTest.java | 16 +- .../sdk/model/SignedMessageSignatureTest.java | 14 +- .../sdk/model/SignedMessageTest.java | 16 +- .../sdk/model/SigningKeyDtoTest.java | 22 +- .../model/SmartTransferApproveTermTest.java | 18 +- .../SmartTransferBadRequestResponseTest.java | 10 +- .../model/SmartTransferCoinStatisticTest.java | 10 +- .../SmartTransferCreateTicketTermTest.java | 14 +- .../model/SmartTransferCreateTicketTest.java | 20 +- .../SmartTransferForbiddenResponseTest.java | 10 +- .../model/SmartTransferFundDvpTicketTest.java | 12 +- .../sdk/model/SmartTransferFundTermTest.java | 22 +- .../SmartTransferManuallyFundTermTest.java | 8 +- .../SmartTransferNotFoundResponseTest.java | 10 +- .../SmartTransferSetTicketExpirationTest.java | 8 +- .../SmartTransferSetTicketExternalIdTest.java | 8 +- .../model/SmartTransferSetUserGroupsTest.java | 8 +- .../SmartTransferStatisticInflowTest.java | 10 +- .../SmartTransferStatisticOutflowTest.java | 10 +- .../sdk/model/SmartTransferStatisticTest.java | 14 +- .../model/SmartTransferSubmitTicketTest.java | 8 +- ...artTransferTicketFilteredResponseTest.java | 12 +- .../SmartTransferTicketResponseTest.java | 10 +- .../SmartTransferTicketTermResponseTest.java | 10 +- .../model/SmartTransferTicketTermTest.java | 38 +- .../sdk/model/SmartTransferTicketTest.java | 50 +- .../SmartTransferUpdateTicketTermTest.java | 14 +- .../SmartTransferUserGroupsResponseTest.java | 10 +- .../model/SmartTransferUserGroupsTest.java | 8 +- .../sdk/model/SolParameterTest.java | 10 +- .../sdk/model/SolParameterWithValueTest.java | 12 +- .../sdk/model/SolanaBlockchainDataTest.java | 10 +- .../sdk/model/SolanaConfigTest.java | 10 +- .../sdk/model/SolanaInstructionTest.java | 14 +- .../model/SolanaInstructionWithValueTest.java | 14 +- .../model/SolanaSimpleCreateParamsTest.java | 12 +- .../SourceTransferPeerPathResponseTest.java | 18 +- .../sdk/model/SourceTransferPeerPathTest.java | 18 +- .../sdk/model/SpamOwnershipResponseTest.java | 10 +- .../sdk/model/SpamTokenResponseTest.java | 8 +- .../model/SpeiAdvancedPaymentInfoTest.java | 81 + .../sdk/model/SpeiBasicPaymentInfoTest.java | 39 + .../sdk/model/SplitRequestTest.java | 16 +- .../sdk/model/SplitResponseTest.java | 8 +- .../model/SrcOrDestAttributesInnerTest.java | 27 - .../sdk/model/StakeRequestTest.java | 18 +- .../sdk/model/StakeResponseTest.java | 8 +- .../sdk/model/StakingProviderTest.java | 6 +- .../com/fireblocks/sdk/model/StatusTest.java | 10 +- .../StellarRippleCreateParamsDtoTest.java | 12 +- .../sdk/model/SwapFlowErrorTest.java | 10 +- .../sdk/model/SwapOperationRequestTest.java | 12 +- .../sdk/model/SwapOperationTest.java | 42 +- .../SwapOperationsPaginatedResponseTest.java | 10 +- .../model/SwapProviderProtocolsEnumTest.java | 6 +- .../sdk/model/SwapProviderTest.java | 20 +- .../SwapProvidersPaginatedResponseTest.java | 10 +- .../sdk/model/SwapRequiredActionTest.java | 12 +- .../model/SwapRequiredActionsEnumTest.java | 6 +- .../sdk/model/SystemMessageInfoTest.java | 10 +- .../com/fireblocks/sdk/model/TagTest.java | 12 +- .../sdk/model/TagsPagedResponseTest.java | 10 +- .../com/fireblocks/sdk/model/TaskTest.java | 20 +- .../model/TemplatesPaginatedResponseTest.java | 10 +- .../sdk/model/ThirdPartyRoutingTest.java | 10 +- .../sdk/model/TimePeriodConfigTest.java | 51 + .../sdk/model/TimePeriodMatchTypeTest.java | 25 + .../model/ToCollateralTransactionTest.java | 16 +- .../sdk/model/ToExchangeTransactionTest.java | 14 +- .../model/TokenCollectionResponseTest.java | 12 +- .../TokenInfoNotFoundErrorResponseTest.java | 10 +- .../sdk/model/TokenLinkDtoTest.java | 18 +- .../model/TokenLinkDtoTokenMetadataTest.java | 44 +- .../model/TokenLinkExistsHttpErrorTest.java | 12 +- ...kNotMultichainCompatibleHttpErrorTest.java | 10 +- .../sdk/model/TokenLinkRequestDtoTest.java | 16 +- .../sdk/model/TokenOwnershipResponseTest.java | 42 +- .../TokenOwnershipSpamUpdatePayloadTest.java | 10 +- ...TokenOwnershipStatusUpdatePayloadTest.java | 10 +- .../sdk/model/TokenResponseTest.java | 28 +- .../model/TokensPaginatedResponseTest.java | 10 +- .../sdk/model/TradingAccountTypeTest.java | 6 +- .../sdk/model/TransactionFeeTest.java | 22 +- .../sdk/model/TransactionOperationTest.java | 6 +- .../model/TransactionReceiptResponseTest.java | 34 +- .../model/TransactionRequestAmountTest.java | 6 +- .../TransactionRequestDestinationTest.java | 14 +- .../sdk/model/TransactionRequestFeeTest.java | 6 +- .../model/TransactionRequestGasLimitTest.java | 6 +- .../model/TransactionRequestGasPriceTest.java | 6 +- .../TransactionRequestNetworkFeeTest.java | 6 +- .../TransactionRequestNetworkStakingTest.java | 6 +- .../TransactionRequestPriorityFeeTest.java | 6 +- .../sdk/model/TransactionRequestTest.java | 62 +- ...onResponseContractCallDecodedDataTest.java | 10 +- .../TransactionResponseDestinationTest.java | 20 +- .../sdk/model/TransactionResponseTest.java | 102 +- .../fireblocks/sdk/model/TransactionTest.java | 14 +- .../model/TransferConfigOperationTest.java | 16 +- .../TransferOperationConfigParamsTest.java | 14 +- .../TransferOperationExecutionOutputTest.java | 10 +- ...ionExecutionParamsExecutionParamsTest.java | 14 +- .../TransferOperationExecutionParamsTest.java | 10 +- .../model/TransferOperationExecutionTest.java | 18 +- .../TransferOperationFailureDataTest.java | 12 +- .../model/TransferOperationFailureTest.java | 10 +- .../TransferOperationPreviewOutputTest.java | 14 +- .../model/TransferOperationPreviewTest.java | 12 +- .../sdk/model/TransferOperationTypeTest.java | 6 +- .../model/TransferPeerPathSubTypeTest.java | 6 +- .../sdk/model/TransferPeerPathTypeTest.java | 6 +- .../model/TransferValidationFailureTest.java | 10 +- .../sdk/model/TravelRuleAddressTest.java | 14 +- ...ravelRuleCreateTransactionRequestTest.java | 48 +- .../TravelRuleDateAndPlaceOfBirthTest.java | 10 +- .../TravelRuleGeographicAddressTest.java | 38 +- .../TravelRuleGetAllVASPsResponseTest.java | 12 +- .../sdk/model/TravelRuleIssuerTest.java | 8 +- .../sdk/model/TravelRuleIssuersTest.java | 34 +- ...avelRuleLegalPersonNameIdentifierTest.java | 10 +- .../sdk/model/TravelRuleLegalPersonTest.java | 18 +- .../TravelRuleNationalIdentificationTest.java | 14 +- .../TravelRuleNaturalNameIdentifierTest.java | 12 +- ...elRuleNaturalPersonNameIdentifierTest.java | 12 +- .../model/TravelRuleNaturalPersonTest.java | 20 +- .../model/TravelRuleOwnershipProofTest.java | 20 +- .../sdk/model/TravelRulePersonTest.java | 10 +- .../sdk/model/TravelRulePiiIVMSTest.java | 12 +- .../TravelRulePolicyRuleResponseTest.java | 34 +- ...avelRuleTransactionBlockchainInfoTest.java | 12 +- .../TravelRuleUpdateVASPDetailsTest.java | 10 +- .../sdk/model/TravelRuleVASPTest.java | 98 +- ...elRuleValidateDateAndPlaceOfBirthTest.java | 10 +- ...uleValidateFullTransactionRequestTest.java | 54 +- ...avelRuleValidateGeographicAddressTest.java | 38 +- ...ValidateLegalPersonNameIdentifierTest.java | 10 +- .../TravelRuleValidateLegalPersonTest.java | 18 +- ...uleValidateNationalIdentificationTest.java | 14 +- ...RuleValidateNaturalNameIdentifierTest.java | 12 +- ...lidateNaturalPersonNameIdentifierTest.java | 12 +- .../TravelRuleValidateNaturalPersonTest.java | 20 +- .../model/TravelRuleValidatePersonTest.java | 10 +- .../model/TravelRuleValidatePiiIVMSTest.java | 12 +- ...velRuleValidateTransactionRequestTest.java | 30 +- ...elRuleValidateTransactionResponseTest.java | 20 +- .../sdk/model/TravelRuleVaspForVaultTest.java | 8 +- .../com/fireblocks/sdk/model/TxLogTest.java | 24 +- .../UnfreezeTransactionResponseTest.java | 8 +- .../sdk/model/UnmanagedWalletTest.java | 14 +- .../sdk/model/UnspentInputTest.java | 10 +- .../sdk/model/UnspentInputsResponseTest.java | 16 +- .../sdk/model/UnstakeRequestTest.java | 16 +- .../UpdateAssetUserMetadataRequestTest.java | 8 +- .../UpdateCallbackHandlerRequestTest.java | 8 +- .../UpdateCallbackHandlerResponseTest.java | 10 +- .../sdk/model/UpdateDraftRequestTest.java | 39 + .../sdk/model/UpdateTagRequestTest.java | 10 +- .../UpdateTokenOwnershipStatusDtoTest.java | 8 +- ...teVaultAccountAssetAddressRequestTest.java | 8 +- .../model/UpdateVaultAccountRequestTest.java | 8 +- .../sdk/model/UpdateWebhookRequestTest.java | 14 +- .../sdk/model/UsWirePaymentInfoTest.java | 117 + .../sdk/model/UserGroupCreateRequestTest.java | 10 +- .../model/UserGroupCreateResponseTest.java | 14 +- .../sdk/model/UserGroupResponseTest.java | 14 +- .../sdk/model/UserGroupUpdateRequestTest.java | 10 +- .../sdk/model/UserResponseTest.java | 18 +- .../fireblocks/sdk/model/UserRoleTest.java | 6 +- .../fireblocks/sdk/model/UserStatusTest.java | 6 +- .../fireblocks/sdk/model/UserTypeTest.java | 6 +- .../model/ValidateAddressResponseTest.java | 12 +- .../ValidateLayerZeroChannelResponseTest.java | 10 +- .../ValidatedTransactionsForRescanTest.java | 12 +- .../sdk/model/ValidationKeyDtoTest.java | 16 +- .../fireblocks/sdk/model/ValidatorTest.java | 12 +- .../sdk/model/VaultAccountTest.java | 20 +- .../VaultAccountsPagedResponsePagingTest.java | 10 +- .../model/VaultAccountsPagedResponseTest.java | 14 +- ...aultAccountsTagAttachmentsRequestTest.java | 10 +- .../sdk/model/VaultActionStatusTest.java | 8 +- .../fireblocks/sdk/model/VaultAssetTest.java | 40 +- .../sdk/model/VaultWalletAddressTest.java | 28 +- .../fireblocks/sdk/model/VendorDtoTest.java | 10 +- .../sdk/model/VerdictConfigTest.java | 45 + .../com/fireblocks/sdk/model/VersionTest.java | 8 +- .../model/WalletAssetAdditionalInfoTest.java | 38 +- .../fireblocks/sdk/model/WalletAssetTest.java | 20 +- .../sdk/model/WalletQuoteResponseTest.java | 30 +- .../sdk/model/WebhookEventTest.java | 6 +- .../model/WebhookPaginatedResponseTest.java | 10 +- .../com/fireblocks/sdk/model/WebhookTest.java | 20 +- .../sdk/model/WithdrawRequestTest.java | 14 +- .../sdk/model/WorkflowConfigStatusTest.java | 6 +- .../model/WorkflowConfigurationIdTest.java | 8 +- .../model/WorkflowExecutionOperationTest.java | 18 +- .../sdk/model/WriteAbiFunctionTest.java | 18 +- .../WriteCallFunctionDtoAbiFunctionTest.java | 24 +- .../sdk/model/WriteCallFunctionDtoTest.java | 22 +- .../WriteCallFunctionResponseDtoTest.java | 8 +- 1520 files changed, 52627 insertions(+), 27291 deletions(-) create mode 100644 docs/AbaPaymentInfo.md create mode 100644 docs/AccountConfig.md create mode 100644 docs/AccountIdentifier.md create mode 100644 docs/AccountType2.md create mode 100644 docs/AchPaymentInfo.md delete mode 100644 docs/AddAssetToExternalWalletRequestOneOf1.md delete mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md delete mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md delete mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md delete mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md create mode 100644 docs/AdditionalInfoRequest.md create mode 100644 docs/AdditionalInfoRequestAdditionalInfo.md create mode 100644 docs/AmlVerdictManualRequest.md rename docs/{PolicyRules.md => AmlVerdictManualResponse.md} (54%) create mode 100644 docs/AmountOverTimeConfig.md create mode 100644 docs/AmountOverTimeConfigRange.md create mode 100644 docs/AmountRange.md create mode 100644 docs/ApproversConfig.md create mode 100644 docs/ApproversConfigApprovalGroupsInner.md create mode 100644 docs/AssetConfig.md create mode 100644 docs/AssetTypesConfigInner.md rename docs/{AddAssetToExternalWalletRequestOneOf.md => BasicAddressRequest.md} (77%) delete mode 100644 docs/ChannelDvnConfigWithConfirmationsReceiveConfig.md delete mode 100644 docs/ChannelDvnConfigWithConfirmationsSendConfig.md create mode 100644 docs/ContractMethodConfig.md create mode 100644 docs/ContractMethodPattern.md delete mode 100644 docs/CreateMultichainTokenRequestCreateParams.md create mode 100644 docs/DerivationPathConfig.md create mode 100644 docs/DesignatedSignersConfig.md create mode 100644 docs/DestinationConfig.md create mode 100644 docs/IbanPaymentInfo.md create mode 100644 docs/InitiatorConfig.md create mode 100644 docs/InitiatorConfigPattern.md create mode 100644 docs/LbtPaymentInfo.md create mode 100644 docs/LegacyAmountAggregationTimePeriodMethod.md create mode 100644 docs/LegacyDraftResponse.md create mode 100644 docs/LegacyDraftReviewAndValidationResponse.md create mode 100644 docs/LegacyPolicyAndValidationResponse.md create mode 100644 docs/LegacyPolicyCheckResult.md create mode 100644 docs/LegacyPolicyMetadata.md create mode 100644 docs/LegacyPolicyResponse.md create mode 100644 docs/LegacyPolicyRule.md rename docs/{PolicyRuleAmount.md => LegacyPolicyRuleAmount.md} (51%) rename docs/{PolicyRuleAmountAggregation.md => LegacyPolicyRuleAmountAggregation.md} (53%) rename docs/{PolicyRuleAuthorizationGroups.md => LegacyPolicyRuleAuthorizationGroups.md} (73%) rename docs/{PolicyRuleAuthorizationGroupsGroupsInner.md => LegacyPolicyRuleAuthorizationGroupsGroupsInner.md} (89%) create mode 100644 docs/LegacyPolicyRuleCheckResult.md rename docs/{PolicyRuleDesignatedSigners.md => LegacyPolicyRuleDesignatedSigners.md} (90%) rename docs/{PolicyRuleDst.md => LegacyPolicyRuleDst.md} (56%) create mode 100644 docs/LegacyPolicyRuleError.md rename docs/{PolicyRuleOperators.md => LegacyPolicyRuleOperators.md} (96%) rename docs/{PolicyRuleRawMessageSigning.md => LegacyPolicyRuleRawMessageSigning.md} (52%) rename docs/{PolicyRuleRawMessageSigningDerivationPath.md => LegacyPolicyRuleRawMessageSigningDerivationPath.md} (78%) rename docs/{PolicyRuleSrc.md => LegacyPolicyRuleSrc.md} (57%) create mode 100644 docs/LegacyPolicyRules.md rename docs/{PolicySrcOrDestSubType.md => LegacyPolicySrcOrDestSubType.md} (86%) rename docs/{PolicySrcOrDestType.md => LegacyPolicySrcOrDestType.md} (92%) create mode 100644 docs/LegacyPolicyStatus.md create mode 100644 docs/LegacyPolicyValidation.md create mode 100644 docs/LegacyPublishDraftRequest.md create mode 100644 docs/LegacyPublishResult.md create mode 100644 docs/LegacySrcOrDestAttributesInner.md create mode 100644 docs/MomoPaymentInfo.md create mode 100644 docs/PixPaymentInfo.md create mode 100644 docs/PolicyEditorV2BetaApi.md create mode 100644 docs/PolicyOperator.md create mode 100644 docs/PolicyType.md create mode 100644 docs/ProgramCallConfig.md create mode 100644 docs/ScreeningMetadataConfig.md create mode 100644 docs/SepaPaymentInfo.md create mode 100644 docs/SpeiAdvancedPaymentInfo.md create mode 100644 docs/SpeiBasicPaymentInfo.md delete mode 100644 docs/SrcOrDestAttributesInner.md create mode 100644 docs/TimePeriodConfig.md rename docs/{AmountAggregationTimePeriodMethod.md => TimePeriodMatchType.md} (77%) create mode 100644 docs/UpdateDraftRequest.md create mode 100644 docs/UsWirePaymentInfo.md create mode 100644 docs/VerdictConfig.md create mode 100644 src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java create mode 100644 src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java create mode 100644 src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java rename src/main/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java => AbaPaymentInfo.java} (59%) create mode 100644 src/main/java/com/fireblocks/sdk/model/AccountConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AccountType2.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java rename src/main/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1.java => AdditionalInfoRequest.java} (69%) create mode 100644 src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AmountRange.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ApproversConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AssetConfig.java rename src/main/java/com/fireblocks/sdk/model/{CreateMultichainTokenRequestCreateParams.java => AssetTypesConfigInner.java} (53%) rename src/main/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf.java => BasicAddressRequest.java} (71%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java create mode 100644 src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/DestinationConfig.java rename src/main/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java => IbanPaymentInfo.java} (59%) create mode 100644 src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java rename src/main/java/com/fireblocks/sdk/model/{AmountAggregationTimePeriodMethod.java => LegacyAmountAggregationTimePeriodMethod.java} (82%) create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleAmount.java => LegacyPolicyRuleAmount.java} (75%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleAmountAggregation.java => LegacyPolicyRuleAmountAggregation.java} (67%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleAuthorizationGroups.java => LegacyPolicyRuleAuthorizationGroups.java} (75%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleAuthorizationGroupsGroupsInner.java => LegacyPolicyRuleAuthorizationGroupsGroupsInner.java} (69%) create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleDesignatedSigners.java => LegacyPolicyRuleDesignatedSigners.java} (74%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleDst.java => LegacyPolicyRuleDst.java} (76%) create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleOperators.java => LegacyPolicyRuleOperators.java} (75%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleRawMessageSigning.java => LegacyPolicyRuleRawMessageSigning.java} (69%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleRawMessageSigningDerivationPath.java => LegacyPolicyRuleRawMessageSigningDerivationPath.java} (72%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRuleSrc.java => LegacyPolicyRuleSrc.java} (76%) rename src/main/java/com/fireblocks/sdk/model/{PolicyRules.java => LegacyPolicyRules.java} (81%) rename src/main/java/com/fireblocks/sdk/model/{PolicySrcOrDestSubType.java => LegacyPolicySrcOrDestSubType.java} (88%) rename src/main/java/com/fireblocks/sdk/model/{PolicySrcOrDestType.java => LegacyPolicySrcOrDestType.java} (89%) create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java create mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java rename src/main/java/com/fireblocks/sdk/model/{SrcOrDestAttributesInner.java => LegacySrcOrDestAttributesInner.java} (52%) create mode 100644 src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java create mode 100644 src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java create mode 100644 src/main/java/com/fireblocks/sdk/model/PolicyOperator.java create mode 100644 src/main/java/com/fireblocks/sdk/model/PolicyType.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java create mode 100644 src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java rename src/main/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java => SpeiBasicPaymentInfo.java} (66%) create mode 100644 src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java create mode 100644 src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java create mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java create mode 100644 src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java create mode 100644 src/main/java/com/fireblocks/sdk/model/VerdictConfig.java create mode 100644 src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java rename src/test/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java => AbaPaymentInfoTest.java} (60%) create mode 100644 src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicySrcOrDestTypeTest.java => AccountType2Test.java} (64%) create mode 100644 src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java rename src/test/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1Test.java => AdditionalInfoRequestTest.java} (52%) create mode 100644 src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java rename src/test/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOfTest.java => BasicAddressRequestTest.java} (54%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParamsTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleRawMessageSigningDerivationPathTest.java => DerivationPathConfigTest.java} (50%) create mode 100644 src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java rename src/test/java/com/fireblocks/sdk/model/{AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java => IbanPaymentInfoTest.java} (60%) create mode 100644 src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleAmountAggregationTest.java => LegacyPolicyRuleAmountAggregationTest.java} (59%) create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleAuthorizationGroupsGroupsInnerTest.java => LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java} (54%) rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleAuthorizationGroupsTest.java => LegacyPolicyRuleAuthorizationGroupsTest.java} (58%) create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleDesignatedSignersTest.java => LegacyPolicyRuleDesignatedSignersTest.java} (57%) rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleDstTest.java => LegacyPolicyRuleDstTest.java} (61%) create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleOperatorsTest.java => LegacyPolicyRuleOperatorsTest.java} (63%) create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleRawMessageSigningTest.java => LegacyPolicyRuleRawMessageSigningTest.java} (57%) rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleSrcTest.java => LegacyPolicyRuleSrcTest.java} (61%) create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java rename src/test/java/com/fireblocks/sdk/model/{PolicyRulesTest.java => LegacyPolicyRulesTest.java} (62%) rename src/test/java/com/fireblocks/sdk/model/{PolicyRuleAmountTest.java => LegacyPolicySrcOrDestSubTypeTest.java} (60%) rename src/test/java/com/fireblocks/sdk/model/{AmountAggregationTimePeriodMethodTest.java => LegacyPolicySrcOrDestTypeTest.java} (58%) rename src/test/java/com/fireblocks/sdk/model/{PolicySrcOrDestSubTypeTest.java => LegacyPolicyStatusTest.java} (63%) create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b1627e1d..f9ff3bed 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,18 +9,17 @@ api/openapi.yaml build.gradle build.sbt docs/APIUser.md +docs/AbaPaymentInfo.md docs/AbiFunction.md docs/Account.md +docs/AccountConfig.md +docs/AccountIdentifier.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 @@ -28,21 +27,30 @@ docs/AddCosignerResponse.md docs/AddExchangeAccountRequest.md docs/AddExchangeAccountResponse.md docs/AdditionalInfo.md +docs/AdditionalInfoRequest.md +docs/AdditionalInfoRequestAdditionalInfo.md docs/AddressNotAvailableError.md docs/AmlRegistrationResult.md docs/AmlRegistrationResultFullPayload.md docs/AmlScreeningResult.md -docs/AmountAggregationTimePeriodMethod.md +docs/AmlVerdictManualRequest.md +docs/AmlVerdictManualResponse.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 @@ -63,6 +71,7 @@ docs/AssetPriceResponse.md docs/AssetResponse.md docs/AssetScope.md docs/AssetTypeResponse.md +docs/AssetTypesConfigInner.md docs/AssetWallet.md docs/AssetsApi.md docs/AuditLogData.md @@ -70,6 +79,7 @@ docs/AuditLogsApi.md docs/AuditorData.md docs/AuthorizationGroups.md docs/AuthorizationInfo.md +docs/BasicAddressRequest.md docs/BlockInfo.md docs/BlockchainExplorer.md docs/BlockchainMedia.md @@ -84,8 +94,6 @@ docs/CancelTransactionResponse.md docs/ChainDescriptor.md docs/ChainInfoResponse.md docs/ChannelDvnConfigWithConfirmations.md -docs/ChannelDvnConfigWithConfirmationsReceiveConfig.md -docs/ChannelDvnConfigWithConfirmationsSendConfig.md docs/ClaimRewardsRequest.md docs/CollectionBurnRequestDto.md docs/CollectionBurnResponseDto.md @@ -129,6 +137,8 @@ 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 @@ -165,7 +175,6 @@ docs/CreateDisbursementConfigOperationRequest.md docs/CreateInternalTransferRequest.md docs/CreateInternalWalletAssetRequest.md docs/CreateMultichainTokenRequest.md -docs/CreateMultichainTokenRequestCreateParams.md docs/CreateMultipleAccountsRequest.md docs/CreateMultipleDepositAddressesJobStatus.md docs/CreateMultipleDepositAddressesRequest.md @@ -202,7 +211,10 @@ 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/DisbursementAmountInstruction.md @@ -308,7 +320,10 @@ docs/GetValidationKeyResponseDto.md docs/GetWhitelistIpAddressesResponse.md docs/GetWorkspaceStatusResponse.md docs/HttpContractDoesNotExistError.md +docs/IbanPaymentInfo.md docs/IdlType.md +docs/InitiatorConfig.md +docs/InitiatorConfigPattern.md docs/InstructionAmount.md docs/InternalTransferResponse.md docs/InternalWalletsApi.md @@ -319,9 +334,38 @@ 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/ListAssetsResponse.md docs/ListBlockchainsResponse.md docs/ListOwnedCollectionsResponse.md @@ -332,6 +376,7 @@ docs/MergeStakeAccountsResponse.md docs/ModifySigningKeyAgentIdDto.md docs/ModifySigningKeyDto.md docs/ModifyValidationKeyDto.md +docs/MomoPaymentInfo.md docs/MpcKey.md docs/MultichainDeploymentMetadata.md docs/NetworkChannel.md @@ -387,31 +432,23 @@ docs/PayoutResponse.md docs/PayoutState.md docs/PayoutStatus.md docs/PeerAdapterInfo.md +docs/PixPaymentInfo.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/PreScreening.md +docs/ProgramCallConfig.md docs/Provider.md docs/ProviderAdditionalData.md docs/ProviderCategoryEnum.md @@ -452,6 +489,7 @@ docs/RewardsInfo.md docs/SOLAccount.md docs/SOLAccountWithValue.md docs/ScreeningConfigurationsRequest.md +docs/ScreeningMetadataConfig.md docs/ScreeningOperationExecution.md docs/ScreeningOperationExecutionOutput.md docs/ScreeningOperationFailure.md @@ -463,6 +501,7 @@ docs/ScreeningValidationFailure.md docs/ScreeningVerdict.md docs/ScreeningVerdictMatchedRule.md docs/SearchNetworkIdsResponse.md +docs/SepaPaymentInfo.md docs/SessionDTO.md docs/SessionMetadata.md docs/SetAdminQuorumThresholdRequest.md @@ -528,9 +567,10 @@ 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/SrcOrDestAttributesInner.md docs/StakeRequest.md docs/StakeResponse.md docs/StakingApi.md @@ -554,6 +594,8 @@ docs/TagsPagedResponse.md docs/Task.md docs/TemplatesPaginatedResponse.md docs/ThirdPartyRouting.md +docs/TimePeriodConfig.md +docs/TimePeriodMatchType.md docs/ToCollateralTransaction.md docs/ToExchangeTransaction.md docs/TokenCollectionResponse.md @@ -645,11 +687,13 @@ docs/UnstakeRequest.md docs/UpdateAssetUserMetadataRequest.md docs/UpdateCallbackHandlerRequest.md docs/UpdateCallbackHandlerResponse.md +docs/UpdateDraftRequest.md docs/UpdateTagRequest.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 @@ -674,6 +718,7 @@ docs/VaultAsset.md docs/VaultWalletAddress.md docs/VaultsApi.md docs/VendorDto.md +docs/VerdictConfig.md docs/Version.md docs/WalletAsset.md docs/WalletAssetAdditionalInfo.md @@ -715,6 +760,8 @@ src/main/java/com/fireblocks/sdk/InstanceTimeWrapper.java src/main/java/com/fireblocks/sdk/JSON.java src/main/java/com/fireblocks/sdk/Pair.java src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java +src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java +src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java src/main/java/com/fireblocks/sdk/ServerConfiguration.java src/main/java/com/fireblocks/sdk/ServerVariable.java src/main/java/com/fireblocks/sdk/SystemWrapper.java @@ -747,6 +794,7 @@ 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 @@ -764,19 +812,18 @@ 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/Account.java +src/main/java/com/fireblocks/sdk/model/AccountConfig.java +src/main/java/com/fireblocks/sdk/model/AccountIdentifier.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 @@ -784,20 +831,29 @@ 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/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/AmountAggregationTimePeriodMethod.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/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 @@ -818,11 +874,13 @@ 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/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/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 @@ -836,8 +894,6 @@ src/main/java/com/fireblocks/sdk/model/CancelTransactionResponse.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/ChannelDvnConfigWithConfirmationsReceiveConfig.java -src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfig.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 @@ -877,6 +933,8 @@ 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 @@ -910,7 +968,6 @@ src/main/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequest. 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/CreateMultichainTokenRequestCreateParams.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 @@ -946,7 +1003,10 @@ 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/DisbursementAmountInstruction.java @@ -1047,16 +1107,48 @@ 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/IdlType.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/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/ListAssetsResponse.java src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java @@ -1067,6 +1159,7 @@ 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 @@ -1117,30 +1210,21 @@ 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/PixPaymentInfo.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/PreScreening.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/ProviderAdditionalData.java src/main/java/com/fireblocks/sdk/model/ProviderCategoryEnum.java @@ -1180,6 +1264,7 @@ 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 @@ -1191,6 +1276,7 @@ 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 @@ -1255,9 +1341,10 @@ 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/SrcOrDestAttributesInner.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 @@ -1278,6 +1365,8 @@ 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/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 @@ -1366,11 +1455,13 @@ 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/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 @@ -1392,6 +1483,7 @@ 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 @@ -1441,6 +1533,7 @@ 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 @@ -1458,17 +1551,16 @@ 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/AccountConfigTest.java +src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.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 @@ -1476,20 +1568,29 @@ 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/AmlRegistrationResultTest.java src/test/java/com/fireblocks/sdk/model/AmlScreeningResultTest.java -src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.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/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 @@ -1511,11 +1612,13 @@ 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/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 @@ -1528,8 +1631,6 @@ 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/ChainDescriptorTest.java src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java -src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfigTest.java -src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfigTest.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 @@ -1570,6 +1671,8 @@ 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 @@ -1602,7 +1705,6 @@ 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/CreateMultichainTokenRequestCreateParamsTest.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 @@ -1639,6 +1741,9 @@ 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 @@ -1740,16 +1845,48 @@ 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/IdlTypeTest.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/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/ListAssetsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java @@ -1760,6 +1897,7 @@ 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 @@ -1810,30 +1948,21 @@ 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/PixPaymentInfoTest.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/PreScreeningTest.java +src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java src/test/java/com/fireblocks/sdk/model/ProviderAdditionalDataTest.java src/test/java/com/fireblocks/sdk/model/ProviderCategoryEnumTest.java src/test/java/com/fireblocks/sdk/model/ProviderTest.java @@ -1873,6 +2002,7 @@ 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 @@ -1884,6 +2014,7 @@ 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 @@ -1948,9 +2079,10 @@ 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/SrcOrDestAttributesInnerTest.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 @@ -1971,6 +2103,8 @@ 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/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 @@ -2059,11 +2193,13 @@ 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/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 @@ -2085,6 +2221,7 @@ 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 diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 8b23b8d4..e465da43 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.3.0 \ No newline at end of file +7.14.0 diff --git a/README.md b/README.md index a54e2462..53144fc7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 11.2.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:11.2.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-11.2.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` @@ -159,6 +159,7 @@ Class | Method | HTTP request | Description *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 @@ -300,11 +301,15 @@ 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* | [**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* | [**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* | [**publishPolicyRules**](docs/PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules -*PolicyEditorBetaApi* | [**updateDraft**](docs/PolicyEditorBetaApi.md#updateDraft) | **PUT** /tap/draft | Update the draft with a new set of 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 *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 @@ -454,18 +459,17 @@ Class | Method | HTTP request | Description ## Documentation for Models - [APIUser](docs/APIUser.md) + - [AbaPaymentInfo](docs/AbaPaymentInfo.md) - [AbiFunction](docs/AbiFunction.md) - [Account](docs/Account.md) + - [AccountConfig](docs/AccountConfig.md) + - [AccountIdentifier](docs/AccountIdentifier.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) @@ -473,20 +477,29 @@ Class | Method | HTTP request | Description - [AddExchangeAccountRequest](docs/AddExchangeAccountRequest.md) - [AddExchangeAccountResponse](docs/AddExchangeAccountResponse.md) - [AdditionalInfo](docs/AdditionalInfo.md) + - [AdditionalInfoRequest](docs/AdditionalInfoRequest.md) + - [AdditionalInfoRequestAdditionalInfo](docs/AdditionalInfoRequestAdditionalInfo.md) - [AddressNotAvailableError](docs/AddressNotAvailableError.md) - [AmlRegistrationResult](docs/AmlRegistrationResult.md) - [AmlRegistrationResultFullPayload](docs/AmlRegistrationResultFullPayload.md) - [AmlScreeningResult](docs/AmlScreeningResult.md) - - [AmountAggregationTimePeriodMethod](docs/AmountAggregationTimePeriodMethod.md) + - [AmlVerdictManualRequest](docs/AmlVerdictManualRequest.md) + - [AmlVerdictManualResponse](docs/AmlVerdictManualResponse.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) @@ -507,11 +520,13 @@ Class | Method | HTTP request | Description - [AssetResponse](docs/AssetResponse.md) - [AssetScope](docs/AssetScope.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) + - [BasicAddressRequest](docs/BasicAddressRequest.md) - [BlockInfo](docs/BlockInfo.md) - [BlockchainExplorer](docs/BlockchainExplorer.md) - [BlockchainMedia](docs/BlockchainMedia.md) @@ -525,8 +540,6 @@ Class | Method | HTTP request | Description - [ChainDescriptor](docs/ChainDescriptor.md) - [ChainInfoResponse](docs/ChainInfoResponse.md) - [ChannelDvnConfigWithConfirmations](docs/ChannelDvnConfigWithConfirmations.md) - - [ChannelDvnConfigWithConfirmationsReceiveConfig](docs/ChannelDvnConfigWithConfirmationsReceiveConfig.md) - - [ChannelDvnConfigWithConfirmationsSendConfig](docs/ChannelDvnConfigWithConfirmationsSendConfig.md) - [ClaimRewardsRequest](docs/ClaimRewardsRequest.md) - [CollectionBurnRequestDto](docs/CollectionBurnRequestDto.md) - [CollectionBurnResponseDto](docs/CollectionBurnResponseDto.md) @@ -566,6 +579,8 @@ Class | Method | HTTP request | Description - [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) @@ -599,7 +614,6 @@ Class | Method | HTTP request | Description - [CreateInternalTransferRequest](docs/CreateInternalTransferRequest.md) - [CreateInternalWalletAssetRequest](docs/CreateInternalWalletAssetRequest.md) - [CreateMultichainTokenRequest](docs/CreateMultichainTokenRequest.md) - - [CreateMultichainTokenRequestCreateParams](docs/CreateMultichainTokenRequestCreateParams.md) - [CreateMultipleAccountsRequest](docs/CreateMultipleAccountsRequest.md) - [CreateMultipleDepositAddressesJobStatus](docs/CreateMultipleDepositAddressesJobStatus.md) - [CreateMultipleDepositAddressesRequest](docs/CreateMultipleDepositAddressesRequest.md) @@ -635,7 +649,10 @@ Class | Method | HTTP request | Description - [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) - [DisbursementAmountInstruction](docs/DisbursementAmountInstruction.md) @@ -736,16 +753,48 @@ Class | Method | HTTP request | Description - [GetWhitelistIpAddressesResponse](docs/GetWhitelistIpAddressesResponse.md) - [GetWorkspaceStatusResponse](docs/GetWorkspaceStatusResponse.md) - [HttpContractDoesNotExistError](docs/HttpContractDoesNotExistError.md) + - [IbanPaymentInfo](docs/IbanPaymentInfo.md) - [IdlType](docs/IdlType.md) + - [InitiatorConfig](docs/InitiatorConfig.md) + - [InitiatorConfigPattern](docs/InitiatorConfigPattern.md) - [InstructionAmount](docs/InstructionAmount.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) - [ListAssetsResponse](docs/ListAssetsResponse.md) - [ListBlockchainsResponse](docs/ListBlockchainsResponse.md) - [ListOwnedCollectionsResponse](docs/ListOwnedCollectionsResponse.md) @@ -756,6 +805,7 @@ Class | Method | HTTP request | Description - [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) @@ -806,30 +856,21 @@ Class | Method | HTTP request | Description - [PayoutState](docs/PayoutState.md) - [PayoutStatus](docs/PayoutStatus.md) - [PeerAdapterInfo](docs/PeerAdapterInfo.md) + - [PixPaymentInfo](docs/PixPaymentInfo.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) - [PreScreening](docs/PreScreening.md) + - [ProgramCallConfig](docs/ProgramCallConfig.md) - [Provider](docs/Provider.md) - [ProviderAdditionalData](docs/ProviderAdditionalData.md) - [ProviderCategoryEnum](docs/ProviderCategoryEnum.md) @@ -869,6 +910,7 @@ Class | Method | HTTP request | Description - [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) @@ -880,6 +922,7 @@ Class | Method | HTTP request | Description - [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) @@ -944,9 +987,10 @@ Class | Method | HTTP request | Description - [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) - - [SrcOrDestAttributesInner](docs/SrcOrDestAttributesInner.md) - [StakeRequest](docs/StakeRequest.md) - [StakeResponse](docs/StakeResponse.md) - [StakingProvider](docs/StakingProvider.md) @@ -967,6 +1011,8 @@ Class | Method | HTTP request | Description - [Task](docs/Task.md) - [TemplatesPaginatedResponse](docs/TemplatesPaginatedResponse.md) - [ThirdPartyRouting](docs/ThirdPartyRouting.md) + - [TimePeriodConfig](docs/TimePeriodConfig.md) + - [TimePeriodMatchType](docs/TimePeriodMatchType.md) - [ToCollateralTransaction](docs/ToCollateralTransaction.md) - [ToExchangeTransaction](docs/ToExchangeTransaction.md) - [TokenCollectionResponse](docs/TokenCollectionResponse.md) @@ -1055,11 +1101,13 @@ Class | Method | HTTP request | Description - [UpdateAssetUserMetadataRequest](docs/UpdateAssetUserMetadataRequest.md) - [UpdateCallbackHandlerRequest](docs/UpdateCallbackHandlerRequest.md) - [UpdateCallbackHandlerResponse](docs/UpdateCallbackHandlerResponse.md) + - [UpdateDraftRequest](docs/UpdateDraftRequest.md) - [UpdateTagRequest](docs/UpdateTagRequest.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) @@ -1081,6 +1129,7 @@ Class | Method | HTTP request | Description - [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) diff --git a/api/openapi.yaml b/api/openapi.yaml index a646168a..c11e6810 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -46,20 +46,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetVaultAccountsResponse' + $ref: "#/components/schemas/GetVaultAccountsResponse" description: A list of vault accounts headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List vault accounts tags: - Vaults @@ -73,7 +66,8 @@ paths: - language: javascript code: const vaultAccounts = await fireblocks.getVaultAccounts(); name: Fireblocks SDK Javascript example - x-accepts: application/json + x-accepts: + - application/json post: description: Creates a new vault account with the requested name. operationId: createVaultAccount @@ -93,27 +87,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateVaultAccountRequest' + $ref: "#/components/schemas/CreateVaultAccountRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/VaultAccount' + $ref: "#/components/schemas/VaultAccount" description: A Vault Account object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a new vault account tags: - Vaults @@ -149,7 +136,8 @@ paths: source: "response = fireblocks.vaults.create_vault_account(create_vault_account_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /vault/accounts_paged: get: description: Gets all vault accounts in your workspace. This endpoint returns @@ -239,11 +227,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAccountsPagedResponse' + $ref: "#/components/schemas/VaultAccountsPagedResponse" description: A VaultAccountsPagedResponse object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List vault accounts (Paginated) tags: - Vaults @@ -282,7 +270,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}: get: description: Returns the requested vault account. @@ -303,20 +292,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAccount' + $ref: "#/components/schemas/VaultAccount" description: A Vault Account object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a vault account by ID tags: - Vaults @@ -345,7 +327,8 @@ paths: source: CompletableFuture> response = fireblocks.vaults().getVaultAccount(vaultAccountId); - lang: Python source: response = fireblocks.vaults.get_vault_account(vault_account_id); - x-accepts: application/json + x-accepts: + - application/json put: description: Renames the requested vault account. operationId: updateVaultAccount @@ -375,27 +358,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateVaultAccountRequest' + $ref: "#/components/schemas/UpdateVaultAccountRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/RenameVaultAccountResponse' + $ref: "#/components/schemas/RenameVaultAccountResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Rename a vault account tags: - Vaults @@ -435,7 +411,8 @@ paths: 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 + x-accepts: + - application/json /vault/asset_wallets: get: description: | @@ -507,11 +484,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAssetWalletResponse' + $ref: "#/components/schemas/PaginatedAssetWalletResponse" description: A PaginatedAssetWalletResponse object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List asset wallets (Paginated) tags: - Vaults @@ -548,7 +525,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_asset_wallets(total_amount_larger_than,\ \ asset_id, order_by, before, after, limit);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/hide: post: description: Hides the requested vault account from the web console view. @@ -580,20 +558,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultActionStatus' + $ref: "#/components/schemas/VaultActionStatus" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Hide a vault account in the console tags: - Vaults @@ -628,7 +599,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.hide_vault_account(vault_account_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/unhide: post: description: Makes a hidden vault account visible in web console view. @@ -660,20 +632,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultActionStatus' + $ref: "#/components/schemas/VaultActionStatus" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Unhide a vault account in the console tags: - Vaults @@ -708,7 +673,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.unhide_vault_account(vault_account_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/activate: post: description: Initiates activation for a wallet in a vault account. @@ -750,20 +716,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateVaultAssetResponse' + $ref: "#/components/schemas/CreateVaultAssetResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Activate a wallet in a vault account tags: - Vaults @@ -794,7 +753,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.activate_asset_for_vault_account(vault_account_id,\ \ asset_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/set_customer_ref_id: post: description: Assigns an AML/KYT customer reference ID for the vault account. @@ -825,27 +785,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetCustomerRefIdRequest' + $ref: "#/components/schemas/SetCustomerRefIdRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/VaultActionStatus' + $ref: "#/components/schemas/VaultActionStatus" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set an AML/KYT customer reference ID for a vault account tags: - Vaults @@ -883,7 +836,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/set_auto_fuel: post: description: Sets the autofueling property of the vault account to enabled or @@ -915,27 +869,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetAutoFuelRequest' + $ref: "#/components/schemas/SetAutoFuelRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/VaultActionStatus' + $ref: "#/components/schemas/VaultActionStatus" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Turn autofueling on or off tags: - Vaults @@ -965,7 +912,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}: get: description: Returns a wallet for a specific asset of a vault account. @@ -995,17 +943,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAsset' + $ref: "#/components/schemas/VaultAsset" description: A VaultAsset object default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the asset balance for a vault account tags: - Vaults @@ -1040,7 +981,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_vault_account_asset(vault_account_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json post: description: Creates a wallet for a specific asset in a vault account. operationId: createVaultAccountAsset @@ -1080,27 +1022,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateAssetsRequest' + $ref: "#/components/schemas/CreateAssetsRequest" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateVaultAssetResponse' + $ref: "#/components/schemas/CreateVaultAssetResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a new wallet tags: - Vaults @@ -1139,7 +1074,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/balance: post: description: Updates the balance of a specific asset in a vault account. @@ -1180,20 +1116,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAsset' + $ref: "#/components/schemas/VaultAsset" description: A VaultAsset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Refresh asset balance data tags: - Vaults @@ -1228,7 +1157,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.update_vault_account_asset_balance(vault_account_id,\ \ asset_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses: get: description: |- @@ -1264,20 +1194,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetVaultAccountAssetAddressesResponse' + $ref: "#/components/schemas/GetVaultAccountAssetAddressesResponse" description: A list of deposit addresses headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get asset addresses tags: - Vaults @@ -1293,7 +1216,8 @@ paths: code: "const depositAddresses = await fireblocks.getDepositAddresses(vaultAccountId,\ \ assetId);" name: Fireblocks SDK Javascript example - x-accepts: application/json + x-accepts: + - application/json post: description: Creates a new deposit address for an asset of a vault account. operationId: createVaultAccountAssetAddress @@ -1332,27 +1256,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateAddressRequest' + $ref: "#/components/schemas/CreateAddressRequest" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateAddressResponse' + $ref: "#/components/schemas/CreateAddressResponse" description: The created address headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create new asset deposit address tags: - Vaults @@ -1392,7 +1309,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated: get: description: Returns a paginated response of the addresses for a given vault @@ -1444,20 +1362,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAddressResponse' + $ref: "#/components/schemas/PaginatedAddressResponse" description: "A paginated list of addresses, and pagination info." headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List addresses (Paginated) tags: - Vaults @@ -1496,7 +1407,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_vault_account_asset_addresses_paginated(vault_account_id,\ \ asset_id, limit, before, after);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount: get: description: "Get the maximum amount of a particular asset that can be spent\ @@ -1540,20 +1452,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetMaxSpendableAmountResponse' + $ref: "#/components/schemas/GetMaxSpendableAmountResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the maximum spendable amount in a single transaction. tags: - Vaults @@ -1591,7 +1496,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_max_spendable_amount(vault_account_id,\ \ asset_id, manual_signging);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}: put: description: Updates the description of an existing address of an asset in a @@ -1641,27 +1547,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateVaultAccountAssetAddressRequest' + $ref: "#/components/schemas/UpdateVaultAccountAssetAddressRequest" required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/VaultActionStatus' + $ref: "#/components/schemas/VaultActionStatus" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update address description tags: - Vaults @@ -1699,7 +1598,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id: post: description: Sets an AML/KYT customer reference ID for a specific address. @@ -1748,27 +1648,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetCustomerRefIdForAddressRequest' + $ref: "#/components/schemas/SetCustomerRefIdForAddressRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/VaultActionStatus' + $ref: "#/components/schemas/VaultActionStatus" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Assign AML customer reference ID tags: - Vaults @@ -1806,7 +1699,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy: post: description: Converts an existing segwit address to the legacy format. @@ -1855,20 +1749,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateAddressResponse' + $ref: "#/components/schemas/CreateAddressResponse" description: The created address headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Convert a segwit address to legacy format tags: - Vaults @@ -1899,7 +1786,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.create_legacy_address(vault_account_id,\ \ asset_id, address_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs: get: description: Returns unspent inputs information of an asset in a vault account. @@ -1929,20 +1817,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetUnspentInputsResponse' + $ref: "#/components/schemas/GetUnspentInputsResponse" description: List of Unspent information per input headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get UTXO unspent inputs information tags: - Vaults @@ -1978,7 +1859,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_unspent_inputs(vault_account_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/bulk: post: description: | @@ -2004,27 +1886,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateMultipleAccountsRequest' + $ref: "#/components/schemas/CreateMultipleAccountsRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JobCreated' + $ref: "#/components/schemas/JobCreated" description: A JobCreated object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Bulk creation of new vault accounts tags: - Vaults @@ -2052,7 +1927,8 @@ paths: source: "response = fireblocks.vaults.create_multiple_accounts(create_multiple_accounts_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/bulk/{jobId}: get: description: | @@ -2074,20 +1950,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateMultipleVaultAccountsJobStatus' + $ref: "#/components/schemas/CreateMultipleVaultAccountsJobStatus" description: A Job with status headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get job status of bulk creation of new vault accounts tags: - Vaults @@ -2114,7 +1983,8 @@ paths: response = fireblocks.vaults().getCreateMultipleVaultAccountsJobStatus(jobId); - lang: Python source: response = fireblocks.vaults.get_create_multiple_vault_accounts_job_status(job_id); - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/addresses/bulk: post: description: | @@ -2139,27 +2009,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateMultipleDepositAddressesRequest' + $ref: "#/components/schemas/CreateMultipleDepositAddressesRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JobCreated' + $ref: "#/components/schemas/JobCreated" description: A JobCreated object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Bulk creation of new deposit addresses tags: - Vaults @@ -2187,7 +2050,8 @@ paths: source: "response = fireblocks.vaults.create_multiple_deposit_addresses(create_multiple_deposit_addresses_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/attached_tags/attach: post: description: Attach one or more tags to the requested vault accounts. @@ -2208,7 +2072,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAccountsTagAttachmentsRequest' + $ref: "#/components/schemas/VaultAccountsTagAttachmentsRequest" required: true responses: "204": @@ -2240,7 +2104,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/attached_tags/detach: post: description: Detach one or more tags from the requested vault account. @@ -2261,7 +2126,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAccountsTagAttachmentsRequest' + $ref: "#/components/schemas/VaultAccountsTagAttachmentsRequest" required: true responses: "204": @@ -2293,7 +2158,8 @@ paths: 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 + x-accepts: + - application/json /vault/accounts/addresses/bulk/{jobId}: get: description: | @@ -2315,20 +2181,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateMultipleDepositAddressesJobStatus' + $ref: "#/components/schemas/CreateMultipleDepositAddressesJobStatus" description: A Job with status headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get job status of bulk creation of new deposit addresses tags: - Vaults @@ -2355,7 +2214,8 @@ paths: response = fireblocks.vaults().getCreateMultipleDepositAddressesJobStatus(jobId); - lang: Python source: response = fireblocks.vaults.get_create_multiple_deposit_addresses_job_status(job_id); - x-accepts: application/json + x-accepts: + - application/json /vault/public_key_info: get: description: Gets the public key information based on derivation path and signing @@ -2388,20 +2248,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PublicKeyInformation' + $ref: "#/components/schemas/PublicKeyInformation" description: Public key information headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the public key information tags: - Vaults @@ -2438,7 +2291,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_public_key_info(derivation_path,\ \ algorithm, compressed);" - x-accepts: application/json + x-accepts: + - application/json /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info: get: description: Gets the public key information for the vault account. @@ -2487,20 +2341,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PublicKeyInformation' + $ref: "#/components/schemas/PublicKeyInformation" description: Public Key Information headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the public key for a vault account tags: - Vaults @@ -2537,7 +2384,8 @@ paths: - 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 + x-accepts: + - application/json /vault/assets: get: description: Gets the assets amount summary for all accounts or filtered accounts. @@ -2562,20 +2410,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetVaultAssetsResponse' + $ref: "#/components/schemas/GetVaultAssetsResponse" description: Amount by asset headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get asset balance for chosen assets tags: - Vaults @@ -2612,7 +2453,8 @@ paths: - lang: Python source: "response = fireblocks.vaults.get_vault_assets(account_name_prefix,\ \ account_name_suffix);" - x-accepts: application/json + x-accepts: + - application/json /vault/assets/bulk: post: description: | @@ -2638,27 +2480,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateAssetsBulkRequest' + $ref: "#/components/schemas/CreateAssetsBulkRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JobCreated' + $ref: "#/components/schemas/JobCreated" description: A JobCreated object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Bulk creation of wallets tags: - Assets @@ -2686,7 +2521,8 @@ paths: source: "response = fireblocks.assets.create_assets_bulk(create_assets_bulk_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /vault/assets/{assetId}: get: description: Gets the vault balance summary for an asset. @@ -2705,20 +2541,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaultAsset' + $ref: "#/components/schemas/VaultAsset" description: Vault amount by asset headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get vault balance by asset tags: - Vaults @@ -2747,7 +2576,8 @@ paths: source: CompletableFuture> response = fireblocks.vaults().getVaultBalanceByAsset(assetId); - lang: Python source: response = fireblocks.vaults.get_vault_balance_by_asset(asset_id); - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/supported_assets: get: description: Get all the available supported assets for the Non-Custodial Wallet @@ -2787,20 +2617,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletPaginatedAssetsResponse' + $ref: "#/components/schemas/EmbeddedWalletPaginatedAssetsResponse" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Retrieve supported assets tags: - Embedded Wallets @@ -2831,7 +2654,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallet_supported_assets(page_cursor,\ \ page_size, only_base_assets);" - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets: get: description: Get all Non Custodial Wallets @@ -2896,20 +2720,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletPaginatedWalletsResponse' + $ref: "#/components/schemas/EmbeddedWalletPaginatedWalletsResponse" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List wallets tags: - Embedded Wallets @@ -2940,7 +2757,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallets(page_cursor,\ \ page_size, sort, order, enabled);" - x-accepts: application/json + x-accepts: + - application/json post: description: Create new Non Custodial Wallet operationId: CreateEmbeddedWallet @@ -2961,20 +2779,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWallet' + $ref: "#/components/schemas/EmbeddedWallet" description: Wallet created successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a new wallet tags: - Embedded Wallets @@ -2997,7 +2808,8 @@ paths: source: CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); - lang: Python source: response = fireblocks.embedded_wallets.create_embedded_wallet(idempotency_key); - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/{walletId}: get: description: Get a wallet @@ -3017,20 +2829,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWallet' + $ref: "#/components/schemas/EmbeddedWallet" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get a wallet tags: - Embedded Wallets @@ -3053,7 +2858,8 @@ paths: source: CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); - lang: Python source: response = fireblocks.embedded_wallets.get_embedded_wallet(wallet_id); - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}: get: description: "Get asset under a specific account, under a specific Non Custodial\ @@ -3093,20 +2899,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletAssetResponse' + $ref: "#/components/schemas/EmbeddedWalletAssetResponse" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Retrieve asset tags: - Embedded Wallets @@ -3137,7 +2936,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset(wallet_id,\ \ account_id, asset_id);" - x-accepts: application/json + x-accepts: + - application/json post: description: "Get the addresses of a specific asset, under a specific account,\ \ under a specific Non Custodial Wallet" @@ -3187,17 +2987,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletAddressDetails' + $ref: "#/components/schemas/EmbeddedWalletAddressDetails" description: Created default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add asset to account tags: - Embedded Wallets @@ -3228,7 +3021,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.add_embedded_wallet_asset(wallet_id,\ \ account_id, asset_id, idempotency_key);" - x-accepts: 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" @@ -3267,17 +3061,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletAssetBalance' + $ref: "#/components/schemas/EmbeddedWalletAssetBalance" description: Successful response default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Retrieve asset balance tags: - Embedded Wallets @@ -3308,7 +3095,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset_balance(wallet_id,\ \ account_id, asset_id);" - x-accepts: application/json + x-accepts: + - application/json put: description: Refresh the balance of an asset in a specific account operationId: RefreshEmbeddedWalletAssetBalance @@ -3357,20 +3145,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletAssetBalance' + $ref: "#/components/schemas/EmbeddedWalletAssetBalance" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Refresh asset balance tags: - Embedded Wallets @@ -3401,7 +3182,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.refresh_embedded_wallet_asset_balance(wallet_id,\ \ account_id, asset_id, idempotency_key);" - x-accepts: application/json + 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,\ @@ -3495,17 +3277,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletPaginatedAddressesResponse' + $ref: "#/components/schemas/EmbeddedWalletPaginatedAddressesResponse" description: Successful response default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Retrieve asset addresses tags: - Embedded Wallets @@ -3536,7 +3311,8 @@ paths: - 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 + x-accepts: + - application/json /ncw/wallets/{walletId}/accounts: post: description: Create a new account under a specific Non Custodial Wallet @@ -3568,20 +3344,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletAccount' + $ref: "#/components/schemas/EmbeddedWalletAccount" description: Account Created headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a new account tags: - Embedded Wallets @@ -3610,7 +3379,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.create_embedded_wallet_account(wallet_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/{walletId}/accounts/{accountId}: get: description: Get a specific account under a specific Non Custodial Wallet @@ -3639,20 +3409,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletAccount' + $ref: "#/components/schemas/EmbeddedWalletAccount" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get a account tags: - Embedded Wallets @@ -3681,7 +3444,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallet_account(wallet_id,\ \ account_id);" - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/{walletId}/backup/latest: get: description: "Get wallet Latest Backup details, including the deviceId, and\ @@ -3702,20 +3466,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletLatestBackupResponse' + $ref: "#/components/schemas/EmbeddedWalletLatestBackupResponse" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get wallet Latest Backup details tags: - Embedded Wallets @@ -3742,7 +3499,8 @@ paths: response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); - lang: Python source: response = fireblocks.embedded_wallets.get_embedded_wallet_latest_backup(wallet_id); - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/{walletId}/devices/{deviceId}: get: description: Get specific device for a specific s Wallet @@ -3771,20 +3529,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletDevice' + $ref: "#/components/schemas/EmbeddedWalletDevice" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get Embedded Wallet Device tags: - Embedded Wallets @@ -3813,7 +3564,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallet_device(wallet_id,\ \ device_id);" - x-accepts: application/json + 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 @@ -3843,20 +3595,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EmbeddedWalletDeviceKeySetupResponse' + $ref: "#/components/schemas/EmbeddedWalletDeviceKeySetupResponse" description: Successful response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get device key setup state tags: - Embedded Wallets @@ -3887,7 +3632,8 @@ paths: - lang: Python source: "response = fireblocks.embedded_wallets.get_embedded_wallet_device_setup_state(wallet_id,\ \ device_id);" - x-accepts: application/json + x-accepts: + - application/json /ncw/wallets/{walletId}/public_key_info: get: description: Gets the public key information based on derivation path and signing @@ -3956,20 +3702,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PublicKeyInformation' + $ref: "#/components/schemas/PublicKeyInformation" description: Public key information headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the public key for a derivation path tags: - Embedded Wallets @@ -4003,7 +3742,8 @@ paths: - 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 + 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 @@ -4081,20 +3821,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PublicKeyInformation' + $ref: "#/components/schemas/PublicKeyInformation" description: Public Key Information headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the public key of an asset tags: - Embedded Wallets @@ -4129,7 +3862,8 @@ paths: - 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-accepts: 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 @@ -4207,20 +3941,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PublicKeyInformation' + $ref: "#/components/schemas/PublicKeyInformation" description: Public Key Information headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the public key of an asset tags: - Embedded Wallets @@ -4238,7 +3965,8 @@ paths: \ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\ \ publicKeyInfoByAccountAssetArgs);\n" name: Fireblocks SDK Javascript example - x-accepts: application/json + x-accepts: + - application/json /workspace/freeze: post: description: "Freezes a Workspace so that ALL operations by ANY user are blocked.\n\ @@ -4265,22 +3993,16 @@ paths: description: indicates that the workspace is now frozen headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Freeze Workspace tags: - Workspace x-internal: true x-rate-limit-category: write - x-accepts: application/json + x-accepts: + - application/json /exchange_accounts: get: deprecated: true @@ -4291,20 +4013,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetExchangeAccountsResponse' + $ref: "#/components/schemas/GetExchangeAccountsResponse" description: An ExchangeAccount object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List exchange accounts tags: - Exchange accounts @@ -4318,7 +4033,8 @@ paths: - language: javascript code: const exchangeAccounts = await fireblocks.getExchangeAccounts(); name: Fireblocks SDK Javascript example - x-accepts: application/json + x-accepts: + - application/json post: description: Add an exchange account to exchanges. operationId: addExchangeAccount @@ -4338,27 +4054,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddExchangeAccountRequest' + $ref: "#/components/schemas/AddExchangeAccountRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/AddExchangeAccountResponse' + $ref: "#/components/schemas/AddExchangeAccountResponse" description: An Exchange Account identifier object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add an exchange account tags: - Exchange accounts @@ -4390,7 +4099,8 @@ paths: source: "response = fireblocks.exchange_accounts.add_exchange_account(add_exchange_account_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /exchange_accounts/paged: get: description: Returns a page include exchange accounts. @@ -4426,20 +4136,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetPagedExchangeAccountsResponse' + $ref: "#/components/schemas/GetPagedExchangeAccountsResponse" description: An ExchangeAccount object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Pagination list exchange accounts tags: - Exchange accounts @@ -4476,7 +4179,8 @@ paths: - lang: Python source: "response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit,\ \ before, after);" - x-accepts: application/json + x-accepts: + - application/json /exchange_accounts/{exchangeAccountId}: get: description: Returns an exchange account by ID. @@ -4495,20 +4199,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExchangeAccount' + $ref: "#/components/schemas/ExchangeAccount" description: An ExchangeAccount object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a specific exchange account tags: - Exchange accounts @@ -4537,7 +4234,8 @@ paths: source: CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccount(exchangeAccountId); - lang: Python source: response = fireblocks.exchange_accounts.get_exchange_account(exchange_account_id); - x-accepts: application/json + x-accepts: + - application/json /exchange_accounts/{exchangeAccountId}/internal_transfer: post: description: Transfers funds between trading accounts under the same exchange @@ -4567,26 +4265,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateInternalTransferRequest' + $ref: "#/components/schemas/CreateInternalTransferRequest" responses: "201": content: application/json: schema: - $ref: '#/components/schemas/InternalTransferResponse' + $ref: "#/components/schemas/InternalTransferResponse" description: Transfer succeeded headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Internal transfer for exchange accounts tags: - Exchange accounts @@ -4618,7 +4309,8 @@ paths: 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 + x-accepts: + - application/json /exchange_accounts/{exchangeAccountId}/convert: post: description: "Convert exchange account funds from the source asset to the destination\ @@ -4650,26 +4342,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConvertAssetsRequest' + $ref: "#/components/schemas/ConvertAssetsRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ConvertAssetsResponse' + $ref: "#/components/schemas/ConvertAssetsResponse" description: Conversion successful headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Convert exchange account funds from the source asset to the destination asset. tags: @@ -4702,7 +4387,8 @@ paths: source: "response = fireblocks.exchange_accounts.convert_assets(exchange_account_id,\ \ convert_assets_request, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /exchange_accounts/{exchangeAccountId}/{assetId}: get: description: Returns an asset for an exchange account. @@ -4729,20 +4415,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExchangeAsset' + $ref: "#/components/schemas/ExchangeAsset" description: An ExchangeAccountAsset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find an asset for an exchange account tags: - Exchange accounts @@ -4777,7 +4456,8 @@ paths: - lang: Python source: "response = fireblocks.exchange_accounts.get_exchange_account_asset(exchange_account_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json /exchange_accounts/credentials_public_key: get: description: Return public key @@ -4787,20 +4467,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetExchangeAccountsCredentialsPublicKeyResponse' + $ref: "#/components/schemas/GetExchangeAccountsCredentialsPublicKeyResponse" description: public key as string headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get public key to encrypt exchange credentials tags: - Exchange accounts @@ -4827,7 +4500,8 @@ paths: response = fireblocks.exchangeAccounts().getExchangeAccountsCredentialsPublicKey(); - lang: Python source: response = fireblocks.exchange_accounts.get_exchange_accounts_credentials_public_key(); - x-accepts: application/json + x-accepts: + - application/json /fiat_accounts: get: description: Returns all fiat accounts. @@ -4837,20 +4511,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetFiatAccountsResponse' + $ref: "#/components/schemas/GetFiatAccountsResponse" description: A fiat account object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List fiat accounts tags: - Fiat accounts @@ -4881,7 +4548,8 @@ paths: source: CompletableFuture>> response = fireblocks.fiatAccounts().getFiatAccounts(); - lang: Python source: response = fireblocks.fiat_accounts.get_fiat_accounts(); - x-accepts: application/json + x-accepts: + - application/json /fiat_accounts/{accountId}: get: description: Returns a fiat account by ID. @@ -4900,20 +4568,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FiatAccount' + $ref: "#/components/schemas/FiatAccount" description: A fiat account object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a specific fiat account tags: - Fiat accounts @@ -4942,7 +4603,8 @@ paths: source: CompletableFuture> response = fireblocks.fiatAccounts().getFiatAccount(accountId); - lang: Python source: response = fireblocks.fiat_accounts.get_fiat_account(account_id); - x-accepts: application/json + x-accepts: + - application/json /fiat_accounts/{accountId}/redeem_to_linked_dda: post: description: Redeems funds to the linked DDA. @@ -4971,26 +4633,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Funds' + $ref: "#/components/schemas/Funds" responses: "201": content: application/json: schema: - $ref: '#/components/schemas/RedeemFundsToLinkedDDAResponse' + $ref: "#/components/schemas/RedeemFundsToLinkedDDAResponse" description: Transfer succeeded headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Redeem funds to DDA tags: - Fiat accounts @@ -5028,7 +4683,8 @@ paths: 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 + x-accepts: + - application/json /fiat_accounts/{accountId}/deposit_from_linked_dda: post: description: Deposits funds from the linked DDA. @@ -5057,26 +4713,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Funds' + $ref: "#/components/schemas/Funds" responses: "201": content: application/json: schema: - $ref: '#/components/schemas/DepositFundsFromLinkedDDAResponse' + $ref: "#/components/schemas/DepositFundsFromLinkedDDAResponse" description: Transfer succeeded headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Deposit funds from DDA tags: - Fiat accounts @@ -5115,7 +4764,8 @@ paths: 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 + x-accepts: + - application/json /network_connections: get: description: | @@ -5141,20 +4791,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetNetworkConnectionsResponse' + $ref: "#/components/schemas/GetNetworkConnectionsResponse" description: A list of network connections headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List network connections tags: - Network connections @@ -5187,7 +4830,8 @@ paths: = fireblocks.networkConnections().getNetworkConnections(); - lang: Python source: response = fireblocks.network_connections.get_network_connections(); - x-accepts: application/json + x-accepts: + - application/json post: description: | Initiates a new network connection. @@ -5225,26 +4869,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NetworkConnection' + $ref: "#/components/schemas/NetworkConnection" responses: "201": content: application/json: schema: - $ref: '#/components/schemas/NetworkConnectionResponse' + $ref: "#/components/schemas/NetworkConnectionResponse" description: A Network Connection object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Creates a new network connection tags: - Network connections @@ -5276,7 +4913,8 @@ paths: source: "response = fireblocks.network_connections.create_network_connection(network_connection,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /network_connections/{connectionId}/set_routing_policy: patch: description: | @@ -5313,26 +4951,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetRoutingPolicyRequest' + $ref: "#/components/schemas/SetRoutingPolicyRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetRoutingPolicyResponse' + $ref: "#/components/schemas/SetRoutingPolicyResponse" description: Network ID headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update network connection routing policy. tags: - Network connections @@ -5362,7 +4993,8 @@ paths: source: "response = fireblocks.network_connections.set_routing_policy(connection_id,\ \ set_routing_policy_request);" x-content-type: application/json - x-accepts: 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. @@ -5392,20 +5024,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ThirdPartyRouting' + $ref: "#/components/schemas/ThirdPartyRouting" description: result for the validation headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Retrieve third-party network routing validation by asset type. tags: - Network connections @@ -5434,7 +5059,8 @@ paths: - lang: Python source: "response = fireblocks.network_connections.check_third_party_routing(connection_id,\ \ asset_type);" - x-accepts: application/json + x-accepts: + - application/json /network_connections/{connectionId}: delete: description: | @@ -5470,20 +5096,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteNetworkConnectionResponse' + $ref: "#/components/schemas/DeleteNetworkConnectionResponse" description: Network ID headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Deletes a network connection by ID tags: - Network connections @@ -5510,7 +5129,8 @@ paths: = fireblocks.networkConnections().deleteNetworkConnection(connectionId); - lang: Python source: response = fireblocks.network_connections.delete_network_connection(connection_id); - x-accepts: application/json + x-accepts: + - application/json get: description: | Gets a network connection by ID. @@ -5545,20 +5165,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NetworkConnectionResponse' + $ref: "#/components/schemas/NetworkConnectionResponse" description: A network connection headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get a network connection tags: - Network connections @@ -5591,7 +5204,8 @@ paths: = fireblocks.networkConnections().getNetwork(connectionId); - lang: Python source: response = fireblocks.network_connections.get_network(connection_id); - x-accepts: application/json + x-accepts: + - application/json /network_ids: get: deprecated: true @@ -5619,20 +5233,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetNetworkIdsResponse' + $ref: "#/components/schemas/GetNetworkIdsResponse" description: A list of network IDs headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: "Returns all network IDs, both local IDs and discoverable remote IDs" tags: - Network connections @@ -5657,7 +5264,8 @@ paths: source: CompletableFuture>> response = fireblocks.networkConnections().getNetworkIds(); - lang: Python source: response = fireblocks.network_connections.get_network_ids(); - x-accepts: application/json + x-accepts: + - application/json post: description: | Creates a new Network ID. @@ -5696,26 +5304,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateNetworkIdRequest' + $ref: "#/components/schemas/CreateNetworkIdRequest" responses: "201": content: application/json: schema: - $ref: '#/components/schemas/NetworkIdResponse' + $ref: "#/components/schemas/NetworkIdResponse" description: Returns the new network ID in your workspace headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Creates a new Network ID tags: - Network connections @@ -5745,7 +5346,8 @@ paths: source: "response = fireblocks.network_connections.create_network_id(create_network_id_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /network_ids/routing_policy_asset_groups: get: description: | @@ -5758,20 +5360,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetRoutingPolicyAssetGroupsResponse' + $ref: "#/components/schemas/GetRoutingPolicyAssetGroupsResponse" description: A list of enabled routing policy asset groups headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Returns all enabled routing policy asset groups tags: - Network connections @@ -5796,7 +5391,8 @@ paths: source: CompletableFuture>> response = fireblocks.networkConnections().getRoutingPolicyAssetGroups(); - lang: Python source: response = fireblocks.network_connections.get_routing_policy_asset_groups(); - x-accepts: application/json + x-accepts: + - application/json /network_ids/search: get: description: | @@ -5876,20 +5472,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SearchNetworkIdsResponse' + $ref: "#/components/schemas/SearchNetworkIdsResponse" description: A list of network IDs headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: "Search network IDs, both local IDs and discoverable remote IDs" tags: - Network connections @@ -5920,7 +5509,8 @@ paths: - lang: Python source: "response = fireblocks.network_connections.search_network_ids(search,\ \ exclude_self, only_self, exclude_connected, page_cursor, page_size);" - x-accepts: application/json + x-accepts: + - application/json /network_ids/{networkId}: delete: description: | @@ -5956,17 +5546,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteNetworkIdResponse' + $ref: "#/components/schemas/DeleteNetworkIdResponse" description: Network ID default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Deletes specific network ID. tags: - Network connections @@ -5993,7 +5576,8 @@ paths: fireblocks.networkConnections().deleteNetworkId(networkId); - lang: Python source: response = fireblocks.network_connections.delete_network_id(network_id); - x-accepts: application/json + x-accepts: + - application/json get: description: | Retrieves a network by its ID. @@ -6028,20 +5612,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NetworkIdResponse' + $ref: "#/components/schemas/NetworkIdResponse" description: Network ID headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Returns specific network ID. tags: - Network connections @@ -6066,7 +5643,8 @@ paths: source: CompletableFuture> response = fireblocks.networkConnections().getNetworkId(networkId); - lang: Python source: response = fireblocks.network_connections.get_network_id(network_id); - x-accepts: application/json + x-accepts: + - application/json /network_ids/{networkId}/set_routing_policy: patch: description: | @@ -6103,26 +5681,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetNetworkIdRoutingPolicyRequest' + $ref: "#/components/schemas/SetNetworkIdRoutingPolicyRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetNetworkIdResponse' + $ref: "#/components/schemas/SetNetworkIdResponse" description: Network ID headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update network id routing policy. tags: - Network connections @@ -6152,7 +5723,8 @@ paths: 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 + x-accepts: + - application/json /network_ids/{networkId}/set_discoverability: patch: description: | @@ -6187,27 +5759,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetNetworkIdDiscoverabilityRequest' + $ref: "#/components/schemas/SetNetworkIdDiscoverabilityRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetNetworkIdResponse' + $ref: "#/components/schemas/SetNetworkIdResponse" description: Network ID headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update network ID's discoverability. tags: - Network connections @@ -6237,7 +5802,8 @@ paths: 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 + x-accepts: + - application/json /network_ids/{networkId}/set_name: patch: description: | @@ -6272,27 +5838,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetNetworkIdNameRequest' + $ref: "#/components/schemas/SetNetworkIdNameRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetNetworkIdResponse' + $ref: "#/components/schemas/SetNetworkIdResponse" description: Network ID headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update network ID's name. tags: - Network connections @@ -6322,7 +5881,8 @@ paths: 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 + x-accepts: + - application/json /internal_wallets: get: description: |- @@ -6349,20 +5909,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetInternalWalletsResponse' + $ref: "#/components/schemas/GetInternalWalletsResponse" description: A list of internal wallets headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List internal wallets tags: - Internal wallets @@ -6387,7 +5940,8 @@ paths: source: CompletableFuture>> response = fireblocks.internalWallets().getInternalWallets(); - lang: Python source: response = fireblocks.internal_wallets.get_internal_wallets(); - x-accepts: application/json + x-accepts: + - application/json post: description: |- Creates a new internal wallet with the requested name. @@ -6412,26 +5966,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateWalletRequest' + $ref: "#/components/schemas/CreateWalletRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" description: A new wallet object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create an internal wallet tags: - Internal wallets @@ -6466,7 +6013,8 @@ paths: source: "response = fireblocks.internal_wallets.create_internal_wallet(create_wallet_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /internal_wallets/{walletId}: delete: description: |- @@ -6492,16 +6040,9 @@ paths: description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete an internal wallet tags: - Internal wallets @@ -6530,7 +6071,8 @@ paths: source: CompletableFuture> response = fireblocks.internalWallets().deleteInternalWallet(walletId); - lang: Python source: response = fireblocks.internal_wallets.delete_internal_wallet(wallet_id); - x-accepts: application/json + x-accepts: + - application/json get: description: |- Returns information for an asset in an internal wallet. @@ -6558,20 +6100,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" description: A Wallet object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get an asset from an internal wallet tags: - Internal wallets @@ -6600,7 +6135,8 @@ paths: source: CompletableFuture> response = fireblocks.internalWallets().getInternalWallet(walletId); - lang: Python source: response = fireblocks.internal_wallets.get_internal_wallet(wallet_id); - x-accepts: application/json + x-accepts: + - application/json /internal_wallets/{walletId}/assets: get: description: |- @@ -6651,20 +6187,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAssetsResponse' + $ref: "#/components/schemas/PaginatedAssetsResponse" description: A paginated response of assets for the internal wallet headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List assets in an internal wallet (Paginated) tags: - Internal wallets @@ -6703,7 +6232,8 @@ paths: - lang: Python source: "response = fireblocks.internal_wallets.get_internal_wallet_assets_paginated(wallet_id,\ \ page_size, page_cursor);" - x-accepts: application/json + x-accepts: + - application/json /internal_wallets/{walletId}/set_customer_ref_id: post: description: |- @@ -6742,23 +6272,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetCustomerRefIdRequest' + $ref: "#/components/schemas/SetCustomerRefIdRequest" required: true responses: "201": description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set an AML/KYT customer reference ID for an internal wallet tags: - Internal wallets @@ -6794,7 +6317,8 @@ paths: 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 + x-accepts: + - application/json /internal_wallets/{walletId}/{assetId}: delete: description: |- @@ -6832,16 +6356,9 @@ paths: description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete a whitelisted address tags: - Internal wallets @@ -6875,7 +6392,8 @@ paths: - lang: Python source: "response = fireblocks.internal_wallets.delete_internal_wallet_asset(wallet_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json get: description: |- Returns information for an asset in an internal wallet. @@ -6912,20 +6430,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WalletAsset' + $ref: "#/components/schemas/WalletAsset" description: A Wallet Asset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get an asset from an internal wallet tags: - Internal wallets @@ -6960,7 +6471,8 @@ paths: - lang: Python source: "response = fireblocks.internal_wallets.get_internal_wallet_asset(wallet_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json post: description: |- Adds an asset to an existing internal wallet. @@ -7008,26 +6520,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateInternalWalletAssetRequest' + $ref: "#/components/schemas/CreateInternalWalletAssetRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/WalletAsset' + $ref: "#/components/schemas/WalletAsset" description: A Wallet Asset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add an asset to an internal wallet tags: - Internal wallets @@ -7063,7 +6568,8 @@ paths: 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 + x-accepts: + - application/json /key_link/signing_keys: get: description: "Returns the list of signing keys in the workspace\nPlease note\ @@ -7178,21 +6684,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetSigningKeyResponseDto' + $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' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get list of signing keys tags: - Key Link (Beta) @@ -7226,7 +6725,8 @@ paths: 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 + 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\ @@ -7253,27 +6753,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateSigningKeyDto' + $ref: "#/components/schemas/CreateSigningKeyDto" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SigningKeyDto' + $ref: "#/components/schemas/SigningKeyDto" description: Newly created signing key headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add a new signing key tags: - Key Link (Beta) @@ -7301,7 +6794,8 @@ paths: source: "response = fireblocks.key_link_beta.create_signing_key(create_signing_key_dto,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /key_link/signing_keys/{keyId}: get: description: "Returns a signing key if it exists, identified by the specified\ @@ -7326,20 +6820,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SigningKeyDto' + $ref: "#/components/schemas/SigningKeyDto" description: Requested signing key data headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get a signing key by `keyId` tags: - Key Link (Beta) @@ -7362,7 +6849,8 @@ paths: source: CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKey(keyId); - lang: Python source: response = fireblocks.key_link_beta.get_signing_key(key_id); - x-accepts: 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\ @@ -7385,27 +6873,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModifySigningKeyDto' + $ref: "#/components/schemas/ModifySigningKeyDto" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SigningKeyDto' + $ref: "#/components/schemas/SigningKeyDto" description: Modified signing key data headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Modify the signing by Fireblocks provided `keyId` tags: - Key Link (Beta) @@ -7433,7 +6914,8 @@ paths: source: "response = fireblocks.key_link_beta.update_signing_key(modify_signing_key_dto,\ \ key_id);" x-content-type: application/json - x-accepts: 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.\ @@ -7458,23 +6940,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModifySigningKeyAgentIdDto' + $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' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` tags: @@ -7503,7 +6978,8 @@ paths: 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 + x-accepts: + - application/json /key_link/validation_keys: get: description: "Returns the list of validation keys in the workspace\nPlease note\ @@ -7561,21 +7037,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetValidationKeyResponseDto' + $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' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get list of registered validation keys tags: - Key Link (Beta) @@ -7606,7 +7075,8 @@ paths: - lang: Python source: "response = fireblocks.key_link_beta.get_validation_keys_list(page_cursor,\ \ page_size, sort_by, order);" - x-accepts: application/json + x-accepts: + - application/json 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\ @@ -7631,27 +7101,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateValidationKeyDto' + $ref: "#/components/schemas/CreateValidationKeyDto" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/CreateValidationKeyResponseDto' + $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' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add a new validation key tags: - Key Link (Beta) @@ -7683,7 +7146,8 @@ paths: source: "response = fireblocks.key_link_beta.create_validation_key(create_validation_key_dto,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /key_link/validation_keys/{keyId}: get: description: "Returns a validation key if it exists, identified by the specified\ @@ -7706,20 +7170,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ValidationKeyDto' + $ref: "#/components/schemas/ValidationKeyDto" description: The requested validation key data headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get a validation key by `keyId` tags: - Key Link (Beta) @@ -7742,7 +7199,8 @@ paths: source: CompletableFuture> response = fireblocks.keyLinkBeta().getValidationKey(keyId); - lang: Python source: response = fireblocks.key_link_beta.get_validation_key(key_id); - x-accepts: application/json + 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\ @@ -7766,27 +7224,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModifyValidationKeyDto' + $ref: "#/components/schemas/ModifyValidationKeyDto" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ValidationKeyDto' + $ref: "#/components/schemas/ValidationKeyDto" description: Modified validation key data headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Disables a validation key tags: - Key Link (Beta) @@ -7814,7 +7265,8 @@ paths: source: "response = fireblocks.key_link_beta.disable_validation_key(modify_validation_key_dto,\ \ key_id);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /keys/mpc/list: get: description: "Returns a list of MPC signing keys of the workspace. For each\ @@ -7827,20 +7279,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetMpcKeysResponse' + $ref: "#/components/schemas/GetMpcKeysResponse" description: List of mpc keys headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get list of mpc keys tags: - Keys (Beta) @@ -7865,7 +7310,8 @@ paths: source: CompletableFuture> response = fireblocks.keysBeta().getMpcKeysList(); - lang: Python source: response = fireblocks.keys_beta.get_mpc_keys_list(); - x-accepts: application/json + x-accepts: + - application/json /keys/mpc/list/{userId}: get: description: |- @@ -7888,20 +7334,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetMpcKeysResponse' + $ref: "#/components/schemas/GetMpcKeysResponse" description: List of mpc keys headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get list of mpc keys by `userId` tags: - Keys (Beta) @@ -7926,7 +7365,8 @@ paths: source: CompletableFuture> response = fireblocks.keysBeta().getMpcKeysListByUser(userId); - lang: Python source: response = fireblocks.keys_beta.get_mpc_keys_list_by_user(user_id); - x-accepts: application/json + x-accepts: + - application/json /external_wallets: get: description: Gets a list of external wallets under the workspace. @@ -7936,20 +7376,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetExternalWalletsResponse' + $ref: "#/components/schemas/GetExternalWalletsResponse" description: A list of external wallets headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List external wallets tags: - External wallets @@ -7980,7 +7413,8 @@ paths: source: CompletableFuture>> response = fireblocks.externalWallets().getExternalWallets(); - lang: Python source: response = fireblocks.external_wallets.get_external_wallets(); - x-accepts: application/json + x-accepts: + - application/json post: description: Creates a new external wallet with the requested name. operationId: createExternalWallet @@ -8000,26 +7434,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateWalletRequest' + $ref: "#/components/schemas/CreateWalletRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" description: A Wallet object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create an external wallet tags: - External wallets @@ -8054,7 +7481,8 @@ paths: source: "response = fireblocks.external_wallets.create_external_wallet(create_wallet_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /external_wallets/{walletId}: delete: description: Deletes an external wallet by ID. @@ -8073,16 +7501,9 @@ paths: description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete an external wallet tags: - External wallets @@ -8111,7 +7532,8 @@ paths: source: CompletableFuture> response = fireblocks.externalWallets().deleteExternalWallet(walletId); - lang: Python source: response = fireblocks.external_wallets.delete_external_wallet(wallet_id); - x-accepts: application/json + x-accepts: + - application/json get: description: Returns an external wallet by ID. operationId: getExternalWallet @@ -8129,20 +7551,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" description: A Wallet object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find an external wallet tags: - External wallets @@ -8171,7 +7586,8 @@ paths: source: CompletableFuture> response = fireblocks.externalWallets().getExternalWallet(walletId); - lang: Python source: response = fireblocks.external_wallets.get_external_wallet(wallet_id); - x-accepts: application/json + x-accepts: + - application/json /external_wallets/{walletId}/set_customer_ref_id: post: description: Sets an AML/KYT customer reference ID for the specific external @@ -8201,23 +7617,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetCustomerRefIdRequest' + $ref: "#/components/schemas/SetCustomerRefIdRequest" required: true responses: "201": description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set an AML customer reference ID for an external wallet tags: - External wallets @@ -8253,7 +7662,8 @@ paths: 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 + x-accepts: + - application/json /external_wallets/{walletId}/{assetId}: delete: description: Deletes an external wallet asset by ID. @@ -8281,16 +7691,9 @@ paths: description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete an asset from an external wallet tags: - External wallets @@ -8324,7 +7727,8 @@ paths: - lang: Python source: "response = fireblocks.external_wallets.remove_asset_from_external_wallet(wallet_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json get: description: Returns an external wallet by wallet ID and asset ID. operationId: getExternalWalletAsset @@ -8351,20 +7755,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalWalletAsset' + $ref: "#/components/schemas/ExternalWalletAsset" description: A Wallet Asset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get an asset from an external wallet tags: - External wallets @@ -8401,7 +7798,8 @@ paths: - lang: Python source: "response = fireblocks.external_wallets.get_external_wallet_asset(wallet_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json post: description: Adds an asset to an existing external wallet. operationId: addAssetToExternalWallet @@ -8438,26 +7836,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddAssetToExternalWalletRequest' + $ref: "#/components/schemas/AddAssetToExternalWalletRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ExternalWalletAsset' + $ref: "#/components/schemas/ExternalWalletAsset" description: A Wallet Asset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add an asset to an external wallet. tags: - External wallets @@ -8495,7 +7886,8 @@ paths: 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 + x-accepts: + - application/json /contracts: get: description: Gets a list of contracts. @@ -8505,20 +7897,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetContractsResponse' + $ref: "#/components/schemas/GetContractsResponse" description: A list of contracts headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List contracts tags: - Contracts @@ -8543,7 +7928,8 @@ paths: source: CompletableFuture>> response = fireblocks.contracts().getContracts(); - lang: Python source: response = fireblocks.contracts.get_contracts(); - x-accepts: application/json + x-accepts: + - application/json post: description: Creates a new contract. operationId: createContract @@ -8563,26 +7949,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateContractRequest' + $ref: "#/components/schemas/CreateContractRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" description: A Wallet object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a contract tags: - Contracts @@ -8610,7 +7989,8 @@ paths: source: "response = fireblocks.contracts.create_contract(create_contract_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /contracts/{contractId}: delete: description: Deletes a contract by ID. @@ -8629,16 +8009,9 @@ paths: description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete a contract tags: - Contracts @@ -8661,7 +8034,8 @@ paths: source: CompletableFuture> response = fireblocks.contracts().deleteContract(contractId); - lang: Python source: response = fireblocks.contracts.delete_contract(contract_id); - x-accepts: application/json + x-accepts: + - application/json get: description: Returns a contract by ID. operationId: getContract @@ -8679,20 +8053,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" description: A Wallet object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a specific contract tags: - Contracts @@ -8715,7 +8082,8 @@ paths: source: CompletableFuture> response = fireblocks.contracts().getContract(contractId); - lang: Python source: response = fireblocks.contracts.get_contract(contract_id); - x-accepts: application/json + x-accepts: + - application/json /contracts/{contractId}/{assetId}: delete: description: Deletes a contract asset by ID. @@ -8743,16 +8111,9 @@ paths: description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete a contract asset tags: - Contracts @@ -8779,7 +8140,8 @@ paths: - lang: Python source: "response = fireblocks.contracts.delete_contract_asset(contract_id,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json get: description: Returns a contract asset by ID. operationId: getContractAsset @@ -8806,20 +8168,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalWalletAsset' + $ref: "#/components/schemas/ExternalWalletAsset" description: A Wallet Asset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a contract asset tags: - Contracts @@ -8846,7 +8201,8 @@ paths: \ assetId);" - lang: Python source: "response = fireblocks.contracts.get_contract_asset(contract_id, asset_id);" - x-accepts: application/json + x-accepts: + - application/json post: description: Adds an asset to an existing contract. operationId: addContractAsset @@ -8883,26 +8239,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddContractAssetRequest' + $ref: "#/components/schemas/AddContractAssetRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ExternalWalletAsset' + $ref: "#/components/schemas/ExternalWalletAsset" description: A Wallet Asset object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add an asset to a contract tags: - Contracts @@ -8932,7 +8281,8 @@ paths: 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 + x-accepts: + - application/json /supported_assets: get: description: | @@ -8948,20 +8298,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetSupportedAssetsResponse' + $ref: "#/components/schemas/GetSupportedAssetsResponse" description: A Transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List all asset types supported by Fireblocks - legacy endpoint tags: - Blockchains & assets @@ -8994,7 +8337,8 @@ paths: fireblocks.blockchainsAssets().getSupportedAssets(); - lang: Python source: response = fireblocks.blockchains_&_assets.get_supported_assets(); - x-accepts: application/json + x-accepts: + - application/json /assets: get: description: | @@ -9019,7 +8363,7 @@ paths: name: assetClass required: false schema: - $ref: '#/components/schemas/AssetClass' + $ref: "#/components/schemas/AssetClass" style: form - description: Assets onchain symbol example: ETH @@ -9037,7 +8381,7 @@ paths: name: scope required: false schema: - $ref: '#/components/schemas/AssetScope' + $ref: "#/components/schemas/AssetScope" style: form - description: Are assets deprecated example: false @@ -9099,23 +8443,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListAssetsResponse' + $ref: "#/components/schemas/ListAssetsResponse" description: List of assets "500": content: application/json: schema: - $ref: '#/components/schemas/AssetInternalServerErrorResponse' + $ref: "#/components/schemas/AssetInternalServerErrorResponse" description: Error occurred while listing assets default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List assets tags: - Blockchains & assets @@ -9151,7 +8488,8 @@ paths: - 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 + x-accepts: + - application/json post: description: | Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: @@ -9178,19 +8516,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RegisterNewAssetRequest' + $ref: "#/components/schemas/RegisterNewAssetRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AssetResponse' + $ref: "#/components/schemas/AssetResponse" description: A new asset has been created successfully "400": content: application/json: schema: - $ref: '#/components/schemas/AssetBadRequestErrorResponse' + $ref: "#/components/schemas/AssetBadRequestErrorResponse" description: | - Listing an asset on the requested blockchain is not supported. Error code: 1000 @@ -9207,7 +8545,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AssetForbiddenErrorResponse' + $ref: "#/components/schemas/AssetForbiddenErrorResponse" description: | - The asset creation quota reached. Error code: 1005 @@ -9218,14 +8556,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TokenInfoNotFoundErrorResponse' + $ref: "#/components/schemas/TokenInfoNotFoundErrorResponse" description: | - Invalid address, could not get asset information. Error code 1003 "409": content: application/json: schema: - $ref: '#/components/schemas/AssetConflictErrorResponse' + $ref: "#/components/schemas/AssetConflictErrorResponse" description: | - The asset is already supported globally. Error code: 1001 @@ -9234,17 +8572,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AssetInternalServerErrorResponse' + $ref: "#/components/schemas/AssetInternalServerErrorResponse" description: Failed to create asset default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Register an asset tags: - Blockchains & assets @@ -9280,7 +8611,8 @@ paths: source: "response = fireblocks.blockchains_&_assets.register_new_asset(register_new_asset_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /assets/{id}: get: description: | @@ -9317,33 +8649,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" description: Asset with requested identification headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "404": content: application/json: schema: - $ref: '#/components/schemas/AssetNotFoundErrorResponse' + $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' + $ref: "#/components/schemas/AssetInternalServerErrorResponse" description: Error occurred while getting an asset default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get an asset tags: - Blockchains & assets @@ -9374,7 +8699,8 @@ paths: \ idempotencyKey);" - lang: Python source: "response = fireblocks.blockchains_&_assets.get_asset(id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json patch: description: |- Update the user’s metadata for an asset. @@ -9407,39 +8733,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateAssetUserMetadataRequest' + $ref: "#/components/schemas/UpdateAssetUserMetadataRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" description: Updated asset user metadata headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "404": content: application/json: schema: - $ref: '#/components/schemas/AssetNotFoundErrorResponse' + $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' + $ref: "#/components/schemas/AssetInternalServerErrorResponse" description: Error occurred while updating asset user metadata default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update the user’s metadata for an asset tags: - Blockchains & assets @@ -9473,7 +8792,8 @@ paths: 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 + x-accepts: + - application/json /assets/prices/{id}: post: description: | @@ -9504,37 +8824,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetAssetPriceRequest' + $ref: "#/components/schemas/SetAssetPriceRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AssetPriceResponse' + $ref: "#/components/schemas/AssetPriceResponse" description: Asset price has been set successfully. "403": content: application/json: schema: - $ref: '#/components/schemas/AssetPriceForbiddenErrorResponse' + $ref: "#/components/schemas/AssetPriceForbiddenErrorResponse" description: | - Tenant is not allowed to set rate. Error code: 1002. "404": content: application/json: schema: - $ref: '#/components/schemas/AssetPriceNotFoundErrorResponse' + $ref: "#/components/schemas/AssetPriceNotFoundErrorResponse" description: | - Currency not found. Error code 1001 default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set asset price tags: - Blockchains & assets @@ -9571,7 +8884,8 @@ paths: source: "response = fireblocks.blockchains_&_assets.set_asset_price(id, set_asset_price_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /blockchains: get: description: | @@ -9645,23 +8959,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListBlockchainsResponse' + $ref: "#/components/schemas/ListBlockchainsResponse" description: List of supported blockchains "500": content: application/json: schema: - $ref: '#/components/schemas/AssetInternalServerErrorResponse' + $ref: "#/components/schemas/AssetInternalServerErrorResponse" description: Error occurred while listing blockchains default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List blockchains tags: - Blockchains & assets @@ -9698,7 +9005,8 @@ paths: - lang: Python source: "response = fireblocks.blockchains_&_assets.list_blockchains(protocol,\ \ deprecated, test, ids, page_cursor, page_size);" - x-accepts: application/json + x-accepts: + - application/json /blockchains/{id}: get: description: | @@ -9719,33 +9027,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BlockchainResponse' + $ref: "#/components/schemas/BlockchainResponse" description: Blockchain with requested identification headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "404": content: application/json: schema: - $ref: '#/components/schemas/BlockchainNotFoundErrorResponse' + $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' + $ref: "#/components/schemas/AssetInternalServerErrorResponse" description: Error occurred while getting an blockchain default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get an blockchain tags: - Blockchains & assets @@ -9776,7 +9077,8 @@ paths: source: CompletableFuture> response = fireblocks.blockchainsAssets().getBlockchain(id); - lang: Python source: response = fireblocks.blockchains_&_assets.get_blockchain(id); - x-accepts: application/json + x-accepts: + - application/json /transactions: get: description: Lists the transaction history for your workspace. @@ -9938,24 +9240,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetTransactionsResponse' + $ref: "#/components/schemas/GetTransactionsResponse" description: A list of transactions headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" next-page: - $ref: '#/components/headers/next-page' + $ref: "#/components/headers/next-page" prev-page: - $ref: '#/components/headers/prev-page' + $ref: "#/components/headers/prev-page" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List transaction history tags: - Transactions @@ -9999,7 +9294,8 @@ paths: 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 + x-accepts: + - application/json post: description: Creates a new transaction. operationId: createTransaction @@ -10029,26 +9325,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TransactionRequest' + $ref: "#/components/schemas/TransactionRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateTransactionResponse' + $ref: "#/components/schemas/CreateTransactionResponse" description: A transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a new transaction tags: - Transactions @@ -10057,11 +9346,11 @@ paths: 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) ) + 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) - 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" }; const result = await fireblocks.createTransaction(payload); + 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); name: Fireblocks SDK Javascript example - language: typescript code: "const response: Promise>\ @@ -10088,7 +9377,8 @@ paths: source: "response = fireblocks.transactions.create_transaction(transaction_request,\ \ x_end_user_wallet_id, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /transactions/estimate_fee: post: description: |- @@ -10111,26 +9401,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TransactionRequest' + $ref: "#/components/schemas/TransactionRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/EstimatedTransactionFeeResponse' + $ref: "#/components/schemas/EstimatedTransactionFeeResponse" description: Estimated fees response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Estimate transaction fee tags: - Transactions @@ -10170,7 +9453,8 @@ paths: source: "response = fireblocks.transactions.estimate_transaction_fee(transaction_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /transactions/{txId}: get: description: Returns a transaction by ID. @@ -10190,29 +9474,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TransactionResponse' + $ref: "#/components/schemas/TransactionResponse" description: An Transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a specific transaction by Fireblocks transaction ID tags: - Transactions @@ -10243,7 +9513,8 @@ paths: source: CompletableFuture> response = fireblocks.transactions().getTransaction(txId); - lang: Python source: response = fireblocks.transactions.get_transaction(tx_id); - x-accepts: application/json + x-accepts: + - application/json /transactions/external_tx_id/{externalTxId}: get: description: Returns transaction by external transaction ID. @@ -10263,20 +9534,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TransactionResponse' + $ref: "#/components/schemas/TransactionResponse" description: An Transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a specific transaction by external transaction ID tags: - Transactions @@ -10307,7 +9571,8 @@ paths: 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 + x-accepts: + - application/json /transactions/{txId}/set_confirmation_threshold: post: description: Overrides the required number of confirmations for transaction @@ -10337,26 +9602,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetConfirmationsThresholdRequest' + $ref: "#/components/schemas/SetConfirmationsThresholdRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetConfirmationsThresholdResponse' + $ref: "#/components/schemas/SetConfirmationsThresholdResponse" description: Set successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set confirmation threshold by transaction ID tags: - Transactions @@ -10394,7 +9652,8 @@ paths: 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 + x-accepts: + - application/json /transactions/{txId}/drop: post: description: Drops a stuck ETH transaction and creates a replacement transaction. @@ -10433,26 +9692,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DropTransactionRequest' + $ref: "#/components/schemas/DropTransactionRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DropTransactionResponse' + $ref: "#/components/schemas/DropTransactionResponse" description: Operation completed successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Drop ETH transaction by ID tags: - Transactions @@ -10490,7 +9742,8 @@ paths: 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 + x-accepts: + - application/json /transactions/{txId}/cancel: post: description: Cancels a transaction by ID. @@ -10530,20 +9783,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CancelTransactionResponse' + $ref: "#/components/schemas/CancelTransactionResponse" description: An Transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Cancel a transaction tags: - Transactions @@ -10580,7 +9826,8 @@ paths: - lang: Python source: "response = fireblocks.transactions.cancel_transaction(tx_id, x_end_user_wallet_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /transactions/{txId}/freeze: post: description: Freezes a transaction by ID. @@ -10620,11 +9867,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FreezeTransactionResponse' + $ref: "#/components/schemas/FreezeTransactionResponse" description: freeze response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Freeze a transaction tags: - Transactions @@ -10661,7 +9908,8 @@ paths: - lang: Python source: "response = fireblocks.transactions.freeze_transaction(tx_id, x_end_user_wallet_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /transactions/{txId}/unfreeze: post: description: Unfreezes a transaction by ID and makes the transaction available @@ -10702,11 +9950,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnfreezeTransactionResponse' + $ref: "#/components/schemas/UnfreezeTransactionResponse" description: Unfreeze response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Unfreeze a transaction tags: - Transactions @@ -10743,7 +9991,8 @@ paths: - lang: Python source: "response = fireblocks.transactions.unfreeze_transaction(tx_id, x_end_user_wallet_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /transactions/validate_address/{assetId}/{address}: get: description: "Checks if an address is valid (for XRP, DOT, XLM, and EOS)." @@ -10771,20 +10020,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ValidateAddressResponse' + $ref: "#/components/schemas/ValidateAddressResponse" description: An Transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Validate destination address tags: - Transactions @@ -10817,7 +10059,8 @@ paths: \ = fireblocks.transactions().validateAddress(assetId, address);" - lang: Python source: "response = fireblocks.transactions.validate_address(asset_id, address);" - x-accepts: application/json + x-accepts: + - application/json /transactions/rescan: post: description: | @@ -10842,27 +10085,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RescanTransactionRequest' + $ref: "#/components/schemas/RescanTransactionRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ValidatedTransactionsForRescanResponse' + $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/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: rescan array of transactions tags: - Transactions @@ -10894,7 +10130,8 @@ paths: source: "response = fireblocks.transactions.rescan_transactions_beta(rescan_transaction,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /txHash/{txHash}/set_confirmation_threshold: post: description: Overrides the required number of confirmations for transaction @@ -10924,26 +10161,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetConfirmationsThresholdRequest' + $ref: "#/components/schemas/SetConfirmationsThresholdRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetConfirmationsThresholdResponse' + $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/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Set confirmation threshold by transaction hash tags: - Transactions @@ -10981,7 +10211,8 @@ paths: 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 + x-accepts: + - application/json /estimate_network_fee: get: description: "Gets the estimated required fee for an asset. For UTXO based assets,\ @@ -11003,20 +10234,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EstimatedNetworkFeeResponse' + $ref: "#/components/schemas/EstimatedNetworkFeeResponse" description: Estimated fees response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Estimate the required fee for an asset tags: - Transactions @@ -11049,7 +10273,8 @@ paths: = fireblocks.transactions().estimateNetworkFee(assetId); - lang: Python source: response = fireblocks.transactions.estimate_network_fee(asset_id); - x-accepts: application/json + x-accepts: + - application/json /payments/payout: post: description: | @@ -11097,7 +10322,7 @@ paths: amount: "4423" assetId: USDC schema: - $ref: '#/components/schemas/CreatePayoutRequest' + $ref: "#/components/schemas/CreatePayoutRequest" responses: "200": content: @@ -11133,7 +10358,7 @@ paths: state: NOT_STARTED transactions: [] schema: - $ref: '#/components/schemas/PayoutResponse' + $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. @@ -11141,20 +10366,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Bad request "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. summary: Create a payout instruction set tags: @@ -11183,7 +10408,8 @@ paths: source: "response = fireblocks.payments_payout.create_payout(create_payout_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /payments/payout/{payoutId}/actions/execute: post: description: | @@ -11225,26 +10451,26 @@ paths: example: payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 schema: - $ref: '#/components/schemas/DispatchPayoutResponse' + $ref: "#/components/schemas/DispatchPayoutResponse" description: Executed the payout instruction set "400": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Bad request "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. summary: Execute a payout instruction set tags: @@ -11274,7 +10500,8 @@ paths: - lang: Python source: "response = fireblocks.payments_payout.execute_payout_action(payout_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /payments/payout/{payoutId}: get: description: | @@ -11335,7 +10562,7 @@ paths: timestamp: 1645367449 reportUrl: https://some-url.com/reports/cc5777c1-75a9-4337-aebd-f1f5a40a9391 schema: - $ref: '#/components/schemas/PayoutResponse' + $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." @@ -11343,20 +10570,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: No payout with the given payout ID exists. "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. summary: Get the status of a payout instruction set tags: @@ -11380,7 +10607,8 @@ paths: source: CompletableFuture> response = fireblocks.paymentsPayout().getPayout(payoutId); - lang: Python source: response = fireblocks.payments_payout.get_payout(payout_id); - x-accepts: application/json + x-accepts: + - application/json /payments/workflow_config: post: description: "Generate a new configuration ID to be used for initiating executions\ @@ -11405,26 +10633,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateWorkflowConfigurationRequest' + $ref: "#/components/schemas/CreateWorkflowConfigurationRequest" responses: "202": content: application/json: schema: - $ref: '#/components/schemas/WorkflowConfiguration' + $ref: "#/components/schemas/WorkflowConfiguration" description: Configuration is being generated "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Not found summary: Create payment flow configuration tags: @@ -11432,7 +10660,8 @@ paths: x-internal: true x-rate-limit-category: write x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /payments/workflow_config/{configId}: delete: description: Delete a configuration using the specified "configId". @@ -11450,27 +10679,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WorkflowConfigurationId' + $ref: "#/components/schemas/WorkflowConfigurationId" description: The specified configuration has been deleted successfully. "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Not found summary: Delete workflow configuration tags: - Payments - Flows x-internal: true x-rate-limit-category: write - x-accepts: application/json + x-accepts: + - application/json get: description: Retrieve a previously created workflow configuration using the specified "configId". @@ -11488,27 +10718,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WorkflowConfiguration' + $ref: "#/components/schemas/WorkflowConfiguration" description: Returns a workflow configuration "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Not found summary: Retrieve workflow configuration tags: - Payments - Flows x-internal: true x-rate-limit-category: read - x-accepts: application/json + x-accepts: + - application/json /payments/workflow_execution: post: description: "Validate the \"workflow-config\" previously created by utilizing\ @@ -11536,26 +10767,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateWorkflowExecutionRequest' + $ref: "#/components/schemas/CreateWorkflowExecutionRequest" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/WorkflowExecution' + $ref: "#/components/schemas/WorkflowExecution" description: Workflow execution entity has been created successfully. "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Not found summary: Create workflow execution tags: @@ -11563,7 +10794,8 @@ paths: x-internal: true x-rate-limit-category: write x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /payments/workflow_execution/{workflowExecutionId}: get: description: Retrieve details of a previously initiated workflow execution by @@ -11582,27 +10814,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WorkflowExecution' + $ref: "#/components/schemas/WorkflowExecution" description: Returns workflow execution by id with preview info "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $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 + x-accepts: + - application/json /payments/workflow_execution/{workflowExecutionId}/actions/execute: post: description: "Launch the execution of a pre-configured workflow, identified\ @@ -11635,27 +10868,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WorkflowExecution' + $ref: "#/components/schemas/WorkflowExecution" description: Workflow execution has been executed "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. "404": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $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 + x-accepts: + - application/json /gas_station: get: description: Returns gas station settings and ETH balance. @@ -11665,20 +10899,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GasStationPropertiesResponse' + $ref: "#/components/schemas/GasStationPropertiesResponse" description: Gas Station properties headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get gas station settings tags: - Gas stations @@ -11711,7 +10938,8 @@ paths: = fireblocks.gasStations().getGasStationInfo(); - lang: Python source: response = fireblocks.gas_stations.get_gas_station_info(); - x-accepts: application/json + x-accepts: + - application/json /gas_station/{assetId}: get: description: Returns gas station settings and balances for a requested asset. @@ -11731,20 +10959,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GasStationPropertiesResponse' + $ref: "#/components/schemas/GasStationPropertiesResponse" description: Gas Station properties headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get gas station settings by asset tags: - Gas stations @@ -11777,7 +10998,8 @@ paths: = fireblocks.gasStations().getGasStationByAssetId(assetId); - lang: Python source: response = fireblocks.gas_stations.get_gas_station_by_asset_id(asset_id); - x-accepts: application/json + x-accepts: + - application/json /gas_station/configuration: put: description: Configures gas station settings for ETH. @@ -11798,27 +11020,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GasStationConfiguration' + $ref: "#/components/schemas/GasStationConfiguration" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/EditGasStationConfigurationResponse' + $ref: "#/components/schemas/EditGasStationConfigurationResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Edit gas station settings tags: - Gas stations @@ -11858,7 +11073,8 @@ paths: source: "response = fireblocks.gas_stations.update_gas_station_configuration(gas_station_configuration,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /gas_station/configuration/{assetId}: put: description: Configures gas station settings for a requested asset. @@ -11888,27 +11104,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GasStationConfiguration' + $ref: "#/components/schemas/GasStationConfiguration" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/EditGasStationConfigurationResponse' + $ref: "#/components/schemas/EditGasStationConfigurationResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Edit gas station settings for an asset tags: - Gas stations @@ -11940,7 +11149,8 @@ paths: 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 + x-accepts: + - application/json /management/user_groups: get: description: | @@ -11955,20 +11165,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserGroupsResponse' + $ref: "#/components/schemas/UserGroupsResponse" description: List of the user groups in your workspace headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List user groups tags: - User groups (Beta) @@ -11995,7 +11198,8 @@ paths: fireblocks.userGroupsBeta().getUserGroups(); - lang: Python source: response = fireblocks.user_groups_beta.get_user_groups(); - x-accepts: application/json + x-accepts: + - application/json post: description: | Create a new user group.
@@ -12020,27 +11224,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserGroupCreateRequest' + $ref: "#/components/schemas/UserGroupCreateRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/CreateUserGroupResponse' + $ref: "#/components/schemas/CreateUserGroupResponse" description: User group created and pending approval headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create user group tags: - User groups (Beta) @@ -12072,7 +11269,8 @@ paths: source: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /management/user_groups/{groupId}: delete: description: | @@ -12096,16 +11294,9 @@ paths: description: Request to delete user group submitted for approval headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete user group tags: - User groups (Beta) @@ -12128,7 +11319,8 @@ paths: source: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); - lang: Python source: response = fireblocks.user_groups_beta.delete_user_group(group_id); - x-accepts: application/json + x-accepts: + - application/json get: description: | Get a user group by ID.
@@ -12151,20 +11343,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserGroupResponse' + $ref: "#/components/schemas/UserGroupResponse" description: User group headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get user group tags: - User groups (Beta) @@ -12189,7 +11374,8 @@ paths: source: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); - lang: Python source: response = fireblocks.user_groups_beta.get_user_group(group_id); - x-accepts: application/json + x-accepts: + - application/json put: description: | Update a user group by ID.
@@ -12222,27 +11408,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserGroupUpdateRequest' + $ref: "#/components/schemas/UserGroupUpdateRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UserGroupCreateResponse' + $ref: "#/components/schemas/UserGroupCreateResponse" description: User group updated and the changes are pending approval headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update user group tags: - User groups (Beta) @@ -12274,7 +11453,8 @@ paths: 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 + x-accepts: + - application/json /users: get: description: | @@ -12287,20 +11467,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetUsersResponse' + $ref: "#/components/schemas/GetUsersResponse" description: List of users headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List users tags: - Users @@ -12329,7 +11502,8 @@ paths: source: CompletableFuture>> response = fireblocks.users().getUsers(); - lang: Python source: response = fireblocks.users.get_users(); - x-accepts: application/json + x-accepts: + - application/json /management/audit_logs: get: description: Get all audits @@ -12359,20 +11533,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetAuditLogsResponse' + $ref: "#/components/schemas/GetAuditLogsResponse" description: Audit logs from requested time period headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get audit logs tags: - Audit Logs @@ -12399,7 +11566,8 @@ paths: \ cursor);" - lang: Python source: "response = fireblocks.audit_logs.get_audit_logs(time_period, cursor);" - x-accepts: application/json + x-accepts: + - application/json /off_exchange/add: post: description: "add collateral, create deposit request" @@ -12420,23 +11588,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddCollateralRequestBody' + $ref: "#/components/schemas/AddCollateralRequestBody" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateTransactionResponse' + $ref: "#/components/schemas/CreateTransactionResponse" description: A transaction object default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: add collateral tags: - Off exchanges @@ -12467,7 +11628,8 @@ paths: source: "response = fireblocks.off_exchanges.add_off_exchange(add_collateral_request_body,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /off_exchange/remove: post: description: "remove collateral, create withdraw request" @@ -12488,23 +11650,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoveCollateralRequestBody' + $ref: "#/components/schemas/RemoveCollateralRequestBody" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateTransactionResponse' + $ref: "#/components/schemas/CreateTransactionResponse" description: A transaction object default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: remove collateral tags: - Off exchanges @@ -12536,7 +11691,8 @@ paths: source: "response = fireblocks.off_exchanges.remove_off_exchange(remove_collateral_request_body,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /off_exchange/settlements/trader: post: description: create settlement for a trader @@ -12557,23 +11713,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SettlementRequestBody' + $ref: "#/components/schemas/SettlementRequestBody" responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SettlementResponse' + $ref: "#/components/schemas/SettlementResponse" description: A settlement object default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: create settlement for a trader tags: - Off exchanges @@ -12603,7 +11752,8 @@ paths: source: "response = fireblocks.off_exchanges.settle_off_exchange_trades(settlement_request_body,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /off_exchange/settlements/transactions: get: description: get settlements transactions from exchange @@ -12621,17 +11771,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExchangeSettlementTransactionsResponse' + $ref: "#/components/schemas/ExchangeSettlementTransactionsResponse" description: A settlement transactions default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: get settlements transactions from exchange tags: - Off exchanges @@ -12656,7 +11799,8 @@ paths: 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 + x-accepts: + - application/json /off_exchange/collateral_accounts/{mainExchangeAccountId}: get: description: Returns a collateral account by mainExchangeAccountId. @@ -12676,20 +11820,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExchangeAccount' + $ref: "#/components/schemas/ExchangeAccount" description: An ExchangeAccount object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Find a specific collateral exchange account tags: - Off exchanges @@ -12712,7 +11849,8 @@ paths: 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 + x-accepts: + - application/json /webhooks/resend: post: description: Resends all failed webhook notifications. @@ -12734,20 +11872,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResendWebhooksResponse' + $ref: "#/components/schemas/ResendWebhooksResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Resend failed webhooks tags: - Webhooks @@ -12780,7 +11911,8 @@ paths: fireblocks.webhooks().resendWebhooks(idempotencyKey); - lang: Python source: response = fireblocks.webhooks.resend_webhooks(idempotency_key); - x-accepts: application/json + x-accepts: + - application/json /webhooks/resend/{txId}: post: description: Resends failed webhook notifications for a transaction by ID. @@ -12809,27 +11941,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResendTransactionWebhooksRequest' + $ref: "#/components/schemas/ResendTransactionWebhooksRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ResendWebhooksByTransactionIdResponse' + $ref: "#/components/schemas/ResendWebhooksByTransactionIdResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Resend failed webhooks for a transaction by ID tags: - Webhooks @@ -12869,7 +11994,8 @@ paths: source: "response = fireblocks.webhooks.resend_transaction_webhooks(resend_transaction_webhooks_request,\ \ tx_id, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /webhooks: get: description: | @@ -12914,20 +12040,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebhookPaginatedResponse' + $ref: "#/components/schemas/WebhookPaginatedResponse" description: A paginated response containing WebhookDto objects headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get all webhooks tags: - Webhooks V2 @@ -12956,7 +12075,8 @@ paths: - lang: Python source: "response = fireblocks.webhooks_v2.get_webhooks(order, page_cursor,\ \ page_size);" - x-accepts: application/json + x-accepts: + - application/json post: description: | Creates a new webhook, which will be triggered on the specified events @@ -12979,27 +12099,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateWebhookRequest' + $ref: "#/components/schemas/CreateWebhookRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: "#/components/schemas/Webhook" description: created new webhook successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create new webhook tags: - Webhooks V2 @@ -13027,7 +12140,8 @@ paths: source: "response = fireblocks.webhooks_v2.create_webhook(create_webhook_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /webhooks/{webhookId}: delete: description: | @@ -13051,20 +12165,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: "#/components/schemas/Webhook" description: Deleted webhook object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete webhook tags: - Webhooks V2 @@ -13087,7 +12194,8 @@ paths: source: CompletableFuture> response = fireblocks.webhooksV2().deleteWebhook(webhookId); - lang: Python source: response = fireblocks.webhooks_v2.delete_webhook(webhook_id); - x-accepts: application/json + x-accepts: + - application/json get: description: | Retrieve a webhook by its id @@ -13108,20 +12216,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: "#/components/schemas/Webhook" description: A webhook object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get webhook by id tags: - Webhooks V2 @@ -13144,7 +12245,8 @@ paths: source: CompletableFuture> response = fireblocks.webhooksV2().getWebhook(webhookId); - lang: Python source: response = fireblocks.webhooks_v2.get_webhook(webhook_id); - x-accepts: application/json + x-accepts: + - application/json patch: description: | Update a webhook by its id @@ -13166,27 +12268,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateWebhookRequest' + $ref: "#/components/schemas/UpdateWebhookRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: "#/components/schemas/Webhook" description: Updated webhook object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update webhook tags: - Webhooks V2 @@ -13214,7 +12309,8 @@ paths: source: "response = fireblocks.webhooks_v2.update_webhook(update_webhook_request,\ \ webhook_id);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /webhooks/{webhookId}/notifications: get: description: | @@ -13280,25 +12376,67 @@ paths: 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) + explode: true + in: query + name: startTime + 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) + explode: true + in: query + name: endTime + 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 + explode: true + in: query + name: resourceId + required: false + schema: + example: 44fcead0-7053-4831-a53a-df7fb90d440f + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/NotificationPaginatedResponse' + $ref: "#/components/schemas/NotificationPaginatedResponse" description: A paginated response containing NotificationExternalDTO objects headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get all notifications by webhook id tags: - Webhooks V2 @@ -13312,11 +12450,12 @@ paths: - language: java code: "CompletableFuture> response\ \ = fireblocks.webhooksV2().getNotifications(webhookId, order, sortBy,\ - \ pageCursor, pageSize);" + \ pageCursor, pageSize, startTime, endTime, statuses, events, resourceId);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.webhooks_v2.get_notifications(webhook_id, order,\ - \ sort_by, page_cursor, page_size);" + \ sort_by, page_cursor, page_size, start_time, end_time, statuses, events,\ + \ resource_id);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript @@ -13325,11 +12464,13 @@ paths: - lang: Java source: "CompletableFuture> response\ \ = fireblocks.webhooksV2().getNotifications(webhookId, order, sortBy, pageCursor,\ - \ pageSize);" + \ pageSize, startTime, endTime, statuses, events, resourceId);" - lang: Python source: "response = fireblocks.webhooks_v2.get_notifications(webhook_id, order,\ - \ sort_by, page_cursor, page_size);" - x-accepts: application/json + \ sort_by, page_cursor, page_size, start_time, end_time, statuses, events,\ + \ resource_id);" + x-accepts: + - application/json /webhooks/{webhookId}/notifications/{notificationId}: get: description: | @@ -13365,20 +12506,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationWithData' + $ref: "#/components/schemas/NotificationWithData" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get notification by id tags: - Webhooks V2 @@ -13407,7 +12541,8 @@ paths: - lang: Python source: "response = fireblocks.webhooks_v2.get_notification(webhook_id, notification_id,\ \ include_data);" - x-accepts: application/json + x-accepts: + - application/json /webhooks/{webhookId}/notifications/{notificationId}/attempts: get: description: | @@ -13455,20 +12590,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationAttemptsPaginatedResponse' + $ref: "#/components/schemas/NotificationAttemptsPaginatedResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get notification attempts tags: - Webhooks V2 @@ -13499,7 +12627,8 @@ paths: - lang: Python source: "response = fireblocks.webhooks_v2.get_notification_attempts(webhook_id,\ \ notification_id, page_cursor, page_size);" - x-accepts: application/json + x-accepts: + - application/json /webhooks/{webhookId}/notifications/{notificationId}/resend: post: description: | @@ -13540,16 +12669,9 @@ paths: description: Resend notification request was accepted and is being processed headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Resend notification by id tags: - Webhooks V2 @@ -13576,7 +12698,8 @@ paths: - lang: Python source: "response = fireblocks.webhooks_v2.resend_notification_by_id(webhook_id,\ \ notification_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /webhooks/{webhookId}/notifications/resend_by_resource: post: description: | @@ -13608,7 +12731,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResendNotificationsByResourceIdRequest' + $ref: "#/components/schemas/ResendNotificationsByResourceIdRequest" required: true responses: "202": @@ -13616,16 +12739,9 @@ paths: being processed headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Resend notifications by resource Id tags: - Webhooks V2 @@ -13653,7 +12769,8 @@ paths: 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 + x-accepts: + - application/json /webhooks/{webhookId}/notifications/resend_failed: post: description: | @@ -13685,39 +12802,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResendFailedNotificationsRequest' + $ref: "#/components/schemas/ResendFailedNotificationsRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ResendFailedNotificationsResponse' + $ref: "#/components/schemas/ResendFailedNotificationsResponse" description: No failed notifications to resend headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "202": content: application/json: schema: - $ref: '#/components/schemas/ResendFailedNotificationsResponse' + $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' + $ref: "#/components/headers/X-Request-ID" Location: - $ref: '#/components/headers/Location' + $ref: "#/components/headers/Location" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Resend failed notifications tags: - Webhooks V2 @@ -13749,7 +12859,8 @@ paths: 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 + x-accepts: + - application/json /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId}: get: description: | @@ -13777,20 +12888,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResendFailedNotificationsJobStatusResponse' + $ref: "#/components/schemas/ResendFailedNotificationsJobStatusResponse" description: Job status headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get resend job status tags: - Webhooks V2 @@ -13819,7 +12923,8 @@ paths: - lang: Python source: "response = fireblocks.webhooks_v2.get_resend_job_status(webhook_id,\ \ job_id);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/templates: get: description: Return minimal representation of all the contract templates available @@ -13897,17 +13002,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TemplatesPaginatedResponse' + $ref: "#/components/schemas/TemplatesPaginatedResponse" description: List of contract templates was returned successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List all contract templates tags: - Contract Templates @@ -13944,7 +13042,8 @@ paths: - lang: Python source: "response = fireblocks.contract_templates.get_contract_templates(limit,\ \ offset, page_cursor, page_size, type, initialization_phase);" - x-accepts: application/json + x-accepts: + - application/json post: description: Upload a new contract template. This contract template will be available for the workspace @@ -13965,24 +13064,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContractUploadRequest' + $ref: "#/components/schemas/ContractUploadRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/ContractTemplateDto' + $ref: "#/components/schemas/ContractTemplateDto" description: Contract was uploaded successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Upload contract template tags: - Contract Templates @@ -14018,7 +13110,8 @@ paths: source: "response = fireblocks.contract_templates.upload_contract_template(contract_upload_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/templates/{contractTemplateId}: delete: description: "Delete a contract by id. allowed only for private contract templates.\ @@ -14041,17 +13134,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HttpContractDoesNotExistError' + $ref: "#/components/schemas/HttpContractDoesNotExistError" description: Could not find contract. default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete a contract template by id tags: - Contract Templates @@ -14080,7 +13166,8 @@ paths: 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 + x-accepts: + - application/json get: description: Return detailed information about the contract template operationId: getContractTemplateById @@ -14099,23 +13186,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContractTemplateDto' + $ref: "#/components/schemas/ContractTemplateDto" description: Contract template was returned successfully "404": content: application/json: schema: - $ref: '#/components/schemas/HttpContractDoesNotExistError' + $ref: "#/components/schemas/HttpContractDoesNotExistError" description: Could not find contract. default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return contract template by id tags: - Contract Templates @@ -14146,7 +13226,8 @@ paths: 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 + x-accepts: + - application/json /tokenization/templates/{contractTemplateId}/constructor: get: description: Return contract template's constructor ABI @@ -14175,23 +13256,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" description: Contract template's constructor ABI was returned successfully "404": content: application/json: schema: - $ref: '#/components/schemas/HttpContractDoesNotExistError' + $ref: "#/components/schemas/HttpContractDoesNotExistError" description: Could not find contract. default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return contract template's constructor tags: - Contract Templates @@ -14224,7 +13298,8 @@ paths: - lang: Python source: "response = fireblocks.contract_templates.get_constructor_by_contract_template_id(contract_template_id,\ \ with_docs);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/templates/{contractTemplateId}/function: get: description: Return contract template`s function ABI by signature @@ -14251,23 +13326,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" description: Contract template`s function ABI was returned successfully "404": content: application/json: schema: - $ref: '#/components/schemas/HttpContractDoesNotExistError' + $ref: "#/components/schemas/HttpContractDoesNotExistError" description: Could not find contract. default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return contract template's function tags: - Contract Templates @@ -14294,7 +13362,8 @@ paths: - lang: Python source: "response = fireblocks.contract_templates.get_function_abi_by_contract_template_id(contract_template_id,\ \ function_signature);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/templates/{contractTemplateId}/deploy: post: description: "Deploy a new contract by contract template id. If you wish to\ @@ -14325,30 +13394,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContractDeployRequest' + $ref: "#/components/schemas/ContractDeployRequest" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/ContractDeployResponse' + $ref: "#/components/schemas/ContractDeployResponse" description: Contract was deployed successfully "404": content: application/json: schema: - $ref: '#/components/schemas/HttpContractDoesNotExistError' + $ref: "#/components/schemas/HttpContractDoesNotExistError" description: Could not find contract. default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Deploy contract tags: - Contract Templates @@ -14386,7 +13448,8 @@ paths: source: "response = fireblocks.contract_templates.deploy_contract(contract_deploy_request,\ \ contract_template_id, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/contracts: get: description: Return a filtered lean representation of the deployed contracts @@ -14442,17 +13505,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeployedContractsPaginatedResponse' + $ref: "#/components/schemas/DeployedContractsPaginatedResponse" description: Deployed contracts fetched successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List deployed contracts data tags: - Deployed Contracts @@ -14489,7 +13545,8 @@ paths: - lang: Python source: "response = fireblocks.deployed_contracts.get_deployed_contracts(page_cursor,\ \ page_size, contract_address, base_asset_id, contract_template_id);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/contracts/{id}: get: description: Return deployed contract data by id @@ -14509,17 +13566,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeployedContractResponseDto' + $ref: "#/components/schemas/DeployedContractResponseDto" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return deployed contract data by id tags: - Deployed Contracts @@ -14552,7 +13602,8 @@ paths: = fireblocks.deployedContracts().getDeployedContractById(id); - lang: Python source: response = fireblocks.deployed_contracts.get_deployed_contract_by_id(id); - x-accepts: application/json + x-accepts: + - application/json /tokenization/contracts/{assetId}/{contractAddress}: get: description: Return deployed contract data by blockchain native asset id and @@ -14580,17 +13631,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeployedContractResponseDto' + $ref: "#/components/schemas/DeployedContractResponseDto" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return deployed contract data tags: - Deployed Contracts @@ -14629,7 +13673,8 @@ paths: - lang: Python source: "response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address,\ \ asset_id);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/contracts/fetch_abi: post: description: Fetch the ABI. If not found fetch the ABI from the block explorer @@ -14650,26 +13695,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FetchAbiRequestDto' + $ref: "#/components/schemas/FetchAbiRequestDto" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ContractWithAbiDto' + $ref: "#/components/schemas/ContractWithAbiDto" description: Contract ABI found. "404": description: Contract ABI not found default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Fetch the contract ABI tags: - Deployed Contracts @@ -14699,7 +13737,8 @@ paths: source: "response = fireblocks.deployed_contracts.fetch_contract_abi(fetch_abi_request_dto,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/contracts/abi: post: description: Save contract ABI for the tenant @@ -14720,26 +13759,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddAbiRequestDto' + $ref: "#/components/schemas/AddAbiRequestDto" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ContractWithAbiDto' + $ref: "#/components/schemas/ContractWithAbiDto" description: Contract ABI created (or updated) for the tenant "409": description: Contract ABI already exists. default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Save contract ABI tags: - Deployed Contracts @@ -14769,7 +13801,8 @@ paths: 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 + x-accepts: + - application/json /tokenization/tokens: get: description: Return all linked tokens (paginated) @@ -14809,17 +13842,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TokensPaginatedResponse' + $ref: "#/components/schemas/TokensPaginatedResponse" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List all linked tokens tags: - Tokenization @@ -14854,7 +13880,8 @@ paths: - lang: Python source: "response = fireblocks.tokenization.get_linked_tokens(page_cursor,\ \ page_size, status);" - x-accepts: application/json + x-accepts: + - application/json post: description: "Facilitates the creation of a new token, supporting both EVM-based\ \ and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract\ @@ -14879,20 +13906,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateTokenRequestDto' + $ref: "#/components/schemas/CreateTokenRequestDto" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/TokenLinkDto' + $ref: "#/components/schemas/TokenLinkDto" description: Token was created successfully "409": content: application/json: schema: - $ref: '#/components/schemas/AssetAlreadyExistHttpError' + $ref: "#/components/schemas/AssetAlreadyExistHttpError" description: Asset already exists summary: Issue a new token tags: @@ -14927,7 +13954,8 @@ paths: source: "response = fireblocks.tokenization.issue_new_token(create_token_request_dto,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/tokens/link: post: description: Link an a contract @@ -14948,20 +13976,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TokenLinkRequestDto' + $ref: "#/components/schemas/TokenLinkRequestDto" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TokenLinkDto' + $ref: "#/components/schemas/TokenLinkDto" description: Token linked successfully "201": content: application/json: schema: - $ref: '#/components/schemas/TokenLinkDto' + $ref: "#/components/schemas/TokenLinkDto" description: "" "404": description: Could not find the underlying contract to link to @@ -14969,17 +13997,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TokenLinkExistsHttpError' + $ref: "#/components/schemas/TokenLinkExistsHttpError" description: "Token link for {refId} already exists" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Link a contract tags: - Tokenization @@ -15005,7 +14026,8 @@ paths: - lang: Python source: "response = fireblocks.tokenization.link(token_link_request_dto, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/tokens/{id}: delete: description: "Unlink a token. The token will be unlinked from the workspace.\ @@ -15033,17 +14055,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotFoundException' + $ref: "#/components/schemas/NotFoundException" description: Link did not exist default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Unlink a token tags: - Tokenization @@ -15072,7 +14087,8 @@ paths: source: CompletableFuture> response = fireblocks.tokenization().unlink(id); - lang: Python source: response = fireblocks.tokenization.unlink(id); - x-accepts: application/json + x-accepts: + - application/json get: description: "Return a linked token, with its status and metadata." operationId: getLinkedToken @@ -15091,17 +14107,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TokenLinkDto' + $ref: "#/components/schemas/TokenLinkDto" description: Token fetched successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return a linked token tags: - Tokenization @@ -15130,7 +14139,8 @@ paths: source: CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); - lang: Python source: response = fireblocks.tokenization.get_linked_token(id); - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/deterministic_address: post: description: Get a deterministic address for contract deployment. The address @@ -15153,36 +14163,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetDeployableAddressRequest' + $ref: "#/components/schemas/GetDeployableAddressRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeployableAddressResponse' + $ref: "#/components/schemas/DeployableAddressResponse" description: Deterministic address for contract deployment "400": content: application/json: schema: - $ref: '#/components/schemas/InvalidParamaterValueError' + $ref: "#/components/schemas/InvalidParamaterValueError" description: Invalid parameters or template has no bytecode "409": content: application/json: schema: - $ref: '#/components/schemas/AddressNotAvailableError' + $ref: "#/components/schemas/AddressNotAvailableError" description: Address is already taken default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get deterministic address for contract deployment tags: - Tokenization @@ -15234,7 +14237,8 @@ paths: source: "response = fireblocks.tokenization.get_deployable_address(get_deployable_address_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/tokens: post: description: Facilitates the creation of a new token on one or more blockchains. @@ -15255,26 +14259,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateMultichainTokenRequest' + $ref: "#/components/schemas/CreateMultichainTokenRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/IssueTokenMultichainResponse' + $ref: "#/components/schemas/IssueTokenMultichainResponse" description: Tokens were created successfully "400": content: application/json: schema: - $ref: '#/components/schemas/InvalidParamaterValueError' + $ref: "#/components/schemas/InvalidParamaterValueError" description: Invalid input. "409": content: application/json: schema: - $ref: '#/components/schemas/AddressNotAvailableError' + $ref: "#/components/schemas/AddressNotAvailableError" description: Address is already taken. summary: Issue a token on one or more blockchains tags: @@ -15328,7 +14332,8 @@ paths: source: "response = fireblocks.tokenization.issue_token_multi_chain(create_multichain_token_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/reissue/token/{tokenLinkId}: post: description: Reissue a multichain token. This endpoint allows you to reissue @@ -15359,42 +14364,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReissueMultichainTokenRequest' + $ref: "#/components/schemas/ReissueMultichainTokenRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/IssueTokenMultichainResponse' + $ref: "#/components/schemas/IssueTokenMultichainResponse" description: Successfully reissued multichain token "400": content: application/json: schema: - $ref: '#/components/schemas/TokenLinkNotMultichainCompatibleHttpError' + $ref: "#/components/schemas/TokenLinkNotMultichainCompatibleHttpError" description: Invalid input "404": content: application/json: schema: - $ref: '#/components/schemas/DeployedContractNotFoundError' + $ref: "#/components/schemas/DeployedContractNotFoundError" description: Deployed contract not found "409": content: application/json: schema: - $ref: '#/components/schemas/AddressNotAvailableError' + $ref: "#/components/schemas/AddressNotAvailableError" description: Address is already taken default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Reissue a multichain token tags: - Tokenization @@ -15433,7 +14431,8 @@ paths: 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 + x-accepts: + - application/json /tokenization/multichain/bridge/layerzero: delete: description: Remove LayerZero adapters by deactivating and unlinking them. This @@ -15455,56 +14454,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoveLayerZeroAdaptersRequest' + $ref: "#/components/schemas/RemoveLayerZeroAdaptersRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RemoveLayerZeroAdaptersResponse' + $ref: "#/components/schemas/RemoveLayerZeroAdaptersResponse" description: LayerZero adapters removal process completed "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "409": - 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 + $ref: "#/components/responses/TokenLinkProcessingError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Remove LayerZero adapters tags: - Tokenization @@ -15543,7 +14509,8 @@ paths: source: "response = fireblocks.tokenization.deactivate_and_unlink_adapters(remove_layer_zero_adapters_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: 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. @@ -15564,66 +14531,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeployLayerZeroAdaptersRequest' + $ref: "#/components/schemas/DeployLayerZeroAdaptersRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeployLayerZeroAdaptersResponse' + $ref: "#/components/schemas/DeployLayerZeroAdaptersResponse" description: LayerZero adapters deployed successfully "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "409": - 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 + $ref: "#/components/responses/TokenLinkPreparationError" "422": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFungibleError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Deploy LayerZero adapters tags: - Tokenization @@ -15669,7 +14595,8 @@ paths: source: "response = fireblocks.tokenization.deploy_and_link_adapters(deploy_layer_zero_adapters_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/bridge/layerzero/config/peers: delete: description: Remove LayerZero peers to disconnect adapter contracts. This endpoint @@ -15691,56 +14618,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoveLayerZeroPeersRequest' + $ref: "#/components/schemas/RemoveLayerZeroPeersRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RemoveLayerZeroPeersResponse' + $ref: "#/components/schemas/RemoveLayerZeroPeersResponse" description: LayerZero peers removal process completed "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "409": - 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 + $ref: "#/components/responses/TokenLinkProcessingError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Remove LayerZero peers tags: - Tokenization @@ -15781,7 +14675,8 @@ paths: source: "response = fireblocks.tokenization.remove_layer_zero_peers(remove_layer_zero_peers_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: 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.\ @@ -15804,66 +14699,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetLayerZeroPeersRequest' + $ref: "#/components/schemas/SetLayerZeroPeersRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetLayerZeroPeersResponse' + $ref: "#/components/schemas/SetLayerZeroPeersResponse" description: LayerZero peers set successfully "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "409": - 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 + $ref: "#/components/responses/TokenLinkPreparationError" "422": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFungibleError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Set LayerZero peers tags: - Tokenization @@ -15904,7 +14758,8 @@ paths: source: "response = fireblocks.tokenization.set_layer_zero_peers(set_layer_zero_peers_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers: get: description: Retrieve the LayerZero peers configured for a specific adapter. @@ -15926,39 +14781,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetLayerZeroPeersResponse' + $ref: "#/components/schemas/GetLayerZeroPeersResponse" description: LayerZero peers retrieved successfully "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Get LayerZero peers tags: - Tokenization @@ -15989,7 +14819,8 @@ paths: = fireblocks.tokenization().getLayerZeroPeers(adapterTokenLinkId); - lang: Python source: response = fireblocks.tokenization.get_layer_zero_peers(adapter_token_link_id); - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/bridge/layerzero/config/dvns: post: description: Configure DVN settings for LayerZero adapters. This endpoint sets @@ -16012,66 +14843,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetLayerZeroDvnConfigRequest' + $ref: "#/components/schemas/SetLayerZeroDvnConfigRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SetLayerZeroDvnConfigResponse' + $ref: "#/components/schemas/SetLayerZeroDvnConfigResponse" description: LayerZero DVN configuration set successfully "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "409": - 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 + $ref: "#/components/responses/TokenLinkPreparationError" "422": - 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 + $ref: "#/components/responses/BridgingProtocolBlockchainMetadataNotFoundError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Set LayerZero DVN configuration tags: - Tokenization @@ -16120,7 +14910,8 @@ paths: 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 + x-accepts: + - application/json /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns: get: description: Retrieve the DVN (Data Verification Network) configuration for @@ -16153,39 +14944,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetLayerZeroDvnConfigResponse' + $ref: "#/components/schemas/GetLayerZeroDvnConfigResponse" description: LayerZero DVN configuration retrieved successfully "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Get LayerZero DVN configuration tags: - Tokenization @@ -16222,7 +14988,8 @@ paths: - lang: Python source: "response = fireblocks.tokenization.get_layer_zero_dvn_config(adapter_token_link_id,\ \ peer_adapter_token_link_id);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/multichain/bridge/layerzero/validate: get: description: Validate the LayerZero channel configuration between adapters. @@ -16255,49 +15022,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ValidateLayerZeroChannelResponse' + $ref: "#/components/schemas/ValidateLayerZeroChannelResponse" description: LayerZero channel configuration validation completed "400": - 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" + $ref: "#/components/responses/BadRequestError" "404": - 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 + $ref: "#/components/responses/OriginalTokenLinkNotFoundError" "422": - 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 + $ref: "#/components/responses/BridgingProtocolBlockchainMetadataNotFoundError" "500": - 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 + $ref: "#/components/responses/InternalServerError" summary: Validate LayerZero channel configuration tags: - Tokenization @@ -16334,7 +15068,8 @@ paths: - lang: Python source: "response = fireblocks.tokenization.validate_layer_zero_channel_config(adapter_token_link_id,\ \ peer_adapter_token_link_id);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/collections: get: description: Get collections (paginated) @@ -16374,17 +15109,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetLinkedCollectionsPaginatedResponse' + $ref: "#/components/schemas/GetLinkedCollectionsPaginatedResponse" description: Collection fetched successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get collections tags: - Tokenization @@ -16415,7 +15143,8 @@ paths: - lang: Python source: "response = fireblocks.tokenization.get_linked_collections(page_cursor,\ \ page_size, status);" - x-accepts: application/json + x-accepts: + - application/json post: description: Create a new collection and link it as a token operationId: createNewCollection @@ -16435,24 +15164,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionDeployRequestDto' + $ref: "#/components/schemas/CollectionDeployRequestDto" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/CollectionLinkDto' + $ref: "#/components/schemas/CollectionLinkDto" description: Collection was created successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a new collection tags: - Tokenization @@ -16482,7 +15204,8 @@ paths: source: "response = fireblocks.tokenization.create_new_collection(collection_deploy_request_dto,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/collections/{id}: delete: description: Delete a collection link @@ -16503,14 +15226,7 @@ paths: "404": description: Link for collection does not exist default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Delete a collection link tags: - Tokenization @@ -16533,7 +15249,8 @@ paths: source: CompletableFuture> response = fireblocks.tokenization().unlinkCollection(id); - lang: Python source: response = fireblocks.tokenization.unlink_collection(id); - x-accepts: application/json + x-accepts: + - application/json get: description: Get a collection by id operationId: getCollectionById @@ -16552,17 +15269,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionLinkDto' + $ref: "#/components/schemas/CollectionLinkDto" description: Collection fetched successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get a collection by id tags: - Tokenization @@ -16587,7 +15297,8 @@ paths: source: CompletableFuture> response = fireblocks.tokenization().getCollectionById(id); - lang: Python source: response = fireblocks.tokenization.get_collection_by_id(id); - x-accepts: application/json + x-accepts: + - application/json /tokenization/collections/{id}/tokens/{tokenId}: get: description: Get collection token details by id @@ -16616,17 +15327,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionLinkDto' + $ref: "#/components/schemas/CollectionLinkDto" description: Collection token details were fetched successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get collection token details tags: - Tokenization @@ -16655,7 +15359,8 @@ paths: - lang: Python source: "response = fireblocks.tokenization.fetch_collection_token_details(id,\ \ token_id);" - x-accepts: application/json + x-accepts: + - application/json /tokenization/collections/{id}/tokens/mint: post: description: Mint tokens and upload metadata @@ -16685,24 +15390,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionMintRequestDto' + $ref: "#/components/schemas/CollectionMintRequestDto" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/CollectionMintResponseDto' + $ref: "#/components/schemas/CollectionMintResponseDto" description: Tokens minted successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Mint tokens tags: - Tokenization @@ -16734,7 +15432,8 @@ paths: source: "response = fireblocks.tokenization.mint_collection_token(collection_mint_request_dto,\ \ id, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tokenization/collections/{id}/tokens/burn: post: description: Burn tokens in a collection @@ -16764,24 +15463,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionBurnRequestDto' + $ref: "#/components/schemas/CollectionBurnRequestDto" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/CollectionBurnResponseDto' + $ref: "#/components/schemas/CollectionBurnResponseDto" description: Tokens burned successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Burn tokens tags: - Tokenization @@ -16813,7 +15505,8 @@ paths: source: "response = fireblocks.tokenization.burn_collection_token(collection_burn_request_dto,\ \ id, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions: get: description: Return deployed contract's ABI by blockchain native asset id and @@ -16852,17 +15545,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContractAbiResponseDto' + $ref: "#/components/schemas/ContractAbiResponseDto" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return deployed contract's ABI tags: - Contract Interactions @@ -16901,7 +15587,8 @@ paths: - lang: Python source: "response = fireblocks.contract_interactions.get_deployed_contract_abi(contract_address,\ \ base_asset_id, idempotency_key);" - x-accepts: application/json + 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 @@ -16939,24 +15626,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReadCallFunctionDto' + $ref: "#/components/schemas/ReadCallFunctionDto" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ParameterWithValueList' + $ref: "#/components/schemas/ParameterWithValueList" description: Read Call Retrieved Successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Call a read function on a deployed contract tags: - Contract Interactions @@ -16996,7 +15676,8 @@ paths: 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 + x-accepts: + - application/json /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write: post: description: "Call a write function on a deployed contract by blockchain native\ @@ -17036,24 +15717,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WriteCallFunctionDto' + $ref: "#/components/schemas/WriteCallFunctionDto" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/WriteCallFunctionResponseDto' + $ref: "#/components/schemas/WriteCallFunctionResponseDto" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Call a write function on a deployed contract tags: - Contract Interactions @@ -17093,7 +15767,8 @@ paths: 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 + 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 @@ -17123,17 +15798,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TransactionReceiptResponse' + $ref: "#/components/schemas/TransactionReceiptResponse" description: Retrieved The Transaction Receipt Successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get transaction receipt tags: - Contract Interactions @@ -17172,7 +15840,8 @@ paths: - lang: Python source: "response = fireblocks.contract_interactions.get_transaction_receipt(base_asset_id,\ \ tx_hash);" - x-accepts: application/json + x-accepts: + - application/json /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/decode: post: description: "Decode a function call data, error, or event log from a deployed\ @@ -17212,30 +15881,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContractDataDecodeRequest' + $ref: "#/components/schemas/ContractDataDecodeRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ContractDataDecodedResponse' + $ref: "#/components/schemas/ContractDataDecodedResponse" description: Decoded data retrieved successfully "400": content: application/json: schema: - $ref: '#/components/schemas/ContractDataDecodeError' + $ref: "#/components/schemas/ContractDataDecodeError" description: "Bad request, invalid input data or parameters" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: "Decode a function call data, error, or event log" tags: - Contract Interactions @@ -17274,7 +15936,8 @@ paths: 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 + x-accepts: + - application/json /staking/chains: get: description: Return an alphabetical list of supported chains. @@ -17284,20 +15947,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StakingGetChainsResponse' + $ref: "#/components/schemas/StakingGetChainsResponse" description: An array of supported chains was returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List staking supported chains tags: - Staking @@ -17322,7 +15978,8 @@ paths: source: CompletableFuture>> response = fireblocks.staking().getChains(); - lang: Python source: response = fireblocks.staking.get_chains(); - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/chainInfo: get: description: "Return chain-specific, staking-related information summary (e.g.\ @@ -17337,27 +15994,20 @@ paths: name: chainDescriptor required: true schema: - $ref: '#/components/schemas/ChainDescriptor' + $ref: "#/components/schemas/ChainDescriptor" style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ChainInfoResponse' + $ref: "#/components/schemas/ChainInfoResponse" description: Chain specific info summary was returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get chain-specific staking summary tags: - Staking @@ -17382,7 +16032,8 @@ paths: source: CompletableFuture> response = fireblocks.staking().getChainInfo(chainDescriptor); - lang: Python source: response = fireblocks.staking.get_chain_info(chain_descriptor); - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/stake: post: description: Perform a chain-specific Stake. @@ -17395,7 +16046,7 @@ paths: name: chainDescriptor required: true schema: - $ref: '#/components/schemas/ChainDescriptor' + $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\ @@ -17412,28 +16063,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StakeRequest' + $ref: "#/components/schemas/StakeRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/StakeResponse' + $ref: "#/components/schemas/StakeResponse" description: Stake action has been executed successfully on vault and is associated with 201 status code. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Initiate Stake Operation tags: - Staking @@ -17461,7 +16105,8 @@ paths: source: "response = fireblocks.staking.stake(stake_request, chain_descriptor,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/unstake: post: description: Execute an Unstake operation @@ -17474,7 +16119,7 @@ paths: name: chainDescriptor required: true schema: - $ref: '#/components/schemas/ChainDescriptor' + $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\ @@ -17491,7 +16136,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnstakeRequest' + $ref: "#/components/schemas/UnstakeRequest" required: true responses: "201": @@ -17499,16 +16144,9 @@ paths: is associated with 201 status code. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Execute an Unstake operation tags: - Staking @@ -17536,7 +16174,8 @@ paths: source: "response = fireblocks.staking.unstake(unstake_request, chain_descriptor,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/withdraw: post: description: Perform a chain-specific Withdraw. @@ -17549,7 +16188,7 @@ paths: name: chainDescriptor required: true schema: - $ref: '#/components/schemas/ChainDescriptor' + $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\ @@ -17566,7 +16205,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WithdrawRequest' + $ref: "#/components/schemas/WithdrawRequest" required: true responses: "201": @@ -17574,16 +16213,9 @@ paths: is associated with 201 status code. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Execute a Withdraw operation tags: - Staking @@ -17611,7 +16243,8 @@ paths: source: "response = fireblocks.staking.withdraw(withdraw_request, chain_descriptor,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/claim_rewards: post: description: Perform a chain-specific Claim Rewards. @@ -17645,7 +16278,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClaimRewardsRequest' + $ref: "#/components/schemas/ClaimRewardsRequest" required: true responses: "201": @@ -17653,16 +16286,9 @@ paths: and is associated with 201 status code. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Execute a Claim Rewards operation tags: - Staking @@ -17690,7 +16316,8 @@ paths: source: "response = fireblocks.staking.claim_rewards(claim_rewards_request,\ \ chain_descriptor, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/split: post: description: Perform a Solana Split stake account. @@ -17723,28 +16350,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SplitRequest' + $ref: "#/components/schemas/SplitRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SplitResponse' + $ref: "#/components/schemas/SplitResponse" description: Split action has been executed successfully on vault and is associated with 201 status code. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Execute a Split operation on SOL/SOL_TEST stake account tags: - Staking @@ -17772,7 +16392,8 @@ paths: source: "response = fireblocks.staking.split(split_request, chain_descriptor,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /staking/chains/{chainDescriptor}/merge: post: description: |- @@ -17808,28 +16429,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MergeStakeAccountsRequest' + $ref: "#/components/schemas/MergeStakeAccountsRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/MergeStakeAccountsResponse' + $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' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Merge Solana on stake accounts tags: - Staking @@ -17861,7 +16475,8 @@ paths: source: "response = fireblocks.staking.merge_stake_accounts(merge_stake_accounts_request,\ \ chain_descriptor, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /staking/positions: get: description: "Return detailed information on all staking positions, including\ @@ -17877,27 +16492,20 @@ paths: name: chainDescriptor required: false schema: - $ref: '#/components/schemas/ChainDescriptor' + $ref: "#/components/schemas/ChainDescriptor" style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StakingGetAllDelegationsResponse' + $ref: "#/components/schemas/StakingGetAllDelegationsResponse" description: An array of position data was returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List staking positions details tags: - Staking @@ -17922,7 +16530,8 @@ paths: source: CompletableFuture>> response = fireblocks.staking().getAllDelegations(chainDescriptor); - lang: Python source: response = fireblocks.staking.get_all_delegations(chain_descriptor); - x-accepts: application/json + x-accepts: + - application/json /staking/positions/summary: get: description: "Return a summary of all vaults, categorized by their status (active,\ @@ -17954,20 +16563,13 @@ paths: - chainDescriptor: SOL amount: "0.077345939" schema: - $ref: '#/components/schemas/DelegationSummary' + $ref: "#/components/schemas/DelegationSummary" description: A summary for all vaults were returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get staking summary details tags: - Staking @@ -17992,7 +16594,8 @@ paths: source: CompletableFuture> response = fireblocks.staking().getSummary(); - lang: Python source: response = fireblocks.staking.get_summary(); - x-accepts: application/json + x-accepts: + - application/json /staking/positions/summary/vaults: get: description: "Return a summary for each vault, categorized by their status (active,\ @@ -18038,20 +16641,13 @@ paths: - chainDescriptor: SOL amount: "0.011191566" schema: - $ref: '#/components/schemas/StakingGetSummaryByVaultResponse' + $ref: "#/components/schemas/StakingGetSummaryByVaultResponse" description: A summary for each vault were returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get staking summary details by vault tags: - Staking @@ -18078,7 +16674,8 @@ paths: = fireblocks.staking().getSummaryByVault(); - lang: Python source: response = fireblocks.staking.get_summary_by_vault(); - x-accepts: application/json + x-accepts: + - application/json /staking/positions/{id}: get: description: "Return detailed information on a staking position, including the\ @@ -18099,20 +16696,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delegation' + $ref: "#/components/schemas/Delegation" description: Position data was returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get staking position details tags: - Staking @@ -18135,7 +16725,8 @@ paths: source: CompletableFuture> response = fireblocks.staking().getDelegationById(id); - lang: Python source: response = fireblocks.staking.get_delegation_by_id(id); - x-accepts: application/json + x-accepts: + - application/json /staking/providers: get: description: Return information on all the available staking providers. @@ -18145,20 +16736,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StakingGetProvidersResponse' + $ref: "#/components/schemas/StakingGetProvidersResponse" description: An array of supported providers was returned successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: List staking providers details tags: - Staking @@ -18183,7 +16767,8 @@ paths: source: CompletableFuture>> response = fireblocks.staking().getProviders(); - lang: Python source: response = fireblocks.staking.get_providers(); - x-accepts: application/json + x-accepts: + - application/json /staking/providers/{providerId}/approveTermsOfService: post: description: |- @@ -18198,7 +16783,7 @@ paths: name: providerId required: true schema: - $ref: '#/components/schemas/StakingProvider' + $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\ @@ -18217,16 +16802,9 @@ paths: associated with 201 status code. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Approve staking terms of service tags: - Staking @@ -18253,7 +16831,8 @@ paths: - lang: Python source: "response = fireblocks.staking.approve_terms_of_service_by_provider_id(provider_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /swap/providers: get: description: |- @@ -18292,17 +16871,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwapProvidersPaginatedResponse' + $ref: "#/components/schemas/SwapProvidersPaginatedResponse" description: A paginated response containing ProviderDto objects default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get Providers List tags: - Swap (Beta) @@ -18329,7 +16901,8 @@ paths: \ = fireblocks.swapBeta().getSwapProviders(pageCursor, pageSize);" - lang: Python source: "response = fireblocks.swap_beta.get_swap_providers(page_cursor, page_size);" - x-accepts: application/json + x-accepts: + - application/json /swap/providers/{providerId}/approve_terms: post: description: |- @@ -18367,17 +16940,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwapProvider' + $ref: "#/components/schemas/SwapProvider" description: successfully approve terms of service default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Approve terms of service tags: - Swap (Beta) @@ -18404,7 +16970,8 @@ paths: - lang: Python source: "response = fireblocks.swap_beta.approve_terms_of_service(provider_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /swap/providers/{providerId}/quote: post: description: |- @@ -18440,25 +17007,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QuoteRequest' + $ref: "#/components/schemas/QuoteRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/QuoteResponse' + $ref: "#/components/schemas/QuoteResponse" description: "The response can be one of two possible DTOs, depending if\ \ the request contains the accountId property." default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create a quote tags: - Swap (Beta) @@ -18486,7 +17046,8 @@ paths: source: "response = fireblocks.swap_beta.create_quote(quote_request, provider_id,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /swap/operations: get: description: |- @@ -18526,17 +17087,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwapOperationsPaginatedResponse' + $ref: "#/components/schemas/SwapOperationsPaginatedResponse" description: A paginated response containing OperationDto objects default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get Operations list tags: - Swap (Beta) @@ -18565,7 +17119,8 @@ paths: - lang: Python source: "response = fireblocks.swap_beta.get_swap_operations(page_cursor,\ \ page_size);" - x-accepts: application/json + x-accepts: + - application/json post: description: |- Create swap operation based on a provided quote Id @@ -18592,24 +17147,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwapOperationRequest' + $ref: "#/components/schemas/SwapOperationRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SwapOperation' + $ref: "#/components/schemas/SwapOperation" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create swap operation tags: - Swap (Beta) @@ -18637,7 +17185,8 @@ paths: source: "response = fireblocks.swap_beta.create_swap_operation(swap_operation_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /swap/operations/{operationId}: get: description: |- @@ -18662,17 +17211,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SwapOperation' + $ref: "#/components/schemas/SwapOperation" description: "" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get operation details tags: - Swap (Beta) @@ -18695,7 +17237,8 @@ paths: source: CompletableFuture> response = fireblocks.swapBeta().getSwapOperationById(operationId); - lang: Python source: response = fireblocks.swap_beta.get_swap_operation_by_id(operation_id); - x-accepts: application/json + x-accepts: + - application/json /admin_quorum: put: description: Update admin quorum threshold @@ -18716,27 +17259,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetAdminQuorumThresholdRequest' + $ref: "#/components/schemas/SetAdminQuorumThresholdRequest" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/SetAdminQuorumThresholdResponse' + $ref: "#/components/schemas/SetAdminQuorumThresholdResponse" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update admin quorum threshold tags: - Admin Quorum @@ -18751,7 +17287,8 @@ paths: code: const result = await fireblocks.setAdminQuorumThreshold(adminQuorumThreshold) name: Fireblocks SDK Javascript example x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /nfts/ownership/tokens: get: description: | @@ -18937,11 +17474,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetOwnershipTokensResponse' + $ref: "#/components/schemas/GetOwnershipTokensResponse" description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List all owned tokens (paginated) tags: - NFTs @@ -18976,7 +17513,8 @@ paths: 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 + x-accepts: + - application/json put: description: | Updates all tokens and balances per blockchain and vault account. @@ -19036,7 +17574,7 @@ paths: description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Refresh vault account tokens tags: - NFTs @@ -19063,7 +17601,8 @@ paths: - lang: Python source: "response = fireblocks.n_f_ts.update_ownership_tokens(blockchain_descriptor,\ \ vault_account_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /nfts/ownership/assets: get: description: | @@ -19172,11 +17711,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListOwnedTokensResponse' + $ref: "#/components/schemas/ListOwnedTokensResponse" description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List all distinct owned tokens (paginated) tags: - NFTs @@ -19207,7 +17746,8 @@ paths: - 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 + x-accepts: + - application/json /nfts/ownership/collections: get: description: | @@ -19305,11 +17845,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListOwnedCollectionsResponse' + $ref: "#/components/schemas/ListOwnedCollectionsResponse" description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List owned collections (paginated) tags: - NFTs @@ -19340,7 +17880,8 @@ paths: - 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 + x-accepts: + - application/json /nfts/tokens/{id}: get: description: | @@ -19361,11 +17902,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TokenResponse' + $ref: "#/components/schemas/TokenResponse" description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List token data by ID tags: - NFTs @@ -19388,7 +17929,8 @@ paths: source: CompletableFuture> response = fireblocks.nFTs().getNFT(id); - lang: Python source: response = fireblocks.n_f_ts.get_n_f_t(id); - x-accepts: application/json + x-accepts: + - application/json put: description: | Updates the latest token metadata. @@ -19429,7 +17971,7 @@ paths: description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Refresh token metadata tags: - NFTs @@ -19456,7 +17998,8 @@ paths: - 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 + x-accepts: + - application/json /nfts/tokens: get: description: | @@ -19523,11 +18066,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetNFTsResponse' + $ref: "#/components/schemas/GetNFTsResponse" description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List tokens by IDs tags: - NFTs @@ -19554,7 +18097,8 @@ paths: - lang: Python source: "response = fireblocks.n_f_ts.get_n_f_ts(ids, page_cursor, page_size,\ \ sort, order);" - x-accepts: application/json + x-accepts: + - application/json /nfts/ownership/tokens/{id}/status: put: description: | @@ -19595,14 +18139,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTokenOwnershipStatusDto' + $ref: "#/components/schemas/UpdateTokenOwnershipStatusDto" required: true responses: "200": description: "" headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Update token ownership status tags: - NFTs @@ -19630,7 +18174,8 @@ paths: 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 + x-accepts: + - application/json /nfts/ownership/tokens/status: put: description: "Updates tokens status for a tenant, in all tenant vaults." @@ -19661,24 +18206,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTokensOwnershipStatusRequest' + $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' + $ref: "#/components/headers/X-Request-ID" "400": description: Invalid data sent headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" summary: Update tokens ownership status tags: - NFTs @@ -19706,7 +18251,8 @@ paths: 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 + x-accepts: + - application/json /nfts/ownership/tokens/spam: put: description: "Updates tokens spam property for a tenant's token ownerships,\ @@ -19738,24 +18284,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTokensOwnershipSpamRequest' + $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' + $ref: "#/components/headers/X-Request-ID" "400": description: Invalid data sent headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" summary: Update tokens ownership spam property tags: - NFTs @@ -19783,7 +18329,8 @@ paths: 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 + x-accepts: + - application/json /connections: get: description: Get open Web3 connections. @@ -19836,7 +18383,7 @@ paths: name: filter required: false schema: - $ref: '#/components/schemas/get_filter_parameter' + $ref: "#/components/schemas/get_filter_parameter" style: form - description: Property to sort Web3 connections by. explode: true @@ -19878,21 +18425,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetConnectionsResponse' + $ref: "#/components/schemas/GetConnectionsResponse" description: "" headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" "500": description: Something went wrong headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: List all open Web3 connections. tags: - Web3 connections @@ -19923,7 +18470,8 @@ paths: - lang: Python source: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ \ next, x_end_user_wallet_id);" - x-accepts: application/json + x-accepts: + - application/json /connections/wc: post: description: |- @@ -19957,28 +18505,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateConnectionRequest' + $ref: "#/components/schemas/CreateConnectionRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/CreateConnectionResponse' + $ref: "#/components/schemas/CreateConnectionResponse" description: Web3 connection initiated successfully headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" "500": description: Something went wrong headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Create a new Web3 connection. tags: - Web3 connections @@ -20010,7 +18558,8 @@ paths: 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 + x-accepts: + - application/json /connections/wc/{id}: delete: description: Remove a Web3 connection @@ -20039,17 +18588,17 @@ paths: description: Connection removed successfully headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" "500": description: Something went wrong headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Remove an existing Web3 connection. tags: - Web3 connections @@ -20074,7 +18623,8 @@ paths: \ xEndUserWalletId);" - lang: Python source: "response = fireblocks.web3_connections.remove(id, x_end_user_wallet_id);" - x-accepts: application/json + x-accepts: + - application/json put: description: |- Submit a response to *approve* or *reject* an initiated Web3 connection. @@ -20116,29 +18666,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RespondToConnectionRequest' + $ref: "#/components/schemas/RespondToConnectionRequest" required: true responses: "200": description: Connection submitted successfully headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" "404": description: Connection not found headers: X-Request-ID: - $ref: '#/components/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' + $ref: "#/components/headers/X-Request-ID" summary: Respond to a pending Web3 connection request. tags: - Web3 connections @@ -20166,7 +18716,8 @@ paths: 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 + x-accepts: + - application/json /screening/travel_rule/transaction/validate: post: description: |- @@ -20184,7 +18735,7 @@ paths: name: notation required: false schema: - $ref: '#/components/schemas/TravelRuleNotationEnum' + $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\ @@ -20201,31 +18752,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TravelRuleValidateTransactionRequest' + $ref: "#/components/schemas/TravelRuleValidateTransactionRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TravelRuleValidateTransactionResponse' + $ref: "#/components/schemas/TravelRuleValidateTransactionResponse" description: Transaction validated successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $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 + x-accepts: + - application/json /screening/travel_rule/transaction/validate/full: post: description: |- @@ -20242,7 +18787,7 @@ paths: name: notation required: false schema: - $ref: '#/components/schemas/TravelRuleNotationEnum' + $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\ @@ -20259,24 +18804,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TravelRuleValidateFullTransactionRequest' + $ref: "#/components/schemas/TravelRuleValidateFullTransactionRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TravelRuleValidateTransactionResponse' + $ref: "#/components/schemas/TravelRuleValidateTransactionResponse" description: Transaction validated successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Validate Full Travel Rule Transaction tags: - Travel Rule @@ -20308,7 +18846,8 @@ paths: 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 + x-accepts: + - application/json /screening/travel_rule/vasp/{did}: get: description: |- @@ -20324,20 +18863,20 @@ paths: schema: type: string style: simple - - description: 'A CSV of fields to return. Choose from the following options:' + - 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' + $ref: "#/components/schemas/TravelRuleFieldsEnum" style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TravelRuleVASP' + $ref: "#/components/schemas/TravelRuleVASP" description: Transaction validated successfully "400": description: Invalid request body @@ -20367,7 +18906,8 @@ paths: \ fields);" - lang: Python source: "response = fireblocks.travel_rule.get_v_a_s_p_by_d_i_d(did, fields);" - x-accepts: application/json + x-accepts: + - application/json /screening/travel_rule/vasp: get: description: |- @@ -20407,7 +18947,7 @@ paths: name: fields required: false schema: - $ref: '#/components/schemas/TravelRuleFieldsEnum' + $ref: "#/components/schemas/TravelRuleFieldsEnum" style: form - description: Search query example: Fireblocks @@ -20450,17 +18990,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TravelRuleGetAllVASPsResponse' + $ref: "#/components/schemas/TravelRuleGetAllVASPsResponse" description: Get all VASPs default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get All VASPs tags: - Travel Rule @@ -20491,7 +19024,8 @@ paths: - 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 + x-accepts: + - application/json /screening/travel_rule/vasp/update: put: description: |- @@ -20515,14 +19049,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TravelRuleUpdateVASPDetails' + $ref: "#/components/schemas/TravelRuleUpdateVASPDetails" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TravelRuleUpdateVASPDetails' + $ref: "#/components/schemas/TravelRuleUpdateVASPDetails" description: VASP updated successfully "400": description: Invalid request body @@ -20557,7 +19091,8 @@ paths: 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 + x-accepts: + - application/json /screening/travel_rule/vault/{vaultAccountId}/vasp: get: description: Get assigned VASP Did for a specific vault. Returns empty string @@ -20580,20 +19115,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TravelRuleVaspForVault' + $ref: "#/components/schemas/TravelRuleVaspForVault" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get assigned VASP to vault tags: - Travel Rule @@ -20623,7 +19151,8 @@ paths: fireblocks.travelRule().getVaspForVault(vaultAccountId); - lang: Python source: response = fireblocks.travel_rule.get_vasp_for_vault(vault_account_id); - x-accepts: application/json + x-accepts: + - application/json post: description: Sets the VASP Did for a specific vault. Pass empty string to remove existing one. @@ -20654,27 +19183,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TravelRuleVaspForVault' + $ref: "#/components/schemas/TravelRuleVaspForVault" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/TravelRuleVaspForVault' + $ref: "#/components/schemas/TravelRuleVaspForVault" description: OK headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Assign VASP to vault tags: - Travel Rule @@ -20710,7 +19232,8 @@ paths: 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 + x-accepts: + - application/json /screening/travel_rule/post_screening_policy: get: description: Get the post-screening policy for Travel Rule. @@ -20721,7 +19244,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningPolicyResponse' + $ref: "#/components/schemas/ScreeningPolicyResponse" description: Post-screening policy retrieved successfully. summary: Travel Rule - View Post-Screening Policy tags: @@ -20749,7 +19272,8 @@ paths: fireblocks.compliance().getPostScreeningPolicy(); - lang: Python source: response = fireblocks.compliance.get_post_screening_policy(); - x-accepts: application/json + x-accepts: + - application/json /screening/travel_rule/screening_policy: get: description: Get the screening policy for Travel Rule. @@ -20760,7 +19284,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningProviderRulesConfigurationResponse' + $ref: "#/components/schemas/ScreeningProviderRulesConfigurationResponse" description: Screening policy retrieved successfully. summary: Travel Rule - View Screening Policy tags: @@ -20788,7 +19312,8 @@ paths: response = fireblocks.compliance().getScreeningPolicy(); - lang: Python source: response = fireblocks.compliance.get_screening_policy(); - x-accepts: application/json + x-accepts: + - application/json /screening/travel_rule/policy_configuration: get: description: Retrieves the configuration for Travel Rule screening policy. @@ -20799,7 +19324,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningConfigurationsRequest' + $ref: "#/components/schemas/ScreeningConfigurationsRequest" description: Screening policy configuration retrieved successfully. summary: Get Travel Rule Screening Policy Configuration tags: @@ -20827,7 +19352,8 @@ paths: = fireblocks.complianceScreeningConfiguration().getScreeningConfiguration(); - lang: Python source: response = fireblocks.compliance_screening_configuration.get_screening_configuration(); - x-accepts: application/json + x-accepts: + - application/json put: description: "Updates bypass screening, inbound delay, or outbound delay configurations\ \ for Travel Rule." @@ -20849,7 +19375,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningConfigurationsRequest' + $ref: "#/components/schemas/ScreeningConfigurationsRequest" description: Configuration updated successfully. summary: Update Travel Rule Configuration tags: @@ -20877,7 +19403,8 @@ paths: = fireblocks.compliance().updateTravelRuleConfig(idempotencyKey); - lang: Python source: response = fireblocks.compliance.update_travel_rule_config(idempotency_key); - x-accepts: application/json + x-accepts: + - application/json /screening/aml/policy_configuration: get: description: Retrieves the configuration for Travel Rule screening policy. @@ -20888,7 +19415,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningConfigurationsRequest' + $ref: "#/components/schemas/ScreeningConfigurationsRequest" description: Screening policy configuration retrieved successfully. summary: Get AML Screening Policy Configuration tags: @@ -20916,7 +19443,8 @@ paths: = fireblocks.complianceScreeningConfiguration().getAmlScreeningConfiguration(); - lang: Python source: response = fireblocks.compliance_screening_configuration.get_aml_screening_configuration(); - x-accepts: application/json + x-accepts: + - application/json put: description: "Updates bypass screening, inbound delay, or outbound delay configurations\ \ for AML." @@ -20938,7 +19466,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningConfigurationsRequest' + $ref: "#/components/schemas/ScreeningConfigurationsRequest" description: Configuration updated successfully. summary: Update AML Configuration tags: @@ -20966,7 +19494,8 @@ paths: = fireblocks.compliance().updateAmlScreeningConfiguration(idempotencyKey); - lang: Python source: response = fireblocks.compliance.update_aml_screening_configuration(idempotency_key); - x-accepts: application/json + x-accepts: + - application/json /screening/aml/screening_policy: get: description: Get the screening policy for AML. @@ -20977,7 +19506,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningProviderRulesConfigurationResponse' + $ref: "#/components/schemas/ScreeningProviderRulesConfigurationResponse" description: Screening policy retrieved successfully. summary: AML - View Screening Policy tags: @@ -21005,7 +19534,8 @@ paths: response = fireblocks.compliance().getAmlScreeningPolicy(); - lang: Python source: response = fireblocks.compliance.get_aml_screening_policy(); - x-accepts: application/json + x-accepts: + - application/json /screening/aml/post_screening_policy: get: description: Get the post-screening policy for AML. @@ -21016,7 +19546,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningPolicyResponse' + $ref: "#/components/schemas/ScreeningPolicyResponse" description: Post-screening policy retrieved successfully. summary: AML - View Post-Screening Policy tags: @@ -21044,7 +19574,8 @@ paths: fireblocks.compliance().getAmlPostScreeningPolicy(); - lang: Python source: response = fireblocks.compliance.get_aml_post_screening_policy(); - x-accepts: application/json + x-accepts: + - application/json /screening/configurations: put: description: Update tenant screening configuration. @@ -21065,14 +19596,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScreeningUpdateConfigurations' + $ref: "#/components/schemas/ScreeningUpdateConfigurations" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ScreeningUpdateConfigurations' + $ref: "#/components/schemas/ScreeningUpdateConfigurations" description: Tenant Screening configuration updated successfully. summary: Tenant - Screening Configuration tags: @@ -21105,7 +19636,8 @@ paths: source: "response = fireblocks.compliance.update_screening_configuration(screening_update_configurations,\ \ idempotency_key);" x-content-type: application/json - x-accepts: 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 @@ -21137,20 +19669,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateTransactionResponse' + $ref: "#/components/schemas/CreateTransactionResponse" description: A transaction object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $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" @@ -21183,7 +19708,8 @@ paths: - lang: Python source: "response = fireblocks.compliance.retry_rejected_transaction_bypass_screening_checks(tx_id,\ \ idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /screening/transaction/{txId}: get: description: Provides all the compliance details for the given screened transaction. @@ -21203,20 +19729,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ComplianceResultFullPayload' + $ref: "#/components/schemas/ComplianceResultFullPayload" description: A compliance object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Provides all the compliance details for the given screened transaction. tags: - Compliance @@ -21243,7 +19762,98 @@ paths: = fireblocks.compliance().getScreeningFullDetails(txId); - lang: Python source: response = fireblocks.compliance.get_screening_full_details(tx_id); - x-accepts: application/json + 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 @@ -21253,7 +19863,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetOtaStatusResponse' + $ref: "#/components/schemas/GetOtaStatusResponse" description: Current OTA status "404": description: Configuration not found for tenant @@ -21281,7 +19891,8 @@ paths: source: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); - lang: Python source: response = fireblocks.o_t_a_beta.get_ota_status(); - x-accepts: application/json + x-accepts: + - application/json put: description: Enable or disable transactions to OTA operationId: setOtaStatus @@ -21301,18 +19912,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetOtaStatusRequest' + $ref: "#/components/schemas/SetOtaStatusRequest" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/SetOtaStatusResponse' + $ref: "#/components/schemas/SetOtaStatusResponse" description: Successfully updated OTA status headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "400": description: Bad request "409": @@ -21348,7 +19959,8 @@ paths: 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 + x-accepts: + - application/json /management/workspace_status: get: description: Returns current workspace status @@ -21358,7 +19970,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetWorkspaceStatusResponse' + $ref: "#/components/schemas/GetWorkspaceStatusResponse" description: Current workspace status "404": description: Workspace not found @@ -21388,33 +20000,30 @@ paths: = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); - lang: Python source: response = fireblocks.workspace_status_beta.get_workspace_status(); - x-accepts: application/json + x-accepts: + - application/json /tap/active_policy: get: - 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 + 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/PolicyAndValidationResponse' + $ref: "#/components/schemas/LegacyPolicyAndValidationResponse" description: A policy object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the active policy and its validation tags: - Policy Editor (Beta) @@ -21428,52 +20037,49 @@ paths: code: const policy = await fireblocks.getActivePolicy(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getActivePolicy();" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getActivePolicyLegacy();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.policyEditorBeta().getActivePolicy(); + code: CompletableFuture> + response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.policy_editor_beta.get_active_policy(); + 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.getActivePolicy();" + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getActivePolicyLegacy();" - lang: Java - source: CompletableFuture> response - = fireblocks.policyEditorBeta().getActivePolicy(); + source: CompletableFuture> + response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); - lang: Python - source: response = fireblocks.policy_editor_beta.get_active_policy(); - x-accepts: application/json + source: response = fireblocks.policy_editor_beta.get_active_policy_legacy(); + x-accepts: + - application/json /tap/draft: get: - 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 + 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/DraftReviewAndValidationResponse' + $ref: "#/components/schemas/LegacyDraftReviewAndValidationResponse" description: A draft validation response object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get the active draft tags: - Policy Editor (Beta) @@ -21487,32 +20093,36 @@ paths: code: const policy = await fireblocks.getDraft(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getDraft();" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getDraftLegacy();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.policyEditorBeta().getDraft(); + code: CompletableFuture> + response = fireblocks.policyEditorBeta().getDraftLegacy(); name: Fireblocks SDK Java example - language: python - code: response = fireblocks.policy_editor_beta.get_draft(); + code: response = fireblocks.policy_editor_beta.get_draft_legacy(); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getDraft();" + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getDraftLegacy();" - lang: Java - source: CompletableFuture> response - = fireblocks.policyEditorBeta().getDraft(); + source: CompletableFuture> + response = fireblocks.policyEditorBeta().getDraftLegacy(); - lang: Python - source: response = fireblocks.policy_editor_beta.get_draft(); - x-accepts: application/json + source: response = fireblocks.policy_editor_beta.get_draft_legacy(); + 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 TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - operationId: publishDraft + 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\ @@ -21529,27 +20139,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PublishDraftRequest' + $ref: "#/components/schemas/LegacyPublishDraftRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/PublishResult' + $ref: "#/components/schemas/LegacyPublishResult" description: A policy publish result object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Send publish request for a certain draft id tags: - Policy Editor (Beta) @@ -21563,33 +20166,39 @@ paths: code: const policy = await fireblocks.publishDraft(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.policyEditorBeta.publishDraft(policyEditorBetaApiPublishDraftRequest);" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraft(publishDraftRequest,\ + code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.policy_editor_beta.publish_draft(publish_draft_request,\ + 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.publishDraft(policyEditorBetaApiPublishDraftRequest);" + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraft(publishDraftRequest,\ + source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.policy_editor_beta.publish_draft(publish_draft_request,\ + source: "response = fireblocks.policy_editor_beta.publish_draft_legacy(legacy_publish_draft_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json 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 + 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\ @@ -21606,27 +20215,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PolicyRules' + $ref: "#/components/schemas/LegacyPolicyRules" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DraftReviewAndValidationResponse' + $ref: "#/components/schemas/LegacyDraftReviewAndValidationResponse" description: A draft validation response object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update the draft with a new set of rules tags: - Policy Editor (Beta) @@ -21640,29 +20242,32 @@ paths: code: const policy = await fireblocks.updateDraft(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.updateDraft(policyEditorBetaApiUpdateDraftRequest);" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.policyEditorBeta().updateDraft(policyRules, idempotencyKey);" + code: "CompletableFuture>\ + \ response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.policy_editor_beta.update_draft(policy_rules,\ + 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.updateDraft(policyEditorBetaApiUpdateDraftRequest);" + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);" - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.policyEditorBeta().updateDraft(policyRules, idempotencyKey);" + source: "CompletableFuture>\ + \ response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules,\ + \ idempotencyKey);" - lang: Python - source: "response = fireblocks.policy_editor_beta.update_draft(policy_rules,\ + source: "response = fireblocks.policy_editor_beta.update_draft_legacy(legacy_policy_rules,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tap/publish: post: description: | @@ -21686,27 +20291,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PolicyRules' + $ref: "#/components/schemas/LegacyPolicyRules" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/PublishResult' + $ref: "#/components/schemas/LegacyPublishResult" description: A policy publish result object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Send publish request for a set of policy rules tags: - Policy Editor (Beta) @@ -21720,27 +20318,297 @@ paths: code: const policy = await fireblocks.publishRules(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" + 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.policyEditorBeta().publishPolicyRules(policyRules,\ + code: "CompletableFuture>\ + \ response = fireblocks.policyEditorV2Beta().updateDraft(updateDraftRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.policy_editor_beta.publish_policy_rules(policy_rules,\ + 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.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" + source: "const response: Promise>\ + \ = fireblocks.policyEditorV2Beta.updateDraft(policyEditorV2BetaApiUpdateDraftRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(policyRules,\ + source: "CompletableFuture>\ + \ response = fireblocks.policyEditorV2Beta().updateDraft(updateDraftRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.policy_editor_beta.publish_policy_rules(policy_rules,\ + source: "response = fireblocks.policy_editor_v2_beta.update_draft(update_draft_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /management/users: get: description: Get console users for your tenant @@ -21750,48 +20618,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetConsoleUsersResponse' + $ref: "#/components/schemas/GetConsoleUsersResponse" description: got console users headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "403": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Lacking permissions. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get console users tags: - Console User @@ -21824,7 +20685,8 @@ paths: fireblocks.consoleUser().getConsoleUsers(); - lang: Python source: response = fireblocks.console_user.get_console_users(); - x-accepts: application/json + x-accepts: + - application/json post: description: Creates console user in your tenant operationId: createConsoleUser @@ -21844,55 +20706,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateConsoleUser' + $ref: "#/components/schemas/CreateConsoleUser" responses: "200": description: User creation approval request has been sent headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "400": description: bad request headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "403": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Lacking permissions. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create console user tags: - Console User @@ -21928,7 +20783,8 @@ paths: source: "response = fireblocks.console_user.create_console_user(create_console_user,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /management/api_users: get: description: Get Api users of your tenant @@ -21938,48 +20794,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetAPIUsersResponse' + $ref: "#/components/schemas/GetAPIUsersResponse" description: got api users headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "403": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Lacking permissions. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get Api users tags: - Api User @@ -22010,7 +20859,8 @@ paths: source: CompletableFuture> response = fireblocks.apiUser().getApiUsers(); - lang: Python source: response = fireblocks.api_user.get_api_users(); - x-accepts: application/json + x-accepts: + - application/json post: description: Creates Api user in your tenant operationId: createApiUser @@ -22030,55 +20880,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateAPIUser' + $ref: "#/components/schemas/CreateAPIUser" responses: "200": description: User creation approval request has been sent headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "400": description: bad request headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "403": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Lacking permissions. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Create Api user tags: - Api User @@ -22114,7 +20957,8 @@ paths: source: "response = fireblocks.api_user.create_api_user(create_a_p_i_user,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /management/users/{id}/reset_device: post: description: "Resets mobile device for given console user, that user will need\ @@ -22145,44 +20989,37 @@ paths: description: Reset device approval request has been sent headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "403": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Lacking permissions. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Resets device tags: - Reset device @@ -22213,7 +21050,8 @@ paths: \ idempotencyKey);" - lang: Python source: "response = fireblocks.reset_device.reset_device(id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /management/api_users/{userId}/whitelist_ip_addresses: get: description: Gets whitelisted ip addresses for given Api user. @@ -22232,48 +21070,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetWhitelistIpAddressesResponse' + $ref: "#/components/schemas/GetWhitelistIpAddressesResponse" description: successfully got whitelisted ip addresses headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "401": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Unauthorized. Missing / invalid JWT token in Authorization header. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "403": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Lacking permissions. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" "5XX": content: application/json: schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal error. headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Gets whitelisted ip addresses tags: - whitelist ip addresses @@ -22306,7 +21137,8 @@ paths: = fireblocks.whitelistIpAddresses().getWhitelistIpAddresses(userId); - lang: Python source: response = fireblocks.whitelist_ip_addresses.get_whitelist_ip_addresses(user_id); - x-accepts: application/json + x-accepts: + - application/json /smart-transfers: get: description: Finds Smart Transfer tickets that match the submitted criteria @@ -22422,13 +21254,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketFilteredResponse' + $ref: "#/components/schemas/SmartTransferTicketFilteredResponse" description: Smart Transfer tickets were returned successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized summary: Find Ticket tags: @@ -22464,7 +21296,8 @@ paths: 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 + x-accepts: + - application/json post: description: Creates new Smart Transfer ticket operationId: createTicket @@ -22484,26 +21317,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferCreateTicket' + $ref: "#/components/schemas/SmartTransferCreateTicket" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Smart Transfer ticket was created successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Create Ticket tags: @@ -22535,7 +21368,8 @@ paths: source: "response = fireblocks.smart_transfer.create_ticket(smart_transfer_create_ticket,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /smart-transfers/{ticketId}: get: description: Find Smart Transfer ticket by id @@ -22553,19 +21387,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Smart Transfer ticket returned successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found summary: Search Tickets by ID tags: @@ -22593,7 +21427,8 @@ paths: = fireblocks.smartTransfer().findTicketById(ticketId); - lang: Python source: response = fireblocks.smart_transfer.find_ticket_by_id(ticket_id); - x-accepts: application/json + x-accepts: + - application/json /smart-transfers/{ticketId}/expires-in: put: description: Set expiration date on Smart Transfer ticket @@ -22621,32 +21456,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferSetTicketExpiration' + $ref: "#/components/schemas/SmartTransferSetTicketExpiration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Successfully set expiration date on Smart Transfer ticket "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Set expiration tags: @@ -22679,7 +21514,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/{ticketId}/external-id: put: description: Set external id Smart Transfer ticket @@ -22707,32 +21543,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferSetTicketExternalId' + $ref: "#/components/schemas/SmartTransferSetTicketExternalId" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Successfully set external id on Smart Transfer ticket "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Add external ref. ID tags: @@ -22765,7 +21601,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/{ticketId}/submit: put: description: "Submit Smart Transfer ticket - change status into ready for approval\ @@ -22794,32 +21631,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferSubmitTicket' + $ref: "#/components/schemas/SmartTransferSubmitTicket" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Successfully submitted Smart Transfer ticket "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Submit ticket tags: @@ -22852,7 +21689,8 @@ paths: source: "response = fireblocks.smart_transfer.submit_ticket(smart_transfer_submit_ticket,\ \ ticket_id, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /smart-transfers/{ticketId}/fulfill: put: description: "Manually fulfill ticket, in case when all terms (legs) are funded\ @@ -22882,25 +21720,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Successfully fulfilled on Smart Transfer ticket "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Fund ticket manually tags: @@ -22928,7 +21766,8 @@ paths: \ = fireblocks.smartTransfer().fulfillTicket(ticketId, idempotencyKey);" - lang: Python source: "response = fireblocks.smart_transfer.fulfill_ticket(ticket_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /smart_transfers/{ticketId}/dvp/fund: put: description: Create or fulfill dvp ticket order @@ -22956,33 +21795,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferFundDvpTicket' + $ref: "#/components/schemas/SmartTransferFundDvpTicket" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $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' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Fund dvp ticket tags: @@ -23015,7 +21854,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/{ticketId}/cancel: put: description: Cancel Smart Transfer ticket @@ -23044,25 +21884,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketResponse' + $ref: "#/components/schemas/SmartTransferTicketResponse" description: Smart Transfer ticket successfully canceled "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Cancel Ticket tags: @@ -23090,7 +21930,8 @@ paths: \ = fireblocks.smartTransfer().cancelTicket(ticketId, idempotencyKey);" - lang: Python source: "response = fireblocks.smart_transfer.cancel_ticket(ticket_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /smart-transfers/{ticketId}/terms: post: description: Creates new smart transfer ticket term (when the ticket status @@ -23119,26 +21960,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferCreateTicketTerm' + $ref: "#/components/schemas/SmartTransferCreateTicketTerm" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketTermResponse' + $ref: "#/components/schemas/SmartTransferTicketTermResponse" description: Smart Transfer ticket term was created successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Create leg (term) tags: @@ -23171,7 +22012,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/{ticketId}/terms/{termId}: delete: description: Delete ticket term when ticket is in DRAFT status @@ -23198,13 +22040,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found summary: Delete ticket leg (term) tags: @@ -23232,7 +22074,8 @@ paths: - lang: Python source: "response = fireblocks.smart_transfer.remove_ticket_term(ticket_id,\ \ term_id);" - x-accepts: application/json + x-accepts: + - application/json get: description: Find Smart Transfer ticket term by id operationId: findTicketTermById @@ -23256,19 +22099,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketTermResponse' + $ref: "#/components/schemas/SmartTransferTicketTermResponse" description: Smart Transfer ticket term returned successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found summary: Search ticket by leg (term) ID tags: @@ -23298,7 +22141,8 @@ paths: - lang: Python source: "response = fireblocks.smart_transfer.find_ticket_term_by_id(ticket_id,\ \ term_id);" - x-accepts: application/json + x-accepts: + - application/json put: description: Update ticket term (when ticket status is DRAFT) operationId: updateTicketTerm @@ -23332,26 +22176,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferUpdateTicketTerm' + $ref: "#/components/schemas/SmartTransferUpdateTicketTerm" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketTermResponse' + $ref: "#/components/schemas/SmartTransferTicketTermResponse" description: Smart Transfer ticket term updated successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found summary: Update ticket leg (term) tags: @@ -23384,7 +22228,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/{ticketId}/terms/{termId}/fund: put: description: "Set funding source for ticket term (in case of ASYNC tickets,\ @@ -23420,32 +22265,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferFundTerm' + $ref: "#/components/schemas/SmartTransferFundTerm" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketTermResponse' + $ref: "#/components/schemas/SmartTransferTicketTermResponse" description: Funding source for ticket term successfully done "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Define funding source tags: @@ -23478,7 +22323,8 @@ paths: 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 + x-accepts: + - application/json /smart_transfers/{ticketId}/terms/{termId}/dvp/approve: put: description: Set funding source for ticket term and creating approving transaction @@ -23514,32 +22360,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferApproveTerm' + $ref: "#/components/schemas/SmartTransferApproveTerm" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketTermResponse' + $ref: "#/components/schemas/SmartTransferTicketTermResponse" description: Creating approval transaction started "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Define funding source and give approve to contract to transfer asset tags: @@ -23572,7 +22418,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/{ticketId}/terms/{termId}/manually-fund: put: description: Manually set ticket term transaction @@ -23607,32 +22454,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferManuallyFundTerm' + $ref: "#/components/schemas/SmartTransferManuallyFundTerm" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferTicketTermResponse' + $ref: "#/components/schemas/SmartTransferTicketTermResponse" description: Successfully manually set ticket term transaction "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "404": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferNotFoundResponse' + $ref: "#/components/schemas/SmartTransferNotFoundResponse" description: Not found "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Manually add term transaction tags: @@ -23665,7 +22512,8 @@ paths: 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 + x-accepts: + - application/json /smart-transfers/settings/user-groups: get: description: Get Smart Transfer user groups @@ -23676,19 +22524,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferUserGroupsResponse' + $ref: "#/components/schemas/SmartTransferUserGroupsResponse" description: User group settings were returned successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Get user group tags: @@ -23716,7 +22564,8 @@ paths: = fireblocks.smartTransfer().getSmartTransferUserGroups(); - lang: Python source: response = fireblocks.smart_transfer.get_smart_transfer_user_groups(); - x-accepts: application/json + x-accepts: + - application/json post: description: Set Smart Transfer user group operationId: setUserGroups @@ -23736,26 +22585,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferSetUserGroups' + $ref: "#/components/schemas/SmartTransferSetUserGroups" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferUserGroupsResponse' + $ref: "#/components/schemas/SmartTransferUserGroupsResponse" description: User group settings were set successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized "422": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferBadRequestResponse' + $ref: "#/components/schemas/SmartTransferBadRequestResponse" description: Bad Request summary: Set user group tags: @@ -23788,7 +22637,8 @@ paths: source: "response = fireblocks.smart_transfer.set_user_groups(smart_transfer_set_user_groups,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /smart_transfers/statistic: get: description: Get smart transfer statistic @@ -23798,23 +22648,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SmartTransferStatistic' + $ref: "#/components/schemas/SmartTransferStatistic" description: Smart Transfer ticket statistic returned successfully "403": content: application/json: schema: - $ref: '#/components/schemas/SmartTransferForbiddenResponse' + $ref: "#/components/schemas/SmartTransferForbiddenResponse" description: Unauthorized default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get smart transfers statistic tags: - Smart Transfer @@ -23841,7 +22684,8 @@ paths: fireblocks.smartTransfer().getSmartTransferStatistic(); - lang: Python source: response = fireblocks.smart_transfer.get_smart_transfer_statistic(); - x-accepts: application/json + x-accepts: + - application/json /batch/jobs: get: description: "Get an array of objects including all active, paused, canceled,\ @@ -23869,20 +22713,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Jobs' + $ref: "#/components/schemas/Jobs" description: An array of jobs headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return a list of jobs belonging to tenant tags: - Job Management @@ -23907,7 +22744,8 @@ paths: \ toTime);" - lang: Python source: "response = fireblocks.job_management.get_jobs(from_time, to_time);" - x-accepts: application/json + x-accepts: + - application/json /batch/{jobId}: get: description: Get an object describing the given job @@ -23926,20 +22764,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Job' + $ref: "#/components/schemas/Job" description: A JSON object that describes the job headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get job details tags: - Job Management @@ -23962,7 +22793,8 @@ paths: source: CompletableFuture> response = fireblocks.jobManagement().getJob(jobId); - lang: Python source: response = fireblocks.job_management.get_job(job_id); - x-accepts: application/json + x-accepts: + - application/json /batch/{jobId}/pause: post: description: "Pause the given job, after the current task is done. A paused\ @@ -23992,14 +22824,7 @@ paths: "200": description: paused successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Pause a job tags: - Job Management @@ -24024,7 +22849,8 @@ paths: \ idempotencyKey);" - lang: Python source: "response = fireblocks.job_management.pause_job(job_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /batch/{jobId}/continue: post: description: Continue the given paused job. @@ -24053,14 +22879,7 @@ paths: "200": description: continued successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Continue a paused job tags: - Job Management @@ -24085,7 +22904,8 @@ paths: \ idempotencyKey);" - lang: Python source: "response = fireblocks.job_management.continue_job(job_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /batch/{jobId}/cancel: post: description: "Stop the given job immediately. If the job is in the 'Active'\ @@ -24116,14 +22936,7 @@ paths: "200": description: canceled successfully default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Cancel a running job tags: - Job Management @@ -24148,7 +22961,8 @@ paths: \ idempotencyKey);" - lang: Python source: "response = fireblocks.job_management.cancel_job(job_id, idempotency_key);" - x-accepts: application/json + x-accepts: + - application/json /batch/{jobId}/tasks: get: description: Return a list of tasks for given job @@ -24167,20 +22981,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tasks' + $ref: "#/components/schemas/Tasks" description: An array of tasks headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Return a list of tasks for given job tags: - Job Management @@ -24203,7 +23010,8 @@ paths: source: CompletableFuture>> response = fireblocks.jobManagement().getJobTasks(jobId); - lang: Python source: response = fireblocks.job_management.get_job_tasks(job_id); - x-accepts: application/json + x-accepts: + - application/json /tags: get: description: Retrieve a paged list of all tags according to filters. @@ -24255,11 +23063,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TagsPagedResponse' + $ref: "#/components/schemas/TagsPagedResponse" description: A TagsPagedResponse object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Get list of tags tags: - Tags @@ -24288,7 +23096,8 @@ paths: - lang: Python source: "response = fireblocks.tags.get_tags(page_cursor, page_size, label,\ \ tag_ids);" - x-accepts: application/json + x-accepts: + - application/json post: description: Create a new tag. operationId: createTag @@ -24308,18 +23117,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateTagRequest' + $ref: "#/components/schemas/CreateTagRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" description: A tag object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Create a tag tags: - Tags @@ -24345,7 +23154,8 @@ paths: - lang: Python source: "response = fireblocks.tags.create_tag(create_tag_request, idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /tags/{tagId}: delete: description: Delete the specified tag. @@ -24365,7 +23175,7 @@ paths: description: Tag was deleted successfully headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Delete a tag tags: - Tags @@ -24388,7 +23198,8 @@ paths: source: CompletableFuture> response = fireblocks.tags().deleteTag(tagId); - lang: Python source: response = fireblocks.tags.delete_tag(tag_id); - x-accepts: application/json + x-accepts: + - application/json get: description: Retrieve an existing tag by ID. operationId: getTag @@ -24407,11 +23218,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" description: A tag object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Get a tag tags: - Tags @@ -24434,7 +23245,8 @@ paths: source: CompletableFuture> response = fireblocks.tags().getTag(tagId); - lang: Python source: response = fireblocks.tags.get_tag(tag_id); - x-accepts: application/json + x-accepts: + - application/json patch: description: Update an existing specified tag. operationId: updateTag @@ -24463,18 +23275,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTagRequest' + $ref: "#/components/schemas/UpdateTagRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" description: A tag object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" summary: Update a tag tags: - Tags @@ -24502,7 +23314,8 @@ paths: source: "response = fireblocks.tags.update_tag(update_tag_request, tag_id,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /cosigners: get: description: | @@ -24548,20 +23361,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CosignersPaginatedResponse' + $ref: "#/components/schemas/CosignersPaginatedResponse" description: A paginated response containing Cosigner objects headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get all cosigners tags: - Cosigners (Beta) @@ -24590,7 +23396,8 @@ paths: - lang: Python source: "response = fireblocks.cosigners_beta.get_cosigners(order, page_cursor,\ \ page_size);" - x-accepts: application/json + x-accepts: + - application/json post: description: Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired @@ -24611,27 +23418,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddCosignerRequest' + $ref: "#/components/schemas/AddCosignerRequest" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/AddCosignerResponse' + $ref: "#/components/schemas/AddCosignerResponse" description: Pending cosigner added headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Add cosigner tags: - Cosigners (Beta) @@ -24661,7 +23461,8 @@ paths: source: "response = fireblocks.cosigners_beta.add_cosigner(add_cosigner_request,\ \ idempotency_key);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /cosigners/{cosignerId}: get: description: | @@ -24684,20 +23485,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cosigner' + $ref: "#/components/schemas/Cosigner" description: A cosigner object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get cosigner tags: - Cosigners (Beta) @@ -24720,7 +23514,8 @@ paths: source: CompletableFuture> response = fireblocks.cosignersBeta().getCosigner(cosignerId); - lang: Python source: response = fireblocks.cosigners_beta.get_cosigner(cosigner_id); - x-accepts: application/json + x-accepts: + - application/json patch: description: | Rename a cosigner by ID @@ -24741,27 +23536,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RenameCosigner' + $ref: "#/components/schemas/RenameCosigner" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Cosigner' + $ref: "#/components/schemas/Cosigner" description: A cosigner object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Rename cosigner tags: - Cosigners (Beta) @@ -24789,7 +23577,8 @@ paths: source: "response = fireblocks.cosigners_beta.rename_cosigner(rename_cosigner,\ \ cosigner_id);" x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json /cosigners/{cosignerId}/api_keys: get: description: Get all cosigner paired API keys (paginated) @@ -24843,20 +23632,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ApiKeysPaginatedResponse' + $ref: "#/components/schemas/ApiKeysPaginatedResponse" description: A paginated response containing ApiKey objects headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get all API keys tags: - Cosigners (Beta) @@ -24887,7 +23669,8 @@ paths: - lang: Python source: "response = fireblocks.cosigners_beta.get_api_keys(cosigner_id, order,\ \ page_cursor, page_size);" - x-accepts: application/json + x-accepts: + - application/json /cosigners/{cosignerId}/api_keys/{apiKeyId}: delete: description: Unpair an API key from a cosigner @@ -24917,22 +23700,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ApiKey' + $ref: "#/components/schemas/ApiKey" description: The API key object to be unpaired headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" Location: - $ref: '#/components/headers/Location' + $ref: "#/components/headers/Location" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Unpair API key tags: - Cosigners (Beta) @@ -24959,7 +23735,8 @@ paths: - lang: Python source: "response = fireblocks.cosigners_beta.unpair_api_key(cosigner_id,\ \ api_key_id);" - x-accepts: application/json + x-accepts: + - application/json get: description: | Get an API key by ID @@ -24990,20 +23767,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ApiKey' + $ref: "#/components/schemas/ApiKey" description: An ApiKey object headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get API key tags: - Cosigners (Beta) @@ -25028,7 +23798,8 @@ paths: \ apiKeyId);" - lang: Python source: "response = fireblocks.cosigners_beta.get_api_key(cosigner_id, api_key_id);" - x-accepts: application/json + x-accepts: + - application/json patch: description: Update the callback handler of an API key operationId: updateCallbackHandler @@ -25056,29 +23827,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateCallbackHandlerRequest' + $ref: "#/components/schemas/UpdateCallbackHandlerRequest" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/UpdateCallbackHandlerResponse' + $ref: "#/components/schemas/UpdateCallbackHandlerResponse" description: The API key object with the new callback handler headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" Location: - $ref: '#/components/headers/Location' + $ref: "#/components/headers/Location" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Update API key callback handler tags: - Cosigners (Beta) @@ -25110,7 +23874,8 @@ paths: 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 + x-accepts: + - application/json put: description: Pair an API key to a cosigner operationId: pairApiKey @@ -25149,29 +23914,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PairApiKeyRequest' + $ref: "#/components/schemas/PairApiKeyRequest" required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/PairApiKeyResponse' + $ref: "#/components/schemas/PairApiKeyResponse" description: The API key object to be paired headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" Location: - $ref: '#/components/headers/Location' + $ref: "#/components/headers/Location" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Pair API key tags: - Cosigners (Beta) @@ -25201,7 +23959,8 @@ paths: 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 + x-accepts: + - application/json /cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId}: get: description: Get the status of an asynchronous request @@ -25238,20 +23997,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Status' + $ref: "#/components/schemas/Status" description: The status of the request headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" default: - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorSchema' - description: Error Response - headers: - X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/responses/Error" summary: Get request status tags: - Cosigners (Beta) @@ -25278,7 +24030,8 @@ paths: - lang: Python source: "response = fireblocks.cosigners_beta.get_request_status(cosigner_id,\ \ api_key_id, request_id);" - x-accepts: application/json + x-accepts: + - application/json components: headers: X-Request-ID: @@ -25347,11 +24100,11 @@ components: content: application/json: schema: - $ref: '#/components/schemas/ErrorSchema' + $ref: "#/components/schemas/ErrorSchema" description: Error Response headers: X-Request-ID: - $ref: '#/components/headers/X-Request-ID' + $ref: "#/components/headers/X-Request-ID" BadRequestError: content: application/json: @@ -25360,7 +24113,7 @@ components: type: VALIDATION message: Invalid input data or parameters schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: "Bad request, invalid input data or parameters" OriginalTokenLinkNotFoundError: content: @@ -25370,7 +24123,7 @@ components: type: NOT_FOUND message: The specified token link was not found schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Token link not found TokenLinkPreparationError: content: @@ -25380,7 +24133,7 @@ components: type: UNPROCESSABLE_ENTITY message: An error occurred during token link preparation schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Token link preparation error OriginalTokenLinkNotFungibleError: content: @@ -25390,7 +24143,7 @@ components: type: UNPROCESSABLE_ENTITY message: The token link is not of fungible type schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Token link is not fungible InternalServerError: content: @@ -25401,7 +24154,7 @@ components: message: An unexpected error occurred during execution. Please try again later. schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Internal server error TokenLinkProcessingError: content: @@ -25411,7 +24164,7 @@ components: type: UNPROCESSABLE_ENTITY message: An error occurred during token link processing schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Token link processing error BridgingProtocolBlockchainMetadataNotFoundError: content: @@ -25421,7 +24174,7 @@ components: type: NOT_FOUND message: Bridging to the specified blockchain is not supported schema: - $ref: '#/components/schemas/ErrorResponse' + $ref: "#/components/schemas/ErrorResponse" description: Bridging protocol blockchain metadata not found schemas: ErrorSchema: @@ -25514,7 +24267,7 @@ components: blockHash: type: string rewardsInfo: - $ref: '#/components/schemas/RewardsInfo' + $ref: "#/components/schemas/RewardsInfo" type: object Tag: example: @@ -25597,7 +24350,7 @@ components: type: string assets: items: - $ref: '#/components/schemas/VaultAsset' + $ref: "#/components/schemas/VaultAsset" type: array hiddenOnUI: type: boolean @@ -25608,12 +24361,12 @@ components: tags: description: List of tags attached to the vault account items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" type: array type: object GetVaultAccountsResponse: items: - $ref: '#/components/schemas/VaultAccount' + $ref: "#/components/schemas/VaultAccount" type: array CreateVaultAccountRequest: example: @@ -25765,10 +24518,10 @@ components: properties: accounts: items: - $ref: '#/components/schemas/VaultAccount' + $ref: "#/components/schemas/VaultAccount" type: array paging: - $ref: '#/components/schemas/VaultAccountsPagedResponse_paging' + $ref: "#/components/schemas/VaultAccountsPagedResponse_paging" previousUrl: type: string nextUrl: @@ -25880,10 +24633,10 @@ components: properties: assetWallets: items: - $ref: '#/components/schemas/AssetWallet' + $ref: "#/components/schemas/AssetWallet" type: array paging: - $ref: '#/components/schemas/PaginatedAssetWalletResponse_paging' + $ref: "#/components/schemas/PaginatedAssetWalletResponse_paging" type: object VaultActionStatus: example: @@ -25990,7 +24743,7 @@ components: type: object GetVaultAccountAssetAddressesResponse: items: - $ref: '#/components/schemas/VaultWalletAddress' + $ref: "#/components/schemas/VaultWalletAddress" type: array CreateAddressRequest: example: @@ -26054,10 +24807,10 @@ components: properties: addresses: items: - $ref: '#/components/schemas/VaultWalletAddress' + $ref: "#/components/schemas/VaultWalletAddress" type: array paging: - $ref: '#/components/schemas/PaginatedAddressResponse_paging' + $ref: "#/components/schemas/PaginatedAddressResponse_paging" type: object GetMaxSpendableAmountResponse: example: @@ -26104,7 +24857,7 @@ components: status: status properties: input: - $ref: '#/components/schemas/UnspentInput' + $ref: "#/components/schemas/UnspentInput" address: type: string amount: @@ -26116,7 +24869,7 @@ components: type: object GetUnspentInputsResponse: items: - $ref: '#/components/schemas/UnspentInputsResponse' + $ref: "#/components/schemas/UnspentInputsResponse" type: array CreateMultipleAccountsRequest: example: @@ -26324,7 +25077,7 @@ components: index: 0 description: Address one items: - $ref: '#/components/schemas/NewAddress' + $ref: "#/components/schemas/NewAddress" type: array errorMessage: example: Asset not supported @@ -26368,7 +25121,7 @@ components: type: object GetVaultAssetsResponse: items: - $ref: '#/components/schemas/VaultAsset' + $ref: "#/components/schemas/VaultAsset" type: array CreateAssetsBulkRequest: example: @@ -26526,7 +25279,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/EmbeddedWalletAssetResponse' + $ref: "#/components/schemas/EmbeddedWalletAssetResponse" type: array next: description: The ID of the next page @@ -26565,7 +25318,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/EmbeddedWallet' + $ref: "#/components/schemas/EmbeddedWallet" type: array next: description: The ID of the next page @@ -26733,7 +25486,7 @@ components: example: 0000000000000000000769e73a0b8f32a6c5d55e0d64f9ec20c6c3d4e5a9a3f1 type: string rewardInfo: - $ref: '#/components/schemas/EmbeddedWalletAssetRewardInfo' + $ref: "#/components/schemas/EmbeddedWalletAssetRewardInfo" required: - available - frozen @@ -26782,7 +25535,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/EmbeddedWalletAddressDetails' + $ref: "#/components/schemas/EmbeddedWalletAddressDetails" type: array next: description: The ID of the next page @@ -26867,7 +25620,7 @@ components: keys: description: keys items: - $ref: '#/components/schemas/EmbeddedWalletLatestBackupKey' + $ref: "#/components/schemas/EmbeddedWalletLatestBackupKey" type: array required: - createdAt @@ -26937,7 +25690,7 @@ components: status: statusValue properties: status: - $ref: '#/components/schemas/EmbeddedWalletSetUpStatus' + $ref: "#/components/schemas/EmbeddedWalletSetUpStatus" deviceId: description: deviceId example: deviceIdValue @@ -26953,7 +25706,7 @@ components: confirmed: true backedUp: true items: - $ref: '#/components/schemas/EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner' + $ref: "#/components/schemas/EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner" type: array required: - deviceId @@ -27053,7 +25806,7 @@ components: type: string assets: items: - $ref: '#/components/schemas/ExchangeAsset' + $ref: "#/components/schemas/ExchangeAsset" type: array type: object ExchangeAccount: @@ -27106,14 +25859,14 @@ components: success: true name: name id: id - type: null + type: INDEPENDENT_RESERVE mainAccountId: mainAccountId status: status properties: id: type: string type: - $ref: '#/components/schemas/ExchangeType' + $ref: "#/components/schemas/ExchangeType" name: description: Display name of the exchange account type: string @@ -27121,14 +25874,14 @@ components: type: string assets: items: - $ref: '#/components/schemas/ExchangeAsset' + $ref: "#/components/schemas/ExchangeAsset" type: array success: description: Did succeed in retrieve balance data type: boolean tradingAccounts: items: - $ref: '#/components/schemas/ExchangeTradingAccount' + $ref: "#/components/schemas/ExchangeTradingAccount" type: array isSubaccount: description: True if the account is a subaccount in an exchange @@ -27139,18 +25892,18 @@ components: type: object GetExchangeAccountsResponse: items: - $ref: '#/components/schemas/ExchangeAccount' + $ref: "#/components/schemas/ExchangeAccount" type: array AddExchangeAccountRequest: example: name: name - exchangeType: null + exchangeType: INDEPENDENT_RESERVE creds: creds key: key mainAccountId: mainAccountId properties: exchangeType: - $ref: '#/components/schemas/ExchangeType' + $ref: "#/components/schemas/ExchangeType" name: description: Display name of the exchange account type: string @@ -27170,7 +25923,7 @@ components: AddExchangeAccountResponse: example: name: name - exchangeType: null + exchangeType: INDEPENDENT_RESERVE id: id properties: id: @@ -27180,7 +25933,7 @@ components: description: Display name of the exchange account type: string exchangeType: - $ref: '#/components/schemas/ExchangeType' + $ref: "#/components/schemas/ExchangeType" type: object ExchangeAccountsPaged: example: @@ -27234,7 +25987,7 @@ components: success: true name: name id: id - type: null + type: INDEPENDENT_RESERVE mainAccountId: mainAccountId status: status - tradingAccounts: @@ -27285,7 +26038,7 @@ components: success: true name: name id: id - type: null + type: INDEPENDENT_RESERVE mainAccountId: mainAccountId status: status paging: @@ -27295,10 +26048,10 @@ components: properties: ExchangeAccount: items: - $ref: '#/components/schemas/ExchangeAccount' + $ref: "#/components/schemas/ExchangeAccount" type: array paging: - $ref: '#/components/schemas/ExchangeAccountsPaged_paging' + $ref: "#/components/schemas/ExchangeAccountsPaged_paging" prevUrl: type: string nextUrl: @@ -27306,7 +26059,7 @@ components: type: object GetPagedExchangeAccountsResponse: items: - $ref: '#/components/schemas/ExchangeAccountsPaged' + $ref: "#/components/schemas/ExchangeAccountsPaged" type: array TradingAccountType: enum: @@ -27328,7 +26081,7 @@ components: CreateInternalTransferRequest: example: amount: amount - sourceType: null + sourceType: COIN_FUTURES asset: asset destType: null properties: @@ -27337,9 +26090,9 @@ components: amount: type: string sourceType: - $ref: '#/components/schemas/TradingAccountType' + $ref: "#/components/schemas/TradingAccountType" destType: - $ref: '#/components/schemas/TradingAccountType' + $ref: "#/components/schemas/TradingAccountType" required: - amount - asset @@ -27434,12 +26187,12 @@ components: id: id name: name id: id - type: null + type: BLINC properties: id: type: string type: - $ref: '#/components/schemas/FiatAccountType' + $ref: "#/components/schemas/FiatAccountType" name: description: Display name of the fiat account type: string @@ -27448,12 +26201,12 @@ components: type: string assets: items: - $ref: '#/components/schemas/FiatAsset' + $ref: "#/components/schemas/FiatAsset" type: array type: object GetFiatAccountsResponse: items: - $ref: '#/components/schemas/FiatAccount' + $ref: "#/components/schemas/FiatAccount" type: array Funds: example: @@ -27566,7 +26319,7 @@ components: type: object NetworkConnectionRoutingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkConnectionRoutingPolicy_value' + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" type: object NetworkConnectionResponse: example: @@ -27584,29 +26337,29 @@ components: scheme: CUSTOM dstId: dstId dstType: FIAT_ACCOUNT - status: null + status: WAITING_FOR_APPROVAL properties: id: type: string localChannel: allOf: - - $ref: '#/components/schemas/NetworkChannel' + - $ref: "#/components/schemas/NetworkChannel" deprecated: true description: Deprecated - Replaced by `localNetworkId` remoteChannel: allOf: - - $ref: '#/components/schemas/NetworkChannel' + - $ref: "#/components/schemas/NetworkChannel" deprecated: true description: Deprecated - Replaced by `remoteNetworkId` status: - $ref: '#/components/schemas/NetworkConnectionStatus' + $ref: "#/components/schemas/NetworkConnectionStatus" localNetworkId: - $ref: '#/components/schemas/NetworkId' + $ref: "#/components/schemas/NetworkId" remoteNetworkId: - $ref: '#/components/schemas/NetworkId' + $ref: "#/components/schemas/NetworkId" routingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkConnectionRoutingPolicy_value' + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" type: object required: - id @@ -27617,7 +26370,7 @@ components: type: object GetNetworkConnectionsResponse: items: - $ref: '#/components/schemas/NetworkConnectionResponse' + $ref: "#/components/schemas/NetworkConnectionResponse" type: array NetworkConnection: example: @@ -27637,7 +26390,7 @@ components: type: string routingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkConnectionRoutingPolicy_value' + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" type: object required: - localNetworkId @@ -27653,7 +26406,7 @@ components: properties: routingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkConnectionRoutingPolicy_value' + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" type: object required: - routingPolicy @@ -27688,7 +26441,7 @@ components: type: object NetworkIdRoutingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkIdRoutingPolicy_value' + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" type: object NetworkIdResponse: example: @@ -27703,7 +26456,7 @@ components: properties: routingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkIdRoutingPolicy_value' + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" type: object isDiscoverable: description: The specific network is discoverable. @@ -27718,7 +26471,7 @@ components: GetNetworkIdsResponse: items: allOf: - - $ref: '#/components/schemas/NetworkIdResponse' + - $ref: "#/components/schemas/NetworkIdResponse" type: array CreateNetworkIdRequest: example: @@ -27733,7 +26486,7 @@ components: type: string routingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkIdRoutingPolicy_value' + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" type: object required: - name @@ -27765,7 +26518,7 @@ components: properties: data: items: - $ref: '#/components/schemas/NetworkIdResponse' + $ref: "#/components/schemas/NetworkIdResponse" type: array next: type: string @@ -27789,7 +26542,7 @@ components: properties: routingPolicy: additionalProperties: - $ref: '#/components/schemas/NetworkIdRoutingPolicy_value' + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" type: object required: - routingPolicy @@ -27837,7 +26590,7 @@ components: id: id tag: tag activationTime: activationTime - status: null + status: WAITING_FOR_APPROVAL properties: id: type: string @@ -27846,7 +26599,7 @@ components: lockedAmount: type: string status: - $ref: '#/components/schemas/ConfigChangeRequestStatus' + $ref: "#/components/schemas/ConfigChangeRequestStatus" address: type: string tag: @@ -27863,14 +26616,14 @@ components: id: id tag: tag activationTime: activationTime - status: null + status: WAITING_FOR_APPROVAL - lockedAmount: lockedAmount address: address balance: balance id: id tag: tag activationTime: activationTime - status: null + status: WAITING_FOR_APPROVAL name: name id: id customerRefId: customerRefId @@ -27883,7 +26636,7 @@ components: type: string assets: items: - $ref: '#/components/schemas/WalletAsset' + $ref: "#/components/schemas/WalletAsset" type: array required: - assets @@ -27892,7 +26645,7 @@ components: type: object GetInternalWalletsResponse: items: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" type: array CreateWalletRequest: example: @@ -27918,14 +26671,14 @@ components: id: id tag: tag activationTime: activationTime - status: null + status: WAITING_FOR_APPROVAL - lockedAmount: lockedAmount address: address balance: balance id: id tag: tag activationTime: activationTime - status: null + status: WAITING_FOR_APPROVAL name: name id: id customerRefId: customerRefId @@ -27934,7 +26687,7 @@ components: description: Total number of assets in the internal wallet type: number data: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" next: description: Cursor for the next page of results type: string @@ -28042,7 +26795,7 @@ components: data: description: Response object for getting external signing keys. items: - $ref: '#/components/schemas/SigningKeyDto' + $ref: "#/components/schemas/SigningKeyDto" type: array next: description: The ID of the next page @@ -28077,7 +26830,7 @@ components: minLength: 36 type: string proofOfOwnership: - $ref: '#/components/schemas/CreateSigningKeyDto_proofOfOwnership' + $ref: "#/components/schemas/CreateSigningKeyDto_proofOfOwnership" required: - agentUserId - signedCertPem @@ -28163,7 +26916,7 @@ components: data: description: Response object for getting external validation keys. items: - $ref: '#/components/schemas/ValidationKeyDto' + $ref: "#/components/schemas/ValidationKeyDto" type: array next: description: The ID of the next page @@ -28201,7 +26954,7 @@ components: properties: validationKey: allOf: - - $ref: '#/components/schemas/ValidationKeyDto' + - $ref: "#/components/schemas/ValidationKeyDto" description: Created validation key admins: description: Admins who have to approve the validation key addition @@ -28286,7 +27039,7 @@ components: players: description: The players that are associated with the key items: - $ref: '#/components/schemas/Players' + $ref: "#/components/schemas/Players" type: array lastPreprocessedIndex: description: The last index used on this key @@ -28331,7 +27084,7 @@ components: keys: description: The keys that are associated with the workspace items: - $ref: '#/components/schemas/MpcKey' + $ref: "#/components/schemas/MpcKey" type: array required: - keys @@ -28339,7 +27092,7 @@ components: type: object GetExternalWalletsResponse: items: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" type: array WalletAssetAdditionalInfo: example: @@ -28434,12 +27187,12 @@ components: id: id tag: tag activationTime: activationTime - status: null + status: WAITING_FOR_APPROVAL properties: id: type: string status: - $ref: '#/components/schemas/ConfigChangeRequestStatus' + $ref: "#/components/schemas/ConfigChangeRequestStatus" address: type: string balance: @@ -28452,16 +27205,601 @@ components: type: string additionalInfo: items: - $ref: '#/components/schemas/WalletAssetAdditionalInfo' + $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/AddAssetToExternalWalletRequest_oneOf' - - $ref: '#/components/schemas/AddAssetToExternalWalletRequest_oneOf_1' + - $ref: "#/components/schemas/BasicAddressRequest" + - $ref: "#/components/schemas/AdditionalInfoRequest" GetContractsResponse: items: - $ref: '#/components/schemas/UnmanagedWallet' + $ref: "#/components/schemas/UnmanagedWallet" type: array CreateContractRequest: example: @@ -28513,7 +27851,7 @@ components: type: object GetSupportedAssetsResponse: items: - $ref: '#/components/schemas/AssetTypeResponse' + $ref: "#/components/schemas/AssetTypeResponse" type: array AssetClass: enum: @@ -28587,7 +27925,7 @@ components: example: image/svg+xml type: string attributes: - $ref: '#/components/schemas/AssetMedia_attributes' + $ref: "#/components/schemas/AssetMedia_attributes" required: - type - url @@ -28646,7 +27984,7 @@ components: url: https://example.com/image.png properties: scope: - $ref: '#/components/schemas/AssetScope' + $ref: "#/components/schemas/AssetScope" verified: description: Is asset verified by Fireblocks example: false @@ -28666,10 +28004,10 @@ components: media: description: Asset’s media items: - $ref: '#/components/schemas/AssetMedia' + $ref: "#/components/schemas/AssetMedia" type: array note: - $ref: '#/components/schemas/AssetNote' + $ref: "#/components/schemas/AssetNote" required: - deprecated - scope @@ -28732,11 +28070,11 @@ components: example: USDT type: string assetClass: - $ref: '#/components/schemas/AssetClass' + $ref: "#/components/schemas/AssetClass" onchain: - $ref: '#/components/schemas/AssetDetailsOnchain' + $ref: "#/components/schemas/AssetDetailsOnchain" metadata: - $ref: '#/components/schemas/AssetDetailsMetadata' + $ref: "#/components/schemas/AssetDetailsMetadata" required: - assetClass - displayName @@ -28819,7 +28157,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" type: array next: description: Cursor to the next page @@ -28955,9 +28293,9 @@ components: example: FT type: string onchain: - $ref: '#/components/schemas/AssetOnchain' + $ref: "#/components/schemas/AssetOnchain" metadata: - $ref: '#/components/schemas/AssetMetadata' + $ref: "#/components/schemas/AssetMetadata" required: - assetClass - legacyId @@ -29064,7 +28402,7 @@ components: text: Pay attention to ETH gas fees properties: note: - $ref: '#/components/schemas/AssetNoteRequest' + $ref: "#/components/schemas/AssetNoteRequest" type: object UpdateAssetUserMetadataRequest: example: @@ -29073,7 +28411,7 @@ components: text: Pay attention to ETH gas fees properties: metadata: - $ref: '#/components/schemas/AssetMetadataRequest' + $ref: "#/components/schemas/AssetMetadataRequest" type: object SetAssetPriceRequest: example: @@ -29257,7 +28595,7 @@ components: url: https://example.com/image.png properties: scope: - $ref: '#/components/schemas/AssetScope' + $ref: "#/components/schemas/AssetScope" deprecated: description: Is blockchain deprecated example: false @@ -29265,10 +28603,10 @@ components: media: description: Blockchain’s media items: - $ref: '#/components/schemas/BlockchainMedia' + $ref: "#/components/schemas/BlockchainMedia" type: array explorer: - $ref: '#/components/schemas/BlockchainExplorer' + $ref: "#/components/schemas/BlockchainExplorer" required: - deprecated - scope @@ -29315,9 +28653,9 @@ components: example: 9f9f7062-df90-4fc0-8697-96685184356a type: string onchain: - $ref: '#/components/schemas/BlockchainOnchain' + $ref: "#/components/schemas/BlockchainOnchain" metadata: - $ref: '#/components/schemas/BlockchainMetadata' + $ref: "#/components/schemas/BlockchainMetadata" required: - displayName - id @@ -29378,7 +28716,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/BlockchainResponse' + $ref: "#/components/schemas/BlockchainResponse" type: array next: description: Cursor to the next page @@ -29466,10 +28804,10 @@ components: name: name subType: subType id: id - type: null + type: VAULT_ACCOUNT properties: type: - $ref: '#/components/schemas/TransferPeerPathType' + $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\ @@ -29515,7 +28853,7 @@ components: type: null properties: type: - $ref: '#/components/schemas/TransferPeerPathType' + $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\ @@ -29598,7 +28936,7 @@ components: type: string groups: items: - $ref: '#/components/schemas/AuthorizationGroups' + $ref: "#/components/schemas/AuthorizationGroups" type: array type: object TransactionResponseDestination: @@ -29639,11 +28977,11 @@ components: description: The USD value of the requested amount. type: string amlScreeningResult: - $ref: '#/components/schemas/AmlScreeningResult' + $ref: "#/components/schemas/AmlScreeningResult" destination: - $ref: '#/components/schemas/DestinationTransferPeerPathResponse' + $ref: "#/components/schemas/DestinationTransferPeerPathResponse" authorizationInfo: - $ref: '#/components/schemas/AuthorizationInfo' + $ref: "#/components/schemas/AuthorizationInfo" type: object AmountInfo: description: The details of the requested amount to transfer. @@ -29748,7 +29086,7 @@ components: name: name subType: subType id: id - type: null + type: VAULT_ACCOUNT type: type isDropped: true rewardInfo: @@ -29758,9 +29096,9 @@ components: txHash: txHash properties: source: - $ref: '#/components/schemas/SourceTransferPeerPathResponse' + $ref: "#/components/schemas/SourceTransferPeerPathResponse" destination: - $ref: '#/components/schemas/DestinationTransferPeerPathResponse' + $ref: "#/components/schemas/DestinationTransferPeerPathResponse" txHash: type: string networkFee: @@ -29784,7 +29122,7 @@ components: index: type: number rewardInfo: - $ref: '#/components/schemas/RewardInfo' + $ref: "#/components/schemas/RewardInfo" type: object ComplianceScreeningResult: example: @@ -29886,21 +29224,21 @@ components: bypassReason: bypassReason screeningStatus: COMPLETED timestamp: 5.637376656633329 - status: null + status: Started properties: aml: - $ref: '#/components/schemas/ComplianceScreeningResult' + $ref: "#/components/schemas/ComplianceScreeningResult" tr: - $ref: '#/components/schemas/ComplianceScreeningResult' + $ref: "#/components/schemas/ComplianceScreeningResult" amlList: description: The list of all results of the AML screening. items: - $ref: '#/components/schemas/ComplianceScreeningResult' + $ref: "#/components/schemas/ComplianceScreeningResult" type: array status: - $ref: '#/components/schemas/ComplianceResultStatusesEnum' + $ref: "#/components/schemas/ComplianceResultStatusesEnum" amlRegistration: - $ref: '#/components/schemas/AmlRegistrationResult' + $ref: "#/components/schemas/AmlRegistrationResult" type: object ExtraParameters: description: | @@ -29941,13 +29279,13 @@ components: type: number type: array signature: - $ref: '#/components/schemas/SignedMessage_signature' + $ref: "#/components/schemas/SignedMessage_signature" publicKey: type: string type: object SignedMessages: items: - $ref: '#/components/schemas/SignedMessage' + $ref: "#/components/schemas/SignedMessage" type: array BlockInfo: description: |- @@ -30023,7 +29361,7 @@ components: name: name subType: subType id: id - type: null + type: VAULT_ACCOUNT externalTxId: externalTxId networkRecords: - amountUSD: amountUSD @@ -30045,7 +29383,7 @@ components: name: name subType: subType id: id - type: null + type: VAULT_ACCOUNT type: type isDropped: true rewardInfo: @@ -30072,7 +29410,7 @@ components: name: name subType: subType id: id - type: null + type: VAULT_ACCOUNT type: type isDropped: true rewardInfo: @@ -30217,7 +29555,7 @@ components: bypassReason: bypassReason screeningStatus: COMPLETED timestamp: 5.637376656633329 - status: null + status: Started createdBy: createdBy exchangeTxId: exchangeTxId rewardInfo: @@ -30228,7 +29566,7 @@ components: payload: "{}" destinationAddressDescription: destinationAddressDescription requestedAmount: 4.145608029883936 - operation: null + operation: TRANSFER status: status properties: id: @@ -30266,7 +29604,7 @@ components: 2. The transaction operation is not RAW or `TYPED_MESSAGE`. type: string operation: - $ref: '#/components/schemas/GetTransactionOperation' + $ref: "#/components/schemas/GetTransactionOperation" note: description: "Custom note, not sent to the blockchain, that describes the\ \ transaction at your Fireblocks workspace." @@ -30278,7 +29616,7 @@ components: type: string x-fb-entity: asset source: - $ref: '#/components/schemas/SourceTransferPeerPathResponse' + $ref: "#/components/schemas/SourceTransferPeerPathResponse" sourceAddress: description: |- For account based assets only, the source address of the transaction. @@ -30289,13 +29627,13 @@ components: \ Transfer Description for the fiat provider BLINC (by BCB Group)." type: string destination: - $ref: '#/components/schemas/DestinationTransferPeerPathResponse' + $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' + $ref: "#/components/schemas/TransactionResponseDestination" type: array destinationAddress: description: |- @@ -30312,9 +29650,9 @@ components: \ or Bank Transfer Description for the fiat provider BLINC (by BCB Group)." type: string contractCallDecodedData: - $ref: '#/components/schemas/TransactionResponse_contractCallDecodedData' + $ref: "#/components/schemas/TransactionResponse_contractCallDecodedData" amountInfo: - $ref: '#/components/schemas/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. @@ -30322,7 +29660,7 @@ components: **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' + $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." @@ -30333,7 +29671,7 @@ components: \ each transfer that took place on the blockchain. In case of a single\ \ transfer transaction, this parameter is empty." items: - $ref: '#/components/schemas/NetworkRecord' + $ref: "#/components/schemas/NetworkRecord" type: array createdAt: description: "The transaction’s creation date and time, in unix timestamp." @@ -30354,7 +29692,7 @@ components: it was rejected). type: string authorizationInfo: - $ref: '#/components/schemas/AuthorizationInfo' + $ref: "#/components/schemas/AuthorizationInfo" exchangeTxId: description: "If the transaction originated from an exchange, this is the\ \ ID of this transaction at the exchange." @@ -30364,9 +29702,9 @@ components: transactions. type: string amlScreeningResult: - $ref: '#/components/schemas/AmlScreeningResult' + $ref: "#/components/schemas/AmlScreeningResult" complianceResults: - $ref: '#/components/schemas/ComplianceResults' + $ref: "#/components/schemas/ComplianceResults" extraParameters: description: | Additional protocol / operation specific key-value parameters: @@ -30381,7 +29719,7 @@ components: type: object signedMessages: items: - $ref: '#/components/schemas/SignedMessage' + $ref: "#/components/schemas/SignedMessage" type: array numOfConfirmations: description: The number of confirmations of the transaction. The number @@ -30389,16 +29727,16 @@ components: to the confirmation policy. type: number blockInfo: - $ref: '#/components/schemas/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' + $ref: "#/components/schemas/RewardInfo" systemMessages: - $ref: '#/components/schemas/SystemMessageInfo' + $ref: "#/components/schemas/SystemMessageInfo" addressType: enum: - "" @@ -30449,7 +29787,7 @@ components: type: object GetTransactionsResponse: items: - $ref: '#/components/schemas/TransactionResponse' + $ref: "#/components/schemas/TransactionResponse" type: array TransactionOperation: default: TRANSFER @@ -30515,14 +29853,14 @@ components: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 isCollateral: true name: name - subType: null + subType: BINANCE id: id - type: null + type: VAULT_ACCOUNT properties: type: - $ref: '#/components/schemas/TransferPeerPathType' + $ref: "#/components/schemas/TransferPeerPathType" subType: - $ref: '#/components/schemas/TransferPeerPathSubType' + $ref: "#/components/schemas/TransferPeerPathSubType" id: type: string name: @@ -30563,9 +29901,9 @@ components: type: null properties: type: - $ref: '#/components/schemas/TransferPeerPathType' + $ref: "#/components/schemas/TransferPeerPathType" subType: - $ref: '#/components/schemas/TransferPeerPathSubType' + $ref: "#/components/schemas/TransferPeerPathSubType" id: type: string name: @@ -30574,7 +29912,7 @@ components: format: uuid type: string oneTimeAddress: - $ref: '#/components/schemas/OneTimeAddress' + $ref: "#/components/schemas/OneTimeAddress" isCollateral: description: indicate if the destination is collateral account example: true @@ -30601,7 +29939,7 @@ components: amount: type: string destination: - $ref: '#/components/schemas/DestinationTransferPeerPath' + $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 @@ -30681,15 +30019,15 @@ components: properties: nameIdentifier: items: - $ref: '#/components/schemas/TravelRuleNaturalNameIdentifier' + $ref: "#/components/schemas/TravelRuleNaturalNameIdentifier" type: array localNameIdentifier: items: - $ref: '#/components/schemas/TravelRuleNaturalNameIdentifier' + $ref: "#/components/schemas/TravelRuleNaturalNameIdentifier" type: array phoneticNameIdentifier: items: - $ref: '#/components/schemas/TravelRuleNaturalNameIdentifier' + $ref: "#/components/schemas/TravelRuleNaturalNameIdentifier" type: array type: object TravelRuleGeographicAddress: @@ -30935,18 +30273,18 @@ components: description: "An array of structured name identifiers for the natural person,\ \ referencing the TravelRuleNaturalPersonNameIdentifier schema." items: - $ref: '#/components/schemas/TravelRuleNaturalPersonNameIdentifier' + $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' + $ref: "#/components/schemas/TravelRuleGeographicAddress" type: array nationalIdentification: - $ref: '#/components/schemas/TravelRuleNationalIdentification' + $ref: "#/components/schemas/TravelRuleNationalIdentification" dateAndPlaceOfBirth: - $ref: '#/components/schemas/TravelRuleDateAndPlaceOfBirth' + $ref: "#/components/schemas/TravelRuleDateAndPlaceOfBirth" customerIdentification: description: A unique identifier for the customer within the organization's context. The value must be encrypted. @@ -31031,15 +30369,15 @@ components: countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr properties: name: - $ref: '#/components/schemas/TravelRuleLegalPersonNameIdentifier' + $ref: "#/components/schemas/TravelRuleLegalPersonNameIdentifier" geographicAddress: description: The array of geographic addresses associated with the legal person. items: - $ref: '#/components/schemas/TravelRuleGeographicAddress' + $ref: "#/components/schemas/TravelRuleGeographicAddress" type: array nationalIdentification: - $ref: '#/components/schemas/TravelRuleNationalIdentification' + $ref: "#/components/schemas/TravelRuleNationalIdentification" customerIdentification: description: A unique identifier that identifies the customer in the organization's context. The value must be encrypted. @@ -31197,9 +30535,9 @@ components: customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj properties: naturalPerson: - $ref: '#/components/schemas/TravelRuleNaturalPerson' + $ref: "#/components/schemas/TravelRuleNaturalPerson" legalPerson: - $ref: '#/components/schemas/TravelRuleLegalPerson' + $ref: "#/components/schemas/TravelRuleLegalPerson" type: object TravelRulePiiIVMS: description: Personal identifiable information related to the transaction @@ -31761,12 +31099,12 @@ components: originatorPersons: description: Information about the originator of the transaction items: - $ref: '#/components/schemas/TravelRulePerson' + $ref: "#/components/schemas/TravelRulePerson" type: array beneficiaryPersons: description: Information about the beneficiary of the transaction items: - $ref: '#/components/schemas/TravelRulePerson' + $ref: "#/components/schemas/TravelRulePerson" type: array accountNumber: description: Beneficiary account number. The value must be encrypted. @@ -33003,11 +32341,11 @@ components: example: https://www.beneficiaryvasp.com type: string transactionBlockchainInfo: - $ref: '#/components/schemas/TravelRuleTransactionBlockchainInfo' + $ref: "#/components/schemas/TravelRuleTransactionBlockchainInfo" originator: - $ref: '#/components/schemas/TravelRulePiiIVMS' + $ref: "#/components/schemas/TravelRulePiiIVMS" beneficiary: - $ref: '#/components/schemas/TravelRulePiiIVMS' + $ref: "#/components/schemas/TravelRulePiiIVMS" encrypted: description: Encrypted data related to the transaction. example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... @@ -33048,9 +32386,9 @@ components: example: TRB987654 type: string originatorProof: - $ref: '#/components/schemas/TravelRuleOwnershipProof' + $ref: "#/components/schemas/TravelRuleOwnershipProof" beneficiaryProof: - $ref: '#/components/schemas/TravelRuleOwnershipProof' + $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\ @@ -33098,9 +32436,9 @@ components: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 isCollateral: true name: name - subType: null + subType: BINANCE id: id - type: null + type: VAULT_ACCOUNT maxFee: "120" travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 externalTxId: 00000000-0000-0000-0000-000000000000 @@ -34290,26 +33628,21 @@ components: treatAsGrossAmount: false networkStaking: TransactionRequest_networkStaking autoStaking: true - operation: null + operation: TRANSFER replaceTxByHash: 00000000-0000-0000-0000-000000000000 properties: operation: - $ref: '#/components/schemas/TransactionOperation' + $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: "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." + 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: @@ -34320,17 +33653,17 @@ components: type: string x-fb-entity: asset source: - $ref: '#/components/schemas/SourceTransferPeerPath' + $ref: "#/components/schemas/SourceTransferPeerPath" destination: - $ref: '#/components/schemas/DestinationTransferPeerPath' + $ref: "#/components/schemas/DestinationTransferPeerPath" destinations: description: "For UTXO based blockchains, you can send a single transaction\ \ to multiple destinations." items: - $ref: '#/components/schemas/TransactionRequestDestination' + $ref: "#/components/schemas/TransactionRequestDestination" type: array amount: - $ref: '#/components/schemas/TransactionRequest_amount' + $ref: "#/components/schemas/TransactionRequest_amount" treatAsGrossAmount: description: |- "When set to `true`, the fee will be deducted from the requested amount." @@ -34356,9 +33689,9 @@ components: example: MEDIUM type: string fee: - $ref: '#/components/schemas/TransactionRequest_fee' + $ref: "#/components/schemas/TransactionRequest_fee" priorityFee: - $ref: '#/components/schemas/TransactionRequest_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\ @@ -34377,11 +33710,11 @@ components: example: "88" type: string gasLimit: - $ref: '#/components/schemas/TransactionRequest_gasLimit' + $ref: "#/components/schemas/TransactionRequest_gasLimit" gasPrice: - $ref: '#/components/schemas/TransactionRequest_gasPrice' + $ref: "#/components/schemas/TransactionRequest_gasPrice" networkFee: - $ref: '#/components/schemas/TransactionRequest_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\ @@ -34407,7 +33740,7 @@ components: example: abcdef type: string travelRuleMessage: - $ref: '#/components/schemas/TravelRuleCreateTransactionRequest' + $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 @@ -34419,9 +33752,9 @@ components: description: This feature is no longer supported. type: boolean networkStaking: - $ref: '#/components/schemas/TransactionRequest_networkStaking' + $ref: "#/components/schemas/TransactionRequest_networkStaking" cpuStaking: - $ref: '#/components/schemas/TransactionRequest_networkStaking' + $ref: "#/components/schemas/TransactionRequest_networkStaking" useGasless: description: '- Override the default gasless configuration by sending true\false' type: boolean @@ -34442,7 +33775,7 @@ components: \ transaction statuses.] (https://developers.fireblocks.com/reference/primary-transaction-statuses)" type: string systemMessages: - $ref: '#/components/schemas/SystemMessageInfo' + $ref: "#/components/schemas/SystemMessageInfo" type: object TransactionFee: example: @@ -34478,8 +33811,8 @@ components: type: object FeeBreakdown: oneOf: - - $ref: '#/components/schemas/FeeBreakdown_oneOf' - - $ref: '#/components/schemas/FeeBreakdown_oneOf_1' + - $ref: "#/components/schemas/FeeBreakdown_oneOf" + - $ref: "#/components/schemas/FeeBreakdown_oneOf_1" EstimatedFeeDetails: description: Optional detailed fee breakdown for high/medium/low estimates example: @@ -34492,11 +33825,11 @@ components: medium: null properties: low: - $ref: '#/components/schemas/FeeBreakdown' + $ref: "#/components/schemas/FeeBreakdown" medium: - $ref: '#/components/schemas/FeeBreakdown' + $ref: "#/components/schemas/FeeBreakdown" high: - $ref: '#/components/schemas/FeeBreakdown' + $ref: "#/components/schemas/FeeBreakdown" type: object EstimatedTransactionFeeResponse: example: @@ -34537,13 +33870,13 @@ components: maxFeePerGasDelta: maxFeePerGasDelta properties: low: - $ref: '#/components/schemas/TransactionFee' + $ref: "#/components/schemas/TransactionFee" medium: - $ref: '#/components/schemas/TransactionFee' + $ref: "#/components/schemas/TransactionFee" high: - $ref: '#/components/schemas/TransactionFee' + $ref: "#/components/schemas/TransactionFee" feeDetails: - $ref: '#/components/schemas/EstimatedFeeDetails' + $ref: "#/components/schemas/EstimatedFeeDetails" required: - high - low @@ -34647,7 +33980,7 @@ components: type: object RescanTransactionRequest: items: - $ref: '#/components/schemas/RescanTransaction' + $ref: "#/components/schemas/RescanTransaction" type: array ValidatedTransactionsForRescan: example: @@ -34671,7 +34004,7 @@ components: type: object ValidatedTransactionsForRescanResponse: items: - $ref: '#/components/schemas/ValidatedTransactionsForRescan' + $ref: "#/components/schemas/ValidatedTransactionsForRescan" type: array NetworkFee: example: @@ -34716,11 +34049,11 @@ components: gasPrice: gasPrice properties: low: - $ref: '#/components/schemas/NetworkFee' + $ref: "#/components/schemas/NetworkFee" medium: - $ref: '#/components/schemas/NetworkFee' + $ref: "#/components/schemas/NetworkFee" high: - $ref: '#/components/schemas/NetworkFee' + $ref: "#/components/schemas/NetworkFee" required: - high - low @@ -34735,12 +34068,12 @@ components: PaymentAccount: example: id: id - type: null + type: VAULT_ACCOUNT properties: id: type: string type: - $ref: '#/components/schemas/PaymentAccountType' + $ref: "#/components/schemas/PaymentAccountType" required: - id - type @@ -34763,12 +34096,12 @@ components: PayeeAccount: example: id: id - type: null + type: VAULT_ACCOUNT properties: id: type: string type: - $ref: '#/components/schemas/PayeeAccountType' + $ref: "#/components/schemas/PayeeAccountType" required: - id - type @@ -34794,14 +34127,14 @@ components: id: id payeeAccount: id: id - type: null + type: VAULT_ACCOUNT properties: id: type: string payeeAccount: - $ref: '#/components/schemas/PayeeAccount' + $ref: "#/components/schemas/PayeeAccount" amount: - $ref: '#/components/schemas/InstructionAmount' + $ref: "#/components/schemas/InstructionAmount" required: - amount - payeeAccount @@ -34815,23 +34148,23 @@ components: id: id payeeAccount: id: id - type: null + type: VAULT_ACCOUNT - amount: amount: amount assetId: assetId id: id payeeAccount: id: id - type: null + type: VAULT_ACCOUNT paymentAccount: id: id - type: null + type: VAULT_ACCOUNT properties: paymentAccount: - $ref: '#/components/schemas/PaymentAccount' + $ref: "#/components/schemas/PaymentAccount" instructionSet: items: - $ref: '#/components/schemas/PayoutInstruction' + $ref: "#/components/schemas/PayoutInstruction" type: array required: - instructionSet @@ -34840,12 +34173,12 @@ components: PaymentAccountResponse: example: id: id - type: null + type: VAULT_ACCOUNT properties: id: type: string type: - $ref: '#/components/schemas/PaymentAccountType' + $ref: "#/components/schemas/PaymentAccountType" type: object PayoutState: description: | @@ -34892,12 +34225,12 @@ components: PayeeAccountResponse: example: id: id - type: null + type: VAULT_ACCOUNT properties: id: type: string type: - $ref: '#/components/schemas/PayeeAccountType' + $ref: "#/components/schemas/PayeeAccountType" type: object PayoutInstructionState: description: "- NOT_STARTED\t- waiting to start\n- TRANSACTION_SENT - an underlying\ @@ -34959,10 +34292,10 @@ components: amount: amount assetId: assetId id: id - state: null + state: NOT_STARTED payeeAccount: id: id - type: null + type: VAULT_ACCOUNT transactions: - instructionId: instructionId id: id @@ -34976,14 +34309,14 @@ components: id: type: string payeeAccount: - $ref: '#/components/schemas/PayeeAccountResponse' + $ref: "#/components/schemas/PayeeAccountResponse" amount: - $ref: '#/components/schemas/InstructionAmount' + $ref: "#/components/schemas/InstructionAmount" state: - $ref: '#/components/schemas/PayoutInstructionState' + $ref: "#/components/schemas/PayoutInstructionState" transactions: items: - $ref: '#/components/schemas/Transaction' + $ref: "#/components/schemas/Transaction" type: array required: - amount @@ -34994,17 +34327,17 @@ components: PayoutResponse: example: createdAt: 0.8008281904610115 - initMethod: null + initMethod: FILE reasonOfFailure: reasonOfFailure instructionSet: - amount: amount: amount assetId: assetId id: id - state: null + state: NOT_STARTED payeeAccount: id: id - type: null + type: VAULT_ACCOUNT transactions: - instructionId: instructionId id: id @@ -35018,10 +34351,10 @@ components: amount: amount assetId: assetId id: id - state: null + state: NOT_STARTED payeeAccount: id: id - type: null + type: VAULT_ACCOUNT transactions: - instructionId: instructionId id: id @@ -35031,24 +34364,24 @@ components: id: id state: SUBMITTED timestamp: 6.027456183070403 - state: null + state: CREATED reportUrl: reportUrl payoutId: payoutId paymentAccount: id: id - type: null - status: null + type: VAULT_ACCOUNT + status: REGISTERED properties: payoutId: type: string paymentAccount: - $ref: '#/components/schemas/PaymentAccountResponse' + $ref: "#/components/schemas/PaymentAccountResponse" createdAt: type: number state: - $ref: '#/components/schemas/PayoutState' + $ref: "#/components/schemas/PayoutState" status: - $ref: '#/components/schemas/PayoutStatus' + $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\ @@ -35058,10 +34391,10 @@ components:
\n" type: string initMethod: - $ref: '#/components/schemas/PayoutInitMethod' + $ref: "#/components/schemas/PayoutInitMethod" instructionSet: items: - $ref: '#/components/schemas/PayoutInstructionResponse' + $ref: "#/components/schemas/PayoutInstructionResponse" type: array reportUrl: type: string @@ -35080,7 +34413,7 @@ components: message: message properties: error: - $ref: '#/components/schemas/ErrorResponse_error' + $ref: "#/components/schemas/ErrorResponse_error" required: - error type: object @@ -35124,9 +34457,9 @@ components: CreateConversionConfigOperationRequest: properties: type: - $ref: '#/components/schemas/ConversionOperationType' + $ref: "#/components/schemas/ConversionOperationType" params: - $ref: '#/components/schemas/ConversionOperationConfigParams' + $ref: "#/components/schemas/ConversionOperationConfigParams" required: - params - type @@ -35148,7 +34481,7 @@ components: accountId: type: string accountType: - $ref: '#/components/schemas/AccountType' + $ref: "#/components/schemas/AccountType" required: - accountId - accountType @@ -35164,8 +34497,8 @@ components: type: object Destination: oneOf: - - $ref: '#/components/schemas/Account' - - $ref: '#/components/schemas/OneTimeAddressAccount' + - $ref: "#/components/schemas/Account" + - $ref: "#/components/schemas/OneTimeAddressAccount" TransferOperationConfigParams: properties: amount: @@ -35173,18 +34506,18 @@ components: assetId: type: string source: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" destination: - $ref: '#/components/schemas/Destination' + $ref: "#/components/schemas/Destination" required: - destination type: object CreateTransferConfigOperationRequest: properties: type: - $ref: '#/components/schemas/TransferOperationType' + $ref: "#/components/schemas/TransferOperationType" params: - $ref: '#/components/schemas/TransferOperationConfigParams' + $ref: "#/components/schemas/TransferOperationConfigParams" required: - params - type @@ -35196,7 +34529,7 @@ components: DisbursementAmountInstruction: properties: payeeAccount: - $ref: '#/components/schemas/Destination' + $ref: "#/components/schemas/Destination" assetId: type: string amount: @@ -35209,7 +34542,7 @@ components: DisbursementPercentageInstruction: properties: payeeAccount: - $ref: '#/components/schemas/Destination' + $ref: "#/components/schemas/Destination" assetId: type: string percentage: @@ -35221,15 +34554,15 @@ components: type: object DisbursementInstruction: oneOf: - - $ref: '#/components/schemas/DisbursementAmountInstruction' - - $ref: '#/components/schemas/DisbursementPercentageInstruction' + - $ref: "#/components/schemas/DisbursementAmountInstruction" + - $ref: "#/components/schemas/DisbursementPercentageInstruction" DisbursementOperationConfigParams: properties: paymentAccount: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" instructionSet: items: - $ref: '#/components/schemas/DisbursementInstruction' + $ref: "#/components/schemas/DisbursementInstruction" type: array required: - instructionSet @@ -35237,18 +34570,18 @@ components: CreateDisbursementConfigOperationRequest: properties: type: - $ref: '#/components/schemas/DisbursementOperationType' + $ref: "#/components/schemas/DisbursementOperationType" params: - $ref: '#/components/schemas/DisbursementOperationConfigParams' + $ref: "#/components/schemas/DisbursementOperationConfigParams" required: - params - type type: object CreateConfigOperationRequest: oneOf: - - $ref: '#/components/schemas/CreateConversionConfigOperationRequest' - - $ref: '#/components/schemas/CreateTransferConfigOperationRequest' - - $ref: '#/components/schemas/CreateDisbursementConfigOperationRequest' + - $ref: "#/components/schemas/CreateConversionConfigOperationRequest" + - $ref: "#/components/schemas/CreateTransferConfigOperationRequest" + - $ref: "#/components/schemas/CreateDisbursementConfigOperationRequest" CorrelationData: oneOf: - additionalProperties: @@ -35261,13 +34594,13 @@ components: configName: type: string preScreening: - $ref: '#/components/schemas/PreScreening' + $ref: "#/components/schemas/PreScreening" configOperations: items: - $ref: '#/components/schemas/CreateConfigOperationRequest' + $ref: "#/components/schemas/CreateConfigOperationRequest" type: array externalCorrelationData: - $ref: '#/components/schemas/CorrelationData' + $ref: "#/components/schemas/CorrelationData" required: - configName - configOperations @@ -35319,13 +34652,13 @@ components: operationId: type: string type: - $ref: '#/components/schemas/ConversionOperationType' + $ref: "#/components/schemas/ConversionOperationType" params: - $ref: '#/components/schemas/ConversionOperationConfigParams' + $ref: "#/components/schemas/ConversionOperationConfigParams" status: - $ref: '#/components/schemas/ConfigOperationStatus' + $ref: "#/components/schemas/ConfigOperationStatus" validationFailure: - $ref: '#/components/schemas/ConversionValidationFailure' + $ref: "#/components/schemas/ConversionValidationFailure" required: - operationId - params @@ -35361,13 +34694,13 @@ components: operationId: type: string type: - $ref: '#/components/schemas/TransferOperationType' + $ref: "#/components/schemas/TransferOperationType" params: - $ref: '#/components/schemas/TransferOperationConfigParams' + $ref: "#/components/schemas/TransferOperationConfigParams" status: - $ref: '#/components/schemas/ConfigOperationStatus' + $ref: "#/components/schemas/ConfigOperationStatus" validationFailure: - $ref: '#/components/schemas/TransferValidationFailure' + $ref: "#/components/schemas/TransferValidationFailure" required: - operationId - params @@ -35405,13 +34738,13 @@ components: operationId: type: string type: - $ref: '#/components/schemas/DisbursementOperationType' + $ref: "#/components/schemas/DisbursementOperationType" params: - $ref: '#/components/schemas/DisbursementOperationConfigParams' + $ref: "#/components/schemas/DisbursementOperationConfigParams" status: - $ref: '#/components/schemas/ConfigOperationStatus' + $ref: "#/components/schemas/ConfigOperationStatus" validationFailure: - $ref: '#/components/schemas/DisbursementValidationFailure' + $ref: "#/components/schemas/DisbursementValidationFailure" required: - operationId - params @@ -35420,9 +34753,9 @@ components: type: object ConfigOperation: oneOf: - - $ref: '#/components/schemas/ConversionConfigOperation' - - $ref: '#/components/schemas/TransferConfigOperation' - - $ref: '#/components/schemas/DisbursementConfigOperation' + - $ref: "#/components/schemas/ConversionConfigOperation" + - $ref: "#/components/schemas/TransferConfigOperation" + - $ref: "#/components/schemas/DisbursementConfigOperation" WorkflowConfiguration: properties: configId: @@ -35430,17 +34763,17 @@ components: configName: type: string preScreening: - $ref: '#/components/schemas/PreScreening' + $ref: "#/components/schemas/PreScreening" status: - $ref: '#/components/schemas/WorkflowConfigStatus' + $ref: "#/components/schemas/WorkflowConfigStatus" createdAt: type: number configOperations: items: - $ref: '#/components/schemas/ConfigOperation' + $ref: "#/components/schemas/ConfigOperation" type: array externalCorrelationData: - $ref: '#/components/schemas/CorrelationData' + $ref: "#/components/schemas/CorrelationData" required: - configId - configName @@ -35461,7 +34794,7 @@ components: configOperationId: type: string executionParams: - $ref: '#/components/schemas/ConversionOperationExecutionParams_executionParams' + $ref: "#/components/schemas/ConversionOperationExecutionParams_executionParams" required: - configOperationId type: object @@ -35470,7 +34803,7 @@ components: configOperationId: type: string executionParams: - $ref: '#/components/schemas/TransferOperationExecutionParams_executionParams' + $ref: "#/components/schemas/TransferOperationExecutionParams_executionParams" required: - configOperationId type: object @@ -35479,7 +34812,7 @@ components: configOperationId: type: string executionParams: - $ref: '#/components/schemas/DisbursementOperationExecutionParams_executionParams' + $ref: "#/components/schemas/DisbursementOperationExecutionParams_executionParams" required: - configOperationId type: object @@ -35488,13 +34821,13 @@ components: configId: type: string preScreening: - $ref: '#/components/schemas/PreScreening' + $ref: "#/components/schemas/PreScreening" params: items: - $ref: '#/components/schemas/CreateWorkflowExecutionRequest_params_inner' + $ref: "#/components/schemas/CreateWorkflowExecutionRequest_params_inner" type: array externalCorrelationData: - $ref: '#/components/schemas/CorrelationData' + $ref: "#/components/schemas/CorrelationData" required: - configId - params @@ -35505,9 +34838,9 @@ components: operationId: type: string type: - $ref: '#/components/schemas/ConversionOperationType' + $ref: "#/components/schemas/ConversionOperationType" params: - $ref: '#/components/schemas/ConversionOperationConfigParams' + $ref: "#/components/schemas/ConversionOperationConfigParams" required: - operationId - params @@ -35518,9 +34851,9 @@ components: operationId: type: string type: - $ref: '#/components/schemas/TransferOperationType' + $ref: "#/components/schemas/TransferOperationType" params: - $ref: '#/components/schemas/TransferOperationConfigParams' + $ref: "#/components/schemas/TransferOperationConfigParams" required: - operationId - params @@ -35531,9 +34864,9 @@ components: operationId: type: string type: - $ref: '#/components/schemas/DisbursementOperationType' + $ref: "#/components/schemas/DisbursementOperationType" params: - $ref: '#/components/schemas/DisbursementOperationConfigParams' + $ref: "#/components/schemas/DisbursementOperationConfigParams" required: - operationId - params @@ -35541,9 +34874,9 @@ components: type: object ConfigOperationSnapshot: oneOf: - - $ref: '#/components/schemas/ConfigConversionOperationSnapshot' - - $ref: '#/components/schemas/ConfigTransferOperationSnapshot' - - $ref: '#/components/schemas/ConfigDisbursementOperationSnapshot' + - $ref: "#/components/schemas/ConfigConversionOperationSnapshot" + - $ref: "#/components/schemas/ConfigTransferOperationSnapshot" + - $ref: "#/components/schemas/ConfigDisbursementOperationSnapshot" WorkflowConfigurationSnapshot: properties: configId: @@ -35554,10 +34887,10 @@ components: type: number configOperations: items: - $ref: '#/components/schemas/ConfigOperationSnapshot' + $ref: "#/components/schemas/ConfigOperationSnapshot" type: array externalCorrelationData: - $ref: '#/components/schemas/CorrelationData' + $ref: "#/components/schemas/CorrelationData" required: - configId - configName @@ -35609,13 +34942,13 @@ components: executionOperationId: type: string account: - $ref: '#/components/schemas/Destination' + $ref: "#/components/schemas/Destination" assetId: type: string amount: type: string matchedRule: - $ref: '#/components/schemas/ScreeningVerdict_matchedRule' + $ref: "#/components/schemas/ScreeningVerdict_matchedRule" required: - account - amount @@ -35627,7 +34960,7 @@ components: properties: verdicts: items: - $ref: '#/components/schemas/ScreeningVerdict' + $ref: "#/components/schemas/ScreeningVerdict" type: array required: - verdicts @@ -35640,20 +34973,20 @@ components: - SCREENING_REJECTED type: string data: - $ref: '#/components/schemas/ScreeningOperationExecutionOutput' + $ref: "#/components/schemas/ScreeningOperationExecutionOutput" required: - reason type: object ScreeningOperationExecution: properties: output: - $ref: '#/components/schemas/ScreeningOperationExecutionOutput' + $ref: "#/components/schemas/ScreeningOperationExecutionOutput" startedAt: type: number finishedAt: type: number failure: - $ref: '#/components/schemas/ScreeningOperationFailure' + $ref: "#/components/schemas/ScreeningOperationFailure" required: - startedAt type: object @@ -35662,13 +34995,13 @@ components: operationId: type: string status: - $ref: '#/components/schemas/ExecutionOperationStatus' + $ref: "#/components/schemas/ExecutionOperationStatus" operationType: - $ref: '#/components/schemas/ScreeningOperationType' + $ref: "#/components/schemas/ScreeningOperationType" validationFailure: - $ref: '#/components/schemas/ScreeningValidationFailure' + $ref: "#/components/schemas/ScreeningValidationFailure" execution: - $ref: '#/components/schemas/ScreeningOperationExecution' + $ref: "#/components/schemas/ScreeningOperationExecution" required: - operationId - operationType @@ -35687,9 +35020,9 @@ components: ConversionOperationPreviewOutput: properties: amount: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" fee: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" conversionRate: type: string timeSeconds: @@ -35718,20 +35051,20 @@ components: ConversionOperationPreview: properties: input: - $ref: '#/components/schemas/ConversionOperationConfigParams' + $ref: "#/components/schemas/ConversionOperationConfigParams" output: - $ref: '#/components/schemas/ConversionOperationPreviewOutput' + $ref: "#/components/schemas/ConversionOperationPreviewOutput" failure: - $ref: '#/components/schemas/ConversionOperationFailure' + $ref: "#/components/schemas/ConversionOperationFailure" required: - input type: object ConversionOperationExecutionOutput: properties: amount: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" fee: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" conversionRate: type: string required: @@ -35742,15 +35075,15 @@ components: ConversionOperationExecution: properties: input: - $ref: '#/components/schemas/ConversionOperationConfigParams' + $ref: "#/components/schemas/ConversionOperationConfigParams" output: - $ref: '#/components/schemas/ConversionOperationExecutionOutput' + $ref: "#/components/schemas/ConversionOperationExecutionOutput" startedAt: type: number finishedAt: type: number failure: - $ref: '#/components/schemas/ConversionOperationFailure' + $ref: "#/components/schemas/ConversionOperationFailure" required: - input - startedAt @@ -35760,15 +35093,15 @@ components: operationId: type: string status: - $ref: '#/components/schemas/ExecutionOperationStatus' + $ref: "#/components/schemas/ExecutionOperationStatus" validationFailure: - $ref: '#/components/schemas/ConversionValidationFailure' + $ref: "#/components/schemas/ConversionValidationFailure" operationType: - $ref: '#/components/schemas/ConversionOperationType' + $ref: "#/components/schemas/ConversionOperationType" preview: - $ref: '#/components/schemas/ConversionOperationPreview' + $ref: "#/components/schemas/ConversionOperationPreview" execution: - $ref: '#/components/schemas/ConversionOperationExecution' + $ref: "#/components/schemas/ConversionOperationExecution" required: - operationId - operationType @@ -35777,9 +35110,9 @@ components: TransferOperationPreviewOutput: properties: amount: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" fee: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" isSignRequired: type: boolean timeSeconds: @@ -35799,27 +35132,27 @@ components: - TRANSACTION_FAILED type: string data: - $ref: '#/components/schemas/TransferOperationFailure_data' + $ref: "#/components/schemas/TransferOperationFailure_data" required: - reason type: object TransferOperationPreview: properties: input: - $ref: '#/components/schemas/TransferOperationConfigParams' + $ref: "#/components/schemas/TransferOperationConfigParams" output: - $ref: '#/components/schemas/TransferOperationPreviewOutput' + $ref: "#/components/schemas/TransferOperationPreviewOutput" failure: - $ref: '#/components/schemas/TransferOperationFailure' + $ref: "#/components/schemas/TransferOperationFailure" required: - input type: object TransferOperationExecutionOutput: properties: amount: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" fee: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" required: - amount - fee @@ -35827,9 +35160,9 @@ components: TransferOperationExecution: properties: input: - $ref: '#/components/schemas/TransferOperationConfigParams' + $ref: "#/components/schemas/TransferOperationConfigParams" output: - $ref: '#/components/schemas/TransferOperationExecutionOutput' + $ref: "#/components/schemas/TransferOperationExecutionOutput" txId: type: string startedAt: @@ -35837,7 +35170,7 @@ components: finishedAt: type: number failure: - $ref: '#/components/schemas/TransferOperationFailure' + $ref: "#/components/schemas/TransferOperationFailure" required: - input - startedAt @@ -35847,15 +35180,15 @@ components: operationId: type: string status: - $ref: '#/components/schemas/ExecutionOperationStatus' + $ref: "#/components/schemas/ExecutionOperationStatus" validationFailure: - $ref: '#/components/schemas/TransferValidationFailure' + $ref: "#/components/schemas/TransferValidationFailure" operationType: - $ref: '#/components/schemas/TransferOperationType' + $ref: "#/components/schemas/TransferOperationType" preview: - $ref: '#/components/schemas/TransferOperationPreview' + $ref: "#/components/schemas/TransferOperationPreview" execution: - $ref: '#/components/schemas/TransferOperationExecution' + $ref: "#/components/schemas/TransferOperationExecution" required: - operationId - operationType @@ -35866,10 +35199,10 @@ components: amount: type: string paymentAccount: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" instructionSet: items: - $ref: '#/components/schemas/DisbursementInstruction' + $ref: "#/components/schemas/DisbursementInstruction" type: array required: - instructionSet @@ -35878,11 +35211,11 @@ components: DisbursementInstructionOutput: properties: amount: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" fee: - $ref: '#/components/schemas/AssetAmount' + $ref: "#/components/schemas/AssetAmount" payeeAccount: - $ref: '#/components/schemas/Destination' + $ref: "#/components/schemas/Destination" required: - amount - fee @@ -35892,7 +35225,7 @@ components: properties: instructionSet: items: - $ref: '#/components/schemas/DisbursementOperationPreviewOutput_instructionSet_inner' + $ref: "#/components/schemas/DisbursementOperationPreviewOutput_instructionSet_inner" type: array required: - instructionSet @@ -35910,11 +35243,11 @@ components: DisbursementOperationPreview: properties: input: - $ref: '#/components/schemas/DisbursementOperationInput' + $ref: "#/components/schemas/DisbursementOperationInput" output: - $ref: '#/components/schemas/DisbursementOperationPreviewOutput' + $ref: "#/components/schemas/DisbursementOperationPreviewOutput" failure: - $ref: '#/components/schemas/OperationExecutionFailure' + $ref: "#/components/schemas/OperationExecutionFailure" required: - input type: object @@ -35922,7 +35255,7 @@ components: properties: instructionSet: items: - $ref: '#/components/schemas/DisbursementInstructionOutput' + $ref: "#/components/schemas/DisbursementInstructionOutput" type: array required: - instructionSet @@ -35930,9 +35263,9 @@ components: DisbursementOperationExecution: properties: input: - $ref: '#/components/schemas/DisbursementOperationInput' + $ref: "#/components/schemas/DisbursementOperationInput" output: - $ref: '#/components/schemas/DisbursementOperationExecutionOutput' + $ref: "#/components/schemas/DisbursementOperationExecutionOutput" payoutId: type: string startedAt: @@ -35940,7 +35273,7 @@ components: finishedAt: type: number failure: - $ref: '#/components/schemas/OperationExecutionFailure' + $ref: "#/components/schemas/OperationExecutionFailure" required: - input - startedAt @@ -35950,15 +35283,15 @@ components: operationId: type: string status: - $ref: '#/components/schemas/ExecutionOperationStatus' + $ref: "#/components/schemas/ExecutionOperationStatus" validationFailure: - $ref: '#/components/schemas/DisbursementValidationFailure' + $ref: "#/components/schemas/DisbursementValidationFailure" operationType: - $ref: '#/components/schemas/DisbursementOperationType' + $ref: "#/components/schemas/DisbursementOperationType" preview: - $ref: '#/components/schemas/DisbursementOperationPreview' + $ref: "#/components/schemas/DisbursementOperationPreview" execution: - $ref: '#/components/schemas/DisbursementOperationExecution' + $ref: "#/components/schemas/DisbursementOperationExecution" required: - operationId - operationType @@ -35966,21 +35299,21 @@ components: type: object WorkflowExecutionOperation: oneOf: - - $ref: '#/components/schemas/ExecutionScreeningOperation' - - $ref: '#/components/schemas/ExecutionConversionOperation' - - $ref: '#/components/schemas/ExecutionTransferOperation' - - $ref: '#/components/schemas/ExecutionDisbursementOperation' + - $ref: "#/components/schemas/ExecutionScreeningOperation" + - $ref: "#/components/schemas/ExecutionConversionOperation" + - $ref: "#/components/schemas/ExecutionTransferOperation" + - $ref: "#/components/schemas/ExecutionDisbursementOperation" WorkflowExecution: properties: executionId: type: string preScreening: - $ref: '#/components/schemas/PreScreening' + $ref: "#/components/schemas/PreScreening" configSnapshot: - $ref: '#/components/schemas/WorkflowConfigurationSnapshot' + $ref: "#/components/schemas/WorkflowConfigurationSnapshot" executionOperations: items: - $ref: '#/components/schemas/WorkflowExecutionOperation' + $ref: "#/components/schemas/WorkflowExecutionOperation" type: array status: enum: @@ -36002,7 +35335,7 @@ components: finishedAt: type: number externalCorrelationData: - $ref: '#/components/schemas/CorrelationData' + $ref: "#/components/schemas/CorrelationData" required: - configSnapshot - executionId @@ -36035,7 +35368,7 @@ components: balance: type: object configuration: - $ref: '#/components/schemas/GasStationConfigurationResponse' + $ref: "#/components/schemas/GasStationConfigurationResponse" type: object GasStationConfiguration: example: @@ -36083,7 +35416,7 @@ components: type: object UserGroupsResponse: items: - $ref: '#/components/schemas/UserGroupResponse' + $ref: "#/components/schemas/UserGroupResponse" type: array UserGroupCreateRequest: example: @@ -36177,7 +35510,7 @@ components: type: object GetUsersResponse: items: - $ref: '#/components/schemas/UserResponse' + $ref: "#/components/schemas/UserResponse" type: array AuditLogData: example: @@ -36217,7 +35550,7 @@ components: type: object AuditLogsData: items: - $ref: '#/components/schemas/AuditLogData' + $ref: "#/components/schemas/AuditLogData" type: array GetAuditLogsResponse: example: @@ -36243,7 +35576,7 @@ components: properties: data: items: - $ref: '#/components/schemas/AuditLogData' + $ref: "#/components/schemas/AuditLogData" type: array cursor: description: The next id to start fetch audit logs from @@ -36276,9 +35609,9 @@ components: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 isCollateral: true name: name - subType: null + subType: BINANCE id: id - type: null + type: VAULT_ACCOUNT maxFee: "120" travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 externalTxId: 00000000-0000-0000-0000-000000000000 @@ -37468,11 +36801,11 @@ components: treatAsGrossAmount: false networkStaking: TransactionRequest_networkStaking autoStaking: true - operation: null + operation: TRANSFER replaceTxByHash: 00000000-0000-0000-0000-000000000000 properties: transactionRequest: - $ref: '#/components/schemas/TransactionRequest' + $ref: "#/components/schemas/TransactionRequest" isSrcCollateral: description: optional type: boolean @@ -37499,9 +36832,9 @@ components: walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 isCollateral: true name: name - subType: null + subType: BINANCE id: id - type: null + type: VAULT_ACCOUNT maxFee: "120" travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 externalTxId: 00000000-0000-0000-0000-000000000000 @@ -38691,12 +38024,12 @@ components: treatAsGrossAmount: false networkStaking: TransactionRequest_networkStaking autoStaking: true - operation: null + operation: TRANSFER replaceTxByHash: 00000000-0000-0000-0000-000000000000 isDstCollateral: true properties: transactionRequest: - $ref: '#/components/schemas/TransactionRequest' + $ref: "#/components/schemas/TransactionRequest" isDstCollateral: description: optional type: boolean @@ -38771,11 +38104,11 @@ components: properties: toExchange: items: - $ref: '#/components/schemas/ToExchangeTransaction' + $ref: "#/components/schemas/ToExchangeTransaction" type: array toCollateral: items: - $ref: '#/components/schemas/ToCollateralTransaction' + $ref: "#/components/schemas/ToCollateralTransaction" type: array type: object SettlementResponse: @@ -38815,7 +38148,7 @@ components: fireblocksInitiatedTransactions: type: object exchangeRequestedTransactions: - $ref: '#/components/schemas/ExchangeSettlementTransactionsResponse' + $ref: "#/components/schemas/ExchangeSettlementTransactionsResponse" type: object ResendWebhooksResponse: example: @@ -38905,7 +38238,7 @@ components: - transaction.created - transaction.status.updated items: - $ref: '#/components/schemas/WebhookEvent' + $ref: "#/components/schemas/WebhookEvent" type: array status: description: The status of the webhook @@ -38959,7 +38292,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/Webhook' + $ref: "#/components/schemas/Webhook" type: array next: description: The ID of the next page @@ -38995,7 +38328,7 @@ components: - transaction.created - transaction.status.updated items: - $ref: '#/components/schemas/WebhookEvent' + $ref: "#/components/schemas/WebhookEvent" type: array enabled: default: true @@ -39034,7 +38367,7 @@ components: - transaction.created - transaction.status.updated items: - $ref: '#/components/schemas/WebhookEvent' + $ref: "#/components/schemas/WebhookEvent" type: array enabled: description: The status of the webhook @@ -39055,7 +38388,7 @@ components: createdAt: 1625126400000 resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: null + eventType: transaction.created updatedAt: 1625126400000 status: COMPLETED properties: @@ -39075,9 +38408,9 @@ components: format: int64 type: integer status: - $ref: '#/components/schemas/NotificationStatus' + $ref: "#/components/schemas/NotificationStatus" eventType: - $ref: '#/components/schemas/WebhookEvent' + $ref: "#/components/schemas/WebhookEvent" resourceId: description: The resource id of the event which the Notification is listen to @@ -39095,25 +38428,32 @@ components: NotificationPaginatedResponse: example: next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + total: 100 data: - createdAt: 1625126400000 resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: null + eventType: transaction.created updatedAt: 1625126400000 status: COMPLETED - createdAt: 1625126400000 resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: null + eventType: transaction.created updatedAt: 1625126400000 status: COMPLETED properties: data: description: The data of the current page items: - $ref: '#/components/schemas/Notification' + $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 @@ -39128,7 +38468,7 @@ components: resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f data: "{}" id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: null + eventType: transaction.created updatedAt: 1625126400000 status: COMPLETED properties: @@ -39147,9 +38487,9 @@ components: format: int64 type: integer status: - $ref: '#/components/schemas/NotificationStatus' + $ref: "#/components/schemas/NotificationStatus" eventType: - $ref: '#/components/schemas/WebhookEvent' + $ref: "#/components/schemas/WebhookEvent" resourceId: description: The resource id of the event which the Notification is listen to @@ -39214,7 +38554,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/NotificationAttempt' + $ref: "#/components/schemas/NotificationAttempt" type: array next: description: The ID of the next page @@ -39246,7 +38586,7 @@ components: - IN_PROGRESS - FAILED items: - $ref: '#/components/schemas/NotificationStatus' + $ref: "#/components/schemas/NotificationStatus" type: array required: - resourceId @@ -39272,7 +38612,7 @@ components: - transaction.created - transaction.status.updated items: - $ref: '#/components/schemas/WebhookEvent' + $ref: "#/components/schemas/WebhookEvent" type: array type: object ResendFailedNotificationsResponse: @@ -39343,7 +38683,7 @@ components: type: string type: array auditor: - $ref: '#/components/schemas/AuditorData' + $ref: "#/components/schemas/AuditorData" required: - auditor - standards @@ -39399,7 +38739,7 @@ components: type: string attributes: allOf: - - $ref: '#/components/schemas/ContractAttributes' + - $ref: "#/components/schemas/ContractAttributes" description: The attributes related to this contract template. It will be displayed in the tokenization page example: @@ -39431,7 +38771,7 @@ components: type: string vendor: allOf: - - $ref: '#/components/schemas/VendorDto' + - $ref: "#/components/schemas/VendorDto" description: The details of the vendor of this contract template. Applicable only for public contract templates type: @@ -39494,7 +38834,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/LeanContractDto' + $ref: "#/components/schemas/LeanContractDto" type: array next: description: The ID of the next page @@ -39538,7 +38878,7 @@ components: type: string methods: additionalProperties: - $ref: '#/components/schemas/FunctionDoc' + $ref: "#/components/schemas/FunctionDoc" description: The description of the contract functions example: constructor: @@ -39582,7 +38922,7 @@ components: type: string components: items: - $ref: '#/components/schemas/Parameter' + $ref: "#/components/schemas/Parameter" type: array required: - name @@ -39653,12 +38993,12 @@ components: inputs: description: The parameters that this function/constructor posses items: - $ref: '#/components/schemas/Parameter' + $ref: "#/components/schemas/Parameter" type: array outputs: description: The parameters that this 'read' function returns items: - $ref: '#/components/schemas/Parameter' + $ref: "#/components/schemas/Parameter" type: array description: description: The documentation of this function (if has any) @@ -39759,7 +39099,7 @@ components: type: string docs: allOf: - - $ref: '#/components/schemas/ContractDoc' + - $ref: "#/components/schemas/ContractDoc" description: A `natspec` compliant documentation json. Can be retrieved from the output json after compilation example: @@ -39799,11 +39139,11 @@ components: stateMutability: payable type: constructor items: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" type: array attributes: allOf: - - $ref: '#/components/schemas/ContractAttributes' + - $ref: "#/components/schemas/ContractAttributes" description: The attributes related to this contract template. It will be displayed in the tokenization page example: @@ -39927,11 +39267,11 @@ components: stateMutability: payable type: constructor items: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" type: array attributes: allOf: - - $ref: '#/components/schemas/ContractAttributes' + - $ref: "#/components/schemas/ContractAttributes" description: The attributes related to this contract template. It will be displayed in the tokenization page example: @@ -39947,7 +39287,7 @@ components: link: https://my-auditor.com/my-audit-report docs: allOf: - - $ref: '#/components/schemas/ContractDoc' + - $ref: "#/components/schemas/ContractDoc" description: A `natspec` compliant documentation json. Can be retrieved from the output json after compilation example: @@ -39981,7 +39321,7 @@ components: type: string vendor: allOf: - - $ref: '#/components/schemas/VendorDto' + - $ref: "#/components/schemas/VendorDto" description: The details of the vendor of this contract template. Applicable only for public contract templates isPublic: @@ -40076,7 +39416,7 @@ components: type: string components: items: - $ref: '#/components/schemas/Parameter' + $ref: "#/components/schemas/Parameter" type: array value: description: The value of the parameter. can also be ParameterWithValue @@ -40084,7 +39424,7 @@ components: type: string functionValue: allOf: - - $ref: '#/components/schemas/LeanAbiFunction' + - $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: @@ -40100,12 +39440,12 @@ components: inputs: description: The function inputs items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array outputs: description: The function outputs items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array stateMutability: description: "The state mutability of the function (e.g., view, pure, nonpayable,\ @@ -40158,7 +39498,7 @@ components: type: string value: TokenSymbol items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array useGasless: description: "Indicates whether the token should be created in a gasless\ @@ -40239,7 +39579,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/LeanDeployedContractResponseDto' + $ref: "#/components/schemas/LeanDeployedContractResponseDto" type: array next: description: The ID of the next page @@ -40261,12 +39601,12 @@ components: properties: gaslessStandardConfigurations: additionalProperties: - $ref: '#/components/schemas/GasslessStandardConfigurations_gaslessStandardConfigurations_value' + $ref: "#/components/schemas/GasslessStandardConfigurations_gaslessStandardConfigurations_value" type: object type: object ParameterWithValueList: items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array MultichainDeploymentMetadata: description: The multichain deployment metadata @@ -40339,7 +39679,7 @@ components: type: string initParams: items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array encodedInitParams: description: The encoded init params @@ -40464,11 +39804,11 @@ components: example: ETH_TEST5 type: string gaslessConfig: - $ref: '#/components/schemas/GasslessStandardConfigurations' + $ref: "#/components/schemas/GasslessStandardConfigurations" multichainDeploymentMetadata: - $ref: '#/components/schemas/MultichainDeploymentMetadata' + $ref: "#/components/schemas/MultichainDeploymentMetadata" solanaConfig: - $ref: '#/components/schemas/SolanaConfig' + $ref: "#/components/schemas/SolanaConfig" required: - blockchainId - contractAddress @@ -40538,7 +39878,7 @@ components: type: function name: mint items: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" type: array isProxy: description: Whether the contract is a proxy contract @@ -40598,7 +39938,7 @@ components: type: function name: mint items: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" type: array name: description: The name of the contract @@ -40794,7 +40134,7 @@ components: example: My Simple ERC20 Token type: string tokenMetadata: - $ref: '#/components/schemas/TokenLinkDto_tokenMetadata' + $ref: "#/components/schemas/TokenLinkDto_tokenMetadata" required: - id - status @@ -40845,7 +40185,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/TokenLinkDto' + $ref: "#/components/schemas/TokenLinkDto" type: array next: description: The ID of the next page @@ -40909,7 +40249,7 @@ components: type: bool value: false items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array required: - contractId @@ -41002,7 +40342,7 @@ components: example: "0" type: string createParams: - $ref: '#/components/schemas/CreateTokenRequestDto_createParams' + $ref: "#/components/schemas/CreateTokenRequestDto_createParams" displayName: type: string useGasless: @@ -41181,7 +40521,7 @@ components: type: bool value: false items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array salt: description: "The salt to calculate the deterministic address. Must be a\ @@ -41280,7 +40620,7 @@ components: example: "0" type: string createParams: - $ref: '#/components/schemas/CreateMultichainTokenRequest_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." @@ -41326,7 +40666,7 @@ components: IssueTokenMultichainResponse: description: Response schema for issuing tokens across multiple chains items: - $ref: '#/components/schemas/TokenLinkDto' + $ref: "#/components/schemas/TokenLinkDto" type: array ReissueMultichainTokenRequest: example: @@ -41466,7 +40806,7 @@ components: description: "Array of creation parameters for LayerZero adapters, one per\ \ tokenLink." items: - $ref: '#/components/schemas/LayerZeroAdapterCreateParams' + $ref: "#/components/schemas/LayerZeroAdapterCreateParams" minItems: 1 type: array displayName: @@ -41518,7 +40858,7 @@ components: DeployLayerZeroAdaptersResponse: description: Array of adapter processing results items: - $ref: '#/components/schemas/AdapterProcessingResult' + $ref: "#/components/schemas/AdapterProcessingResult" type: array RemoveLayerZeroAdaptersRequest: example: @@ -41573,7 +40913,7 @@ components: failed: description: List of adapter token link IDs that failed to be removed items: - $ref: '#/components/schemas/RemoveLayerZeroAdapterFailedResult' + $ref: "#/components/schemas/RemoveLayerZeroAdapterFailedResult" type: array required: - deactivated @@ -41640,7 +40980,7 @@ components: type: object RemoveLayerZeroPeersRequest: allOf: - - $ref: '#/components/schemas/SetLayerZeroPeersRequest' + - $ref: "#/components/schemas/SetLayerZeroPeersRequest" example: bidirectional: true destinationAdapterTokenLinkIds: @@ -41650,7 +40990,7 @@ components: sourceAdapterTokenLinkId: 00000123-0432-1234-1234-123456789012 RemoveLayerZeroPeersResponse: allOf: - - $ref: '#/components/schemas/SetLayerZeroPeersResponse' + - $ref: "#/components/schemas/SetLayerZeroPeersResponse" example: txnIds: - 123-432-1234-1234-123456789012 @@ -41707,7 +41047,7 @@ components: adapterAddress: 0x1234567890abcdef1234567890abcdef12345678 baseAssetId: ETH_TEST5 items: - $ref: '#/components/schemas/PeerAdapterInfo' + $ref: "#/components/schemas/PeerAdapterInfo" type: array required: - adapterAddress @@ -41780,9 +41120,9 @@ components: example: 6add4f2a-b206-4114-8f94-2882618ffbb4 type: string sendConfig: - $ref: '#/components/schemas/DvnConfig' + $ref: "#/components/schemas/DvnConfig" receiveConfig: - $ref: '#/components/schemas/DvnConfig' + $ref: "#/components/schemas/DvnConfig" required: - destinationAdapterTokenLinkId - receiveConfig @@ -41837,63 +41177,25 @@ components: type: object ChannelDvnConfigWithConfirmations: example: - sendConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 - receiveConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 + sendConfig: "" + receiveConfig: "" properties: sendConfig: - $ref: '#/components/schemas/ChannelDvnConfigWithConfirmations_sendConfig' + allOf: + - $ref: "#/components/schemas/DvnConfigWithConfirmations" + description: Outbound (source → peer) DVN config with confirmations. receiveConfig: - $ref: '#/components/schemas/ChannelDvnConfigWithConfirmations_receiveConfig' + allOf: + - $ref: "#/components/schemas/DvnConfigWithConfirmations" + description: Inbound (peer → source) DVN config with confirmations. type: object GetLayerZeroDvnConfigResponse: example: channelConfigs: - - sendConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 - receiveConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 - - sendConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 - receiveConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 + - sendConfig: "" + receiveConfig: "" + - sendConfig: "" + receiveConfig: "" sourceAdapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d properties: sourceAdapterTokenLinkId: @@ -41906,7 +41208,7 @@ components: description: DVN configurations for each discovered (or explicitly requested) channel between the source adapter and its peers. items: - $ref: '#/components/schemas/ChannelDvnConfigWithConfirmations' + $ref: "#/components/schemas/ChannelDvnConfigWithConfirmations" minItems: 1 type: array required: @@ -41966,7 +41268,7 @@ components: type: string type: allOf: - - $ref: '#/components/schemas/CollectionType' + - $ref: "#/components/schemas/CollectionType" example: NON_FUNGIBLE_TOKEN displayName: description: "The display name of the collection. If was not provided, would\ @@ -41975,7 +41277,7 @@ components: type: string collectionMetadata: allOf: - - $ref: '#/components/schemas/CollectionMetadataDto' + - $ref: "#/components/schemas/CollectionMetadataDto" description: The collection's metadata required: - id @@ -42000,7 +41302,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/CollectionLinkDto' + $ref: "#/components/schemas/CollectionLinkDto" type: array next: description: The ID of the next page @@ -42029,7 +41331,7 @@ components: type: string type: allOf: - - $ref: '#/components/schemas/CollectionType' + - $ref: "#/components/schemas/CollectionType" example: NON_FUNGIBLE_TOKEN name: description: A string that represents the name of the collection @@ -42099,7 +41401,7 @@ components: attributes: description: Token's metadata attributes items: - $ref: '#/components/schemas/CollectionTokenMetadataAttributeDto' + $ref: "#/components/schemas/CollectionTokenMetadataAttributeDto" type: array required: - description @@ -42141,7 +41443,7 @@ components: type: string metadata: allOf: - - $ref: '#/components/schemas/CollectionTokenMetadataDto' + - $ref: "#/components/schemas/CollectionTokenMetadataDto" description: Metadata to upload example: name: MYTOKEN @@ -42250,7 +41552,7 @@ components: example: mint type: string type: - $ref: '#/components/schemas/IdlType' + $ref: "#/components/schemas/IdlType" required: - name - type @@ -42270,11 +41572,11 @@ components: type: array accounts: items: - $ref: '#/components/schemas/SOLAccount' + $ref: "#/components/schemas/SOLAccount" type: array args: items: - $ref: '#/components/schemas/SolParameter' + $ref: "#/components/schemas/SolParameter" type: array required: - accounts @@ -42319,7 +41621,7 @@ components: stateMutability: nonpayable type: constructor items: - $ref: '#/components/schemas/ContractAbiResponseDto_abi_inner' + $ref: "#/components/schemas/ContractAbiResponseDto_abi_inner" type: array implementationAbi: description: The abi of the implementation contract if exists. Relevant @@ -42336,7 +41638,7 @@ components: type: function name: mint items: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" type: array required: - abi @@ -42414,7 +41716,7 @@ components: type: string outputs: items: - $ref: '#/components/schemas/Parameter' + $ref: "#/components/schemas/Parameter" type: array name: type: string @@ -42422,7 +41724,7 @@ components: type: string inputs: items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array description: type: string @@ -42465,7 +41767,7 @@ components: example: mint type: string type: - $ref: '#/components/schemas/IdlType' + $ref: "#/components/schemas/IdlType" required: - name - type @@ -42486,12 +41788,12 @@ components: type: array accounts: items: - $ref: '#/components/schemas/SOLAccountWithValue' + $ref: "#/components/schemas/SOLAccountWithValue" type: array args: description: The arguments of the instruction items: - $ref: '#/components/schemas/SolParameterWithValue' + $ref: "#/components/schemas/SolParameterWithValue" type: array required: - accounts @@ -42566,7 +41868,7 @@ components: type: type properties: abiFunction: - $ref: '#/components/schemas/ReadCallFunctionDto_abiFunction' + $ref: "#/components/schemas/ReadCallFunctionDto_abiFunction" required: - abiFunction type: object @@ -42643,7 +41945,7 @@ components: type: string outputs: items: - $ref: '#/components/schemas/Parameter' + $ref: "#/components/schemas/Parameter" type: array type: enum: @@ -42653,7 +41955,7 @@ components: type: string inputs: items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array description: type: string @@ -42740,7 +42042,7 @@ components: example: "0" type: string abiFunction: - $ref: '#/components/schemas/WriteCallFunctionDto_abiFunction' + $ref: "#/components/schemas/WriteCallFunctionDto_abiFunction" amount: description: Amount in base asset. Being used in payable functions example: "12.345" @@ -42929,7 +42231,7 @@ components: logs: description: Array of transaction logs items: - $ref: '#/components/schemas/TxLog' + $ref: "#/components/schemas/TxLog" type: array logsBloom: description: Logs bloom filter @@ -43016,9 +42318,9 @@ components: name: transfer properties: data: - $ref: '#/components/schemas/ContractDataDecodeRequest_data' + $ref: "#/components/schemas/ContractDataDecodeRequest_data" dataType: - $ref: '#/components/schemas/ContractDataDecodeDataType' + $ref: "#/components/schemas/ContractDataDecodeDataType" abi: description: The abi of the function/error/log to decode. example: @@ -43031,7 +42333,7 @@ components: type: function name: transfer items: - $ref: '#/components/schemas/AbiFunction' + $ref: "#/components/schemas/AbiFunction" type: array required: - data @@ -43095,7 +42397,7 @@ components: type: string args: items: - $ref: '#/components/schemas/ParameterWithValue' + $ref: "#/components/schemas/ParameterWithValue" type: array required: - args @@ -43200,10 +42502,10 @@ components: result: description: The decoded parameters of the contract function call. items: - $ref: '#/components/schemas/ContractDataDecodeResponseParams' + $ref: "#/components/schemas/ContractDataDecodeResponseParams" type: array type: - $ref: '#/components/schemas/ContractDataDecodeDataType' + $ref: "#/components/schemas/ContractDataDecodeDataType" required: - result - type @@ -43243,7 +42545,7 @@ components: - SOL_TEST - MATIC items: - $ref: '#/components/schemas/ChainDescriptor' + $ref: "#/components/schemas/ChainDescriptor" type: array AdditionalInfo: description: Additional information related to the blockchain. This may include @@ -43302,7 +42604,7 @@ components: example: 172800000 type: number additionalInfo: - $ref: '#/components/schemas/AdditionalInfo' + $ref: "#/components/schemas/AdditionalInfo" required: - additionalInfo - chainDescriptor @@ -43342,7 +42644,7 @@ components: example: "22" type: string providerId: - $ref: '#/components/schemas/StakingProvider' + $ref: "#/components/schemas/StakingProvider" stakeAmount: description: Amount of tokens to stake example: "32" @@ -43358,7 +42660,7 @@ components: example: "7" type: string feeLevel: - $ref: '#/components/schemas/FeeLevel' + $ref: "#/components/schemas/FeeLevel" required: - providerId - stakeAmount @@ -43391,7 +42693,7 @@ components: example: "7" type: string feeLevel: - $ref: '#/components/schemas/FeeLevel' + $ref: "#/components/schemas/FeeLevel" txNote: description: The note to associate with the transactions. example: "unstake request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH" @@ -43421,7 +42723,7 @@ components: example: "7" type: string feeLevel: - $ref: '#/components/schemas/FeeLevel' + $ref: "#/components/schemas/FeeLevel" txNote: description: The note to associate with the transactions. example: "withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH" @@ -43445,7 +42747,7 @@ components: example: "7" type: string feeLevel: - $ref: '#/components/schemas/FeeLevel' + $ref: "#/components/schemas/FeeLevel" txNote: description: The note to associate with the transactions. example: "claim rewards request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d\ @@ -43475,7 +42777,7 @@ components: example: "7" type: string feeLevel: - $ref: '#/components/schemas/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" @@ -43518,7 +42820,7 @@ components: example: "7" type: string feeLevel: - $ref: '#/components/schemas/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" @@ -43684,14 +42986,14 @@ components: - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c completed: false items: - $ref: '#/components/schemas/RelatedTransaction' + $ref: "#/components/schemas/RelatedTransaction" type: array validatorAddress: description: The destination address of the staking transaction. example: FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f type: string providerId: - $ref: '#/components/schemas/StakingProvider' + $ref: "#/components/schemas/StakingProvider" availableActions: description: "An array of available actions that can be performed. for example,\ \ actions like \"unstake\" or \"withdraw\"." @@ -43710,7 +43012,7 @@ components: example: c80601f4-d7b1-4795-a8ee-b09cdb5b450c type: string blockchainPositionInfo: - $ref: '#/components/schemas/SolanaBlockchainData' + $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\ @@ -43725,7 +43027,7 @@ components: amount: "0.05" txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c items: - $ref: '#/components/schemas/RelatedRequest' + $ref: "#/components/schemas/RelatedRequest" type: array required: - amount @@ -43747,7 +43049,7 @@ components: type: object StakingGetAllDelegationsResponse: items: - $ref: '#/components/schemas/Delegation' + $ref: "#/components/schemas/Delegation" type: array AmountAndChainDescriptor: example: @@ -43793,26 +43095,26 @@ components: description: "An array of objects containing chain descriptors and associated\ \ amounts, representing active positions." items: - $ref: '#/components/schemas/AmountAndChainDescriptor' + $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' + $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' + $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' + $ref: "#/components/schemas/AmountAndChainDescriptor" type: array required: - active @@ -43822,7 +43124,7 @@ components: type: object StakingGetSummaryByVaultResponse: additionalProperties: - $ref: '#/components/schemas/DelegationSummary' + $ref: "#/components/schemas/DelegationSummary" type: object Validator: properties: @@ -43874,7 +43176,7 @@ components: - chainDescriptor: SOL feePercent: 7 items: - $ref: '#/components/schemas/Validator' + $ref: "#/components/schemas/Validator" type: array iconUrl: description: URL to the validator's icon @@ -43905,7 +43207,7 @@ components: type: object StakingGetProvidersResponse: items: - $ref: '#/components/schemas/Provider' + $ref: "#/components/schemas/Provider" type: array SwapProviderProtocolsEnum: description: Protocol options supported by each provider. `UNISWAP` supports @@ -43954,10 +43256,10 @@ components: - UNISWAP_CLASSIC - UNISWAPX items: - $ref: '#/components/schemas/SwapProviderProtocolsEnum' + $ref: "#/components/schemas/SwapProviderProtocolsEnum" type: array category: - $ref: '#/components/schemas/ProviderCategoryEnum' + $ref: "#/components/schemas/ProviderCategoryEnum" isTermsApprovalRequired: description: "Indicates whether the terms of service are required for the\ \ provider. if `true`, the user must approve the terms of service before\ @@ -44007,7 +43309,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/SwapProvider' + $ref: "#/components/schemas/SwapProvider" type: array next: description: "The cursor to fetch the next page of results, if absent or\ @@ -44053,7 +43355,7 @@ components: minimum: 0 type: number protocol: - $ref: '#/components/schemas/SwapProviderProtocolsEnum' + $ref: "#/components/schemas/SwapProviderProtocolsEnum" required: - inputAmount - inputAsset @@ -44145,7 +43447,7 @@ components: providerQuoteId: 550e8400-e29b-41d4-a716-446655440000 properties: protocol: - $ref: '#/components/schemas/SwapProviderProtocolsEnum' + $ref: "#/components/schemas/SwapProviderProtocolsEnum" inputAmount: description: The amount of tokens the swapper will provide example: "10" @@ -44173,7 +43475,7 @@ components: example: DAI type: string additionalData: - $ref: '#/components/schemas/ProviderAdditionalData' + $ref: "#/components/schemas/ProviderAdditionalData" providerQuoteId: description: An identifier that uniquely identifies the received quote example: 550e8400-e29b-41d4-a716-446655440000 @@ -44188,10 +43490,10 @@ components: requiredActions: description: The required actions for completing a swap operation items: - $ref: '#/components/schemas/SwapRequiredActionsEnum' + $ref: "#/components/schemas/SwapRequiredActionsEnum" type: array estimatedFees: - $ref: '#/components/schemas/QuoteFee' + $ref: "#/components/schemas/QuoteFee" required: - additionalData - estimatedFees @@ -44240,7 +43542,7 @@ components: description: Return a quote that cannot be used for a swap operation. properties: protocol: - $ref: '#/components/schemas/SwapProviderProtocolsEnum' + $ref: "#/components/schemas/SwapProviderProtocolsEnum" inputAmount: description: The amount of tokens the swapper will provide example: "10" @@ -44268,9 +43570,9 @@ components: example: DAI type: string additionalData: - $ref: '#/components/schemas/ProviderAdditionalData' + $ref: "#/components/schemas/ProviderAdditionalData" estimatedFees: - $ref: '#/components/schemas/NonWalletQuoteFee' + $ref: "#/components/schemas/NonWalletQuoteFee" required: - additionalData - estimatedFees @@ -44284,8 +43586,8 @@ components: type: object QuoteResponse: oneOf: - - $ref: '#/components/schemas/WalletQuoteResponse' - - $ref: '#/components/schemas/NonWalletQuoteResponse' + - $ref: "#/components/schemas/WalletQuoteResponse" + - $ref: "#/components/schemas/NonWalletQuoteResponse" SwapRequiredAction: example: txId: fc69381c-1e35-48c2-8415-484d1c2f55cx @@ -44293,7 +43595,7 @@ components: status: PENDING properties: type: - $ref: '#/components/schemas/SwapRequiredActionsEnum' + $ref: "#/components/schemas/SwapRequiredActionsEnum" status: description: The status of the required action enum: @@ -44370,9 +43672,9 @@ components: format: uuid type: string category: - $ref: '#/components/schemas/ProviderCategoryEnum' + $ref: "#/components/schemas/ProviderCategoryEnum" protocol: - $ref: '#/components/schemas/SwapProviderProtocolsEnum' + $ref: "#/components/schemas/SwapProviderProtocolsEnum" status: description: |- **CREATED** – The swap request has been created but not yet started. @@ -44426,10 +43728,10 @@ components: description: "The required actions for the swap, including the type of action,\ \ the status of the action, and the transaction id" items: - $ref: '#/components/schemas/SwapRequiredAction' + $ref: "#/components/schemas/SwapRequiredAction" type: array error: - $ref: '#/components/schemas/SwapFlowError' + $ref: "#/components/schemas/SwapFlowError" createdAt: description: The creation time of the swap operation (ISO Date time). example: 2023-07-13T15:55:34.256Z @@ -44519,7 +43821,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/SwapOperation' + $ref: "#/components/schemas/SwapOperation" type: array next: description: "The cursor to fetch the next page of results, if absent or\ @@ -44675,15 +43977,15 @@ components: media: description: Media items extracted from metadata JSON items: - $ref: '#/components/schemas/MediaEntityResponse' + $ref: "#/components/schemas/MediaEntityResponse" type: array spam: allOf: - - $ref: '#/components/schemas/SpamOwnershipResponse' + - $ref: "#/components/schemas/SpamOwnershipResponse" description: Owned Token's Spam status collection: allOf: - - $ref: '#/components/schemas/TokenCollectionResponse' + - $ref: "#/components/schemas/TokenCollectionResponse" description: Parent collection information balance: type: string @@ -44798,10 +44100,10 @@ components: next: next properties: paging: - $ref: '#/components/schemas/Paging' + $ref: "#/components/schemas/Paging" data: items: - $ref: '#/components/schemas/TokenOwnershipResponse' + $ref: "#/components/schemas/TokenOwnershipResponse" type: array type: object SpamTokenResponse: @@ -44848,15 +44150,15 @@ components: media: description: Media items extracted from metadata JSON items: - $ref: '#/components/schemas/MediaEntityResponse' + $ref: "#/components/schemas/MediaEntityResponse" type: array spam: allOf: - - $ref: '#/components/schemas/SpamTokenResponse' + - $ref: "#/components/schemas/SpamTokenResponse" description: Token spam status collection: allOf: - - $ref: '#/components/schemas/TokenCollectionResponse' + - $ref: "#/components/schemas/TokenCollectionResponse" description: Parent collection information blockchainDescriptor: enum: @@ -44933,10 +44235,10 @@ components: next: next properties: paging: - $ref: '#/components/schemas/Paging' + $ref: "#/components/schemas/Paging" data: items: - $ref: '#/components/schemas/TokenResponse' + $ref: "#/components/schemas/TokenResponse" type: array type: object CollectionOwnershipResponse: @@ -45015,10 +44317,10 @@ components: next: next properties: paging: - $ref: '#/components/schemas/Paging' + $ref: "#/components/schemas/Paging" data: items: - $ref: '#/components/schemas/CollectionOwnershipResponse' + $ref: "#/components/schemas/CollectionOwnershipResponse" type: array type: object GetNFTsResponse: @@ -45058,10 +44360,10 @@ components: next: next properties: paging: - $ref: '#/components/schemas/Paging' + $ref: "#/components/schemas/Paging" data: items: - $ref: '#/components/schemas/TokenResponse' + $ref: "#/components/schemas/TokenResponse" type: array type: object UpdateTokenOwnershipStatusDto: @@ -45099,7 +44401,7 @@ components: type: object UpdateTokensOwnershipStatusRequest: items: - $ref: '#/components/schemas/TokenOwnershipStatusUpdatePayload' + $ref: "#/components/schemas/TokenOwnershipStatusUpdatePayload" type: array TokenOwnershipSpamUpdatePayload: example: @@ -45121,7 +44423,7 @@ components: type: object UpdateTokensOwnershipSpamRequest: items: - $ref: '#/components/schemas/TokenOwnershipSpamUpdatePayload' + $ref: "#/components/schemas/TokenOwnershipSpamUpdatePayload" type: array SessionMetadata: properties: @@ -45160,7 +44462,7 @@ components: type: string sessionMetadata: allOf: - - $ref: '#/components/schemas/SessionMetadata' + - $ref: "#/components/schemas/SessionMetadata" description: Metadata of the connection (provided by the dapp) vaultAccountId: description: The vault to connect @@ -45244,10 +44546,10 @@ components: data: description: Array with the requested Web3 connection's data items: - $ref: '#/components/schemas/SessionDTO' + $ref: "#/components/schemas/SessionDTO" type: array paging: - $ref: '#/components/schemas/Paging' + $ref: "#/components/schemas/Paging" required: - data type: object @@ -45324,8 +44626,8 @@ components: type: object CreateConnectionRequest: oneOf: - - $ref: '#/components/schemas/CreateVaultAccountConnectionRequest' - - $ref: '#/components/schemas/CreateNcwConnectionRequest' + - $ref: "#/components/schemas/CreateVaultAccountConnectionRequest" + - $ref: "#/components/schemas/CreateNcwConnectionRequest" CreateConnectionResponse: example: sessionMetadata: "" @@ -45337,7 +44639,7 @@ components: type: string sessionMetadata: allOf: - - $ref: '#/components/schemas/SessionMetadata' + - $ref: "#/components/schemas/SessionMetadata" description: Metadata of the Web3 connection (provided by the DApp). required: - id @@ -45432,7 +44734,7 @@ components: example: 1234-1234-1234-12234 type: string beneficiaryAddress: - $ref: '#/components/schemas/TravelRuleAddress' + $ref: "#/components/schemas/TravelRuleAddress" required: - destination - originatorEqualsBeneficiary @@ -45574,15 +44876,15 @@ components: properties: nameIdentifier: items: - $ref: '#/components/schemas/TravelRuleValidateNaturalNameIdentifier' + $ref: "#/components/schemas/TravelRuleValidateNaturalNameIdentifier" type: array localNameIdentifier: items: - $ref: '#/components/schemas/TravelRuleValidateNaturalNameIdentifier' + $ref: "#/components/schemas/TravelRuleValidateNaturalNameIdentifier" type: array phoneticNameIdentifier: items: - $ref: '#/components/schemas/TravelRuleValidateNaturalNameIdentifier' + $ref: "#/components/schemas/TravelRuleValidateNaturalNameIdentifier" type: array type: object TravelRuleValidateGeographicAddress: @@ -45839,18 +45141,18 @@ components: description: "An array of structured name identifiers for the natural person,\ \ referencing the TravelRuleNaturalPersonNameIdentifier schema." items: - $ref: '#/components/schemas/TravelRuleValidateNaturalPersonNameIdentifier' + $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' + $ref: "#/components/schemas/TravelRuleValidateGeographicAddress" type: array nationalIdentification: - $ref: '#/components/schemas/TravelRuleValidateNationalIdentification' + $ref: "#/components/schemas/TravelRuleValidateNationalIdentification" dateAndPlaceOfBirth: - $ref: '#/components/schemas/TravelRuleValidateDateAndPlaceOfBirth' + $ref: "#/components/schemas/TravelRuleValidateDateAndPlaceOfBirth" customerIdentification: description: A unique identifier for the customer within the organization's context. @@ -45942,15 +45244,15 @@ components: countryOfRegistration: US properties: name: - $ref: '#/components/schemas/TravelRuleValidateLegalPersonNameIdentifier' + $ref: "#/components/schemas/TravelRuleValidateLegalPersonNameIdentifier" geographicAddress: description: The array of geographic addresses associated with the legal person. items: - $ref: '#/components/schemas/TravelRuleValidateGeographicAddress' + $ref: "#/components/schemas/TravelRuleValidateGeographicAddress" type: array nationalIdentification: - $ref: '#/components/schemas/TravelRuleValidateNationalIdentification' + $ref: "#/components/schemas/TravelRuleValidateNationalIdentification" customerIdentification: description: A unique identifier that identifies the customer in the organization's context. @@ -46116,9 +45418,9 @@ components: customerIdentification: CUST123456 properties: naturalPerson: - $ref: '#/components/schemas/TravelRuleValidateNaturalPerson' + $ref: "#/components/schemas/TravelRuleValidateNaturalPerson" legalPerson: - $ref: '#/components/schemas/TravelRuleValidateLegalPerson' + $ref: "#/components/schemas/TravelRuleValidateLegalPerson" type: object TravelRuleValidatePiiIVMS: description: Information about the originator of the transaction. @@ -46712,12 +46014,12 @@ components: originatorPersons: description: Information about the originator of the transaction items: - $ref: '#/components/schemas/TravelRuleValidatePerson' + $ref: "#/components/schemas/TravelRuleValidatePerson" type: array beneficiaryPersons: description: Information about the beneficiary of the transaction items: - $ref: '#/components/schemas/TravelRuleValidatePerson' + $ref: "#/components/schemas/TravelRuleValidatePerson" type: array accountNumber: description: Beneficiary account number @@ -48530,11 +47832,11 @@ components: example: Beneficiary VASP Inc. type: string transactionBlockchainInfo: - $ref: '#/components/schemas/TravelRuleTransactionBlockchainInfo' + $ref: "#/components/schemas/TravelRuleTransactionBlockchainInfo" originator: - $ref: '#/components/schemas/TravelRuleValidatePiiIVMS' + $ref: "#/components/schemas/TravelRuleValidatePiiIVMS" beneficiary: - $ref: '#/components/schemas/TravelRuleValidatePiiIVMS' + $ref: "#/components/schemas/TravelRuleValidatePiiIVMS" encrypted: description: Encrypted data related to the transaction. example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... @@ -48570,9 +47872,9 @@ components: example: TRB987654 type: string originatorProof: - $ref: '#/components/schemas/TravelRuleOwnershipProof' + $ref: "#/components/schemas/TravelRuleOwnershipProof" beneficiaryProof: - $ref: '#/components/schemas/TravelRuleOwnershipProof' + $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\ @@ -48600,7 +47902,7 @@ components: completion of the travel rule type: string pii: - $ref: '#/components/schemas/TravelRulePiiIVMS' + $ref: "#/components/schemas/TravelRulePiiIVMS" pii_url: description: The URL of the personal identifiable information related to the transaction @@ -48705,33 +48007,33 @@ components: issuerDid: issuerDid properties: yearFounded: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" isRegulated: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" regulatoryAuthorities: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" name: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" logo: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" website: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" legalName: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" legalStructure: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" incorporationCountry: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" businessNumber: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" addressLine1: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" city: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" country: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" description: - $ref: '#/components/schemas/TravelRuleIssuer' + $ref: "#/components/schemas/TravelRuleIssuer" required: - addressLine1 - businessNumber @@ -49009,7 +48311,7 @@ components: example: true type: boolean issuers: - $ref: '#/components/schemas/TravelRuleIssuers' + $ref: "#/components/schemas/TravelRuleIssuers" required: - addressLine1 - city @@ -49188,7 +48490,7 @@ components: data: description: "An array of VASP objects, referencing the TravelRuleVASP schema." items: - $ref: '#/components/schemas/TravelRuleVASP' + $ref: "#/components/schemas/TravelRuleVASP" type: array total: description: The total number of VASPs. @@ -49305,7 +48607,7 @@ components: createDate: 2000-01-23T04:56:07.000+00:00 properties: policy: - $ref: '#/components/schemas/TravelRulePolicyRuleResponse' + $ref: "#/components/schemas/TravelRulePolicyRuleResponse" policyStatus: type: string isDefault: @@ -49466,21 +48768,57 @@ components: bypassReason: bypassReason screeningStatus: COMPLETED timestamp: 0.8008281904610115 - status: null + status: Started properties: aml: - $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' + $ref: "#/components/schemas/ComplianceScreeningResultFullPayload" tr: - $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' + $ref: "#/components/schemas/ComplianceScreeningResultFullPayload" amlList: description: The list of all results of the AML screening. items: - $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' + $ref: "#/components/schemas/ComplianceScreeningResultFullPayload" type: array status: - $ref: '#/components/schemas/ComplianceResultStatusesEnum' + $ref: "#/components/schemas/ComplianceResultStatusesEnum" amlRegistration: - $ref: '#/components/schemas/AmlRegistrationResultFullPayload' + $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 + type: string + txId: + description: The transaction ID to set the verdict for + example: 550e8400-e29b-41d4-a716-446655440000 + format: uuid + type: string + required: + - txId + - verdict + type: object + AmlVerdictManualResponse: + example: + success: true + message: AML verdict set successfully + properties: + success: + example: true + type: boolean + message: + example: AML verdict set successfully + type: string + required: + - message + - success type: object GetOtaStatusResponse: example: @@ -49500,7 +48838,7 @@ components: type: object SetOtaStatusResponse: oneOf: - - $ref: '#/components/schemas/SetOtaStatusResponse_oneOf' + - $ref: "#/components/schemas/SetOtaStatusResponse_oneOf" - description: Message indicating the result of the operation when config was successfully updated example: Accepted @@ -49513,7 +48851,7 @@ components: description: Current workspace status type: string type: object - PolicySrcOrDestType: + LegacyPolicySrcOrDestType: description: | * EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace @@ -49533,7 +48871,7 @@ components: - ONE_TIME_ADDRESS - '*' type: string - PolicySrcOrDestSubType: + 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 @@ -49547,24 +48885,24 @@ components: - EXCHANGETEST - '*' type: string - PolicySrcOrDestId: + LegacyPolicySrcOrDestId: description: | Defines the account id, options are * "*" - All accounts * Specific account id type: string - SrcOrDestAttributes: + 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/SrcOrDestAttributes_inner' + $ref: "#/components/schemas/LegacySrcOrDestAttributes_inner" maxItems: 3 minItems: 1 type: array - AmountAggregationTimePeriodMethod: + 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 @@ -49572,7 +48910,7 @@ components: - PER_SINGLE_MATCH - ACROSS_ALL_MATCHES type: string - PolicyRule: + LegacyPolicyRule: description: Policy rule which is enforced on transactions example: dst: @@ -49625,11 +48963,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -49650,7 +48992,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX properties: @@ -49661,7 +49003,7 @@ components: are * "*" - All users are allowed * Specific User id type: string operators: - $ref: '#/components/schemas/PolicyRule_operators' + $ref: "#/components/schemas/LegacyPolicyRule_operators" transactionType: description: | Defines the type of transaction to which the rule applies. @@ -49695,7 +49037,7 @@ components: the user who signs transactions that match a specific rule type: string designatedSigners: - $ref: '#/components/schemas/PolicyRule_designatedSigners' + $ref: "#/components/schemas/LegacyPolicyRule_designatedSigners" type: description: Policy rule type enum: @@ -49722,38 +49064,38 @@ components: type: string srcType: allOf: - - $ref: '#/components/schemas/PolicySrcOrDestType' + - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" deprecated: true description: (deprecated - replaced by "src") source account type srcSubType: allOf: - - $ref: '#/components/schemas/PolicySrcOrDestSubType' + - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" deprecated: true description: (deprecated - replaced by "src") source sub account type srcId: allOf: - - $ref: '#/components/schemas/PolicySrcOrDestId' + - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" deprecated: true description: (deprecated - replaced by "src") source account id src: - $ref: '#/components/schemas/PolicyRule_src' + $ref: "#/components/schemas/LegacyPolicyRule_src" dstType: allOf: - - $ref: '#/components/schemas/PolicySrcOrDestType' + - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" deprecated: true description: (deprecated - replaced by "dst") destination account type dstSubType: allOf: - - $ref: '#/components/schemas/PolicySrcOrDestSubType' + - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" deprecated: true description: (deprecated - replaced by "dst") destination sub account type dstId: allOf: - - $ref: '#/components/schemas/PolicySrcOrDestId' + - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" deprecated: true description: (deprecated - replaced by "dst") destination account id dst: - $ref: '#/components/schemas/PolicyRule_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. @@ -49785,7 +49127,7 @@ components: - TIMEFRAME type: string amount: - $ref: '#/components/schemas/PolicyRule_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. @@ -49804,11 +49146,11 @@ components: of entities which are needed to approve a transaction type: number authorizationGroups: - $ref: '#/components/schemas/PolicyRule_authorizationGroups' + $ref: "#/components/schemas/LegacyPolicyRule_authorizationGroups" amountAggregation: - $ref: '#/components/schemas/PolicyRule_amountAggregation' + $ref: "#/components/schemas/LegacyPolicyRule_amountAggregation" rawMessageSigning: - $ref: '#/components/schemas/PolicyRule_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) @@ -49829,7 +49171,7 @@ components: - periodSec - type type: object - PolicyMetadata: + LegacyPolicyMetadata: description: Policy related metadata example: publishedBy: publishedBy @@ -49850,7 +49192,7 @@ components: description: The timestamp of the last publish of the policy type: string type: object - PolicyResponse: + LegacyPolicyResponse: description: Response object for policy operations example: metadata: @@ -49909,11 +49251,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -49934,7 +49280,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX - dst: @@ -49987,11 +49333,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50012,22 +49362,22 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX properties: rules: description: A set of policy rules items: - $ref: '#/components/schemas/PolicyRule' + $ref: "#/components/schemas/LegacyPolicyRule" type: array metadata: - $ref: '#/components/schemas/PolicyMetadata' + $ref: "#/components/schemas/LegacyPolicyMetadata" required: - metadata - rules type: object - PolicyRuleError: + LegacyPolicyRuleError: description: Rule validation result error example: errorCodeName: errorCodeName @@ -50073,7 +49423,7 @@ components: - errorField - errorMessage type: object - PolicyRuleCheckResult: + LegacyPolicyRuleCheckResult: description: The rule validation result example: index: 2.3021358869347655 @@ -50100,14 +49450,14 @@ components: errors: description: A set of rule validation error objects items: - $ref: '#/components/schemas/PolicyRuleError' + $ref: "#/components/schemas/LegacyPolicyRuleError" type: array required: - errors - index - status type: object - PolicyCheckResult: + LegacyPolicyCheckResult: description: Policy rules validation result example: results: @@ -50141,13 +49491,13 @@ components: results: description: A set of validation results items: - $ref: '#/components/schemas/PolicyRuleCheckResult' + $ref: "#/components/schemas/LegacyPolicyRuleCheckResult" type: array required: - errors - results type: object - PolicyValidation: + LegacyPolicyValidation: description: Policy validation object example: checkResult: @@ -50181,12 +49531,12 @@ components: description: Validation status type: string checkResult: - $ref: '#/components/schemas/PolicyCheckResult' + $ref: "#/components/schemas/LegacyPolicyCheckResult" required: - checkResult - status type: object - PolicyAndValidationResponse: + LegacyPolicyAndValidationResponse: description: Policy validation example: validation: @@ -50273,11 +49623,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50298,7 +49652,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX - dst: @@ -50351,11 +49705,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50376,19 +49734,19 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX properties: policy: - $ref: '#/components/schemas/PolicyResponse' + $ref: "#/components/schemas/LegacyPolicyResponse" validation: - $ref: '#/components/schemas/PolicyValidation' + $ref: "#/components/schemas/LegacyPolicyValidation" required: - policy - validation type: object - DraftResponse: + LegacyDraftResponse: description: Response object for draft operations example: draftId: draftId @@ -50448,11 +49806,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50473,7 +49835,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX - dst: @@ -50526,11 +49888,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50551,7 +49917,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX status: status @@ -50562,20 +49928,20 @@ components: rules: description: Draft rules items: - $ref: '#/components/schemas/PolicyRule' + $ref: "#/components/schemas/LegacyPolicyRule" type: array draftId: description: Draft unique id type: string metadata: - $ref: '#/components/schemas/PolicyMetadata' + $ref: "#/components/schemas/LegacyPolicyMetadata" required: - draftId - metadata - rules - status type: object - DraftReviewAndValidationResponse: + LegacyDraftReviewAndValidationResponse: description: Draft validation example: draftResponse: @@ -50636,11 +50002,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50661,7 +50031,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX - dst: @@ -50714,11 +50084,15 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + amount: LegacyPolicyRule_amount src: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null authorizersCount: 6.027456183070403 dstType: "" srcType: "" @@ -50739,7 +50113,7 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX status: status @@ -50772,14 +50146,14 @@ components: status: status properties: draftResponse: - $ref: '#/components/schemas/DraftResponse' + $ref: "#/components/schemas/LegacyDraftResponse" validation: - $ref: '#/components/schemas/PolicyValidation' + $ref: "#/components/schemas/LegacyPolicyValidation" required: - draftResponse - validation type: object - PolicyRules: + LegacyPolicyRules: example: rules: - dst: @@ -50832,11 +50206,97 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + 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: "" @@ -50857,9 +50317,51 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null amountScope: SINGLE_TX + properties: + rules: + description: Policy rules + items: + $ref: "#/components/schemas/LegacyPolicyRule" + type: array + type: object + LegacyPublishDraftRequest: + example: + draftId: draftId + properties: + draftId: + description: draft unique identifier + type: string + 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 + example: + metadata: + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt + rules: - dst: ids: - null @@ -50910,11 +50412,97 @@ components: - users logic: AND amountCurrency: USD - amount: PolicyRule_amount + 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: "" @@ -50935,23 +50523,2795 @@ components: asset: asset amountAggregation: dstTransferPeers: null - operators: 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 properties: + status: + $ref: "#/components/schemas/LegacyPolicyStatus" rules: - description: Policy rules items: - $ref: '#/components/schemas/PolicyRule' + $ref: "#/components/schemas/LegacyPolicyRule" type: array + checkResult: + $ref: "#/components/schemas/LegacyPolicyCheckResult" + metadata: + $ref: "#/components/schemas/LegacyPolicyMetadata" + required: + - checkResult + - metadata + - rules + - status type: object - PublishDraftRequest: + 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 + example: + - user1 + - user2 + items: + type: string + type: array + PolicyGroupIds: + description: List of policy group IDs + 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 + 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 + - '*' + items: + $ref: "#/components/schemas/AssetTypesConfig_inner" + type: array + operator: + $ref: "#/components/schemas/PolicyOperator" + required: + - nftTransfer + 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" + example: + address: 0x123... + subType: INTERNAL + id: account123 + type: VAULT + properties: + type: + $ref: "#/components/schemas/AccountType-2" + id: + description: Account ID + example: account123 + type: string + subType: + description: Account subtype + example: INTERNAL + type: string + address: + description: Account address + example: 0x123... + type: string + required: + - type + type: object + AccountConfig: + description: Policy source/destination configuration + 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 + 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 + type: string + required: + - operator + - type + type: object + DestinationConfig: + description: Destination configuration for policy rules + example: + type: + - EXTERNAL + operator: INCLUDES + addressType: WHITELISTED + 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 + type: string + addressType: + description: Type of destination addresses allowed + enum: + - ALL + - '*' + - WHITELISTED + - ONE_TIME + - OEC_PARTNER + example: WHITELISTED + type: string + required: + - addressType + - operator + - type + type: object + ApproversConfig: + description: Approvers configuration + example: + canInitiatorApprove: false + approvalGroups: + - threshold: 2 + users: + - user1 + - user2 + allowOperatorAsAuthorizer: false + operator: AND + properties: + canInitiatorApprove: + description: Whether initiator can approve + example: false + type: boolean + operator: + description: Operator for approval groups + enum: + - AND + - OR + example: AND + 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 + enum: + - SINGLE + - MULTIPLE + - INITIATOR + example: SINGLE + 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 + example: + seconds: "86400" + initiator: PER_SINGLE_MATCH + destination: PER_SINGLE_MATCH + source: PER_SINGLE_MATCH + 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 + 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 + type: object + AmountRange: + description: Amount range configuration + example: + min: "100" + max: "10000" + currency: USD + 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 + type: object + ContractMethodConfig: + description: Contract method configuration + example: + methodCalls: + - transfer + - approve + operator: EITHER + 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 + type: object + ContractMethodPattern: + oneOf: + - description: All methods allowed + enum: + - '*' + example: '*' + type: string + - $ref: "#/components/schemas/ContractMethodConfig" + ProgramCallConfig: + description: Program call configuration + example: + allowedSolanaProgramCalls: WHITELISTED + properties: + allowedSolanaProgramCalls: + description: Whether Solana program calls are allowed + enum: + - '*' + - WHITELISTED + example: WHITELISTED + type: string + required: + - allowedSolanaProgramCalls + type: object + ScreeningMetadataConfig: + description: Screening metadata configuration + 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 + properties: + direction: + description: Direction of transaction + enum: + - INBOUND + - OUTBOUND + - ANY + example: OUTBOUND + type: string + provider: + description: Screening provider + enum: + - CHAINALYSIS + - CHAINALYSIS_V2 + - ELLIPTIC + - ELLIPTIC_HOLISTIC + - NOTABENE + example: CHAINALYSIS + nullable: true + type: string + riskRating: + description: Risk rating threshold + enum: + - LOW + - MEDIUM + - HIGH + - SEVERE + - ANY + example: MEDIUM + type: string + riskScore: + description: Risk score threshold + example: "0.8" + type: string + exposureType: + description: Exposure type + enum: + - DIRECT + - INDIRECT + - ANY + example: DIRECT + type: string + category: + items: + type: string + type: array + name: + items: + type: string + type: array + categoryId: + items: + type: string + type: array + status: + description: Transaction status + enum: + - COMPLETED + - PENDING + - REJECTED + - FAILED + - CANCELED + - BLOCKING_TIME_EXPIRED + example: COMPLETED + type: string + sourceAddress: + description: Source address + example: 0x123... + type: string + destAddress: + description: Destination address + example: 0x456... + 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 + items: + type: number + type: array + partial: + description: Whether this is a partial path + example: false + 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 + 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: + - asset + - id + - initiator + - name + - policyEngineVersion + - source + - type + - verdict + type: object + PolicyMetadata: + description: Policy metadata + example: + publishedBy: user456 + editedBy: user123 + publishedAt: 2024-01-15T11:00:00Z + policyType: TRANSFER + editedAt: 2024-01-15T10:30:00Z + properties: + editedBy: + description: The user ID of the user who last edited the policy + example: user123 + 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 + 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 + 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: + 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 + - 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: + rules: + description: A set of policy rules + items: + $ref: "#/components/schemas/PolicyRule" + type: array + metadata: + $ref: "#/components/schemas/PolicyMetadata" + required: + - metadata + - rules + type: object + PolicyRuleError: + description: Rule validation result error + example: + errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + properties: + errorMessage: + description: Error message + type: string + errorCode: + description: error code + type: number + errorCodeName: + description: error code 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 + enum: + - operator + - operators + - authorizationGroups + - designatedSigner + - designatedSigners + - contractMethods + - amountAggregation + - src + - dst + type: string + required: + - errorCode + - errorCodeName + - errorField + - errorMessage + type: object + PolicyRuleCheckResult: + description: The rule validation result + example: + index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + 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 + items: + $ref: "#/components/schemas/PolicyRuleError" + type: array + required: + - errors + - index + - status + type: object + PolicyCheckResult: + description: Policy rules validation result + example: + results: + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + errors: 0.8008281904610115 + properties: + errors: + description: Number of errors + type: number + results: + description: A set of validation results + items: + $ref: "#/components/schemas/PolicyRuleCheckResult" + type: array + required: + - errors + - results + type: object + PolicyValidation: + description: Policy validation object + example: + checkResult: + results: + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + errors: 0.8008281904610115 + status: status + properties: + status: + description: Validation status + type: string + checkResult: + $ref: "#/components/schemas/PolicyCheckResult" + required: + - checkResult + - status + type: object + PolicyAndValidationResponse: + description: Policy validation + example: + validation: + checkResult: + results: + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + errors: 0.8008281904610115 + status: status + policy: + metadata: + publishedBy: user456 + editedBy: user123 + publishedAt: 2024-01-15T11:00:00Z + policyType: TRANSFER + editedAt: 2024-01-15T10:30:00Z + 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: + 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 + - 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: + policy: + $ref: "#/components/schemas/PolicyResponse" + validation: + $ref: "#/components/schemas/PolicyValidation" + required: + - policy + - validation + type: object + DraftResponse: + description: Response object for draft operations example: draftId: draftId + metadata: + publishedBy: user456 + editedBy: user123 + publishedAt: 2024-01-15T11:00:00Z + policyType: TRANSFER + editedAt: 2024-01-15T10:30:00Z + 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: + 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 + - 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 + status: status properties: + status: + description: Operation status + type: string + rules: + description: Draft rules + items: + $ref: "#/components/schemas/PolicyRule" + type: array draftId: - description: draft unique identifier + description: Draft unique id type: string + metadata: + $ref: "#/components/schemas/PolicyMetadata" + required: + - draftId + - metadata + - rules + - status + type: object + DraftReviewAndValidationResponse: + description: Draft validation + example: + draftResponse: + draftId: draftId + metadata: + publishedBy: user456 + editedBy: user123 + publishedAt: 2024-01-15T11:00:00Z + policyType: TRANSFER + editedAt: 2024-01-15T10:30:00Z + 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: + 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 + - 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 + status: status + validation: + checkResult: + results: + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + - index: 6.027456183070403 + errors: + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + - errorCodeName: errorCodeName + errorField: operator + errorMessage: errorMessage + errorCode: 1.4658129805029452 + status: ok + errors: 0.8008281904610115 + status: status + properties: + draftResponse: + $ref: "#/components/schemas/DraftResponse" + validation: + $ref: "#/components/schemas/PolicyValidation" + required: + - draftResponse + - validation + type: object + UpdateDraftRequest: + description: Request schema for updating draft with policy types and rules + 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: + 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 + - 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 + policyTypes: + - TRANSFER + - TRANSFER + properties: + policyTypes: + items: + $ref: "#/components/schemas/PolicyType" + type: array + rules: + description: Array of 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 + properties: + policyTypes: + items: + $ref: "#/components/schemas/PolicyType" + type: array + draftId: + description: The ID of the draft to publish + example: draft-123 + type: string + required: + - draftId + - policyTypes type: object PolicyStatus: description: | @@ -50975,204 +53335,347 @@ components: description: Response object of the publish policy operation example: metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt + publishedBy: user456 + editedBy: user123 + publishedAt: 2024-01-15T11:00:00Z + policyType: TRANSFER + editedAt: 2024-01-15T10:30:00Z rules: - - dst: + - 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: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users + - 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 - 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 + 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 - - users - logic: AND - amountCurrency: USD - amount: PolicyRule_amount - src: + - 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: - - 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: null - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: + - 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: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users + - 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 - 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 + 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 - - users - logic: AND - amountCurrency: USD - amount: PolicyRule_amount - src: + - 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: - - 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: null - srcTransferPeers: null - amountScope: SINGLE_TX + - 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 checkResult: results: - - index: 2.3021358869347655 + - index: 6.027456183070403 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 7.061401241503109 + errorCode: 1.4658129805029452 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 7.061401241503109 + errorCode: 1.4658129805029452 status: ok - - index: 2.3021358869347655 + - index: 6.027456183070403 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 7.061401241503109 + errorCode: 1.4658129805029452 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 7.061401241503109 + errorCode: 1.4658129805029452 status: ok - errors: 5.637376656633329 - status: null + errors: 0.8008281904610115 + status: SUCCESS properties: status: - $ref: '#/components/schemas/PolicyStatus' + $ref: "#/components/schemas/PolicyStatus" rules: items: - $ref: '#/components/schemas/PolicyRule' + $ref: "#/components/schemas/PolicyRule" type: array checkResult: - $ref: '#/components/schemas/PolicyCheckResult' + $ref: "#/components/schemas/PolicyCheckResult" metadata: - $ref: '#/components/schemas/PolicyMetadata' + $ref: "#/components/schemas/PolicyMetadata" required: - checkResult - metadata @@ -51218,12 +53721,12 @@ components: example: firstName: firstName lastName: lastName - role: null + role: OWNER id: id - userType: null + userType: API email: email enabled: true - status: null + status: PENDING_ACTIVATION properties: id: description: The unique identifier of the user @@ -51238,42 +53741,42 @@ components: description: The email address of the user type: string role: - $ref: '#/components/schemas/UserRole' + $ref: "#/components/schemas/UserRole" enabled: description: Whether the user is enabled type: boolean status: - $ref: '#/components/schemas/UserStatus' + $ref: "#/components/schemas/UserStatus" userType: - $ref: '#/components/schemas/UserType' + $ref: "#/components/schemas/UserType" type: object ConsoleUsers: items: - $ref: '#/components/schemas/ConsoleUser' + $ref: "#/components/schemas/ConsoleUser" type: array GetConsoleUsersResponse: example: users: - firstName: firstName lastName: lastName - role: null + role: OWNER id: id - userType: null + userType: API email: email enabled: true - status: null + status: PENDING_ACTIVATION - firstName: firstName lastName: lastName - role: null + role: OWNER id: id - userType: null + userType: API email: email enabled: true - status: null + status: PENDING_ACTIVATION properties: users: items: - $ref: '#/components/schemas/ConsoleUser' + $ref: "#/components/schemas/ConsoleUser" type: array required: - users @@ -51305,12 +53808,12 @@ components: type: object APIUser: example: - role: null + role: OWNER name: name id: id - userType: null + userType: API enabled: true - status: null + status: PENDING_ACTIVATION properties: id: description: The unique identifier of the user @@ -51319,38 +53822,38 @@ components: description: The name of the user type: string role: - $ref: '#/components/schemas/UserRole' + $ref: "#/components/schemas/UserRole" enabled: description: Whether the user is enabled type: boolean status: - $ref: '#/components/schemas/UserStatus' + $ref: "#/components/schemas/UserStatus" userType: - $ref: '#/components/schemas/UserType' + $ref: "#/components/schemas/UserType" type: object APIUsers: items: - $ref: '#/components/schemas/APIUser' + $ref: "#/components/schemas/APIUser" type: array GetAPIUsersResponse: example: users: - - role: null + - role: OWNER name: name id: id - userType: null + userType: API enabled: true - status: null - - role: null + status: PENDING_ACTIVATION + - role: OWNER name: name id: id - userType: null + userType: API enabled: true - status: null + status: PENDING_ACTIVATION properties: users: items: - $ref: '#/components/schemas/APIUser' + $ref: "#/components/schemas/APIUser" type: array required: - users @@ -51682,7 +54185,7 @@ components: createdAt: 2023-03-01T11:23:00.000Z updatedAt: 2023-03-01T11:23:00.000Z items: - $ref: '#/components/schemas/SmartTransferTicketTerm' + $ref: "#/components/schemas/SmartTransferTicketTerm" type: array expiresIn: description: Number of hours for expiration.This data is valid only it ticket @@ -51888,7 +54391,7 @@ components: data: description: Result that match given query criteria items: - $ref: '#/components/schemas/SmartTransferTicket' + $ref: "#/components/schemas/SmartTransferTicket" type: array required: - after @@ -51975,7 +54478,7 @@ components: type: number terms: items: - $ref: '#/components/schemas/SmartTransferCreateTicketTerm' + $ref: "#/components/schemas/SmartTransferCreateTicketTerm" type: array externalRefId: maxLength: 64 @@ -52056,7 +54559,7 @@ components: nullable: true type: string data: - $ref: '#/components/schemas/SmartTransferTicket' + $ref: "#/components/schemas/SmartTransferTicket" required: - message type: object @@ -52184,7 +54687,7 @@ components: nullable: true type: string data: - $ref: '#/components/schemas/SmartTransferTicketTerm' + $ref: "#/components/schemas/SmartTransferTicketTerm" required: - message type: object @@ -52353,7 +54856,7 @@ components: nullable: true type: string data: - $ref: '#/components/schemas/SmartTransferUserGroups' + $ref: "#/components/schemas/SmartTransferUserGroups" required: - message type: object @@ -52404,9 +54907,9 @@ components: totalActiveTickets: 5 properties: inflow: - $ref: '#/components/schemas/SmartTransferStatistic_inflow' + $ref: "#/components/schemas/SmartTransferStatistic_inflow" outflow: - $ref: '#/components/schemas/SmartTransferStatistic_outflow' + $ref: "#/components/schemas/SmartTransferStatistic_outflow" totalActiveTickets: description: Number of total active tickets example: 5 @@ -52487,16 +54990,16 @@ components: type: string tasks: items: - $ref: '#/components/schemas/Task' + $ref: "#/components/schemas/Task" type: array type: object Jobs: items: - $ref: '#/components/schemas/Job' + $ref: "#/components/schemas/Job" type: array Tasks: items: - $ref: '#/components/schemas/Task' + $ref: "#/components/schemas/Task" type: array TagsPagedResponse: example: @@ -52511,7 +55014,7 @@ components: properties: data: items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" type: array next: description: Cursor to the next page @@ -52596,7 +55099,7 @@ components: example: SGX type: string version: - $ref: '#/components/schemas/Version' + $ref: "#/components/schemas/Version" required: - archived - id @@ -52621,7 +55124,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/Cosigner' + $ref: "#/components/schemas/Cosigner" type: array next: description: The ID of the next page @@ -52747,7 +55250,7 @@ components: format: date-time type: string callbackHandler: - $ref: '#/components/schemas/CallbackHandler' + $ref: "#/components/schemas/CallbackHandler" required: - id type: object @@ -52777,7 +55280,7 @@ components: data: description: The data of the current page items: - $ref: '#/components/schemas/ApiKey' + $ref: "#/components/schemas/ApiKey" type: array next: description: The ID of the next page @@ -52831,7 +55334,7 @@ components: url: https://example.com/callback-handler properties: callbackHandler: - $ref: '#/components/schemas/CallbackHandlerRequest' + $ref: "#/components/schemas/CallbackHandlerRequest" type: object PairApiKeyResponse: example: @@ -52852,7 +55355,7 @@ components: format: uuid type: string callbackHandler: - $ref: '#/components/schemas/CallbackHandlerRequest' + $ref: "#/components/schemas/CallbackHandlerRequest" required: - id type: object @@ -52869,7 +55372,7 @@ components: url: https://example.com/callback-handler properties: callbackHandler: - $ref: '#/components/schemas/CallbackHandlerRequest' + $ref: "#/components/schemas/CallbackHandlerRequest" type: object UpdateCallbackHandlerResponse: example: @@ -52890,7 +55393,7 @@ components: format: uuid type: string callbackHandler: - $ref: '#/components/schemas/CallbackHandlerRequest' + $ref: "#/components/schemas/CallbackHandlerRequest" required: - id type: object @@ -52983,7 +55486,7 @@ components: EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner: properties: algorithmName: - $ref: '#/components/schemas/EmbeddedWalletAlgoritm' + $ref: "#/components/schemas/EmbeddedWalletAlgoritm" confirmed: description: confirmed example: true @@ -53011,13 +55514,13 @@ components: type: object NetworkConnectionRoutingPolicy_value: oneOf: - - $ref: '#/components/schemas/CustomRoutingDest' - - $ref: '#/components/schemas/DefaultNetworkRoutingDest' - - $ref: '#/components/schemas/NoneNetworkRoutingDest' + - $ref: "#/components/schemas/CustomRoutingDest" + - $ref: "#/components/schemas/DefaultNetworkRoutingDest" + - $ref: "#/components/schemas/NoneNetworkRoutingDest" NetworkIdRoutingPolicy_value: oneOf: - - $ref: '#/components/schemas/CustomRoutingDest' - - $ref: '#/components/schemas/NoneNetworkRoutingDest' + - $ref: "#/components/schemas/CustomRoutingDest" + - $ref: "#/components/schemas/NoneNetworkRoutingDest" CreateSigningKeyDto_proofOfOwnership: description: An object containing proof of ownership for the signing key. example: @@ -53039,110 +55542,19 @@ components: - message - signature type: object - AddAssetToExternalWalletRequest_oneOf: - example: - address: address - tag: tag - properties: - address: - description: The wallet's address (or xpub) of the wallet - 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" - type: string - required: - - 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 - AddAssetToExternalWalletRequest_oneOf_1_additionalInfo: + AdditionalInfoRequest_additionalInfo: + description: Additional payment information based on the payment rail type oneOf: - - $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 + - $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 @@ -53338,26 +55750,26 @@ components: assetId: type: string source: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" destination: - $ref: '#/components/schemas/Destination' + $ref: "#/components/schemas/Destination" type: object DisbursementOperationExecutionParams_executionParams: properties: amount: type: string paymentAccount: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" instructionSet: items: - $ref: '#/components/schemas/DisbursementInstruction' + $ref: "#/components/schemas/DisbursementInstruction" type: array type: object CreateWorkflowExecutionRequest_params_inner: anyOf: - - $ref: '#/components/schemas/ConversionOperationExecutionParams' - - $ref: '#/components/schemas/TransferOperationExecutionParams' - - $ref: '#/components/schemas/DisbursementOperationExecutionParams' + - $ref: "#/components/schemas/ConversionOperationExecutionParams" + - $ref: "#/components/schemas/TransferOperationExecutionParams" + - $ref: "#/components/schemas/DisbursementOperationExecutionParams" ScreeningVerdict_matchedRule: properties: action: @@ -53381,7 +55793,7 @@ components: type: object DisbursementOperationPreviewOutput_instructionSet_inner: allOf: - - $ref: '#/components/schemas/DisbursementInstructionOutput' + - $ref: "#/components/schemas/DisbursementInstructionOutput" - properties: timeSeconds: type: number @@ -53408,60 +55820,33 @@ components: TokenLinkDto_tokenMetadata: description: The token's metadata oneOf: - - $ref: '#/components/schemas/AssetMetadataDto' - - $ref: '#/components/schemas/CollectionMetadataDto' - - $ref: '#/components/schemas/ContractMetadataDto' + - $ref: "#/components/schemas/AssetMetadataDto" + - $ref: "#/components/schemas/CollectionMetadataDto" + - $ref: "#/components/schemas/ContractMetadataDto" CreateTokenRequestDto_createParams: oneOf: - - $ref: '#/components/schemas/EVMTokenCreateParamsDto' - - $ref: '#/components/schemas/StellarRippleCreateParamsDto' - - $ref: '#/components/schemas/SolanaSimpleCreateParams' - CreateMultichainTokenRequest_createParams: - oneOf: - - $ref: '#/components/schemas/EVMTokenCreateParamsDto' - ChannelDvnConfigWithConfirmations_sendConfig: - allOf: - - $ref: '#/components/schemas/DvnConfigWithConfirmations' - - description: Outbound (source → peer) DVN config with confirmations. - example: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 - ChannelDvnConfigWithConfirmations_receiveConfig: - allOf: - - $ref: '#/components/schemas/DvnConfigWithConfirmations' - - description: Inbound (peer → source) DVN config with confirmations. - example: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - confirmations: 12 - optionalDVNAddresses: - - 1.334824162533763E54 + - $ref: "#/components/schemas/EVMTokenCreateParamsDto" + - $ref: "#/components/schemas/StellarRippleCreateParamsDto" + - $ref: "#/components/schemas/SolanaSimpleCreateParams" ContractAbiResponseDto_abi_inner: oneOf: - - $ref: '#/components/schemas/AbiFunction' - - $ref: '#/components/schemas/SolanaInstruction' + - $ref: "#/components/schemas/AbiFunction" + - $ref: "#/components/schemas/SolanaInstruction" ReadCallFunctionDto_abiFunction: oneOf: - - $ref: '#/components/schemas/ReadAbiFunction' - - $ref: '#/components/schemas/SolanaInstructionWithValue' + - $ref: "#/components/schemas/ReadAbiFunction" + - $ref: "#/components/schemas/SolanaInstructionWithValue" WriteCallFunctionDto_abiFunction: oneOf: - - $ref: '#/components/schemas/WriteAbiFunction' - - $ref: '#/components/schemas/SolanaInstructionWithValue' + - $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' + - $ref: "#/components/schemas/ContractDataEncodedDataString" + - $ref: "#/components/schemas/ContractDataLogDataParam" SetOtaStatusResponse_oneOf: example: message: No change needed. The current status is false @@ -53472,12 +55857,12 @@ components: example: No change needed. The current status is false type: string type: object - SrcOrDestAttributes_inner: + LegacySrcOrDestAttributes_inner: anyOf: - - $ref: '#/components/schemas/PolicySrcOrDestId' - - $ref: '#/components/schemas/PolicySrcOrDestType' - - $ref: '#/components/schemas/PolicySrcOrDestSubType' - PolicyRule_operators: + - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" + - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" + - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" + LegacyPolicyRule_operators: description: Defines users/groups who can initiate the type of transaction to which the rule applies. example: @@ -53515,7 +55900,7 @@ components: type: string type: array type: object - PolicyRule_designatedSigners: + LegacyPolicyRule_designatedSigners: description: Set of ids representing the users who signs transactions that match a specific rule example: @@ -53537,21 +55922,25 @@ components: type: string type: array type: object - PolicyRule_src: + LegacyPolicyRule_src: description: Defines source accounts the rule allows transfers to originate from example: ids: - - null - - null + - - null + - null + - null + - - null + - null + - null properties: ids: description: A set of ids in a tuple format items: - $ref: '#/components/schemas/SrcOrDestAttributes' + $ref: "#/components/schemas/LegacySrcOrDestAttributes" type: array type: object - PolicyRule_dst: + LegacyPolicyRule_dst: description: Defines the destination accounts the rule allows transfers to example: ids: @@ -53561,10 +55950,10 @@ components: ids: description: A set of ids in a tuple format items: - $ref: '#/components/schemas/SrcOrDestAttributes' + $ref: "#/components/schemas/LegacySrcOrDestAttributes" type: array type: object - PolicyRule_amount: + LegacyPolicyRule_amount: anyOf: - description: Numeric string (recommended) type: string @@ -53572,7 +55961,7 @@ components: type: number description: Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) - PolicyRule_authorizationGroups_groups_inner: + LegacyPolicyRule_authorizationGroups_groups_inner: example: usersGroups: - usersGroups @@ -53597,7 +55986,7 @@ components: \ approve the transaction, default is 1." type: number type: object - PolicyRule_authorizationGroups: + LegacyPolicyRule_authorizationGroups: description: Defines the transaction approval terms example: allowOperatorAsAuthorizer: true @@ -53634,26 +56023,26 @@ components: groups: description: Groups of entities which can approve the transaction items: - $ref: '#/components/schemas/PolicyRule_authorizationGroups_groups_inner' + $ref: "#/components/schemas/LegacyPolicyRule_authorizationGroups_groups_inner" type: array type: object - PolicyRule_amountAggregation: + LegacyPolicyRule_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. example: dstTransferPeers: null - operators: null + operators: PER_SINGLE_MATCH srcTransferPeers: null properties: operators: - $ref: '#/components/schemas/AmountAggregationTimePeriodMethod' + $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" srcTransferPeers: - $ref: '#/components/schemas/AmountAggregationTimePeriodMethod' + $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" dstTransferPeers: - $ref: '#/components/schemas/AmountAggregationTimePeriodMethod' + $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" type: object - PolicyRule_rawMessageSigning_derivationPath: + LegacyPolicyRule_rawMessageSigning_derivationPath: example: path: - 5.962133916683182 @@ -53664,7 +56053,7 @@ components: type: number type: array type: object - PolicyRule_rawMessageSigning: + LegacyPolicyRule_rawMessageSigning: description: Raw message signing configuration example: derivationPath: @@ -53676,7 +56065,55 @@ components: algorithm: type: string derivationPath: - $ref: '#/components/schemas/PolicyRule_rawMessageSigning_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 @@ -53690,7 +56127,7 @@ components: properties: coins: items: - $ref: '#/components/schemas/SmartTransferCoinStatistic' + $ref: "#/components/schemas/SmartTransferCoinStatistic" type: array ticketCount: example: 4 @@ -53708,7 +56145,7 @@ components: properties: coins: items: - $ref: '#/components/schemas/SmartTransferCoinStatistic' + $ref: "#/components/schemas/SmartTransferCoinStatistic" type: array ticketCount: example: 4 diff --git a/build.gradle b/build.gradle index cfc1dba1..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 = '11.2.0' +version = '0.0.0' buildscript { repositories { @@ -50,12 +50,12 @@ task execute(type:JavaExec) { } task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' + archiveClassifier = 'javadoc' from javadoc.destinationDir } @@ -66,9 +66,10 @@ artifacts { ext { - jackson_version = "2.14.1" - jakarta_annotation_version = "1.3.5" - junit_version = "4.13.2" + jackson_version = "2.17.1" + jakarta_annotation_version = "2.1.1" + beanvalidation_version = "3.0.2" + junit_version = "5.10.2" } dependencies { @@ -79,7 +80,7 @@ dependencies { implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" implementation "org.openapitools:jackson-databind-nullable:0.2.1" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - testImplementation "junit:junit:$junit_version" + testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" } // Use spotless plugin to automatically format code, remove unused import, etc diff --git a/docs/AbaPaymentInfo.md b/docs/AbaPaymentInfo.md new file mode 100644 index 00000000..0454544e --- /dev/null +++ b/docs/AbaPaymentInfo.md @@ -0,0 +1,24 @@ + + +# 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/AccountConfig.md b/docs/AccountConfig.md new file mode 100644 index 00000000..703183ca --- /dev/null +++ b/docs/AccountConfig.md @@ -0,0 +1,27 @@ + + +# 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/AccountIdentifier.md b/docs/AccountIdentifier.md new file mode 100644 index 00000000..ba2bb74b --- /dev/null +++ b/docs/AccountIdentifier.md @@ -0,0 +1,17 @@ + + +# 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/AccountType2.md b/docs/AccountType2.md new file mode 100644 index 00000000..e52113c3 --- /dev/null +++ b/docs/AccountType2.md @@ -0,0 +1,47 @@ + + +# 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 new file mode 100644 index 00000000..49f8e7af --- /dev/null +++ b/docs/AchPaymentInfo.md @@ -0,0 +1,46 @@ + + +# 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/AddAssetToExternalWalletRequest.md b/docs/AddAssetToExternalWalletRequest.md index eaabe373..d2a79ec3 100644 --- a/docs/AddAssetToExternalWalletRequest.md +++ b/docs/AddAssetToExternalWalletRequest.md @@ -2,34 +2,36 @@ # AddAssetToExternalWalletRequest +Request schema for adding an asset to an external wallet + ## oneOf schemas -* [AddAssetToExternalWalletRequestOneOf](AddAssetToExternalWalletRequestOneOf.md) -* [AddAssetToExternalWalletRequestOneOf1](AddAssetToExternalWalletRequestOneOf1.md) +* [AdditionalInfoRequest](AdditionalInfoRequest.md) +* [BasicAddressRequest](BasicAddressRequest.md) ## Example ```java // Import classes: import com.fireblocks.sdk.model.AddAssetToExternalWalletRequest; -import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf; -import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf1; +import com.fireblocks.sdk.model.AdditionalInfoRequest; +import com.fireblocks.sdk.model.BasicAddressRequest; public class Example { public static void main(String[] args) { AddAssetToExternalWalletRequest exampleAddAssetToExternalWalletRequest = new AddAssetToExternalWalletRequest(); - // 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(); + // 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(); } } ``` diff --git a/docs/AddAssetToExternalWalletRequestOneOf1.md b/docs/AddAssetToExternalWalletRequestOneOf1.md deleted file mode 100644 index bfea689a..00000000 --- a/docs/AddAssetToExternalWalletRequestOneOf1.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# AddAssetToExternalWalletRequestOneOf1 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**additionalInfo** | [**AddAssetToExternalWalletRequestOneOf1AdditionalInfo**](AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md) | | | - - - diff --git a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md deleted file mode 100644 index beee8415..00000000 --- a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md +++ /dev/null @@ -1,46 +0,0 @@ - - -# 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 deleted file mode 100644 index 19dbdcee..00000000 --- a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# 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 deleted file mode 100644 index 334ba64c..00000000 --- a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# 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 deleted file mode 100644 index 1cecf675..00000000 --- a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**speiClabe** | **String** | | | -|**speiName** | **String** | | [optional] | - - - diff --git a/docs/AdditionalInfoRequest.md b/docs/AdditionalInfoRequest.md new file mode 100644 index 00000000..886e6326 --- /dev/null +++ b/docs/AdditionalInfoRequest.md @@ -0,0 +1,14 @@ + + +# 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 new file mode 100644 index 00000000..3165bdce --- /dev/null +++ b/docs/AdditionalInfoRequestAdditionalInfo.md @@ -0,0 +1,111 @@ + + +# 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/AmlVerdictManualRequest.md b/docs/AmlVerdictManualRequest.md new file mode 100644 index 00000000..68871243 --- /dev/null +++ b/docs/AmlVerdictManualRequest.md @@ -0,0 +1,23 @@ + + +# 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/PolicyRules.md b/docs/AmlVerdictManualResponse.md similarity index 54% rename from docs/PolicyRules.md rename to docs/AmlVerdictManualResponse.md index 5ee5094c..b79cfd61 100644 --- a/docs/PolicyRules.md +++ b/docs/AmlVerdictManualResponse.md @@ -1,13 +1,14 @@ -# PolicyRules +# AmlVerdictManualResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**rules** | [**List<PolicyRule>**](PolicyRule.md) | Policy rules | [optional] | +|**success** | **Boolean** | | | +|**message** | **String** | | | diff --git a/docs/AmountOverTimeConfig.md b/docs/AmountOverTimeConfig.md new file mode 100644 index 00000000..ebe17b26 --- /dev/null +++ b/docs/AmountOverTimeConfig.md @@ -0,0 +1,26 @@ + + +# 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 new file mode 100644 index 00000000..6f75ee49 --- /dev/null +++ b/docs/AmountOverTimeConfigRange.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..eb081d64 --- /dev/null +++ b/docs/AmountRange.md @@ -0,0 +1,16 @@ + + +# 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/ApproversConfig.md b/docs/ApproversConfig.md new file mode 100644 index 00000000..862f917f --- /dev/null +++ b/docs/ApproversConfig.md @@ -0,0 +1,26 @@ + + +# 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 new file mode 100644 index 00000000..053af629 --- /dev/null +++ b/docs/ApproversConfigApprovalGroupsInner.md @@ -0,0 +1,15 @@ + + +# 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/AssetConfig.md b/docs/AssetConfig.md new file mode 100644 index 00000000..46e0fc7b --- /dev/null +++ b/docs/AssetConfig.md @@ -0,0 +1,16 @@ + + +# 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/AssetMedia.md b/docs/AssetMedia.md index 15cfef12..78df9db8 100644 --- a/docs/AssetMedia.md +++ b/docs/AssetMedia.md @@ -17,8 +17,8 @@ | Name | Value | |---- | -----| -| SVG_XML | "image/svg+xml" | -| PNG | "image/png" | +| IMAGE_SVG_XML | "image/svg+xml" | +| IMAGE_PNG | "image/png" | diff --git a/docs/AssetTypesConfigInner.md b/docs/AssetTypesConfigInner.md new file mode 100644 index 00000000..cfe60ed9 --- /dev/null +++ b/docs/AssetTypesConfigInner.md @@ -0,0 +1,28 @@ + + +# 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/AddAssetToExternalWalletRequestOneOf.md b/docs/BasicAddressRequest.md similarity index 77% rename from docs/AddAssetToExternalWalletRequestOneOf.md rename to docs/BasicAddressRequest.md index fe75d6d4..e60e9f86 100644 --- a/docs/AddAssetToExternalWalletRequestOneOf.md +++ b/docs/BasicAddressRequest.md @@ -1,13 +1,14 @@ -# AddAssetToExternalWalletRequestOneOf +# BasicAddressRequest +Basic external wallet request with address information ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**address** | **String** | The wallet's address (or xpub) of the wallet | | +|**address** | **String** | The wallet's address (or xpub) of the external 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/BlockchainMedia.md b/docs/BlockchainMedia.md index 71a23d55..0b14d5a8 100644 --- a/docs/BlockchainMedia.md +++ b/docs/BlockchainMedia.md @@ -16,8 +16,8 @@ | Name | Value | |---- | -----| -| SVG_XML | "image/svg+xml" | -| PNG | "image/png" | +| IMAGE_SVG_XML | "image/svg+xml" | +| IMAGE_PNG | "image/png" | diff --git a/docs/BlockchainOnchain.md b/docs/BlockchainOnchain.md index 90b5093c..6935cf65 100644 --- a/docs/BlockchainOnchain.md +++ b/docs/BlockchainOnchain.md @@ -18,7 +18,7 @@ | Name | Value | |---- | -----| -| ECDSA_SECP256K1 | "ECDSA_SECP256K1" | +| ECDSA_SECP256_K1 | "ECDSA_SECP256K1" | | EDDSA_ED25519 | "EDDSA_ED25519" | diff --git a/docs/ChannelDvnConfigWithConfirmations.md b/docs/ChannelDvnConfigWithConfirmations.md index f9f9495a..a1eb4a7c 100644 --- a/docs/ChannelDvnConfigWithConfirmations.md +++ b/docs/ChannelDvnConfigWithConfirmations.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**sendConfig** | [**ChannelDvnConfigWithConfirmationsSendConfig**](ChannelDvnConfigWithConfirmationsSendConfig.md) | | [optional] | -|**receiveConfig** | [**ChannelDvnConfigWithConfirmationsReceiveConfig**](ChannelDvnConfigWithConfirmationsReceiveConfig.md) | | [optional] | +|**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/ChannelDvnConfigWithConfirmationsReceiveConfig.md b/docs/ChannelDvnConfigWithConfirmationsReceiveConfig.md deleted file mode 100644 index c31e4195..00000000 --- a/docs/ChannelDvnConfigWithConfirmationsReceiveConfig.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ChannelDvnConfigWithConfirmationsReceiveConfig - - -## 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/ChannelDvnConfigWithConfirmationsSendConfig.md b/docs/ChannelDvnConfigWithConfirmationsSendConfig.md deleted file mode 100644 index 4ec74ffc..00000000 --- a/docs/ChannelDvnConfigWithConfirmationsSendConfig.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ChannelDvnConfigWithConfirmationsSendConfig - - -## 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/ComplianceApi.md b/docs/ComplianceApi.md index ffe7c973..88b74211 100644 --- a/docs/ComplianceApi.md +++ b/docs/ComplianceApi.md @@ -10,6 +10,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**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 | @@ -496,6 +497,94 @@ No authorization required | **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) diff --git a/docs/ComplianceResultStatusesEnum.md b/docs/ComplianceResultStatusesEnum.md index e9c89019..b9b7c830 100644 --- a/docs/ComplianceResultStatusesEnum.md +++ b/docs/ComplianceResultStatusesEnum.md @@ -7,49 +7,49 @@ * `STARTED` (value: `"Started"`) -* `NETWORKCONNECTIONADDRESSRESOLVE` (value: `"NetworkConnectionAddressResolve"`) +* `NETWORK_CONNECTION_ADDRESS_RESOLVE` (value: `"NetworkConnectionAddressResolve"`) -* `SCREENINGPREPARE` (value: `"ScreeningPrepare"`) +* `SCREENING_PREPARE` (value: `"ScreeningPrepare"`) -* `AMLSTARTED` (value: `"AMLStarted"`) +* `AML_STARTED` (value: `"AMLStarted"`) -* `AMLCOMPLETED` (value: `"AMLCompleted"`) +* `AML_COMPLETED` (value: `"AMLCompleted"`) -* `AMLFAILED` (value: `"AMLFailed"`) +* `AML_FAILED` (value: `"AMLFailed"`) -* `AMLINBACKGROUND` (value: `"AMLInBackground"`) +* `AMLIN_BACKGROUND` (value: `"AMLInBackground"`) -* `TRPRECONDITIONCHECKS` (value: `"TRPreconditionChecks"`) +* `TR_PRECONDITION_CHECKS` (value: `"TRPreconditionChecks"`) -* `TRSTARTED` (value: `"TRStarted"`) +* `TR_STARTED` (value: `"TRStarted"`) -* `TRCOMPLETED` (value: `"TRCompleted"`) +* `TR_COMPLETED` (value: `"TRCompleted"`) -* `TRFAILED` (value: `"TRFailed"`) +* `TR_FAILED` (value: `"TRFailed"`) * `COMPLETED` (value: `"Completed"`) -* `INCOMINGSTARTED` (value: `"IncomingStarted"`) +* `INCOMING_STARTED` (value: `"IncomingStarted"`) -* `INCOMINGSCREENINGPREPARE` (value: `"IncomingScreeningPrepare"`) +* `INCOMING_SCREENING_PREPARE` (value: `"IncomingScreeningPrepare"`) -* `INCOMINGWAITFORFIRSTCONFIRMATION` (value: `"IncomingWaitForFirstConfirmation"`) +* `INCOMING_WAIT_FOR_FIRST_CONFIRMATION` (value: `"IncomingWaitForFirstConfirmation"`) -* `AMLINCOMINGSTARTED` (value: `"AMLIncomingStarted"`) +* `AML_INCOMING_STARTED` (value: `"AMLIncomingStarted"`) -* `AMLINCOMINGCOMPLETED` (value: `"AMLIncomingCompleted"`) +* `AML_INCOMING_COMPLETED` (value: `"AMLIncomingCompleted"`) -* `AMLINCOMINGFAILED` (value: `"AMLIncomingFailed"`) +* `AML_INCOMING_FAILED` (value: `"AMLIncomingFailed"`) -* `AMLINCOMINGINBACKGROUND` (value: `"AMLIncomingInBackground"`) +* `AML_INCOMING_IN_BACKGROUND` (value: `"AMLIncomingInBackground"`) -* `TRINCOMINGSTARTED` (value: `"TRIncomingStarted"`) +* `TR_INCOMING_STARTED` (value: `"TRIncomingStarted"`) -* `TRINCOMINGCOMPLETED` (value: `"TRIncomingCompleted"`) +* `TR_INCOMING_COMPLETED` (value: `"TRIncomingCompleted"`) -* `TRINCOMINGFAILED` (value: `"TRIncomingFailed"`) +* `TR_INCOMING_FAILED` (value: `"TRIncomingFailed"`) -* `INCOMINGCOMPLETED` (value: `"IncomingCompleted"`) +* `INCOMING_COMPLETED` (value: `"IncomingCompleted"`) diff --git a/docs/ContractMethodConfig.md b/docs/ContractMethodConfig.md new file mode 100644 index 00000000..ffb7348b --- /dev/null +++ b/docs/ContractMethodConfig.md @@ -0,0 +1,25 @@ + + +# 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 new file mode 100644 index 00000000..1bed451f --- /dev/null +++ b/docs/ContractMethodPattern.md @@ -0,0 +1,37 @@ + + +# 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/CreateMultichainTokenRequest.md b/docs/CreateMultichainTokenRequest.md index acc7afc9..7b0fa0d6 100644 --- a/docs/CreateMultichainTokenRequest.md +++ b/docs/CreateMultichainTokenRequest.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**vaultAccountId** | **String** | The id of the vault account that initiated the request to issue the token | | -|**createParams** | [**CreateMultichainTokenRequestCreateParams**](CreateMultichainTokenRequestCreateParams.md) | | | +|**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] | diff --git a/docs/CreateMultichainTokenRequestCreateParams.md b/docs/CreateMultichainTokenRequestCreateParams.md deleted file mode 100644 index b63c82d6..00000000 --- a/docs/CreateMultichainTokenRequestCreateParams.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# CreateMultichainTokenRequestCreateParams - -## oneOf schemas -* [EVMTokenCreateParamsDto](EVMTokenCreateParamsDto.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.CreateMultichainTokenRequestCreateParams; -import com.fireblocks.sdk.model.EVMTokenCreateParamsDto; - -public class Example { - public static void main(String[] args) { - CreateMultichainTokenRequestCreateParams exampleCreateMultichainTokenRequestCreateParams = new CreateMultichainTokenRequestCreateParams(); - - // create a new EVMTokenCreateParamsDto - EVMTokenCreateParamsDto exampleEVMTokenCreateParamsDto = new EVMTokenCreateParamsDto(); - // set CreateMultichainTokenRequestCreateParams to EVMTokenCreateParamsDto - exampleCreateMultichainTokenRequestCreateParams.setActualInstance(exampleEVMTokenCreateParamsDto); - // to get back the EVMTokenCreateParamsDto set earlier - EVMTokenCreateParamsDto testEVMTokenCreateParamsDto = (EVMTokenCreateParamsDto) exampleCreateMultichainTokenRequestCreateParams.getActualInstance(); - } -} -``` - - diff --git a/docs/DerivationPathConfig.md b/docs/DerivationPathConfig.md new file mode 100644 index 00000000..6493e682 --- /dev/null +++ b/docs/DerivationPathConfig.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..c9e43c14 --- /dev/null +++ b/docs/DesignatedSignersConfig.md @@ -0,0 +1,26 @@ + + +# 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 new file mode 100644 index 00000000..f6c73a76 --- /dev/null +++ b/docs/DestinationConfig.md @@ -0,0 +1,40 @@ + + +# 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/EmbeddedWalletAlgoritm.md b/docs/EmbeddedWalletAlgoritm.md index 3d18c423..1da313ae 100644 --- a/docs/EmbeddedWalletAlgoritm.md +++ b/docs/EmbeddedWalletAlgoritm.md @@ -16,8 +16,8 @@ algorithm name | Name | Value | |---- | -----| -| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | -| EDDSA_ED25519 | "MPC_EDDSA_ED25519" | +| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | +| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | diff --git a/docs/EmbeddedWalletAssetResponse.md b/docs/EmbeddedWalletAssetResponse.md index 073ac11b..13d9779d 100644 --- a/docs/EmbeddedWalletAssetResponse.md +++ b/docs/EmbeddedWalletAssetResponse.md @@ -31,8 +31,8 @@ | Name | Value | |---- | -----| -| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | -| EDDSA_ED25519 | "MPC_EDDSA_ED25519" | +| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | +| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | diff --git a/docs/EmbeddedWalletLatestBackupKey.md b/docs/EmbeddedWalletLatestBackupKey.md index 5fa0e6fa..14d60669 100644 --- a/docs/EmbeddedWalletLatestBackupKey.md +++ b/docs/EmbeddedWalletLatestBackupKey.md @@ -18,9 +18,9 @@ | Name | Value | |---- | -----| -| CMP_ECDSA_SECP256K1 | "MPC_CMP_ECDSA_SECP256K1" | -| CMP_EDDSA_ED25519 | "MPC_CMP_EDDSA_ED25519" | -| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | +| 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/IbanPaymentInfo.md b/docs/IbanPaymentInfo.md new file mode 100644 index 00000000..43a5b130 --- /dev/null +++ b/docs/IbanPaymentInfo.md @@ -0,0 +1,24 @@ + + +# 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/InitiatorConfig.md b/docs/InitiatorConfig.md new file mode 100644 index 00000000..3efc72ec --- /dev/null +++ b/docs/InitiatorConfig.md @@ -0,0 +1,19 @@ + + +# 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 new file mode 100644 index 00000000..9b6bbea9 --- /dev/null +++ b/docs/InitiatorConfigPattern.md @@ -0,0 +1,37 @@ + + +# 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/LbtPaymentInfo.md b/docs/LbtPaymentInfo.md new file mode 100644 index 00000000..e6fff324 --- /dev/null +++ b/docs/LbtPaymentInfo.md @@ -0,0 +1,37 @@ + + +# 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/LegacyAmountAggregationTimePeriodMethod.md b/docs/LegacyAmountAggregationTimePeriodMethod.md new file mode 100644 index 00000000..b15d55f9 --- /dev/null +++ b/docs/LegacyAmountAggregationTimePeriodMethod.md @@ -0,0 +1,13 @@ + + +# 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 new file mode 100644 index 00000000..c3253fa9 --- /dev/null +++ b/docs/LegacyDraftResponse.md @@ -0,0 +1,17 @@ + + +# 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 new file mode 100644 index 00000000..0a31957e --- /dev/null +++ b/docs/LegacyDraftReviewAndValidationResponse.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..74ae13c8 --- /dev/null +++ b/docs/LegacyPolicyAndValidationResponse.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..67f02b4a --- /dev/null +++ b/docs/LegacyPolicyCheckResult.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..f2df5e95 --- /dev/null +++ b/docs/LegacyPolicyMetadata.md @@ -0,0 +1,17 @@ + + +# 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 new file mode 100644 index 00000000..5355792f --- /dev/null +++ b/docs/LegacyPolicyResponse.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..b418f2e6 --- /dev/null +++ b/docs/LegacyPolicyRule.md @@ -0,0 +1,107 @@ + + +# 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/PolicyRuleAmount.md b/docs/LegacyPolicyRuleAmount.md similarity index 51% rename from docs/PolicyRuleAmount.md rename to docs/LegacyPolicyRuleAmount.md index 753e6ce9..fd9aa34d 100644 --- a/docs/PolicyRuleAmount.md +++ b/docs/LegacyPolicyRuleAmount.md @@ -1,6 +1,6 @@ -# PolicyRuleAmount +# LegacyPolicyRuleAmount 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.PolicyRuleAmount; +import com.fireblocks.sdk.model.LegacyPolicyRuleAmount; import com.fireblocks.sdk.model.BigDecimal; import com.fireblocks.sdk.model.String; public class Example { public static void main(String[] args) { - PolicyRuleAmount examplePolicyRuleAmount = new PolicyRuleAmount(); + LegacyPolicyRuleAmount exampleLegacyPolicyRuleAmount = new LegacyPolicyRuleAmount(); // create a new BigDecimal BigDecimal exampleBigDecimal = new BigDecimal(); - // set PolicyRuleAmount to BigDecimal - examplePolicyRuleAmount.setActualInstance(exampleBigDecimal); + // set LegacyPolicyRuleAmount to BigDecimal + exampleLegacyPolicyRuleAmount.setActualInstance(exampleBigDecimal); // to get back the BigDecimal set earlier - BigDecimal testBigDecimal = (BigDecimal) examplePolicyRuleAmount.getActualInstance(); + BigDecimal testBigDecimal = (BigDecimal) exampleLegacyPolicyRuleAmount.getActualInstance(); // create a new String String exampleString = new String(); - // set PolicyRuleAmount to String - examplePolicyRuleAmount.setActualInstance(exampleString); + // set LegacyPolicyRuleAmount to String + exampleLegacyPolicyRuleAmount.setActualInstance(exampleString); // to get back the String set earlier - String testString = (String) examplePolicyRuleAmount.getActualInstance(); + String testString = (String) exampleLegacyPolicyRuleAmount.getActualInstance(); } } ``` diff --git a/docs/PolicyRuleAmountAggregation.md b/docs/LegacyPolicyRuleAmountAggregation.md similarity index 53% rename from docs/PolicyRuleAmountAggregation.md rename to docs/LegacyPolicyRuleAmountAggregation.md index 516711fb..cd9de811 100644 --- a/docs/PolicyRuleAmountAggregation.md +++ b/docs/LegacyPolicyRuleAmountAggregation.md @@ -1,6 +1,6 @@ -# PolicyRuleAmountAggregation +# LegacyPolicyRuleAmountAggregation 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** | **AmountAggregationTimePeriodMethod** | | [optional] | -|**srcTransferPeers** | **AmountAggregationTimePeriodMethod** | | [optional] | -|**dstTransferPeers** | **AmountAggregationTimePeriodMethod** | | [optional] | +|**operators** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | +|**srcTransferPeers** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | +|**dstTransferPeers** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | diff --git a/docs/PolicyRuleAuthorizationGroups.md b/docs/LegacyPolicyRuleAuthorizationGroups.md similarity index 73% rename from docs/PolicyRuleAuthorizationGroups.md rename to docs/LegacyPolicyRuleAuthorizationGroups.md index 06aee634..68921120 100644 --- a/docs/PolicyRuleAuthorizationGroups.md +++ b/docs/LegacyPolicyRuleAuthorizationGroups.md @@ -1,6 +1,6 @@ -# PolicyRuleAuthorizationGroups +# LegacyPolicyRuleAuthorizationGroups 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<PolicyRuleAuthorizationGroupsGroupsInner>**](PolicyRuleAuthorizationGroupsGroupsInner.md) | Groups of entities which can approve the transaction | [optional] | +|**groups** | [**List<LegacyPolicyRuleAuthorizationGroupsGroupsInner>**](LegacyPolicyRuleAuthorizationGroupsGroupsInner.md) | Groups of entities which can approve the transaction | [optional] | diff --git a/docs/PolicyRuleAuthorizationGroupsGroupsInner.md b/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md similarity index 89% rename from docs/PolicyRuleAuthorizationGroupsGroupsInner.md rename to docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md index 5ed59710..2b28e839 100644 --- a/docs/PolicyRuleAuthorizationGroupsGroupsInner.md +++ b/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md @@ -1,6 +1,6 @@ -# PolicyRuleAuthorizationGroupsGroupsInner +# LegacyPolicyRuleAuthorizationGroupsGroupsInner ## Properties diff --git a/docs/LegacyPolicyRuleCheckResult.md b/docs/LegacyPolicyRuleCheckResult.md new file mode 100644 index 00000000..799c0f9e --- /dev/null +++ b/docs/LegacyPolicyRuleCheckResult.md @@ -0,0 +1,25 @@ + + +# 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/PolicyRuleDesignatedSigners.md b/docs/LegacyPolicyRuleDesignatedSigners.md similarity index 90% rename from docs/PolicyRuleDesignatedSigners.md rename to docs/LegacyPolicyRuleDesignatedSigners.md index 71a80fcb..e46094f1 100644 --- a/docs/PolicyRuleDesignatedSigners.md +++ b/docs/LegacyPolicyRuleDesignatedSigners.md @@ -1,6 +1,6 @@ -# PolicyRuleDesignatedSigners +# LegacyPolicyRuleDesignatedSigners Set of ids representing the users who signs transactions that match a specific rule diff --git a/docs/PolicyRuleDst.md b/docs/LegacyPolicyRuleDst.md similarity index 56% rename from docs/PolicyRuleDst.md rename to docs/LegacyPolicyRuleDst.md index 2bbac7b3..851ac986 100644 --- a/docs/PolicyRuleDst.md +++ b/docs/LegacyPolicyRuleDst.md @@ -1,6 +1,6 @@ -# PolicyRuleDst +# LegacyPolicyRuleDst 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<SrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | +|**ids** | **List<List<LegacySrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | diff --git a/docs/LegacyPolicyRuleError.md b/docs/LegacyPolicyRuleError.md new file mode 100644 index 00000000..4a7e94d9 --- /dev/null +++ b/docs/LegacyPolicyRuleError.md @@ -0,0 +1,33 @@ + + +# 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/PolicyRuleOperators.md b/docs/LegacyPolicyRuleOperators.md similarity index 96% rename from docs/PolicyRuleOperators.md rename to docs/LegacyPolicyRuleOperators.md index 741ef4f6..e24b4caa 100644 --- a/docs/PolicyRuleOperators.md +++ b/docs/LegacyPolicyRuleOperators.md @@ -1,6 +1,6 @@ -# PolicyRuleOperators +# LegacyPolicyRuleOperators Defines users/groups who can initiate the type of transaction to which the rule applies. diff --git a/docs/PolicyRuleRawMessageSigning.md b/docs/LegacyPolicyRuleRawMessageSigning.md similarity index 52% rename from docs/PolicyRuleRawMessageSigning.md rename to docs/LegacyPolicyRuleRawMessageSigning.md index ebec9a1c..89a75890 100644 --- a/docs/PolicyRuleRawMessageSigning.md +++ b/docs/LegacyPolicyRuleRawMessageSigning.md @@ -1,6 +1,6 @@ -# PolicyRuleRawMessageSigning +# LegacyPolicyRuleRawMessageSigning Raw message signing configuration @@ -9,7 +9,7 @@ Raw message signing configuration | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**algorithm** | **String** | | [optional] | -|**derivationPath** | [**PolicyRuleRawMessageSigningDerivationPath**](PolicyRuleRawMessageSigningDerivationPath.md) | | [optional] | +|**derivationPath** | [**LegacyPolicyRuleRawMessageSigningDerivationPath**](LegacyPolicyRuleRawMessageSigningDerivationPath.md) | | [optional] | diff --git a/docs/PolicyRuleRawMessageSigningDerivationPath.md b/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md similarity index 78% rename from docs/PolicyRuleRawMessageSigningDerivationPath.md rename to docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md index 5c4c14c3..2bf14b8d 100644 --- a/docs/PolicyRuleRawMessageSigningDerivationPath.md +++ b/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md @@ -1,6 +1,6 @@ -# PolicyRuleRawMessageSigningDerivationPath +# LegacyPolicyRuleRawMessageSigningDerivationPath ## Properties diff --git a/docs/PolicyRuleSrc.md b/docs/LegacyPolicyRuleSrc.md similarity index 57% rename from docs/PolicyRuleSrc.md rename to docs/LegacyPolicyRuleSrc.md index 59305e3b..6da4afa8 100644 --- a/docs/PolicyRuleSrc.md +++ b/docs/LegacyPolicyRuleSrc.md @@ -1,6 +1,6 @@ -# PolicyRuleSrc +# LegacyPolicyRuleSrc 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<SrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | +|**ids** | **List<List<LegacySrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | diff --git a/docs/LegacyPolicyRules.md b/docs/LegacyPolicyRules.md new file mode 100644 index 00000000..9188fb16 --- /dev/null +++ b/docs/LegacyPolicyRules.md @@ -0,0 +1,13 @@ + + +# LegacyPolicyRules + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | Policy rules | [optional] | + + + diff --git a/docs/PolicySrcOrDestSubType.md b/docs/LegacyPolicySrcOrDestSubType.md similarity index 86% rename from docs/PolicySrcOrDestSubType.md rename to docs/LegacyPolicySrcOrDestSubType.md index c8aa4a73..2f300b69 100644 --- a/docs/PolicySrcOrDestSubType.md +++ b/docs/LegacyPolicySrcOrDestSubType.md @@ -1,6 +1,6 @@ -# PolicySrcOrDestSubType +# LegacyPolicySrcOrDestSubType ## Enum diff --git a/docs/PolicySrcOrDestType.md b/docs/LegacyPolicySrcOrDestType.md similarity index 92% rename from docs/PolicySrcOrDestType.md rename to docs/LegacyPolicySrcOrDestType.md index 8fcf2da2..5b631006 100644 --- a/docs/PolicySrcOrDestType.md +++ b/docs/LegacyPolicySrcOrDestType.md @@ -1,6 +1,6 @@ -# PolicySrcOrDestType +# LegacyPolicySrcOrDestType ## Enum diff --git a/docs/LegacyPolicyStatus.md b/docs/LegacyPolicyStatus.md new file mode 100644 index 00000000..a6618ddc --- /dev/null +++ b/docs/LegacyPolicyStatus.md @@ -0,0 +1,23 @@ + + +# 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 new file mode 100644 index 00000000..aaddb73d --- /dev/null +++ b/docs/LegacyPolicyValidation.md @@ -0,0 +1,15 @@ + + +# 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 new file mode 100644 index 00000000..92947d38 --- /dev/null +++ b/docs/LegacyPublishDraftRequest.md @@ -0,0 +1,13 @@ + + +# LegacyPublishDraftRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**draftId** | **String** | draft unique identifier | [optional] | + + + diff --git a/docs/LegacyPublishResult.md b/docs/LegacyPublishResult.md new file mode 100644 index 00000000..05504fda --- /dev/null +++ b/docs/LegacyPublishResult.md @@ -0,0 +1,17 @@ + + +# 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 new file mode 100644 index 00000000..38b79bd0 --- /dev/null +++ b/docs/LegacySrcOrDestAttributesInner.md @@ -0,0 +1,46 @@ + + +# 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/MomoPaymentInfo.md b/docs/MomoPaymentInfo.md new file mode 100644 index 00000000..ab31e247 --- /dev/null +++ b/docs/MomoPaymentInfo.md @@ -0,0 +1,49 @@ + + +# 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/NotificationPaginatedResponse.md b/docs/NotificationPaginatedResponse.md index a8d24085..0e838d06 100644 --- a/docs/NotificationPaginatedResponse.md +++ b/docs/NotificationPaginatedResponse.md @@ -8,6 +8,7 @@ | 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/PixPaymentInfo.md b/docs/PixPaymentInfo.md new file mode 100644 index 00000000..5f6d02a4 --- /dev/null +++ b/docs/PixPaymentInfo.md @@ -0,0 +1,50 @@ + + +# 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/PolicyEditorBetaApi.md b/docs/PolicyEditorBetaApi.md index ec1b5515..62b3e07c 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 | |------------- | ------------- | -------------| -| [**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 | +| [**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 | | [**publishPolicyRules**](PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules | -| [**updateDraft**](PolicyEditorBetaApi.md#updateDraft) | **PUT** /tap/draft | Update the draft with a new set of rules | +| [**updateDraftLegacy**](PolicyEditorBetaApi.md#updateDraftLegacy) | **PUT** /tap/draft | Update the draft with a new set of rules | -## getActivePolicy +## getActivePolicyLegacy -> CompletableFuture> getActivePolicy getActivePolicy() +> CompletableFuture> getActivePolicyLegacy getActivePolicyLegacy() 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. +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. ### Example @@ -44,19 +44,19 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.policyEditorBeta().getActivePolicy(); + CompletableFuture> response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); 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#getActivePolicy"); + System.err.println("Exception when calling PolicyEditorBetaApi#getActivePolicyLegacy"); 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#getActivePolicy"); + System.err.println("Exception when calling PolicyEditorBetaApi#getActivePolicyLegacy"); 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 -
| -## getDraft +## getDraftLegacy -> CompletableFuture> getDraft getDraft() +> CompletableFuture> getDraftLegacy getDraftLegacy() 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. +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. ### Example @@ -123,19 +123,19 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.policyEditorBeta().getDraft(); + CompletableFuture> response = fireblocks.policyEditorBeta().getDraftLegacy(); 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#getDraft"); + System.err.println("Exception when calling PolicyEditorBetaApi#getDraftLegacy"); 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#getDraft"); + System.err.println("Exception when calling PolicyEditorBetaApi#getDraftLegacy"); 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 -
| -## publishDraft +## publishDraftLegacy -> CompletableFuture> publishDraft publishDraft(publishDraftRequest, idempotencyKey) +> CompletableFuture> publishDraftLegacy publishDraftLegacy(legacyPublishDraftRequest, 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 TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. +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. ### Example @@ -201,22 +201,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - PublishDraftRequest publishDraftRequest = new PublishDraftRequest(); // PublishDraftRequest | + LegacyPublishDraftRequest legacyPublishDraftRequest = new LegacyPublishDraftRequest(); // LegacyPublishDraftRequest | 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().publishDraft(publishDraftRequest, idempotencyKey); + CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest, 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#publishDraft"); + System.err.println("Exception when calling PolicyEditorBetaApi#publishDraftLegacy"); 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#publishDraft"); + System.err.println("Exception when calling PolicyEditorBetaApi#publishDraftLegacy"); 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 | |------------- | ------------- | ------------- | -------------| -| **publishDraftRequest** | [**PublishDraftRequest**](PublishDraftRequest.md)| | | +| **legacyPublishDraftRequest** | [**LegacyPublishDraftRequest**](LegacyPublishDraftRequest.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(policyRules, idempotencyKey) +> CompletableFuture> publishPolicyRules publishPolicyRules(legacyPolicyRules, 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); - PolicyRules policyRules = new PolicyRules(); // PolicyRules | + LegacyPolicyRules legacyPolicyRules = new LegacyPolicyRules(); // LegacyPolicyRules | 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(policyRules, idempotencyKey); + CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(legacyPolicyRules, 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 | |------------- | ------------- | ------------- | -------------| -| **policyRules** | [**PolicyRules**](PolicyRules.md)| | | +| **legacyPolicyRules** | [**LegacyPolicyRules**](LegacyPolicyRules.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 -
| -## updateDraft +## updateDraftLegacy -> CompletableFuture> updateDraft updateDraft(policyRules, idempotencyKey) +> CompletableFuture> updateDraftLegacy updateDraftLegacy(legacyPolicyRules, idempotencyKey) 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. +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. ### Example @@ -371,22 +371,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - PolicyRules policyRules = new PolicyRules(); // PolicyRules | + LegacyPolicyRules legacyPolicyRules = new LegacyPolicyRules(); // LegacyPolicyRules | 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().updateDraft(policyRules, idempotencyKey); + CompletableFuture> response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules, 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#updateDraft"); + System.err.println("Exception when calling PolicyEditorBetaApi#updateDraftLegacy"); 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#updateDraft"); + System.err.println("Exception when calling PolicyEditorBetaApi#updateDraftLegacy"); 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 | |------------- | ------------- | ------------- | -------------| -| **policyRules** | [**PolicyRules**](PolicyRules.md)| | | +| **legacyPolicyRules** | [**LegacyPolicyRules**](LegacyPolicyRules.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 new file mode 100644 index 00000000..dd7c3de8 --- /dev/null +++ b/docs/PolicyEditorV2BetaApi.md @@ -0,0 +1,348 @@ +# 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 d0a2a068..ed1fb95a 100644 --- a/docs/PolicyMetadata.md +++ b/docs/PolicyMetadata.md @@ -2,16 +2,17 @@ # PolicyMetadata -Policy related metadata +Policy 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 new file mode 100644 index 00000000..9c7226df --- /dev/null +++ b/docs/PolicyOperator.md @@ -0,0 +1,13 @@ + + +# PolicyOperator + +## Enum + + +* `INCLUDES` (value: `"INCLUDES"`) + +* `EXCLUDES` (value: `"EXCLUDES"`) + + + diff --git a/docs/PolicyRule.md b/docs/PolicyRule.md index 9a164cdb..efb4d6df 100644 --- a/docs/PolicyRule.md +++ b/docs/PolicyRule.md @@ -2,106 +2,44 @@ # PolicyRule -Policy rule which is enforced on transactions +V2 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** | [**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. * 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** | [**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" | -| 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** | **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 | Name | Value | |---- | -----| -| SINGLE_TX | "SINGLE_TX" | -| TIMEFRAME | "TIMEFRAME" | +| V2 | "v2" | diff --git a/docs/PolicyRuleError.md b/docs/PolicyRuleError.md index 62fbfe99..4f083bd8 100644 --- a/docs/PolicyRuleError.md +++ b/docs/PolicyRuleError.md @@ -21,11 +21,11 @@ Rule validation result error |---- | -----| | OPERATOR | "operator" | | OPERATORS | "operators" | -| AUTHORIZATIONGROUPS | "authorizationGroups" | -| DESIGNATEDSIGNER | "designatedSigner" | -| DESIGNATEDSIGNERS | "designatedSigners" | -| CONTRACTMETHODS | "contractMethods" | -| AMOUNTAGGREGATION | "amountAggregation" | +| AUTHORIZATION_GROUPS | "authorizationGroups" | +| DESIGNATED_SIGNER | "designatedSigner" | +| DESIGNATED_SIGNERS | "designatedSigners" | +| CONTRACT_METHODS | "contractMethods" | +| AMOUNT_AGGREGATION | "amountAggregation" | | SRC | "src" | | DST | "dst" | diff --git a/docs/PolicyType.md b/docs/PolicyType.md new file mode 100644 index 00000000..84d435aa --- /dev/null +++ b/docs/PolicyType.md @@ -0,0 +1,49 @@ + + +# 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/ProgramCallConfig.md b/docs/ProgramCallConfig.md new file mode 100644 index 00000000..98fdcfa1 --- /dev/null +++ b/docs/ProgramCallConfig.md @@ -0,0 +1,23 @@ + + +# 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/PublicKeyInformation.md b/docs/PublicKeyInformation.md index d1fd4037..4591c024 100644 --- a/docs/PublicKeyInformation.md +++ b/docs/PublicKeyInformation.md @@ -17,9 +17,9 @@ | Name | Value | |---- | -----| -| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | -| ECDSA_SECP256R1 | "MPC_ECDSA_SECP256R1" | -| EDDSA_ED25519 | "MPC_EDDSA_ED25519" | +| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | +| MPC_ECDSA_SECP256_R1 | "MPC_ECDSA_SECP256R1" | +| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | diff --git a/docs/PublishDraftRequest.md b/docs/PublishDraftRequest.md index d150418e..252088f7 100644 --- a/docs/PublishDraftRequest.md +++ b/docs/PublishDraftRequest.md @@ -2,12 +2,14 @@ # PublishDraftRequest +Request schema for publishing draft with policy types and draft ID ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**draftId** | **String** | draft unique identifier | [optional] | +|**policyTypes** | **List<PolicyType>** | | | +|**draftId** | **String** | The ID of the draft to publish | | diff --git a/docs/ScreeningMetadataConfig.md b/docs/ScreeningMetadataConfig.md new file mode 100644 index 00000000..6efea916 --- /dev/null +++ b/docs/ScreeningMetadataConfig.md @@ -0,0 +1,81 @@ + + +# 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/SepaPaymentInfo.md b/docs/SepaPaymentInfo.md new file mode 100644 index 00000000..4a3d5f30 --- /dev/null +++ b/docs/SepaPaymentInfo.md @@ -0,0 +1,43 @@ + + +# 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/SessionDTO.md b/docs/SessionDTO.md index 3a8bea07..23c370a3 100644 --- a/docs/SessionDTO.md +++ b/docs/SessionDTO.md @@ -32,7 +32,7 @@ | Name | Value | |---- | -----| -| WALLETCONNECT | "WalletConnect" | +| WALLET_CONNECT | "WalletConnect" | diff --git a/docs/SignedMessage.md b/docs/SignedMessage.md index efa25cf2..e701bbbd 100644 --- a/docs/SignedMessage.md +++ b/docs/SignedMessage.md @@ -20,8 +20,8 @@ A list of signed messages returned for raw signing. | Name | Value | |---- | -----| -| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | -| EDDSA_ED25519 | "MPC_EDDSA_ED25519" | +| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | +| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | diff --git a/docs/SmartTransferTicketTerm.md b/docs/SmartTransferTicketTerm.md index 2db6acd4..0b19120a 100644 --- a/docs/SmartTransferTicketTerm.md +++ b/docs/SmartTransferTicketTerm.md @@ -33,19 +33,19 @@ Data object with result data |---- | -----| | QUEUED | "queued" | | SUBMITTED | "submitted" | -| PENDINGSIGNATURE | "pendingSignature" | -| PENDINGAUTHORIZATION | "pendingAuthorization" | +| PENDING_SIGNATURE | "pendingSignature" | +| PENDING_AUTHORIZATION | "pendingAuthorization" | | BROADCASTING | "broadcasting" | | CONFIRMING | "confirming" | -| PENDINGAMLSCREENING | "pendingAmlScreening" | +| PENDING_AML_SCREENING | "pendingAmlScreening" | | COMPLETED | "completed" | | CANCELLED | "cancelled" | | FAILED | "failed" | | REJECTED | "rejected" | | BLOCKED | "blocked" | -| THIRDPARTYPENDINGMANUALAPPROVAL | "thirdPartyPendingManualApproval" | -| THIRDPARTYPENDING | "thirdPartyPending" | -| PARTIALLYCOMPLETED | "partiallyCompleted" | +| THIRD_PARTY_PENDING_MANUAL_APPROVAL | "thirdPartyPendingManualApproval" | +| THIRD_PARTY_PENDING | "thirdPartyPending" | +| PARTIALLY_COMPLETED | "partiallyCompleted" | | CANCELLING | "cancelling" | diff --git a/docs/SpeiAdvancedPaymentInfo.md b/docs/SpeiAdvancedPaymentInfo.md new file mode 100644 index 00000000..d9dfea2e --- /dev/null +++ b/docs/SpeiAdvancedPaymentInfo.md @@ -0,0 +1,38 @@ + + +# 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 new file mode 100644 index 00000000..a9b730ff --- /dev/null +++ b/docs/SpeiBasicPaymentInfo.md @@ -0,0 +1,15 @@ + + +# 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/SrcOrDestAttributesInner.md b/docs/SrcOrDestAttributesInner.md deleted file mode 100644 index 1e384dbf..00000000 --- a/docs/SrcOrDestAttributesInner.md +++ /dev/null @@ -1,46 +0,0 @@ - - -# 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/TimePeriodConfig.md b/docs/TimePeriodConfig.md new file mode 100644 index 00000000..3e584ccc --- /dev/null +++ b/docs/TimePeriodConfig.md @@ -0,0 +1,17 @@ + + +# 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/AmountAggregationTimePeriodMethod.md b/docs/TimePeriodMatchType.md similarity index 77% rename from docs/AmountAggregationTimePeriodMethod.md rename to docs/TimePeriodMatchType.md index 08ab1d72..0bd0d892 100644 --- a/docs/AmountAggregationTimePeriodMethod.md +++ b/docs/TimePeriodMatchType.md @@ -1,6 +1,6 @@ -# AmountAggregationTimePeriodMethod +# TimePeriodMatchType ## Enum diff --git a/docs/Transaction.md b/docs/Transaction.md index 6d80314d..787d8fa3 100644 --- a/docs/Transaction.md +++ b/docs/Transaction.md @@ -23,8 +23,8 @@ | PENDING_AUTHORIZATION | "PENDING_AUTHORIZATION" | | PENDING_SIGNATURE | "PENDING_SIGNATURE" | | BROADCASTING | "BROADCASTING" | -| PENDING_3RD_PARTY_MANUAL_APPROVAL | "PENDING_3RD_PARTY_MANUAL_APPROVAL" | -| PENDING_3RD_PARTY | "PENDING_3RD_PARTY" | +| PENDING_3_RD_PARTY_MANUAL_APPROVAL | "PENDING_3RD_PARTY_MANUAL_APPROVAL" | +| PENDING_3_RD_PARTY | "PENDING_3RD_PARTY" | | PENDING | "PENDING" | | CONFIRMING | "CONFIRMING" | | CONFIRMED | "CONFIRMED" | diff --git a/docs/TransactionRequest.md b/docs/TransactionRequest.md index 526c4da3..fcf9a994 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** | 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] | +|**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] | |**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] | diff --git a/docs/TravelRuleCreateTransactionRequest.md b/docs/TravelRuleCreateTransactionRequest.md index a4804a1a..31b50a1c 100644 --- a/docs/TravelRuleCreateTransactionRequest.md +++ b/docs/TravelRuleCreateTransactionRequest.md @@ -36,9 +36,9 @@ | Name | Value | |---- | -----| | IVMS101 | "IVMS101" | -| TRLIGHT | "TRLight" | +| TR_LIGHT | "TRLight" | | TRP | "TRP" | -| OPENVASP | "OpenVASP" | +| OPEN_VASP | "OpenVASP" | | GTR | "GTR" | diff --git a/docs/TravelRuleValidateFullTransactionRequest.md b/docs/TravelRuleValidateFullTransactionRequest.md index 3e8a09fd..29ea4fe7 100644 --- a/docs/TravelRuleValidateFullTransactionRequest.md +++ b/docs/TravelRuleValidateFullTransactionRequest.md @@ -38,9 +38,9 @@ | Name | Value | |---- | -----| -| TRLIGHT | "TRLight" | +| TR_LIGHT | "TRLight" | | TRP | "TRP" | -| OPENVASP | "OpenVASP" | +| OPEN_VASP | "OpenVASP" | | GTR | "GTR" | diff --git a/docs/UpdateDraftRequest.md b/docs/UpdateDraftRequest.md new file mode 100644 index 00000000..e4b75e82 --- /dev/null +++ b/docs/UpdateDraftRequest.md @@ -0,0 +1,15 @@ + + +# 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/UsWirePaymentInfo.md b/docs/UsWirePaymentInfo.md new file mode 100644 index 00000000..11887ed8 --- /dev/null +++ b/docs/UsWirePaymentInfo.md @@ -0,0 +1,44 @@ + + +# 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/VerdictConfig.md b/docs/VerdictConfig.md new file mode 100644 index 00000000..988bdd75 --- /dev/null +++ b/docs/VerdictConfig.md @@ -0,0 +1,34 @@ + + +# 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/WebhooksV2Api.md b/docs/WebhooksV2Api.md index efb262f0..52c562b9 100644 --- a/docs/WebhooksV2Api.md +++ b/docs/WebhooksV2Api.md @@ -365,7 +365,7 @@ No authorization required ## getNotifications -> CompletableFuture> getNotifications getNotifications(webhookId, order, sortBy, pageCursor, pageSize) +> CompletableFuture> getNotifications getNotifications(webhookId, order, sortBy, pageCursor, pageSize, startTime, endTime, statuses, events, resourceId) Get all notifications by webhook id @@ -399,8 +399,13 @@ public class Example { 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); + 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()); @@ -432,6 +437,11 @@ public class Example { | **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 diff --git a/gradle.properties b/gradle.properties index e69de29b..a3408578 100644 --- a/gradle.properties +++ b/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180f2ae8848c63b8b4dea2cb829da983f2fa..e6441136f3d4ba8a0da8d277868979cfbc8ad796 100644 GIT binary patch literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vSTxF-Vi3+ZOI=Thq2} zyQgjYY1_7^ZQHh{?P))4+qUiQJLi1&{yE>h?~jU%tjdV0h|FENbM3X(KnJdPKc?~k zh=^Ixv*+smUll!DTWH!jrV*wSh*(mx0o6}1@JExzF(#9FXgmTXVoU+>kDe68N)dkQ zH#_98Zv$}lQwjKL@yBd;U(UD0UCl322=pav<=6g>03{O_3oKTq;9bLFX1ia*lw;#K zOiYDcBJf)82->83N_Y(J7Kr_3lE)hAu;)Q(nUVydv+l+nQ$?|%MWTy`t>{havFSQloHwiIkGK9YZ79^9?AZo0ZyQlVR#}lF%dn5n%xYksXf8gnBm=wO7g_^! zauQ-bH1Dc@3ItZ-9D_*pH}p!IG7j8A_o94#~>$LR|TFq zZ-b00*nuw|-5C2lJDCw&8p5N~Z1J&TrcyErds&!l3$eSz%`(*izc;-?HAFD9AHb-| z>)id`QCrzRws^9(#&=pIx9OEf2rmlob8sK&xPCWS+nD~qzU|qG6KwA{zbikcfQrdH z+ zQg>O<`K4L8rN7`GJB0*3<3`z({lWe#K!4AZLsI{%z#ja^OpfjU{!{)x0ZH~RB0W5X zTwN^w=|nA!4PEU2=LR05x~}|B&ZP?#pNgDMwD*ajI6oJqv!L81gu=KpqH22avXf0w zX3HjbCI!n9>l046)5rr5&v5ja!xkKK42zmqHzPx$9Nn_MZk`gLeSLgC=LFf;H1O#B zn=8|^1iRrujHfbgA+8i<9jaXc;CQBAmQvMGQPhFec2H1knCK2x!T`e6soyrqCamX% zTQ4dX_E*8so)E*TB$*io{$c6X)~{aWfaqdTh=xEeGvOAN9H&-t5tEE-qso<+C!2>+ zskX51H-H}#X{A75wqFe-J{?o8Bx|>fTBtl&tcbdR|132Ztqu5X0i-pisB-z8n71%q%>EF}yy5?z=Ve`}hVh{Drv1YWL zW=%ug_&chF11gDv3D6B)Tz5g54H0mDHNjuKZ+)CKFk4Z|$RD zfRuKLW`1B>B?*RUfVd0+u8h3r-{@fZ{k)c!93t1b0+Q9vOaRnEn1*IL>5Z4E4dZ!7 ztp4GP-^1d>8~LMeb}bW!(aAnB1tM_*la=Xx)q(I0Y@__Zd$!KYb8T2VBRw%e$iSdZ zkwdMwd}eV9q*;YvrBFTv1>1+}{H!JK2M*C|TNe$ZSA>UHKk);wz$(F$rXVc|sI^lD zV^?_J!3cLM;GJuBMbftbaRUs$;F}HDEDtIeHQ)^EJJ1F9FKJTGH<(Jj`phE6OuvE) zqK^K`;3S{Y#1M@8yRQwH`?kHMq4tHX#rJ>5lY3DM#o@or4&^_xtBC(|JpGTfrbGkA z2Tu+AyT^pHannww!4^!$5?@5v`LYy~T`qs7SYt$JgrY(w%C+IWA;ZkwEF)u5sDvOK zGk;G>Mh&elvXDcV69J_h02l&O;!{$({fng9Rlc3ID#tmB^FIG^w{HLUpF+iB`|
NnX)EH+Nua)3Y(c z&{(nX_ht=QbJ%DzAya}!&uNu!4V0xI)QE$SY__m)SAKcN0P(&JcoK*Lxr@P zY&P=}&B3*UWNlc|&$Oh{BEqwK2+N2U$4WB7Fd|aIal`FGANUa9E-O)!gV`((ZGCc$ zBJA|FFrlg~9OBp#f7aHodCe{6= zay$6vN~zj1ddMZ9gQ4p32(7wD?(dE>KA2;SOzXRmPBiBc6g`eOsy+pVcHu=;Yd8@{ zSGgXf@%sKKQz~;!J;|2fC@emm#^_rnO0esEn^QxXgJYd`#FPWOUU5b;9eMAF zZhfiZb|gk8aJIw*YLp4!*(=3l8Cp{(%p?ho22*vN9+5NLV0TTazNY$B5L6UKUrd$n zjbX%#m7&F#U?QNOBXkiiWB*_tk+H?N3`vg;1F-I+83{M2!8<^nydGr5XX}tC!10&e z7D36bLaB56WrjL&HiiMVtpff|K%|*{t*ltt^5ood{FOG0<>k&1h95qPio)2`eL${YAGIx(b4VN*~nKn6E~SIQUuRH zQ+5zP6jfnP$S0iJ@~t!Ai3o`X7biohli;E zT#yXyl{bojG@-TGZzpdVDXhbmF%F9+-^YSIv|MT1l3j zrxOFq>gd2%U}?6}8mIj?M zc077Zc9fq(-)4+gXv?Az26IO6eV`RAJz8e3)SC7~>%rlzDwySVx*q$ygTR5kW2ds- z!HBgcq0KON9*8Ff$X0wOq$`T7ml(@TF)VeoF}x1OttjuVHn3~sHrMB++}f7f9H%@f z=|kP_?#+fve@{0MlbkC9tyvQ_R?lRdRJ@$qcB(8*jyMyeME5ns6ypVI1Xm*Zr{DuS zZ!1)rQfa89c~;l~VkCiHI|PCBd`S*2RLNQM8!g9L6?n`^evQNEwfO@&JJRme+uopQX0%Jo zgd5G&#&{nX{o?TQwQvF1<^Cg3?2co;_06=~Hcb6~4XWpNFL!WU{+CK;>gH%|BLOh7@!hsa(>pNDAmpcuVO-?;Bic17R}^|6@8DahH)G z!EmhsfunLL|3b=M0MeK2vqZ|OqUqS8npxwge$w-4pFVXFq$_EKrZY?BuP@Az@(k`L z`ViQBSk`y+YwRT;&W| z2e3UfkCo^uTA4}Qmmtqs+nk#gNr2W4 zTH%hhErhB)pkXR{B!q5P3-OM+M;qu~f>}IjtF%>w{~K-0*jPVLl?Chz&zIdxp}bjx zStp&Iufr58FTQ36AHU)0+CmvaOpKF;W@sMTFpJ`j;3d)J_$tNQI^c<^1o<49Z(~K> z;EZTBaVT%14(bFw2ob@?JLQ2@(1pCdg3S%E4*dJ}dA*v}_a4_P(a`cHnBFJxNobAv zf&Zl-Yt*lhn-wjZsq<9v-IsXxAxMZ58C@e0!rzhJ+D@9^3~?~yllY^s$?&oNwyH!#~6x4gUrfxplCvK#!f z$viuszW>MFEcFL?>ux*((!L$;R?xc*myjRIjgnQX79@UPD$6Dz0jutM@7h_pq z0Zr)#O<^y_K6jfY^X%A-ip>P%3saX{!v;fxT-*0C_j4=UMH+Xth(XVkVGiiKE#f)q z%Jp=JT)uy{&}Iq2E*xr4YsJ5>w^=#-mRZ4vPXpI6q~1aFwi+lQcimO45V-JXP;>(Q zo={U`{=_JF`EQj87Wf}{Qy35s8r1*9Mxg({CvOt}?Vh9d&(}iI-quvs-rm~P;eRA@ zG5?1HO}puruc@S{YNAF3vmUc2B4!k*yi))<5BQmvd3tr}cIs#9)*AX>t`=~{f#Uz0 z0&Nk!7sSZwJe}=)-R^$0{yeS!V`Dh7w{w5rZ9ir!Z7Cd7dwZcK;BT#V0bzTt>;@Cl z#|#A!-IL6CZ@eHH!CG>OO8!%G8&8t4)Ro@}USB*k>oEUo0LsljsJ-%5Mo^MJF2I8- z#v7a5VdJ-Cd%(a+y6QwTmi+?f8Nxtm{g-+WGL>t;s#epv7ug>inqimZCVm!uT5Pf6 ziEgQt7^%xJf#!aPWbuC_3Nxfb&CFbQy!(8ANpkWLI4oSnH?Q3f?0k1t$3d+lkQs{~(>06l&v|MpcFsyAv zin6N!-;pggosR*vV=DO(#+}4ps|5$`udE%Kdmp?G7B#y%H`R|i8skKOd9Xzx8xgR$>Zo2R2Ytktq^w#ul4uicxW#{ zFjG_RNlBroV_n;a7U(KIpcp*{M~e~@>Q#Av90Jc5v%0c>egEdY4v3%|K1XvB{O_8G zkTWLC>OZKf;XguMH2-Pw{BKbFzaY;4v2seZV0>^7Q~d4O=AwaPhP3h|!hw5aqOtT@ z!SNz}$of**Bl3TK209@F=Tn1+mgZa8yh(Png%Zd6Mt}^NSjy)etQrF zme*llAW=N_8R*O~d2!apJnF%(JcN??=`$qs3Y+~xs>L9x`0^NIn!8mMRFA_tg`etw z3k{9JAjnl@ygIiJcNHTy02GMAvBVqEss&t2<2mnw!; zU`J)0>lWiqVqo|ex7!+@0i>B~BSU1A_0w#Ee+2pJx0BFiZ7RDHEvE*ptc9md(B{&+ zKE>TM)+Pd>HEmdJao7U@S>nL(qq*A)#eLOuIfAS@j`_sK0UEY6OAJJ-kOrHG zjHx`g!9j*_jRcJ%>CE9K2MVf?BUZKFHY?EpV6ai7sET-tqk=nDFh-(65rhjtlKEY% z@G&cQ<5BKatfdA1FKuB=i>CCC5(|9TMW%K~GbA4}80I5%B}(gck#Wlq@$nO3%@QP_ z8nvPkJFa|znk>V92cA!K1rKtr)skHEJD;k8P|R8RkCq1Rh^&}Evwa4BUJz2f!2=MH zo4j8Y$YL2313}H~F7@J7mh>u%556Hw0VUOz-Un@ZASCL)y8}4XXS`t1AC*^>PLwIc zUQok5PFS=*#)Z!3JZN&eZ6ZDP^-c@StY*t20JhCnbMxXf=LK#;`4KHEqMZ-Ly9KsS zI2VUJGY&PmdbM+iT)zek)#Qc#_i4uH43 z@T5SZBrhNCiK~~esjsO9!qBpaWK<`>!-`b71Y5ReXQ4AJU~T2Njri1CEp5oKw;Lnm)-Y@Z3sEY}XIgSy%xo=uek(kAAH5MsV$V3uTUsoTzxp_rF=tx zV07vlJNKtJhCu`b}*#m&5LV4TAE&%KtHViDAdv#c^x`J7bg z&N;#I2GkF@SIGht6p-V}`!F_~lCXjl1BdTLIjD2hH$J^YFN`7f{Q?OHPFEM$65^!u zNwkelo*5+$ZT|oQ%o%;rBX$+?xhvjb)SHgNHE_yP%wYkkvXHS{Bf$OiKJ5d1gI0j< zF6N}Aq=(WDo(J{e-uOecxPD>XZ@|u-tgTR<972`q8;&ZD!cep^@B5CaqFz|oU!iFj zU0;6fQX&~15E53EW&w1s9gQQ~Zk16X%6 zjG`j0yq}4deX2?Tr(03kg>C(!7a|b9qFI?jcE^Y>-VhudI@&LI6Qa}WQ>4H_!UVyF z((cm&!3gmq@;BD#5P~0;_2qgZhtJS|>WdtjY=q zLnHH~Fm!cxw|Z?Vw8*~?I$g#9j&uvgm7vPr#&iZgPP~v~BI4jOv;*OQ?jYJtzO<^y z7-#C={r7CO810!^s(MT!@@Vz_SVU)7VBi(e1%1rvS!?PTa}Uv`J!EP3s6Y!xUgM^8 z4f!fq<3Wer_#;u!5ECZ|^c1{|q_lh3m^9|nsMR1#Qm|?4Yp5~|er2?W^7~cl;_r4WSme_o68J9p03~Hc%X#VcX!xAu%1`R!dfGJCp zV*&m47>s^%Ib0~-2f$6oSgn3jg8m%UA;ArcdcRyM5;}|r;)?a^D*lel5C`V5G=c~k zy*w_&BfySOxE!(~PI$*dwG><+-%KT5p?whOUMA*k<9*gi#T{h3DAxzAPxN&Xws8o9Cp*`PA5>d9*Z-ynV# z9yY*1WR^D8|C%I@vo+d8r^pjJ$>eo|j>XiLWvTWLl(^;JHCsoPgem6PvegHb-OTf| zvTgsHSa;BkbG=(NgPO|CZu9gUCGr$8*EoH2_Z#^BnxF0yM~t`|9ws_xZ8X8iZYqh! zAh;HXJ)3P&)Q0(&F>!LN0g#bdbis-cQxyGn9Qgh`q+~49Fqd2epikEUw9caM%V6WgP)532RMRW}8gNS%V%Hx7apSz}tn@bQy!<=lbhmAH=FsMD?leawbnP5BWM0 z5{)@EEIYMu5;u)!+HQWhQ;D3_Cm_NADNeb-f56}<{41aYq8p4=93d=-=q0Yx#knGYfXVt z+kMxlus}t2T5FEyCN~!}90O_X@@PQpuy;kuGz@bWft%diBTx?d)_xWd_-(!LmVrh**oKg!1CNF&LX4{*j|) zIvjCR0I2UUuuEXh<9}oT_zT#jOrJAHNLFT~Ilh9hGJPI1<5`C-WA{tUYlyMeoy!+U zhA#=p!u1R7DNg9u4|QfED-2TuKI}>p#2P9--z;Bbf4Op*;Q9LCbO&aL2i<0O$ByoI z!9;Ght733FC>Pz>$_mw(F`zU?`m@>gE`9_p*=7o=7av`-&ifU(^)UU`Kg3Kw`h9-1 z6`e6+im=|m2v`pN(2dE%%n8YyQz;#3Q-|x`91z?gj68cMrHl}C25|6(_dIGk*8cA3 zRHB|Nwv{@sP4W+YZM)VKI>RlB`n=Oj~Rzx~M+Khz$N$45rLn6k1nvvD^&HtsMA4`s=MmuOJID@$s8Ph4E zAmSV^+s-z8cfv~Yd(40Sh4JG#F~aB>WFoX7ykaOr3JaJ&Lb49=B8Vk-SQT9%7TYhv z?-Pprt{|=Y5ZQ1?od|A<_IJU93|l4oAfBm?3-wk{O<8ea+`}u%(kub(LFo2zFtd?4 zwpN|2mBNywv+d^y_8#<$r>*5+$wRTCygFLcrwT(qc^n&@9r+}Kd_u@Ithz(6Qb4}A zWo_HdBj#V$VE#l6pD0a=NfB0l^6W^g`vm^sta>Tly?$E&{F?TTX~DsKF~poFfmN%2 z4x`Dc{u{Lkqz&y!33;X}weD}&;7p>xiI&ZUb1H9iD25a(gI|`|;G^NwJPv=1S5e)j z;U;`?n}jnY6rA{V^ zxTd{bK)Gi^odL3l989DQlN+Zs39Xe&otGeY(b5>rlIqfc7Ap4}EC?j<{M=hlH{1+d zw|c}}yx88_xQr`{98Z!d^FNH77=u(p-L{W6RvIn40f-BldeF-YD>p6#)(Qzf)lfZj z?3wAMtPPp>vMehkT`3gToPd%|D8~4`5WK{`#+}{L{jRUMt zrFz+O$C7y8$M&E4@+p+oV5c%uYzbqd2Y%SSgYy#xh4G3hQv>V*BnuKQhBa#=oZB~w{azUB+q%bRe_R^ z>fHBilnRTUfaJ201czL8^~Ix#+qOHSO)A|xWLqOxB$dT2W~)e-r9;bm=;p;RjYahB z*1hegN(VKK+ztr~h1}YP@6cfj{e#|sS`;3tJhIJK=tVJ-*h-5y9n*&cYCSdg#EHE# zSIx=r#qOaLJoVVf6v;(okg6?*L_55atl^W(gm^yjR?$GplNP>BZsBYEf_>wM0Lc;T zhf&gpzOWNxS>m+mN92N0{;4uw`P+9^*|-1~$uXpggj4- z^SFc4`uzj2OwdEVT@}Q`(^EcQ_5(ZtXTql*yGzdS&vrS_w>~~ra|Nb5abwf}Y!uq6R5f&6g2ge~2p(%c< z@O)cz%%rr4*cRJ5f`n@lvHNk@lE1a*96Kw6lJ~B-XfJW%?&-y?;E&?1AacU@`N`!O z6}V>8^%RZ7SQnZ-z$(jsX`amu*5Fj8g!3RTRwK^`2_QHe;_2y_n|6gSaGyPmI#kA0sYV<_qOZc#-2BO%hX)f$s-Z3xlI!ub z^;3ru11DA`4heAu%}HIXo&ctujzE2!6DIGE{?Zs>2}J+p&C$rc7gJC35gxhflorvsb%sGOxpuWhF)dL_&7&Z99=5M0b~Qa;Mo!j&Ti_kXW!86N%n= zSC@6Lw>UQ__F&+&Rzv?gscwAz8IP!n63>SP)^62(HK98nGjLY2*e^OwOq`3O|C92? z;TVhZ2SK%9AGW4ZavTB9?)mUbOoF`V7S=XM;#3EUpR+^oHtdV!GK^nXzCu>tpR|89 zdD{fnvCaN^^LL%amZ^}-E+214g&^56rpdc@yv0b<3}Ys?)f|fXN4oHf$six)-@<;W&&_kj z-B}M5U*1sb4)77aR=@%I?|Wkn-QJVuA96an25;~!gq(g1@O-5VGo7y&E_srxL6ZfS z*R%$gR}dyONgju*D&?geiSj7SZ@ftyA|}(*Y4KbvU!YLsi1EDQQCnb+-cM=K1io78o!v*);o<XwjaQH%)uIP&Zm?)Nfbfn;jIr z)d#!$gOe3QHp}2NBak@yYv3m(CPKkwI|{;d=gi552u?xj9ObCU^DJFQp4t4e1tPzM zvsRIGZ6VF+{6PvqsplMZWhz10YwS={?`~O0Ec$`-!klNUYtzWA^f9m7tkEzCy<_nS z=&<(awFeZvt51>@o_~>PLs05CY)$;}Oo$VDO)?l-{CS1Co=nxjqben*O1BR>#9`0^ zkwk^k-wcLCLGh|XLjdWv0_Hg54B&OzCE^3NCP}~OajK-LuRW53CkV~Su0U>zN%yQP zH8UH#W5P3-!ToO-2k&)}nFe`t+mdqCxxAHgcifup^gKpMObbox9LFK;LP3}0dP-UW z?Zo*^nrQ6*$FtZ(>kLCc2LY*|{!dUn$^RW~m9leoF|@Jy|M5p-G~j%+P0_#orRKf8 zvuu5<*XO!B?1E}-*SY~MOa$6c%2cM+xa8}_8x*aVn~57v&W(0mqN1W`5a7*VN{SUH zXz98DDyCnX2EPl-`Lesf`=AQT%YSDb`$%;(jUTrNen$NPJrlpPDP}prI>Ml!r6bCT;mjsg@X^#&<}CGf0JtR{Ecwd&)2zuhr#nqdgHj+g2n}GK9CHuwO zk>oZxy{vcOL)$8-}L^iVfJHAGfwN$prHjYV0ju}8%jWquw>}_W6j~m<}Jf!G?~r5&Rx)!9JNX!ts#SGe2HzobV5); zpj@&`cNcO&q+%*<%D7za|?m5qlmFK$=MJ_iv{aRs+BGVrs)98BlN^nMr{V_fcl_;jkzRju+c-y?gqBC_@J0dFLq-D9@VN&-`R9U;nv$Hg?>$oe4N&Ht$V_(JR3TG^! zzJsbQbi zFE6-{#9{G{+Z}ww!ycl*7rRdmU#_&|DqPfX3CR1I{Kk;bHwF6jh0opI`UV2W{*|nn zf_Y@%wW6APb&9RrbEN=PQRBEpM(N1w`81s=(xQj6 z-eO0k9=Al|>Ej|Mw&G`%q8e$2xVz1v4DXAi8G};R$y)ww638Y=9y$ZYFDM$}vzusg zUf+~BPX>(SjA|tgaFZr_e0{)+z9i6G#lgt=F_n$d=beAt0Sa0a7>z-?vcjl3e+W}+ z1&9=|vC=$co}-Zh*%3588G?v&U7%N1Qf-wNWJ)(v`iO5KHSkC5&g7CrKu8V}uQGcfcz zmBz#Lbqwqy#Z~UzHgOQ;Q-rPxrRNvl(&u6ts4~0=KkeS;zqURz%!-ERppmd%0v>iRlEf+H$yl{_8TMJzo0 z>n)`On|7=WQdsqhXI?#V{>+~}qt-cQbokEbgwV3QvSP7&hK4R{Z{aGHVS3;+h{|Hz z6$Js}_AJr383c_+6sNR|$qu6dqHXQTc6?(XWPCVZv=)D#6_;D_8P-=zOGEN5&?~8S zl5jQ?NL$c%O)*bOohdNwGIKM#jSAC?BVY={@A#c9GmX0=T(0G}xs`-%f3r=m6-cpK z!%waekyAvm9C3%>sixdZj+I(wQlbB4wv9xKI*T13DYG^T%}zZYJ|0$Oj^YtY+d$V$ zAVudSc-)FMl|54n=N{BnZTM|!>=bhaja?o7s+v1*U$!v!qQ%`T-6fBvmdPbVmro&d zk07TOp*KuxRUSTLRrBj{mjsnF8`d}rMViY8j`jo~Hp$fkv9F_g(jUo#Arp;Xw0M$~ zRIN!B22~$kx;QYmOkos@%|5k)!QypDMVe}1M9tZfkpXKGOxvKXB!=lo`p?|R1l=tA zp(1}c6T3Fwj_CPJwVsYtgeRKg?9?}%oRq0F+r+kdB=bFUdVDRPa;E~~>2$w}>O>v=?|e>#(-Lyx?nbg=ckJ#5U6;RT zNvHhXk$P}m9wSvFyU3}=7!y?Y z=fg$PbV8d7g25&-jOcs{%}wTDKm>!Vk);&rr;O1nvO0VrU&Q?TtYVU=ir`te8SLlS zKSNmV=+vF|ATGg`4$N1uS|n??f}C_4Sz!f|4Ly8#yTW-FBfvS48Tef|-46C(wEO_%pPhUC5$-~Y?!0vFZ^Gu`x=m7X99_?C-`|h zfmMM&Y@zdfitA@KPw4Mc(YHcY1)3*1xvW9V-r4n-9ZuBpFcf{yz+SR{ zo$ZSU_|fgwF~aakGr(9Be`~A|3)B=9`$M-TWKipq-NqRDRQc}ABo*s_5kV%doIX7LRLRau_gd@Rd_aLFXGSU+U?uAqh z8qusWWcvgQ&wu{|sRXmv?sl=xc<$6AR$+cl& zFNh5q1~kffG{3lDUdvEZu5c(aAG~+64FxdlfwY^*;JSS|m~CJusvi-!$XR`6@XtY2 znDHSz7}_Bx7zGq-^5{stTRy|I@N=>*y$zz>m^}^{d&~h;0kYiq8<^Wq7Dz0w31ShO^~LUfW6rfitR0(=3;Uue`Y%y@ex#eKPOW zO~V?)M#AeHB2kovn1v=n^D?2{2jhIQd9t|_Q+c|ZFaWt+r&#yrOu-!4pXAJuxM+Cx z*H&>eZ0v8Y`t}8{TV6smOj=__gFC=eah)mZt9gwz>>W$!>b3O;Rm^Ig*POZP8Rl0f zT~o=Nu1J|lO>}xX&#P58%Yl z83`HRs5#32Qm9mdCrMlV|NKNC+Z~ z9OB8xk5HJ>gBLi+m@(pvpw)1(OaVJKs*$Ou#@Knd#bk+V@y;YXT?)4eP9E5{J%KGtYinNYJUH9PU3A}66c>Xn zZ{Bn0<;8$WCOAL$^NqTjwM?5d=RHgw3!72WRo0c;+houoUA@HWLZM;^U$&sycWrFd zE7ekt9;kb0`lps{>R(}YnXlyGY}5pPd9zBpgXeJTY_jwaJGSJQC#-KJqmh-;ad&F- z-Y)E>!&`Rz!HtCz>%yOJ|v(u7P*I$jqEY3}(Z-orn4 zlI?CYKNl`6I){#2P1h)y(6?i;^z`N3bxTV%wNvQW+eu|x=kbj~s8rhCR*0H=iGkSj zk23lr9kr|p7#qKL=UjgO`@UnvzU)`&fI>1Qs7ubq{@+lK{hH* zvl6eSb9%yngRn^T<;jG1SVa)eA>T^XX=yUS@NCKpk?ovCW1D@!=@kn;l_BrG;hOTC z6K&H{<8K#dI(A+zw-MWxS+~{g$tI7|SfP$EYKxA}LlVO^sT#Oby^grkdZ^^lA}uEF zBSj$weBJG{+Bh@Yffzsw=HyChS(dtLE3i*}Zj@~!_T-Ay7z=B)+*~3|?w`Zd)Co2t zC&4DyB!o&YgSw+fJn6`sn$e)29`kUwAc+1MND7YjV%lO;H2}fNy>hD#=gT ze+-aFNpyKIoXY~Vq-}OWPBe?Rfu^{ps8>Xy%42r@RV#*QV~P83jdlFNgkPN=T|Kt7 zV*M`Rh*30&AWlb$;ae130e@}Tqi3zx2^JQHpM>j$6x`#{mu%tZlwx9Gj@Hc92IuY* zarmT|*d0E~vt6<+r?W^UW0&#U&)8B6+1+;k^2|FWBRP9?C4Rk)HAh&=AS8FS|NQaZ z2j!iZ)nbEyg4ZTp-zHwVlfLC~tXIrv(xrP8PAtR{*c;T24ycA-;auWsya-!kF~CWZ zw_uZ|%urXgUbc@x=L=_g@QJ@m#5beS@6W195Hn7>_}z@Xt{DIEA`A&V82bc^#!q8$ zFh?z_Vn|ozJ;NPd^5uu(9tspo8t%&-U9Ckay-s@DnM*R5rtu|4)~e)`z0P-sy?)kc zs_k&J@0&0!q4~%cKL)2l;N*T&0;mqX5T{Qy60%JtKTQZ-xb%KOcgqwJmb%MOOKk7N zgq})R_6**{8A|6H?fO+2`#QU)p$Ei2&nbj6TpLSIT^D$|`TcSeh+)}VMb}LmvZ{O| ze*1IdCt3+yhdYVxcM)Q_V0bIXLgr6~%JS<<&dxIgfL=Vnx4YHuU@I34JXA|+$_S3~ zy~X#gO_X!cSs^XM{yzDGNM>?v(+sF#<0;AH^YrE8smx<36bUsHbN#y57K8WEu(`qHvQ6cAZPo=J5C(lSmUCZ57Rj6cx!e^rfaI5%w}unz}4 zoX=nt)FVNV%QDJH`o!u9olLD4O5fl)xp+#RloZlaA92o3x4->?rB4`gS$;WO{R;Z3>cG3IgFX2EA?PK^M}@%1%A;?f6}s&CV$cIyEr#q5;yHdNZ9h{| z-=dX+a5elJoDo?Eq&Og!nN6A)5yYpnGEp}?=!C-V)(*~z-+?kY1Q7qs#Rsy%hu_60rdbB+QQNr?S1 z?;xtjUv|*E3}HmuNyB9aFL5H~3Ho0UsmuMZELp1a#CA1g`P{-mT?BchuLEtK}!QZ=3AWakRu~?f9V~3F;TV`5%9Pcs_$gq&CcU}r8gOO zC2&SWPsSG{&o-LIGTBqp6SLQZPvYKp$$7L4WRRZ0BR$Kf0I0SCFkqveCp@f)o8W)! z$%7D1R`&j7W9Q9CGus_)b%+B#J2G;l*FLz#s$hw{BHS~WNLODV#(!u_2Pe&tMsq={ zdm7>_WecWF#D=?eMjLj=-_z`aHMZ=3_-&E8;ibPmM}61i6J3is*=dKf%HC>=xbj4$ zS|Q-hWQ8T5mWde6h@;mS+?k=89?1FU<%qH9B(l&O>k|u_aD|DY*@~(`_pb|B#rJ&g zR0(~(68fpUPz6TdS@4JT5MOPrqDh5_H(eX1$P2SQrkvN8sTxwV>l0)Qq z0pzTuvtEAKRDkKGhhv^jk%|HQ1DdF%5oKq5BS>szk-CIke{%js?~%@$uaN3^Uz6Wf z_iyx{bZ(;9y4X&>LPV=L=d+A}7I4GkK0c1Xts{rrW1Q7apHf-))`BgC^0^F(>At1* za@e7{lq%yAkn*NH8Q1{@{lKhRg*^TfGvv!Sn*ed*x@6>M%aaqySxR|oNadYt1mpUZ z6H(rupHYf&Z z29$5g#|0MX#aR6TZ$@eGxxABRKakDYtD%5BmKp;HbG_ZbT+=81E&=XRk6m_3t9PvD zr5Cqy(v?gHcYvYvXkNH@S#Po~q(_7MOuCAB8G$a9BC##gw^5mW16cML=T=ERL7wsk zzNEayTG?mtB=x*wc@ifBCJ|irFVMOvH)AFRW8WE~U()QT=HBCe@s$dA9O!@`zAAT) zaOZ7l6vyR+Nk_OOF!ZlZmjoImKh)dxFbbR~z(cMhfeX1l7S_`;h|v3gI}n9$sSQ>+3@AFAy9=B_y$)q;Wdl|C-X|VV3w8 z2S#>|5dGA8^9%Bu&fhmVRrTX>Z7{~3V&0UpJNEl0=N32euvDGCJ>#6dUSi&PxFW*s zS`}TB>?}H(T2lxBJ!V#2taV;q%zd6fOr=SGHpoSG*4PDaiG0pdb5`jelVipkEk%FV zThLc@Hc_AL1#D&T4D=w@UezYNJ%0=f3iVRuVL5H?eeZM}4W*bomebEU@e2d`M<~uW zf#Bugwf`VezG|^Qbt6R_=U0}|=k;mIIakz99*>FrsQR{0aQRP6ko?5<7bkDN8evZ& zB@_KqQG?ErKL=1*ZM9_5?Pq%lcS4uLSzN(Mr5=t6xHLS~Ym`UgM@D&VNu8e?_=nSFtF$u@hpPSmI4Vo_t&v?>$~K4y(O~Rb*(MFy_igM7 z*~yYUyR6yQgzWnWMUgDov!!g=lInM+=lOmOk4L`O?{i&qxy&D*_qorRbDwj6?)!ef z#JLd7F6Z2I$S0iYI={rZNk*<{HtIl^mx=h>Cim*04K4+Z4IJtd*-)%6XV2(MCscPiw_a+y*?BKbTS@BZ3AUao^%Zi#PhoY9Vib4N>SE%4>=Jco0v zH_Miey{E;FkdlZSq)e<{`+S3W=*ttvD#hB8w=|2aV*D=yOV}(&p%0LbEWH$&@$X3x~CiF-?ejQ*N+-M zc8zT@3iwkdRT2t(XS`d7`tJQAjRmKAhiw{WOqpuvFp`i@Q@!KMhwKgsA}%@sw8Xo5Y=F zhRJZg)O4uqNWj?V&&vth*H#je6T}}p_<>!Dr#89q@uSjWv~JuW(>FqoJ5^ho0%K?E z9?x_Q;kmcsQ@5=}z@tdljMSt9-Z3xn$k)kEjK|qXS>EfuDmu(Z8|(W?gY6-l z@R_#M8=vxKMAoi&PwnaIYw2COJM@atcgfr=zK1bvjW?9B`-+Voe$Q+H$j!1$Tjn+* z&LY<%)L@;zhnJlB^Og6I&BOR-m?{IW;tyYC%FZ!&Z>kGjHJ6cqM-F z&19n+e1=9AH1VrVeHrIzqlC`w9=*zfmrerF?JMzO&|Mmv;!4DKc(sp+jy^Dx?(8>1 zH&yS_4yL7m&GWX~mdfgH*AB4{CKo;+egw=PrvkTaoBU+P-4u?E|&!c z)DKc;>$$B6u*Zr1SjUh2)FeuWLWHl5TH(UHWkf zLs>7px!c5n;rbe^lO@qlYLzlDVp(z?6rPZel=YB)Uv&n!2{+Mb$-vQl=xKw( zve&>xYx+jW_NJh!FV||r?;hdP*jOXYcLCp>DOtJ?2S^)DkM{{Eb zS$!L$e_o0(^}n3tA1R3-$SNvgBq;DOEo}fNc|tB%%#g4RA3{|euq)p+xd3I8^4E&m zFrD%}nvG^HUAIKe9_{tXB;tl|G<%>yk6R;8L2)KUJw4yHJXUOPM>(-+jxq4R;z8H#>rnJy*)8N+$wA$^F zN+H*3t)eFEgxLw+Nw3};4WV$qj&_D`%ADV2%r zJCPCo%{=z7;`F98(us5JnT(G@sKTZ^;2FVitXyLe-S5(hV&Ium+1pIUB(CZ#h|g)u zSLJJ<@HgrDiA-}V_6B^x1>c9B6%~847JkQ!^KLZ2skm;q*edo;UA)~?SghG8;QbHh z_6M;ouo_1rq9=x$<`Y@EA{C%6-pEV}B(1#sDoe_e1s3^Y>n#1Sw;N|}8D|s|VPd+g z-_$QhCz`vLxxrVMx3ape1xu3*wjx=yKSlM~nFgkNWb4?DDr*!?U)L_VeffF<+!j|b zZ$Wn2$TDv3C3V@BHpSgv3JUif8%hk%OsGZ=OxH@8&4`bbf$`aAMchl^qN>Eyu3JH} z9-S!x8-s4fE=lad%Pkp8hAs~u?|uRnL48O|;*DEU! zuS0{cpk%1E0nc__2%;apFsTm0bKtd&A0~S3Cj^?72-*Owk3V!ZG*PswDfS~}2<8le z5+W^`Y(&R)yVF*tU_s!XMcJS`;(Tr`J0%>p=Z&InR%D3@KEzzI+-2)HK zuoNZ&o=wUC&+*?ofPb0a(E6(<2Amd6%uSu_^-<1?hsxs~0K5^f(LsGqgEF^+0_H=uNk9S0bb!|O8d?m5gQjUKevPaO+*VfSn^2892K~%crWM8+6 z25@V?Y@J<9w%@NXh-2!}SK_(X)O4AM1-WTg>sj1{lj5@=q&dxE^9xng1_z9w9DK>| z6Iybcd0e zyi;Ew!KBRIfGPGytQ6}z}MeXCfLY0?9%RiyagSp_D1?N&c{ zyo>VbJ4Gy`@Fv+5cKgUgs~na$>BV{*em7PU3%lloy_aEovR+J7TfQKh8BJXyL6|P8un-Jnq(ghd!_HEOh$zlv2$~y3krgeH;9zC}V3f`uDtW(%mT#944DQa~^8ZI+zAUu4U(j0YcDfKR$bK#gvn_{JZ>|gZ5+)u?T$w7Q%F^;!Wk?G z(le7r!ufT*cxS}PR6hIVtXa)i`d$-_1KkyBU>qmgz-=T};uxx&sKgv48akIWQ89F{ z0XiY?WM^~;|T8zBOr zs#zuOONzH?svv*jokd5SK8wG>+yMC)LYL|vLqm^PMHcT=`}V$=nIRHe2?h)8WQa6O zPAU}d`1y(>kZiP~Gr=mtJLMu`i<2CspL|q2DqAgAD^7*$xzM`PU4^ga`ilE134XBQ z99P(LhHU@7qvl9Yzg$M`+dlS=x^(m-_3t|h>S}E0bcFMn=C|KamQ)=w2^e)35p`zY zRV8X?d;s^>Cof2SPR&nP3E+-LCkS0J$H!eh8~k0qo$}00b=7!H_I2O+Ro@3O$nPdm ztmbOO^B+IHzQ5w>@@@J4cKw5&^_w6s!s=H%&byAbUtczPQ7}wfTqxxtQNfn*u73Qw zGuWsrky_ajPx-5`R<)6xHf>C(oqGf_Fw|-U*GfS?xLML$kv;h_pZ@Kk$y0X(S+K80 z6^|z)*`5VUkawg}=z`S;VhZhxyDfrE0$(PMurAxl~<>lfZa>JZ288ULK7D` zl9|#L^JL}Y$j*j`0-K6kH#?bRmg#5L3iB4Z)%iF@SqT+Lp|{i`m%R-|ZE94Np7Pa5 zCqC^V3}B(FR340pmF*qaa}M}+h6}mqE~7Sh!9bDv9YRT|>vBNAqv09zXHMlcuhKD| zcjjA(b*XCIwJ33?CB!+;{)vX@9xns_b-VO{i0y?}{!sdXj1GM8+$#v>W7nw;+O_9B z_{4L;C6ol?(?W0<6taGEn1^uG=?Q3i29sE`RfYCaV$3DKc_;?HsL?D_fSYg}SuO5U zOB_f4^vZ_x%o`5|C@9C5+o=mFy@au{s)sKw!UgC&L35aH(sgDxRE2De%(%OT=VUdN ziVLEmdOvJ&5*tCMKRyXctCwQu_RH%;m*$YK&m;jtbdH#Ak~13T1^f89tn`A%QEHWs~jnY~E}p_Z$XC z=?YXLCkzVSK+Id`xZYTegb@W8_baLt-Fq`Tv|=)JPbFsKRm)4UW;yT+J`<)%#ue9DPOkje)YF2fsCilK9MIIK>p*`fkoD5nGfmLwt)!KOT+> zOFq*VZktDDyM3P5UOg`~XL#cbzC}eL%qMB=Q5$d89MKuN#$6|4gx_Jt0Gfn8w&q}%lq4QU%6#jT*MRT% zrLz~C8FYKHawn-EQWN1B75O&quS+Z81(zN)G>~vN8VwC+e+y(`>HcxC{MrJ;H1Z4k zZWuv$w_F0-Ub%MVcpIc){4PGL^I7M{>;hS?;eH!;gmcOE66z3;Z1Phqo(t zVP(Hg6q#0gIKgsg7L7WE!{Y#1nI(45tx2{$34dDd#!Z0NIyrm)HOn5W#7;f4pQci# zDW!FI(g4e668kI9{2+mLwB+=#9bfqgX%!B34V-$wwSN(_cm*^{y0jQtv*4}eO^sOV z*9xoNvX)c9isB}Tgx&ZRjp3kwhTVK?r9;n!x>^XYT z@Q^7zp{rkIs{2mUSE^2!Gf6$6;j~&4=-0cSJJDizZp6LTe8b45;{AKM%v99}{{FfC zz709%u0mC=1KXTo(=TqmZQ;c?$M3z(!xah>aywrj40sc2y3rKFw4jCq+Y+u=CH@_V zxz|qeTwa>+<|H%8Dz5u>ZI5MmjTFwXS-Fv!TDd*`>3{krWoNVx$<133`(ftS?ZPyY z&4@ah^3^i`vL$BZa>O|Nt?ucewzsF)0zX3qmM^|waXr=T0pfIb0*$AwU=?Ipl|1Y; z*Pk6{C-p4MY;j@IJ|DW>QHZQJcp;Z~?8(Q+Kk3^0qJ}SCk^*n4W zu9ZFwLHUx-$6xvaQ)SUQcYd6fF8&x)V`1bIuX@>{mE$b|Yd(qomn3;bPwnDUc0F=; zh*6_((%bqAYQWQ~odER?h>1mkL4kpb3s7`0m@rDKGU*oyF)$j~Ffd4fXV$?`f~rHf zB%Y)@5SXZvfwm10RY5X?TEo)PK_`L6qgBp=#>fO49$D zDq8Ozj0q6213tV5Qq=;fZ0$|KroY{Dz=l@lU^J)?Ko@ti20TRplXzphBi>XGx4bou zEWrkNjz0t5j!_ke{g5I#PUlEU$Km8g8TE|XK=MkU@PT4T><2OVamoK;wJ}3X0L$vX zgd7gNa359*nc)R-0!`2X@FOTB`+oETOPc=ubp5R)VQgY+5BTZZJ2?9QwnO=dnulIUF3gFn;BODC2)65)HeVd%t86sL7Rv^Y+nbn+&l z6BAJY(ETvwI)Ts$aiE8rht4KD*qNyE{8{x6R|%akbTBzw;2+6Echkt+W+`u^XX z_z&x%n*=4<|!MJu@}isLc4AW#{m2if&A5T5g&~ ziuMQeS*U5sL6J698wOd)K@oK@1{peP5&Esut<#VH^u)gp`9H4)`uE!2$>RTctN+^u z=ASkePDZA-X8)rp%D;p*~P?*a_=*Kwc<^>QSH|^<0>o37lt^+Mj1;4YvJ(JR-Y+?%Nu}JAYj5 z_Qc5%Ao#F?q32i?ZaN2OSNhWL;2oDEw_({7ZbgUjna!Fqn3NzLM@-EWFPZVmc>(fZ z0&bF-Ch#p9C{YJT9Rcr3+Y_uR^At1^BxZ#eo>$PLJF3=;t_$2|t+_6gg5(j{TmjYU zK12c&lE?Eh+2u2&6Gf*IdKS&6?rYbSEKBN!rv{YCm|Rt=UlPcW9j`0o6{66#y5t9C zruFA2iKd=H%jHf%ypOkxLnO8#H}#Zt{8p!oi6)7#NqoF({t6|J^?1e*oxqng9Q2Cc zg%5Vu!em)}Yuj?kaP!D?b?(C*w!1;>R=j90+RTkyEXz+9CufZ$C^umX^+4|JYaO<5 zmIM3#dv`DGM;@F6;(t!WngZSYzHx?9&$xEF70D1BvfVj<%+b#)vz)2iLCrTeYzUcL z(OBnNoG6Le%M+@2oo)&jdOg=iCszzv59e zDRCeaX8l1hC=8LbBt|k5?CXgep=3r9BXx1uR8!p%Z|0+4Xro=xi0G!e{c4U~1j6!) zH6adq0}#l{%*1U(Cb%4AJ}VLWKBPi0MoKFaQH6x?^hQ!6em@993xdtS%_dmevzeNl z(o?YlOI=jl(`L9^ z0O+H9k$_@`6L13eTT8ci-V0ljDMD|0ifUw|Q-Hep$xYj0hTO@0%IS^TD4b4n6EKDG z??uM;MEx`s98KYN(K0>c!C3HZdZ{+_53DO%9k5W%pr6yJusQAv_;IA}925Y%;+!tY z%2k!YQmLLOr{rF~!s<3-WEUs)`ix_mSU|cNRBIWxOox_Yb7Z=~Q45ZNe*u|m^|)d* zog=i>`=bTe!|;8F+#H>EjIMcgWcG2ORD`w0WD;YZAy5#s{65~qfI6o$+Ty&-hyMyJ z3Ra~t>R!p=5ZpxA;QkDAoPi4sYOP6>LT+}{xp}tk+<0k^CKCFdNYG(Es>p0gqD)jP zWOeX5G;9(m@?GOG7g;e74i_|SmE?`B2i;sLYwRWKLy0RLW!Hx`=!LH3&k=FuCsM=9M4|GqzA)anEHfxkB z?2iK-u(DC_T1};KaUT@3nP~LEcENT^UgPvp!QC@Dw&PVAhaEYrPey{nkcn(ro|r7XUz z%#(=$7D8uP_uU-oPHhd>>^adbCSQetgSG`e$U|7mr!`|bU0aHl_cmL)na-5x1#OsVE#m*+k84Y^+UMeSAa zbrVZHU=mFwXEaGHtXQq`2ZtjfS!B2H{5A<3(nb-6ARVV8kEmOkx6D2x7~-6hl;*-*}2Xz;J#a8Wn;_B5=m zl3dY;%krf?i-Ok^Pal-}4F`{F@TYPTwTEhxpZK5WCpfD^UmM_iYPe}wpE!Djai6_{ z*pGO=WB47#Xjb7!n2Ma)s^yeR*1rTxp`Mt4sfA+`HwZf%!7ZqGosPkw69`Ix5Ku6G z@Pa;pjzV&dn{M=QDx89t?p?d9gna*}jBly*#1!6}5K<*xDPJ{wv4& zM$17DFd~L*Te3A%yD;Dp9UGWTjRxAvMu!j^Tbc}2v~q^59d4bz zvu#!IJCy(BcWTc`;v$9tH;J%oiSJ_i7s;2`JXZF+qd4C)vY!hyCtl)sJIC{ebI*0> z@x>;EzyBv>AI-~{D6l6{ST=em*U( z(r$nuXY-#CCi^8Z2#v#UXOt`dbYN1z5jzNF2 z411?w)whZrfA20;nl&C1Gi+gk<`JSm+{|*2o<< zqM#@z_D`Cn|0H^9$|Tah)0M_X4c37|KQ*PmoT@%xHc3L1ZY6(p(sNXHa&49Frzto& zR`c~ClHpE~4Z=uKa5S(-?M8EJ$zt0&fJk~p$M#fGN1-y$7!37hld`Uw>Urri(DxLa;=#rK0g4J)pXMC zxzraOVw1+kNWpi#P=6(qxf`zSdUC?D$i`8ZI@F>k6k zz21?d+dw7b&i*>Kv5L(LH-?J%@WnqT7j#qZ9B>|Zl+=> z^U-pV@1y_ptHo4hl^cPRWewbLQ#g6XYQ@EkiP z;(=SU!yhjHp%1&MsU`FV1Z_#K1&(|5n(7IHbx&gG28HNT)*~-BQi372@|->2Aw5It z0CBpUcMA*QvsPy)#lr!lIdCi@1k4V2m!NH)%Px(vu-r(Q)HYc!p zJ^$|)j^E#q#QOgcb^pd74^JUi7fUmMiNP_o*lvx*q%_odv49Dsv$NV;6J z9GOXKomA{2Pb{w}&+yHtH?IkJJu~}Z?{Uk++2mB8zyvh*xhHKE``99>y#TdD z&(MH^^JHf;g(Tbb^&8P*;_i*2&fS$7${3WJtV7K&&(MBV2~)2KB3%cWg#1!VE~k#C z!;A;?p$s{ihyojEZz+$I1)L}&G~ml=udD9qh>Tu(ylv)?YcJT3ihapi!zgPtWb*CP zlLLJSRCj-^w?@;RU9aL2zDZY1`I3d<&OMuW=c3$o0#STpv_p3b9Wtbql>w^bBi~u4 z3D8KyF?YE?=HcKk!xcp@Cigvzy=lnFgc^9c%(^F22BWYNAYRSho@~*~S)4%AhEttv zvq>7X!!EWKG?mOd9&n>vvH1p4VzE?HCuxT-u+F&mnsfDI^}*-d00-KAauEaXqg3k@ zy#)MGX!X;&3&0s}F3q40ZmVM$(H3CLfpdL?hB6nVqMxX)q=1b}o_PG%r~hZ4gUfSp zOH4qlEOW4OMUc)_m)fMR_rl^pCfXc{$fQbI*E&mV77}kRF z&{<06AJyJ!e863o-V>FA1a9Eemx6>^F$~9ppt()ZbPGfg_NdRXBWoZnDy2;#ODgf! zgl?iOcF7Meo|{AF>KDwTgYrJLb$L2%%BEtO>T$C?|9bAB&}s;gI?lY#^tttY&hfr# zKhC+&b-rpg_?~uVK%S@mQleU#_xCsvIPK*<`E0fHE1&!J7!xD#IB|SSPW6-PyuqGn3^M^Rz%WT{e?OI^svARX&SAdU77V(C~ zM$H{Kg59op{<|8ry9ecfP%=kFm(-!W&?U0@<%z*+!*<e0XesMxRFu9QnGqun6R_%T+B%&9Dtk?*d$Q zb~>84jEAPi@&F@3wAa^Lzc(AJz5gsfZ7J53;@D<;Klpl?sK&u@gie`~vTsbOE~Cd4 z%kr56mI|#b(Jk&;p6plVwmNB0H@0SmgdmjIn5Ne@)}7Vty(yb2t3ev@22AE^s!KaN zyQ>j+F3w=wnx7w@FVCRe+`vUH)3gW%_72fxzqX!S&!dchdkRiHbXW1FMrIIBwjsai8`CB2r4mAbwp%rrO>3B$Zw;9=%fXI9B{d(UzVap7u z6piC-FQ)>}VOEuPpuqznpY`hN4dGa_1Xz9rVg(;H$5Te^F0dDv*gz9JS<|>>U0J^# z6)(4ICh+N_Q`Ft0hF|3fSHs*?a=XC;e`sJaU9&d>X4l?1W=|fr!5ShD|nv$GK;j46@BV6+{oRbWfqOBRb!ir88XD*SbC(LF}I1h#6@dvK%Toe%@ zhDyG$93H8Eu&gCYddP58iF3oQH*zLbNI;rN@E{T9%A8!=v#JLxKyUe}e}BJpB{~uN zqgxRgo0*-@-iaHPV8bTOH(rS(huwK1Xg0u+e!`(Irzu@Bld&s5&bWgVc@m7;JgELd zimVs`>vQ}B_1(2#rv#N9O`fJpVfPc7V2nv34PC);Dzbb;p!6pqHzvy?2pD&1NE)?A zt(t-ucqy@wn9`^MN5apa7K|L=9>ISC>xoc#>{@e}m#YAAa1*8-RUMKwbm|;5p>T`Z zNf*ph@tnF{gmDa3uwwN(g=`Rh)4!&)^oOy@VJaK4lMT&5#YbXkl`q?<*XtsqD z9PRK6bqb)fJw0g-^a@nu`^?71k|m3RPRjt;pIkCo1{*pdqbVs-Yl>4E>3fZx3Sv44grW=*qdSoiZ9?X0wWyO4`yDHh2E!9I!ZFi zVL8|VtW38}BOJHW(Ax#KL_KQzarbuE{(%TA)AY)@tY4%A%P%SqIU~8~-Lp3qY;U-} z`h_Gel7;K1h}7$_5ZZT0&%$Lxxr-<89V&&TCsu}LL#!xpQ1O31jaa{U34~^le*Y%L za?7$>Jk^k^pS^_M&cDs}NgXlR>16AHkSK-4TRaJSh#h&p!-!vQY%f+bmn6x`4fwTp z$727L^y`~!exvmE^W&#@uY!NxJi`g!i#(++!)?iJ(1)2Wk;RN zFK&O4eTkP$Xn~4bB|q8y(btx$R#D`O@epi4ofcETrx!IM(kWNEe42Qh(8*KqfP(c0 zouBl6>Fc_zM+V;F3znbo{x#%!?mH3`_ANJ?y7ppxS@glg#S9^MXu|FM&ynpz3o&Qh z2ujAHLF3($pH}0jXQsa#?t--TnF1P73b?4`KeJ9^qK-USHE)4!IYgMn-7z|=ALF5SNGkrtPG@Y~niUQV2?g$vzJN3nZ{7;HZHzWAeQ;5P|@Tl3YHpyznGG4-f4=XflwSJY+58-+wf?~Fg@1p1wkzuu-RF3j2JX37SQUc? zQ4v%`V8z9ZVZVqS8h|@@RpD?n0W<=hk=3Cf8R?d^9YK&e9ZybFY%jdnA)PeHvtBe- zhMLD+SSteHBq*q)d6x{)s1UrsO!byyLS$58WK;sqip$Mk{l)Y(_6hEIBsIjCr5t>( z7CdKUrJTrW%qZ#1z^n*Lb8#VdfzPw~OIL76aC+Rhr<~;4Tl!sw?Rj6hXj4XWa#6Tp z@)kJ~qOV)^Rh*-?aG>ic2*NlC2M7&LUzc9RT6WM%Cpe78`iAowe!>(T0jo&ivn8-7 zs{Qa@cGy$rE-3AY0V(l8wjI^uB8Lchj@?L}fYal^>T9z;8juH@?rG&g-t+R2dVDBe zq!K%{e-rT5jX19`(bP23LUN4+_zh2KD~EAYzhpEO3MUG8@}uBHH@4J zd`>_(K4q&>*k82(dDuC)X6JuPrBBubOg7qZ{?x!r@{%0);*`h*^F|%o?&1wX?Wr4b z1~&cy#PUuES{C#xJ84!z<1tp9sfrR(i%Tu^jnXy;4`Xk;AQCdFC@?V%|; zySdC7qS|uQRcH}EFZH%mMB~7gi}a0utE}ZE_}8PQH8f;H%PN41Cb9R%w5Oi5el^fd z$n{3SqLCnrF##x?4sa^r!O$7NX!}&}V;0ZGQ&K&i%6$3C_dR%I7%gdQ;KT6YZiQrW zk%q<74oVBV>@}CvJ4Wj!d^?#Zwq(b$E1ze4$99DuNg?6t9H}k_|D7KWD7i0-g*EO7 z;5{hSIYE4DMOK3H%|f5Edx+S0VI0Yw!tsaRS2&Il2)ea^8R5TG72BrJue|f_{2UHa z@w;^c|K3da#$TB0P3;MPlF7RuQeXT$ zS<<|C0OF(k)>fr&wOB=gP8!Qm>F41u;3esv7_0l%QHt(~+n; zf!G6%hp;Gfa9L9=AceiZs~tK+Tf*Wof=4!u{nIO90jH@iS0l+#%8=~%ASzFv7zqSB^?!@N7)kp0t&tCGLmzXSRMRyxCmCYUD2!B`? zhs$4%KO~m=VFk3Buv9osha{v+mAEq=ik3RdK@;WWTV_g&-$U4IM{1IhGX{pAu%Z&H zFfwCpUsX%RKg);B@7OUzZ{Hn{q6Vv!3#8fAg!P$IEx<0vAx;GU%}0{VIsmFBPq_mb zpe^BChDK>sc-WLKl<6 zwbW|e&d&dv9Wu0goueyu>(JyPx1mz0v4E?cJjFuKF71Q1)AL8jHO$!fYT3(;U3Re* zPPOe%*O+@JYt1bW`!W_1!mN&=w3G9ru1XsmwfS~BJ))PhD(+_J_^N6j)sx5VwbWK| zwRyC?W<`pOCY)b#AS?rluxuuGf-AJ=D!M36l{ua?@SJ5>e!IBr3CXIxWw5xUZ@Xrw z_R@%?{>d%Ld4p}nEsiA@v*nc6Ah!MUs?GA7e5Q5lPpp0@`%5xY$C;{%rz24$;vR#* zBP=a{)K#CwIY%p} zXVdxTQ^HS@O&~eIftU+Qt^~(DGxrdi3k}DdT^I7Iy5SMOp$QuD8s;+93YQ!OY{eB24%xY7ml@|M7I(Nb@K_-?F;2?et|CKkuZK_>+>Lvg!>JE~wN`BI|_h6$qi!P)+K-1Hh(1;a`os z55)4Q{oJiA(lQM#;w#Ta%T0jDNXIPM_bgESMCDEg6rM33anEr}=|Fn6)|jBP6Y}u{ zv9@%7*#RI9;fv;Yii5CI+KrRdr0DKh=L>)eO4q$1zmcSmglsV`*N(x=&Wx`*v!!hn6X-l0 zP_m;X??O(skcj+oS$cIdKhfT%ABAzz3w^la-Ucw?yBPEC+=Pe_vU8nd-HV5YX6X8r zZih&j^eLU=%*;VzhUyoLF;#8QsEfmByk+Y~caBqSvQaaWf2a{JKB9B>V&r?l^rXaC z8)6AdR@Qy_BxQrE2Fk?ewD!SwLuMj@&d_n5RZFf7=>O>hzVE*seW3U?_p|R^CfoY`?|#x9)-*yjv#lo&zP=uI`M?J zbzC<^3x7GfXA4{FZ72{PE*-mNHyy59Q;kYG@BB~NhTd6pm2Oj=_ zizmD?MKVRkT^KmXuhsk?eRQllPo2Ubk=uCKiZ&u3Xjj~<(!M94c)Tez@9M1Gfs5JV z->@II)CDJOXTtPrQudNjE}Eltbjq>6KiwAwqvAKd^|g!exgLG3;wP+#mZYr`cy3#39e653d=jrR-ulW|h#ddHu(m9mFoW~2yE zz5?dB%6vF}+`-&-W8vy^OCxm3_{02royjvmwjlp+eQDzFVEUiyO#gLv%QdDSI#3W* z?3!lL8clTaNo-DVJw@ynq?q!%6hTQi35&^>P85G$TqNt78%9_sSJt2RThO|JzM$iL zg|wjxdMC2|Icc5rX*qPL(coL!u>-xxz-rFiC!6hD1IR%|HSRsV3>Kq~&vJ=s3M5y8SG%YBQ|{^l#LGlg!D?E>2yR*eV%9m$_J6VGQ~AIh&P$_aFbh zULr0Z$QE!QpkP=aAeR4ny<#3Fwyw@rZf4?Ewq`;mCVv}xaz+3ni+}a=k~P+yaWt^L z@w67!DqVf7D%7XtXX5xBW;Co|HvQ8WR1k?r2cZD%U;2$bsM%u8{JUJ5Z0k= zZJARv^vFkmWx15CB=rb=D4${+#DVqy5$C%bf`!T0+epLJLnh1jwCdb*zuCL}eEFvE z{rO1%gxg>1!W(I!owu*mJZ0@6FM(?C+d*CeceZRW_4id*D9p5nzMY&{mWqrJomjIZ z97ZNnZ3_%Hx8dn;H>p8m7F#^2;T%yZ3H;a&N7tm=Lvs&lgJLW{V1@h&6Vy~!+Ffbb zv(n3+v)_D$}dqd!2>Y2B)#<+o}LH#%ogGi2-?xRIH)1!SD)u-L65B&bsJTC=LiaF+YOCif2dUX6uAA|#+vNR z>U+KQekVGon)Yi<93(d!(yw1h3&X0N(PxN2{%vn}cnV?rYw z$N^}_o!XUB!mckL`yO1rnUaI4wrOeQ(+&k?2mi47hzxSD`N#-byqd1IhEoh!PGq>t z_MRy{5B0eKY>;Ao3z$RUU7U+i?iX^&r739F)itdrTpAi-NN0=?^m%?{A9Ly2pVv>Lqs6moTP?T2-AHqFD-o_ znVr|7OAS#AEH}h8SRPQ@NGG47dO}l=t07__+iK8nHw^(AHx&Wb<%jPc$$jl6_p(b$ z)!pi(0fQodCHfM)KMEMUR&UID>}m^(!{C^U7sBDOA)$VThRCI0_+2=( zV8mMq0R(#z;C|7$m>$>`tX+T|xGt(+Y48@ZYu#z;0pCgYgmMVbFb!$?%yhZqP_nhn zy4<#3P1oQ#2b51NU1mGnHP$cf0j-YOgAA}A$QoL6JVLcmExs(kU{4z;PBHJD%_=0F z>+sQV`mzijSIT7xn%PiDKHOujX;n|M&qr1T@rOxTdxtZ!&u&3HHFLYD5$RLQ=heur zb>+AFokUVQeJy-#LP*^)spt{mb@Mqe=A~-4p0b+Bt|pZ+@CY+%x}9f}izU5;4&QFE zO1bhg&A4uC1)Zb67kuowWY4xbo&J=%yoXlFB)&$d*-}kjBu|w!^zbD1YPc0-#XTJr z)pm2RDy%J3jlqSMq|o%xGS$bPwn4AqitC6&e?pqWcjWPt{3I{>CBy;hg0Umh#c;hU3RhCUX=8aR>rmd` z7Orw(5tcM{|-^J?ZAA9KP|)X6n9$-kvr#j5YDecTM6n z&07(nD^qb8hpF0B^z^pQ*%5ePYkv&FabrlI61ntiVp!!C8y^}|<2xgAd#FY=8b*y( zuQOuvy2`Ii^`VBNJB&R!0{hABYX55ooCAJSSevl4RPqEGb)iy_0H}v@vFwFzD%>#I>)3PsouQ+_Kkbqy*kKdHdfkN7NBcq%V{x^fSxgXpg7$bF& zj!6AQbDY(1u#1_A#1UO9AxiZaCVN2F0wGXdY*g@x$ByvUA?ePdide0dmr#}udE%K| z3*k}Vv2Ew2u1FXBaVA6aerI36R&rzEZeDDCl5!t0J=ug6kuNZzH>3i_VN`%BsaVB3 zQYw|Xub_SGf{)F{$ZX5`Jc!X!;eybjP+o$I{Z^Hsj@D=E{MnnL+TbC@HEU2DjG{3-LDGIbq()U87x4eS;JXnSh;lRlJ z>EL3D>wHt-+wTjQF$fGyDO$>d+(fq@bPpLBS~xA~R=3JPbS{tzN(u~m#Po!?H;IYv zE;?8%^vle|%#oux(Lj!YzBKv+Fd}*Ur-dCBoX*t{KeNM*n~ZPYJ4NNKkI^MFbz9!v z4(Bvm*Kc!-$%VFEewYJKz-CQN{`2}KX4*CeJEs+Q(!kI%hN1!1P6iOq?ovz}X0IOi z)YfWpwW@pK08^69#wSyCZkX9?uZD?C^@rw^Y?gLS_xmFKkooyx$*^5#cPqntNTtSG zlP>XLMj2!VF^0k#ole7`-c~*~+_T5ls?x4)ah(j8vo_ zwb%S8qoaZqY0-$ZI+ViIA_1~~rAH7K_+yFS{0rT@eQtTAdz#8E5VpwnW!zJ_^{Utv zlW5Iar3V5t&H4D6A=>?mq;G92;1cg9a2sf;gY9pJDVKn$DYdQlvfXq}zz8#LyPGq@ z+`YUMD;^-6w&r-82JL7mA8&M~Pj@aK!m{0+^v<|t%APYf7`}jGEhdYLqsHW-Le9TL z_hZZ1gbrz7$f9^fAzVIP30^KIz!!#+DRLL+qMszvI_BpOSmjtl$hh;&UeM{ER@INV zcI}VbiVTPoN|iSna@=7XkP&-4#06C};8ajbxJ4Gcq8(vWv4*&X8bM^T$mBk75Q92j z1v&%a;OSKc8EIrodmIiw$lOES2hzGDcjjB`kEDfJe{r}yE6`eZL zEB`9u>Cl0IsQ+t}`-cx}{6jqcANucqIB>Qmga_&<+80E2Q|VHHQ$YlAt{6`Qu`HA3 z03s0-sSlwbvgi&_R8s={6<~M^pGvBNjKOa>tWenzS8s zR>L7R5aZ=mSU{f?ib4Grx$AeFvtO5N|D>9#)ChH#Fny2maHWHOf2G=#<9Myot#+4u zWVa6d^Vseq_0=#AYS(-m$Lp;*8nC_6jXIjEM`omUmtH@QDs3|G)i4j*#_?#UYVZvJ z?YjT-?!4Q{BNun;dKBWLEw2C-VeAz`%?A>p;)PL}TAZn5j~HK>v1W&anteARlE+~+ zj>c(F;?qO3pXBb|#OZdQnm<4xWmn~;DR5SDMxt0UK_F^&eD|KZ=O;tO3vy4@4h^;2 zUL~-z`-P1aOe?|ZC1BgVsL)2^J-&vIFI%q@40w0{jjEfeVl)i9(~bt2z#2Vm)p`V_ z1;6$Ae7=YXk#=Qkd24Y23t&GvRxaOoad~NbJ+6pxqzJ>FY#Td7@`N5xp!n(c!=RE& z&<<@^a$_Ys8jqz4|5Nk#FY$~|FPC0`*a5HH!|Gssa9=~66&xG9)|=pOOJ2KE5|YrR zw!w6K2aC=J$t?L-;}5hn6mHd%hC;p8P|Dgh6D>hGnXPgi;6r+eA=?f72y9(Cf_ho{ zH6#)uD&R=73^$$NE;5piWX2bzR67fQ)`b=85o0eOLGI4c-Tb@-KNi2pz=Ke@SDcPn za$AxXib84`!Sf;Z3B@TSo`Dz7GM5Kf(@PR>Ghzi=BBxK8wRp>YQoXm+iL>H*Jo9M3 z6w&E?BC8AFTFT&Tv8zf+m9<&S&%dIaZ)Aoqkak_$r-2{$d~0g2oLETx9Y`eOAf14QXEQw3tJne;fdzl@wV#TFXSLXM2428F-Q}t+n2g%vPRMUzYPvzQ9f# zu(liiJem9P*?0%V@RwA7F53r~|I!Ty)<*AsMX3J{_4&}{6pT%Tpw>)^|DJ)>gpS~1rNEh z0$D?uO8mG?H;2BwM5a*26^7YO$XjUm40XmBsb63MoR;bJh63J;OngS5sSI+o2HA;W zdZV#8pDpC9Oez&L8loZO)MClRz!_!WD&QRtQxnazhT%Vj6Wl4G11nUk8*vSeVab@N#oJ}`KyJv+8Mo@T1-pqZ1t|?cnaVOd;1(h9 z!$DrN=jcGsVYE-0-n?oCJ^4x)F}E;UaD-LZUIzcD?W^ficqJWM%QLy6QikrM1aKZC zi{?;oKwq^Vsr|&`i{jIphA8S6G4)$KGvpULjH%9u(Dq247;R#l&I0{IhcC|oBF*Al zvLo7Xte=C{aIt*otJD}BUq)|_pdR>{zBMT< z(^1RpZv*l*m*OV^8>9&asGBo8h*_4q*)-eCv*|Pq=XNGrZE)^(SF7^{QE_~4VDB(o zVcPA_!G+2CAtLbl+`=Q~9iW`4ZRLku!uB?;tWqVjB0lEOf}2RD7dJ=BExy=<9wkb- z9&7{XFA%n#JsHYN8t5d~=T~5DcW4$B%3M+nNvC2`0!#@sckqlzo5;hhGi(D9=*A4` z5ynobawSPRtWn&CDLEs3Xf`(8^zDP=NdF~F^s&={l7(aw&EG}KWpMjtmz7j_VLO;@ zM2NVLDxZ@GIv7*gzl1 zjq78tv*8#WSY`}Su0&C;2F$Ze(q>F(@Wm^Gw!)(j;dk9Ad{STaxn)IV9FZhm*n+U} zi;4y*3v%A`_c7a__DJ8D1b@dl0Std3F||4Wtvi)fCcBRh!X9$1x!_VzUh>*S5s!oq z;qd{J_r79EL2wIeiGAqFstWtkfIJpjVh%zFo*=55B9Zq~y0=^iqHWfQl@O!Ak;(o*m!pZqe9 z%U2oDOhR)BvW8&F70L;2TpkzIutIvNQaTjjs5V#8mV4!NQ}zN=i`i@WI1z0eN-iCS z;vL-Wxc^Vc_qK<5RPh(}*8dLT{~GzE{w2o$2kMFaEl&q zP{V=>&3kW7tWaK-Exy{~`v4J0U#OZBk{a9{&)&QG18L@6=bsZ1zC_d{{pKZ-Ey>I> z;8H0t4bwyQqgu4hmO`3|4K{R*5>qnQ&gOfdy?z`XD%e5+pTDzUt3`k^u~SaL&XMe= z9*h#kT(*Q9jO#w2Hd|Mr-%DV8i_1{J1MU~XJ3!WUplhXDYBpJH><0OU`**nIvPIof z|N8@I=wA)sf45SAvx||f?Z5uB$kz1qL3Ky_{%RPdP5iN-D2!p5scq}buuC00C@jom zhfGKm3|f?Z0iQ|K$Z~!`8{nmAS1r+fp6r#YDOS8V*;K&Gs7Lc&f^$RC66O|)28oh`NHy&vq zJh+hAw8+ybTB0@VhWN^0iiTnLsCWbS_y`^gs!LX!Lw{yE``!UVzrV24tP8o;I6-65 z1MUiHw^{bB15tmrVT*7-#sj6cs~z`wk52YQJ*TG{SE;KTm#Hf#a~|<(|ImHH17nNM z`Ub{+J3dMD!)mzC8b(2tZtokKW5pAwHa?NFiso~# z1*iaNh4lQ4TS)|@G)H4dZV@l*Vd;Rw;-;odDhW2&lJ%m@jz+Panv7LQm~2Js6rOW3 z0_&2cW^b^MYW3)@o;neZ<{B4c#m48dAl$GCc=$>ErDe|?y@z`$uq3xd(%aAsX)D%l z>y*SQ%My`yDP*zof|3@_w#cjaW_YW4BdA;#Glg1RQcJGY*CJ9`H{@|D+*e~*457kd z73p<%fB^PV!Ybw@)Dr%(ZJbX}xmCStCYv#K3O32ej{$9IzM^I{6FJ8!(=azt7RWf4 z7ib0UOPqN40X!wOnFOoddd8`!_IN~9O)#HRTyjfc#&MCZ zZAMzOVB=;qwt8gV?{Y2?b=iSZG~RF~uyx18K)IDFLl})G1v@$(s{O4@RJ%OTJyF+Cpcx4jmy|F3euCnMK!P2WTDu5j z{{gD$=M*pH!GGzL%P)V2*ROm>!$Y=z|D`!_yY6e7SU$~a5q8?hZGgaYqaiLnkK%?0 zs#oI%;zOxF@g*@(V4p!$7dS1rOr6GVs6uYCTt2h)eB4?(&w8{#o)s#%gN@BBosRUe z)@P@8_Zm89pr~)b>e{tbPC~&_MR--iB{=)y;INU5#)@Gix-YpgP<-c2Ms{9zuCX|3 z!p(?VaXww&(w&uBHzoT%!A2=3HAP>SDxcljrego7rY|%hxy3XlODWffO_%g|l+7Y_ zqV(xbu)s4lV=l7M;f>vJl{`6qBm>#ZeMA}kXb97Z)?R97EkoI?x6Lp0yu1Z>PS?2{ z0QQ(8D)|lc9CO3B~e(pQM&5(1y&y=e>C^X$`)_&XuaI!IgDTVqt31wX#n+@!a_A0ZQkA zCJ2@M_4Gb5MfCrm5UPggeyh)8 zO9?`B0J#rkoCx(R0I!ko_2?iO@|oRf1;3r+i)w-2&j?=;NVIdPFsB)`|IC0zk6r9c zRrkfxWsiJ(#8QndNJj@{@WP2Ackr|r1VxV{7S&rSU(^)-M8gV>@UzOLXu9K<{6e{T zXJ6b92r$!|lwjhmgqkdswY&}c)KW4A)-ac%sU;2^fvq7gfUW4Bw$b!i@duy1CAxSn z(pyh$^Z=&O-q<{bZUP+$U}=*#M9uVc>CQVgDs4swy5&8RAHZ~$)hrTF4W zPsSa~qYv_0mJnF89RnnJTH`3}w4?~epFl=D(35$ zWa07ON$`OMBOHgCmfO(9RFc<)?$x)N}Jd2A(<*Ll7+4jrRt9w zwGxExUXd9VB#I|DwfxvJ;HZ8Q{37^wDhaZ%O!oO(HpcqfLH%#a#!~;Jl7F5>EX_=8 z{()l2NqPz>La3qJR;_v+wlK>GsHl;uRA8%j`A|yH@k5r%55S9{*Cp%uw6t`qc1!*T za2OeqtQj7sAp#Q~=5Fs&aCR9v>5V+s&RdNvo&H~6FJOjvaj--2sYYBvMq;55%z8^o z|BJDA4vzfow#DO#ZQHh;Oq_{r+qP{R9ox2TOgwQiv7Ow!zjN+A@BN;0tA2lUb#+zO z(^b89eV)D7UVE+h{mcNc6&GtpOqDn_?VAQ)Vob$hlFwW%xh>D#wml{t&Ofmm_d_+; zKDxzdr}`n2Rw`DtyIjrG)eD0vut$}dJAZ0AohZ+ZQdWXn_Z@dI_y=7t3q8x#pDI-K z2VVc&EGq445Rq-j0=U=Zx`oBaBjsefY;%)Co>J3v4l8V(T8H?49_@;K6q#r~Wwppc z4XW0(4k}cP=5ex>-Xt3oATZ~bBWKv)aw|I|Lx=9C1s~&b77idz({&q3T(Y(KbWO?+ zmcZ6?WeUsGk6>km*~234YC+2e6Zxdl~<_g2J|IE`GH%n<%PRv-50; zH{tnVts*S5*_RxFT9eM0z-pksIb^drUq4>QSww=u;UFCv2AhOuXE*V4z?MM`|ABOC4P;OfhS(M{1|c%QZ=!%rQTDFx`+}?Kdx$&FU?Y<$x;j7z=(;Lyz+?EE>ov!8vvMtSzG!nMie zsBa9t8as#2nH}n8xzN%W%U$#MHNXmDUVr@GX{?(=yI=4vks|V)!-W5jHsU|h_&+kY zS_8^kd3jlYqOoiI`ZqBVY!(UfnAGny!FowZWY_@YR0z!nG7m{{)4OS$q&YDyw6vC$ zm4!$h>*|!2LbMbxS+VM6&DIrL*X4DeMO!@#EzMVfr)e4Tagn~AQHIU8?e61TuhcKD zr!F4(kEebk(Wdk-?4oXM(rJwanS>Jc%<>R(siF+>+5*CqJLecP_we33iTFTXr6W^G z7M?LPC-qFHK;E!fxCP)`8rkxZyFk{EV;G-|kwf4b$c1k0atD?85+|4V%YATWMG|?K zLyLrws36p%Qz6{}>7b>)$pe>mR+=IWuGrX{3ZPZXF3plvuv5Huax86}KX*lbPVr}L z{C#lDjdDeHr~?l|)Vp_}T|%$qF&q#U;ClHEPVuS+Jg~NjC1RP=17=aQKGOcJ6B3mp z8?4*-fAD~}sX*=E6!}^u8)+m2j<&FSW%pYr_d|p_{28DZ#Cz0@NF=gC-o$MY?8Ca8 zr5Y8DSR^*urS~rhpX^05r30Ik#2>*dIOGxRm0#0YX@YQ%Mg5b6dXlS!4{7O_kdaW8PFSdj1=ryI-=5$fiieGK{LZ+SX(1b=MNL!q#lN zv98?fqqTUH8r8C7v(cx#BQ5P9W>- zmW93;eH6T`vuJ~rqtIBg%A6>q>gnWb3X!r0wh_q;211+Om&?nvYzL1hhtjB zK_7G3!n7PL>d!kj){HQE zE8(%J%dWLh1_k%gVXTZt zEdT09XSKAx27Ncaq|(vzL3gm83q>6CAw<$fTnMU05*xAe&rDfCiu`u^1)CD<>sx0i z*hr^N_TeN89G(nunZoLBf^81#pmM}>JgD@Nn1l*lN#a=B=9pN%tmvYFjFIoKe_(GF z-26x{(KXdfsQL7Uv6UtDuYwV`;8V3w>oT_I<`Ccz3QqK9tYT5ZQzbop{=I=!pMOCb zCU68`n?^DT%^&m>A%+-~#lvF!7`L7a{z<3JqIlk1$<||_J}vW1U9Y&eX<}l8##6i( zZcTT@2`9(Mecptm@{3A_Y(X`w9K0EwtPq~O!16bq{7c0f7#(3wn-^)h zxV&M~iiF!{-6A@>o;$RzQ5A50kxXYj!tcgme=Qjrbje~;5X2xryU;vH|6bE(8z^<7 zQ>BG7_c*JG8~K7Oe68i#0~C$v?-t@~@r3t2inUnLT(c=URpA9kA8uq9PKU(Ps(LVH zqgcqW>Gm?6oV#AldDPKVRcEyQIdTT`Qa1j~vS{<;SwyTdr&3*t?J)y=M7q*CzucZ&B0M=joT zBbj@*SY;o2^_h*>R0e({!QHF0=)0hOj^B^d*m>SnRrwq>MolNSgl^~r8GR#mDWGYEIJA8B<|{{j?-7p zVnV$zancW3&JVDtVpIlI|5djKq0(w$KxEFzEiiL=h5Jw~4Le23@s(mYyXWL9SX6Ot zmb)sZaly_P%BeX_9 zw&{yBef8tFm+%=--m*J|o~+Xg3N+$IH)t)=fqD+|fEk4AAZ&!wcN5=mi~Vvo^i`}> z#_3ahR}Ju)(Px7kev#JGcSwPXJ2id9%Qd2A#Uc@t8~egZ8;iC{e! z%=CGJOD1}j!HW_sgbi_8suYnn4#Ou}%9u)dXd3huFIb!ytlX>Denx@pCS-Nj$`VO&j@(z!kKSP0hE4;YIP#w9ta=3DO$7f*x zc9M4&NK%IrVmZAe=r@skWD`AEWH=g+r|*13Ss$+{c_R!b?>?UaGXlw*8qDmY#xlR= z<0XFbs2t?8i^G~m?b|!Hal^ZjRjt<@a? z%({Gn14b4-a|#uY^=@iiKH+k?~~wTj5K1A&hU z2^9-HTC)7zpoWK|$JXaBL6C z#qSNYtY>65T@Zs&-0cHeu|RX(Pxz6vTITdzJdYippF zC-EB+n4}#lM7`2Ry~SO>FxhKboIAF#Z{1wqxaCb{#yEFhLuX;Rx(Lz%T`Xo1+a2M}7D+@wol2)OJs$TwtRNJ={( zD@#zTUEE}#Fz#&(EoD|SV#bayvr&E0vzmb%H?o~46|FAcx?r4$N z&67W3mdip-T1RIxwSm_&(%U|+WvtGBj*}t69XVd&ebn>KOuL(7Y8cV?THd-(+9>G7*Nt%T zcH;`p={`SOjaf7hNd(=37Lz3-51;58JffzIPgGs_7xIOsB5p2t&@v1mKS$2D$*GQ6 zM(IR*j4{nri7NMK9xlDy-hJW6sW|ZiDRaFiayj%;(%51DN!ZCCCXz+0Vm#};70nOx zJ#yA0P3p^1DED;jGdPbQWo0WATN=&2(QybbVdhd=Vq*liDk`c7iZ?*AKEYC#SY&2g z&Q(Ci)MJ{mEat$ZdSwTjf6h~roanYh2?9j$CF@4hjj_f35kTKuGHvIs9}Re@iKMxS-OI*`0S z6s)fOtz}O$T?PLFVSeOjSO26$@u`e<>k(OSP!&YstH3ANh>)mzmKGNOwOawq-MPXe zy4xbeUAl6tamnx))-`Gi2uV5>9n(73yS)Ukma4*7fI8PaEwa)dWHs6QA6>$}7?(L8 ztN8M}?{Tf!Zu22J5?2@95&rQ|F7=FK-hihT-vDp!5JCcWrVogEnp;CHenAZ)+E+K5 z$Cffk5sNwD_?4+ymgcHR(5xgt20Z8M`2*;MzOM#>yhk{r3x=EyM226wb&!+j`W<%* zSc&|`8!>dn9D@!pYow~(DsY_naSx7(Z4i>cu#hA5=;IuI88}7f%)bRkuY2B;+9Uep zpXcvFWkJ!mQai63BgNXG26$5kyhZ2&*3Q_tk)Ii4M>@p~_~q_cE!|^A;_MHB;7s#9 zKzMzK{lIxotjc};k67^Xsl-gS!^*m*m6kn|sbdun`O?dUkJ{0cmI0-_2y=lTAfn*Y zKg*A-2sJq)CCJgY0LF-VQvl&6HIXZyxo2#!O&6fOhbHXC?%1cMc6y^*dOS{f$=137Ds1m01qs`>iUQ49JijsaQ( zksqV9@&?il$|4Ua%4!O15>Zy&%gBY&wgqB>XA3!EldQ%1CRSM(pp#k~-pkcCg4LAT zXE=puHbgsw)!xtc@P4r~Z}nTF=D2~j(6D%gTBw$(`Fc=OOQ0kiW$_RDd=hcO0t97h zb86S5r=>(@VGy1&#S$Kg_H@7G^;8Ue)X5Y+IWUi`o;mpvoV)`fcVk4FpcT|;EG!;? zHG^zrVVZOm>1KFaHlaogcWj(v!S)O(Aa|Vo?S|P z5|6b{qkH(USa*Z7-y_Uvty_Z1|B{rTS^qmEMLEYUSk03_Fg&!O3BMo{b^*`3SHvl0 zhnLTe^_vVIdcSHe)SQE}r~2dq)VZJ!aSKR?RS<(9lzkYo&dQ?mubnWmgMM37Nudwo z3Vz@R{=m2gENUE3V4NbIzAA$H1z0pagz94-PTJyX{b$yndsdKptmlKQKaaHj@3=ED zc7L?p@%ui|RegVYutK$64q4pe9+5sv34QUpo)u{1ci?)_7gXQd{PL>b0l(LI#rJmN zGuO+%GO`xneFOOr4EU(Wg}_%bhzUf;d@TU+V*2#}!2OLwg~%D;1FAu=Un>OgjPb3S z7l(riiCwgghC=Lm5hWGf5NdGp#01xQ59`HJcLXbUR3&n%P(+W2q$h2Qd z*6+-QXJ*&Kvk9ht0f0*rO_|FMBALen{j7T1l%=Q>gf#kma zQlg#I9+HB+z*5BMxdesMND`_W;q5|FaEURFk|~&{@qY32N$G$2B=&Po{=!)x5b!#n zxLzblkq{yj05#O7(GRuT39(06FJlalyv<#K4m}+vs>9@q-&31@1(QBv82{}Zkns~K ze{eHC_RDX0#^A*JQTwF`a=IkE6Ze@j#-8Q`tTT?k9`^ZhA~3eCZJ-Jr{~7Cx;H4A3 zcZ+Zj{mzFZbVvQ6U~n>$U2ZotGsERZ@}VKrgGh0xM;Jzt29%TX6_&CWzg+YYMozrM z`nutuS)_0dCM8UVaKRj804J4i%z2BA_8A4OJRQ$N(P9Mfn-gF;4#q788C@9XR0O3< zsoS4wIoyt046d+LnSCJOy@B@Uz*#GGd#+Ln1ek5Dv>(ZtD@tgZlPnZZJGBLr^JK+!$$?A_fA3LOrkoDRH&l7 zcMcD$Hsjko3`-{bn)jPL6E9Ds{WskMrivsUu5apD z?grQO@W7i5+%X&E&p|RBaEZ(sGLR@~(y^BI@lDMot^Ll?!`90KT!JXUhYS`ZgX3jnu@Ja^seA*M5R@f`=`ynQV4rc$uT1mvE?@tz)TN<=&H1%Z?5yjxcpO+6y_R z6EPuPKM5uxKpmZfT(WKjRRNHs@ib)F5WAP7QCADvmCSD#hPz$V10wiD&{NXyEwx5S z6NE`3z!IS^$s7m}PCwQutVQ#~w+V z=+~->DI*bR2j0^@dMr9`p>q^Ny~NrAVxrJtX2DUveic5vM%#N*XO|?YAWwNI$Q)_) zvE|L(L1jP@F%gOGtnlXtIv2&1i8q<)Xfz8O3G^Ea~e*HJsQgBxWL(yuLY+jqUK zRE~`-zklrGog(X}$9@ZVUw!8*=l`6mzYLtsg`AvBYz(cxmAhr^j0~(rzXdiOEeu_p zE$sf2(w(BPAvO5DlaN&uQ$4@p-b?fRs}d7&2UQ4Fh?1Hzu*YVjcndqJLw0#q@fR4u zJCJ}>_7-|QbvOfylj+e^_L`5Ep9gqd>XI3-O?Wp z-gt*P29f$Tx(mtS`0d05nHH=gm~Po_^OxxUwV294BDKT>PHVlC5bndncxGR!n(OOm znsNt@Q&N{TLrmsoKFw0&_M9$&+C24`sIXGWgQaz=kY;S{?w`z^Q0JXXBKFLj0w0U6P*+jPKyZHX9F#b0D1$&(- zrm8PJd?+SrVf^JlfTM^qGDK&-p2Kdfg?f>^%>1n8bu&byH(huaocL>l@f%c*QkX2i znl}VZ4R1en4S&Bcqw?$=Zi7ohqB$Jw9x`aM#>pHc0x z0$!q7iFu zZ`tryM70qBI6JWWTF9EjgG@>6SRzsd}3h+4D8d~@CR07P$LJ}MFsYi-*O%XVvD@yT|rJ+Mk zDllJ7$n0V&A!0flbOf)HE6P_afPWZmbhpliqJuw=-h+r;WGk|ntkWN(8tKlYpq5Ow z(@%s>IN8nHRaYb*^d;M(D$zGCv5C|uqmsDjwy4g=Lz>*OhO3z=)VD}C<65;`89Ye} zSCxrv#ILzIpEx1KdLPlM&%Cctf@FqTKvNPXC&`*H9=l=D3r!GLM?UV zOxa(8ZsB`&+76S-_xuj?G#wXBfDY@Z_tMpXJS7^mp z@YX&u0jYw2A+Z+bD#6sgVK5ZgdPSJV3>{K^4~%HV?rn~4D)*2H!67Y>0aOmzup`{D zzDp3c9yEbGCY$U<8biJ_gB*`jluz1ShUd!QUIQJ$*1;MXCMApJ^m*Fiv88RZ zFopLViw}{$Tyhh_{MLGIE2~sZ)t0VvoW%=8qKZ>h=adTe3QM$&$PO2lfqH@brt!9j ziePM8$!CgE9iz6B<6_wyTQj?qYa;eC^{x_0wuwV~W+^fZmFco-o%wsKSnjXFEx02V zF5C2t)T6Gw$Kf^_c;Ei3G~uC8SM-xyycmXyC2hAVi-IfXqhu$$-C=*|X?R0~hu z8`J6TdgflslhrmDZq1f?GXF7*ALeMmOEpRDg(s*H`4>_NAr`2uqF;k;JQ+8>A|_6ZNsNLECC%NNEb1Y1dP zbIEmNpK)#XagtL4R6BC{C5T(+=yA-(Z|Ap}U-AfZM#gwVpus3(gPn}Q$CExObJ5AC z)ff9Yk?wZ}dZ-^)?cbb9Fw#EjqQ8jxF4G3=L?Ra zg_)0QDMV1y^A^>HRI$x?Op@t;oj&H@1xt4SZ9(kifQ zb59B*`M99Td7@aZ3UWvj1rD0sE)d=BsBuW*KwkCds7ay(7*01_+L}b~7)VHI>F_!{ zyxg-&nCO?v#KOUec0{OOKy+sjWA;8rTE|Lv6I9H?CI?H(mUm8VXGwU$49LGpz&{nQp2}dinE1@lZ1iox6{ghN&v^GZv9J${7WaXj)<0S4g_uiJ&JCZ zr8-hsu`U%N;+9N^@&Q0^kVPB3)wY(rr}p7{p0qFHb3NUUHJb672+wRZs`gd1UjKPX z4o6zljKKA+Kkj?H>Ew63o%QjyBk&1!P22;MkD>sM0=z_s-G{mTixJCT9@_|*(p^bz zJ8?ZZ&;pzV+7#6Mn`_U-)k8Pjg?a;|Oe^us^PoPY$Va~yi8|?+&=y$f+lABT<*pZr zP}D{~Pq1Qyni+@|aP;ixO~mbEW9#c0OU#YbDZIaw=_&$K%Ep2f%hO^&P67hApZe`x zv8b`Mz@?M_7-)b!lkQKk)JXXUuT|B8kJlvqRmRpxtQDgvrHMXC1B$M@Y%Me!BSx3P z#2Eawl$HleZhhTS6Txm>lN_+I`>eV$&v9fOg)%zVn3O5mI*lAl>QcHuW6!Kixmq`X zBCZ*Ck6OYtDiK!N47>jxI&O2a9x7M|i^IagRr-fmrmikEQGgw%J7bO|)*$2FW95O4 zeBs>KR)izRG1gRVL;F*sr8A}aRHO0gc$$j&ds8CIO1=Gwq1%_~E)CWNn9pCtBE}+`Jelk4{>S)M)`Ll=!~gnn1yq^EX(+y*ik@3Ou0qU`IgYi3*doM+5&dU!cho$pZ zn%lhKeZkS72P?Cf68<#kll_6OAO26bIbueZx**j6o;I0cS^XiL`y+>{cD}gd%lux} z)3N>MaE24WBZ}s0ApfdM;5J_Ny}rfUyxfkC``Awo2#sgLnGPewK};dORuT?@I6(5~ z?kE)Qh$L&fwJXzK){iYx!l5$Tt|^D~MkGZPA}(o6f7w~O2G6Vvzdo*a;iXzk$B66$ zwF#;wM7A+(;uFG4+UAY(2`*3XXx|V$K8AYu#ECJYSl@S=uZW$ksfC$~qrrbQj4??z-)uz0QL}>k^?fPnJTPw% zGz)~?B4}u0CzOf@l^um}HZzbaIwPmb<)< zi_3@E9lc)Qe2_`*Z^HH;1CXOceL=CHpHS{HySy3T%<^NrWQ}G0i4e1xm_K3(+~oi$ zoHl9wzb?Z4j#90DtURtjtgvi7uw8DzHYmtPb;?%8vb9n@bszT=1qr)V_>R%s!92_` zfnHQPANx z<#hIjIMm#*(v*!OXtF+w8kLu`o?VZ5k7{`vw{Yc^qYclpUGIM_PBN1+c{#Vxv&E*@ zxg=W2W~JuV{IuRYw3>LSI1)a!thID@R=bU+cU@DbR^_SXY`MC7HOsCN z!dO4OKV7(E_Z8T#8MA1H`99?Z!r0)qKW_#|29X3#Jb+5+>qUidbeP1NJ@)(qi2S-X zao|f0_tl(O+$R|Qwd$H{_ig|~I1fbp_$NkI!0E;Y z6JrnU{1Ra6^on{9gUUB0mwzP3S%B#h0fjo>JvV~#+X0P~JV=IG=yHG$O+p5O3NUgG zEQ}z6BTp^Fie)Sg<){Z&I8NwPR(=mO4joTLHkJ>|Tnk23E(Bo`FSbPc05lF2-+)X? z6vV3*m~IBHTy*^E!<0nA(tCOJW2G4DsH7)BxLV8kICn5lu6@U*R`w)o9;Ro$i8=Q^V%uH8n3q=+Yf;SFRZu z!+F&PKcH#8cG?aSK_Tl@K9P#8o+jry@gdexz&d(Q=47<7nw@e@FFfIRNL9^)1i@;A z28+$Z#rjv-wj#heI|<&J_DiJ*s}xd-f!{J8jfqOHE`TiHHZVIA8CjkNQ_u;Ery^^t zl1I75&u^`1_q)crO+JT4rx|z2ToSC>)Or@-D zy3S>jW*sNIZR-EBsfyaJ+Jq4BQE4?SePtD2+jY8*%FsSLZ9MY>+wk?}}}AFAw)vr{ml)8LUG-y9>^t!{~|sgpxYc0Gnkg`&~R z-pilJZjr@y5$>B=VMdZ73svct%##v%wdX~9fz6i3Q-zOKJ9wso+h?VME7}SjL=!NUG{J?M&i!>ma`eoEa@IX`5G>B1(7;%}M*%-# zfhJ(W{y;>MRz!Ic8=S}VaBKqh;~7KdnGEHxcL$kA-6E~=!hrN*zw9N+_=odt<$_H_8dbo;0=42wcAETPCVGUr~v(`Uai zb{=D!Qc!dOEU6v)2eHSZq%5iqK?B(JlCq%T6av$Cb4Rko6onlG&?CqaX7Y_C_cOC3 zYZ;_oI(}=>_07}Oep&Ws7x7-R)cc8zfe!SYxJYP``pi$FDS)4Fvw5HH=FiU6xfVqIM!hJ;Rx8c0cB7~aPtNH(Nmm5Vh{ibAoU#J6 zImRCr?(iyu_4W_6AWo3*vxTPUw@vPwy@E0`(>1Qi=%>5eSIrp^`` zK*Y?fK_6F1W>-7UsB)RPC4>>Ps9)f+^MqM}8AUm@tZ->j%&h1M8s*s!LX5&WxQcAh z8mciQej@RPm?660%>{_D+7er>%zX_{s|$Z+;G7_sfNfBgY(zLB4Ey}J9F>zX#K0f6 z?dVNIeEh?EIShmP6>M+d|0wMM85Sa4diw1hrg|ITJ}JDg@o8y>(rF9mXk5M z2@D|NA)-7>wD&wF;S_$KS=eE84`BGw3g0?6wGxu8ys4rwI?9U=*^VF22t3%mbGeOh z`!O-OpF7#Vceu~F`${bW0nYVU9ecmk31V{tF%iv&5hWofC>I~cqAt@u6|R+|HLMMX zVxuSlMFOK_EQ86#E8&KwxIr8S9tj_goWtLv4f@!&h8;Ov41{J~496vp9vX=(LK#j! zAwi*21RAV-LD>9Cw3bV_9X(X3)Kr0-UaB*7Y>t82EQ%!)(&(XuAYtTsYy-dz+w=$ir)VJpe!_$ z6SGpX^i(af3{o=VlFPC);|J8#(=_8#vdxDe|Cok+ANhYwbE*FO`Su2m1~w+&9<_9~ z-|tTU_ACGN`~CNW5WYYBn^B#SwZ(t4%3aPp z;o)|L6Rk569KGxFLUPx@!6OOa+5OjQLK5w&nAmwxkC5rZ|m&HT8G%GVZxB_@ME z>>{rnXUqyiJrT(8GMj_ap#yN_!9-lO5e8mR3cJiK3NE{_UM&=*vIU`YkiL$1%kf+1 z4=jk@7EEj`u(jy$HnzE33ZVW_J4bj}K;vT?T91YlO(|Y0FU4r+VdbmQ97%(J5 zkK*Bed8+C}FcZ@HIgdCMioV%A<*4pw_n}l*{Cr4}a(lq|injK#O?$tyvyE`S%(1`H z_wwRvk#13ElkZvij2MFGOj`fhy?nC^8`Zyo%yVcUAfEr8x&J#A{|moUBAV_^f$hpaUuyQeY3da^ zS9iRgf87YBwfe}>BO+T&Fl%rfpZh#+AM?Dq-k$Bq`vG6G_b4z%Kbd&v>qFjow*mBl z-OylnqOpLg}or7_VNwRg2za3VBK6FUfFX{|TD z`Wt0Vm2H$vdlRWYQJqDmM?JUbVqL*ZQY|5&sY*?!&%P8qhA~5+Af<{MaGo(dl&C5t zE%t!J0 zh6jqANt4ABdPxSTrVV}fLsRQal*)l&_*rFq(Ez}ClEH6LHv{J#v?+H-BZ2)Wy{K@9 z+ovXHq~DiDvm>O~r$LJo!cOuwL+Oa--6;UFE2q@g3N8Qkw5E>ytz^(&($!O47+i~$ zKM+tkAd-RbmP{s_rh+ugTD;lriL~`Xwkad#;_aM?nQ7L_muEFI}U_4$phjvYgleK~`Fo`;GiC07&Hq1F<%p;9Q;tv5b?*QnR%8DYJH3P>Svmv47Y>*LPZJy8_{9H`g6kQpyZU{oJ`m%&p~D=K#KpfoJ@ zn-3cqmHsdtN!f?~w+(t+I`*7GQA#EQC^lUA9(i6=i1PqSAc|ha91I%X&nXzjYaM{8$s&wEx@aVkQ6M{E2 zfzId#&r(XwUNtPcq4Ngze^+XaJA1EK-%&C9j>^9(secqe{}z>hR5CFNveMsVA)m#S zk)_%SidkY-XmMWlVnQ(mNJ>)ooszQ#vaK;!rPmGKXV7am^_F!Lz>;~{VrIO$;!#30XRhE1QqO_~#+Ux;B_D{Nk=grn z8Y0oR^4RqtcYM)7a%@B(XdbZCOqnX#fD{BQTeLvRHd(irHKq=4*jq34`6@VAQR8WG z^%)@5CXnD_T#f%@-l${>y$tfb>2LPmc{~5A82|16mH)R?&r#KKLs7xpN-D`=&Cm^R zvMA6#Ahr<3X>Q7|-qfTY)}32HkAz$_mibYV!I)u>bmjK`qwBe(>za^0Kt*HnFbSdO z1>+ryKCNxmm^)*$XfiDOF2|{-v3KKB?&!(S_Y=Ht@|ir^hLd978xuI&N{k>?(*f8H z=ClxVJK_%_z1TH0eUwm2J+2To7FK4o+n_na)&#VLn1m;!+CX+~WC+qg1?PA~KdOlC zW)C@pw75_xoe=w7i|r9KGIvQ$+3K?L{7TGHwrQM{dCp=Z*D}3kX7E-@sZnup!BImw z*T#a=+WcTwL78exTgBn|iNE3#EsOorO z*kt)gDzHiPt07fmisA2LWN?AymkdqTgr?=loT7z@d`wnlr6oN}@o|&JX!yPzC*Y8d zu6kWlTzE1)ckyBn+0Y^HMN+GA$wUO_LN6W>mxCo!0?oiQvT`z$jbSEu&{UHRU0E8# z%B^wOc@S!yhMT49Y)ww(Xta^8pmPCe@eI5C*ed96)AX9<>))nKx0(sci8gwob_1}4 z0DIL&vsJ1_s%<@y%U*-eX z5rN&(zef-5G~?@r79oZGW1d!WaTqQn0F6RIOa9tJ=0(kdd{d1{<*tHT#cCvl*i>YY zH+L7jq8xZNcTUBqj(S)ztTU!TM!RQ}In*n&Gn<>(60G7}4%WQL!o>hbJqNDSGwl#H z`4k+twp0cj%PsS+NKaxslAEu9!#U3xT1|_KB6`h=PI0SW`P9GTa7caD1}vKEglV8# zjKZR`pluCW19c2fM&ZG)c3T3Um;ir3y(tSCJ7Agl6|b524dy5El{^EQBG?E61H0XY z`bqg!;zhGhyMFl&(o=JWEJ8n~z)xI}A@C0d2hQGvw7nGv)?POU@(kS1m=%`|+^ika zXl8zjS?xqW$WlO?Ewa;vF~XbybHBor$f<%I&*t$F5fynwZlTGj|IjZtVfGa7l&tK} zW>I<69w(cZLu)QIVG|M2xzW@S+70NinQzk&Y0+3WT*cC)rx~04O-^<{JohU_&HL5XdUKW!uFy|i$FB|EMu0eUyW;gsf`XfIc!Z0V zeK&*hPL}f_cX=@iv>K%S5kL;cl_$v?n(Q9f_cChk8Lq$glT|=e+T*8O4H2n<=NGmn z+2*h+v;kBvF>}&0RDS>)B{1!_*XuE8A$Y=G8w^qGMtfudDBsD5>T5SB;Qo}fSkkiV ze^K^M(UthkwrD!&*tTsu>Dacdj_q`~V%r_twr$(Ct&_dKeeXE?fA&4&yASJWJ*}~- zel=@W)tusynfC_YqH4ll>4Eg`Xjs5F7Tj>tTLz<0N3)X<1px_d2yUY>X~y>>93*$) z5PuNMQLf9Bu?AAGO~a_|J2akO1M*@VYN^VxvP0F$2>;Zb9;d5Yfd8P%oFCCoZE$ z4#N$^J8rxYjUE_6{T%Y>MmWfHgScpuGv59#4u6fpTF%~KB^Ae`t1TD_^Ud#DhL+Dm zbY^VAM#MrAmFj{3-BpVSWph2b_Y6gCnCAombVa|1S@DU)2r9W<> zT5L8BB^er3zxKt1v(y&OYk!^aoQisqU zH(g@_o)D~BufUXcPt!Ydom)e|aW{XiMnes2z&rE?og>7|G+tp7&^;q?Qz5S5^yd$i z8lWr4g5nctBHtigX%0%XzIAB8U|T6&JsC4&^hZBw^*aIcuNO47de?|pGXJ4t}BB`L^d8tD`H`i zqrP8?#J@8T#;{^B!KO6J=@OWKhAerih(phML`(Rg7N1XWf1TN>=Z3Do{l_!d~DND&)O)D>ta20}@Lt77qSnVsA7>)uZAaT9bsB>u&aUQl+7GiY2|dAEg@%Al3i316y;&IhQL^8fw_nwS>f60M_-m+!5)S_6EPM7Y)(Nq^8gL7(3 zOiot`6Wy6%vw~a_H?1hLVzIT^i1;HedHgW9-P#)}Y6vF%C=P70X0Tk^z9Te@kPILI z_(gk!k+0%CG)%!WnBjjw*kAKs_lf#=5HXC00s-}oM-Q1aXYLj)(1d!_a7 z*Gg4Fe6F$*ujVjI|79Z5+Pr`us%zW@ln++2l+0hsngv<{mJ%?OfSo_3HJXOCys{Ug z00*YR-(fv<=&%Q!j%b-_ppA$JsTm^_L4x`$k{VpfLI(FMCap%LFAyq;#ns5bR7V+x zO!o;c5y~DyBPqdVQX)8G^G&jWkBy2|oWTw>)?5u}SAsI$RjT#)lTV&Rf8;>u*qXnb z8F%Xb=7#$m)83z%`E;49)t3fHInhtc#kx4wSLLms!*~Z$V?bTyUGiS&m>1P(952(H zuHdv=;o*{;5#X-uAyon`hP}d#U{uDlV?W?_5UjJvf%11hKwe&(&9_~{W)*y1nR5f_ z!N(R74nNK`y8>B!0Bt_Vr!;nc3W>~RiKtGSBkNlsR#-t^&;$W#)f9tTlZz>n*+Fjz z3zXZ;jf(sTM(oDzJt4FJS*8c&;PLTW(IQDFs_5QPy+7yhi1syPCarvqrHFcf&yTy)^O<1EBx;Ir`5W{TIM>{8w&PB>ro4;YD<5LF^TjTb0!zAP|QijA+1Vg>{Afv^% zmrkc4o6rvBI;Q8rj4*=AZacy*n8B{&G3VJc)so4$XUoie0)vr;qzPZVbb<#Fc=j+8CGBWe$n|3K& z_@%?{l|TzKSlUEO{U{{%Fz_pVDxs7i9H#bnbCw7@4DR=}r_qV!Zo~CvD4ZI*+j3kO zW6_=|S`)(*gM0Z;;}nj`73OigF4p6_NPZQ-Od~e$c_);;4-7sR>+2u$6m$Gf%T{aq zle>e3(*Rt(TPD}03n5)!Ca8Pu!V}m6v0o1;5<1h$*|7z|^(3$Y&;KHKTT}hV056wuF0Xo@mK-52~r=6^SI1NC%c~CC?n>yX6wPTgiWYVz!Sx^atLby9YNn1Rk{g?|pJaxD4|9cUf|V1_I*w zzxK)hRh9%zOl=*$?XUjly5z8?jPMy%vEN)f%T*|WO|bp5NWv@B(K3D6LMl!-6dQg0 zXNE&O>Oyf%K@`ngCvbGPR>HRg5!1IV$_}m@3dWB7x3t&KFyOJn9pxRXCAzFr&%37wXG;z^xaO$ekR=LJG ztIHpY8F5xBP{mtQidqNRoz= z@){+N3(VO5bD+VrmS^YjG@+JO{EOIW)9=F4v_$Ed8rZtHvjpiEp{r^c4F6Ic#ChlC zJX^DtSK+v(YdCW)^EFcs=XP7S>Y!4=xgmv>{S$~@h=xW-G4FF9?I@zYN$e5oF9g$# zb!eVU#J+NjLyX;yb)%SY)xJdvGhsnE*JEkuOVo^k5PyS=o#vq!KD46UTW_%R=Y&0G zFj6bV{`Y6)YoKgqnir2&+sl+i6foAn-**Zd1{_;Zb7Ki=u394C5J{l^H@XN`_6XTKY%X1AgQM6KycJ+= zYO=&t#5oSKB^pYhNdzPgH~aEGW2=ec1O#s-KG z71}LOg@4UEFtp3GY1PBemXpNs6UK-ax*)#$J^pC_me;Z$Je(OqLoh|ZrW*mAMBFn< zHttjwC&fkVfMnQeen8`Rvy^$pNRFVaiEN4Pih*Y3@jo!T0nsClN)pdrr9AYLcZxZ| zJ5Wlj+4q~($hbtuY zVQ7hl>4-+@6g1i`1a)rvtp-;b0>^`Dloy(#{z~ytgv=j4q^Kl}wD>K_Y!l~ zp(_&7sh`vfO(1*MO!B%<6E_bx1)&s+Ae`O)a|X=J9y~XDa@UB`m)`tSG4AUhoM=5& znWoHlA-(z@3n0=l{E)R-p8sB9XkV zZ#D8wietfHL?J5X0%&fGg@MH~(rNS2`GHS4xTo7L$>TPme+Is~!|79=^}QbPF>m%J zFMkGzSndiPO|E~hrhCeo@&Ea{M(ieIgRWMf)E}qeTxT8Q#g-!Lu*x$v8W^M^>?-g= zwMJ$dThI|~M06rG$Sv@C@tWR>_YgaG&!BAbkGggVQa#KdtDB)lMLNVLN|51C@F^y8 zCRvMB^{GO@j=cHfmy}_pCGbP%xb{pNN>? z?7tBz$1^zVaP|uaatYaIN+#xEN4jBzwZ|YI_)p(4CUAz1ZEbDk>J~Y|63SZaak~#0 zoYKruYsWHoOlC1(MhTnsdUOwQfz5p6-D0}4;DO$B;7#M{3lSE^jnTT;ns`>!G%i*F?@pR1JO{QTuD0U+~SlZxcc8~>IB{)@8p`P&+nDxNj`*gh|u?yrv$phpQcW)Us)bi`kT%qLj(fi{dWRZ%Es2!=3mI~UxiW0$-v3vUl?#g{p6eF zMEUAqo5-L0Ar(s{VlR9g=j7+lt!gP!UN2ICMokAZ5(Agd>})#gkA2w|5+<%-CuEP# zqgcM}u@3(QIC^Gx<2dbLj?cFSws_f3e%f4jeR?4M^M3cx1f+Qr6ydQ>n)kz1s##2w zk}UyQc+Z5G-d-1}{WzjkLXgS-2P7auWSJ%pSnD|Uivj5u!xk0 z_^-N9r9o;(rFDt~q1PvE#iJZ_f>J3gcP$)SOqhE~pD2|$=GvpL^d!r z6u=sp-CrMoF7;)}Zd7XO4XihC4ji?>V&(t^?@3Q&t9Mx=qex6C9d%{FE6dvU6%d94 zIE;hJ1J)cCqjv?F``7I*6bc#X)JW2b4f$L^>j{*$R`%5VHFi*+Q$2;nyieduE}qdS{L8y8F08yLs?w}{>8>$3236T-VMh@B zq-nujsb_1aUv_7g#)*rf9h%sFj*^mIcImRV*k~Vmw;%;YH(&ylYpy!&UjUVqqtfG` zox3esju?`unJJA_zKXRJP)rA3nXc$m^{S&-p|v|-0x9LHJm;XIww7C#R$?00l&Yyj z=e}gKUOpsImwW?N)+E(awoF@HyP^EhL+GlNB#k?R<2>95hz!h9sF@U20DHSB3~WMa zk90+858r@-+vWwkawJ)8ougd(i#1m3GLN{iSTylYz$brAsP%=&m$mQQrH$g%3-^VR zE%B`Vi&m8f3T~&myTEK28BDWCVzfWir1I?03;pX))|kY5ClO^+bae z*7E?g=3g7EiisYOrE+lA)2?Ln6q2*HLNpZEWMB|O-JI_oaHZB%CvYB(%=tU= zE*OY%QY58fW#RG5=gm0NR#iMB=EuNF@)%oZJ}nmm=tsJ?eGjia{e{yuU0l3{d^D@)kVDt=1PE)&tf_hHC%0MB znL|CRCPC}SeuVTdf>-QV70`0(EHizc21s^sU>y%hW0t!0&y<7}Wi-wGy>m%(-jsDj zP?mF|>p_K>liZ6ZP(w5(|9Ga%>tLgb$|doDDfkdW>Z z`)>V2XC?NJT26mL^@ zf+IKr27TfM!UbZ@?zRddC7#6ss1sw%CXJ4FWC+t3lHZupzM77m^=9 z&(a?-LxIq}*nvv)y?27lZ{j zifdl9hyJudyP2LpU$-kXctshbJDKS{WfulP5Dk~xU4Le4c#h^(YjJit4#R8_khheS z|8(>2ibaHES4+J|DBM7I#QF5u-*EdN{n=Kt@4Zt?@Tv{JZA{`4 zU#kYOv{#A&gGPwT+$Ud}AXlK3K7hYzo$(fBSFjrP{QQ zeaKg--L&jh$9N}`pu{Bs>?eDFPaWY4|9|foN%}i;3%;@4{dc+iw>m}{3rELqH21G! z`8@;w-zsJ1H(N3%|1B@#ioLOjib)j`EiJqPQVSbPSPVHCj6t5J&(NcWzBrzCiDt{4 zdlPAUKldz%6x5II1H_+jv)(xVL+a;P+-1hv_pM>gMRr%04@k;DTokASSKKhU1Qms| zrWh3a!b(J3n0>-tipg{a?UaKsP7?+|@A+1WPDiQIW1Sf@qDU~M_P65_s}7(gjTn0X zucyEm)o;f8UyshMy&>^SC3I|C6jR*R_GFwGranWZe*I>K+0k}pBuET&M~ z;Odo*ZcT?ZpduHyrf8E%IBFtv;JQ!N_m>!sV6ly$_1D{(&nO~w)G~Y`7sD3#hQk%^ zp}ucDF_$!6DAz*PM8yE(&~;%|=+h(Rn-=1Wykas_-@d&z#=S}rDf`4w(rVlcF&lF! z=1)M3YVz7orwk^BXhslJ8jR);sh^knJW(Qmm(QdSgIAIdlN4Te5KJisifjr?eB{FjAX1a0AB>d?qY4Wx>BZ8&}5K0fA+d{l8 z?^s&l8#j7pR&ijD?0b%;lL9l$P_mi2^*_OL+b}4kuLR$GAf85sOo02?Y#90}CCDiS zZ%rbCw>=H~CBO=C_JVV=xgDe%b4FaEFtuS7Q1##y686r%F6I)s-~2(}PWK|Z8M+Gu zl$y~5@#0Ka%$M<&Cv%L`a8X^@tY&T7<0|(6dNT=EsRe0%kp1Qyq!^43VAKYnr*A5~ zsI%lK1ewqO;0TpLrT9v}!@vJK{QoVa_+N4FYT#h?Y8rS1S&-G+m$FNMP?(8N`MZP zels(*?kK{{^g9DOzkuZXJ2;SrOQsp9T$hwRB1(phw1c7`!Q!by?Q#YsSM#I12RhU{$Q+{xj83axHcftEc$mNJ8_T7A-BQc*k(sZ+~NsO~xAA zxnbb%dam_fZlHvW7fKXrB~F&jS<4FD2FqY?VG?ix*r~MDXCE^WQ|W|WM;gsIA4lQP zJ2hAK@CF*3*VqPr2eeg6GzWFlICi8S>nO>5HvWzyZTE)hlkdC_>pBej*>o0EOHR|) z$?};&I4+_?wvL*g#PJ9)!bc#9BJu1(*RdNEn>#Oxta(VWeM40ola<0aOe2kSS~{^P zDJBd}0L-P#O-CzX*%+$#v;(x%<*SPgAje=F{Zh-@ucd2DA(yC|N_|ocs*|-!H%wEw z@Q!>siv2W;C^^j^59OAX03&}&D*W4EjCvfi(ygcL#~t8XGa#|NPO+*M@Y-)ctFA@I z-p7npT1#5zOLo>7q?aZpCZ=iecn3QYklP;gF0bq@>oyBq94f6C=;Csw3PkZ|5q=(c zfs`aw?II0e(h=|7o&T+hq&m$; zBrE09Twxd9BJ2P+QPN}*OdZ-JZV7%av@OM7v!!NL8R;%WFq*?{9T3{ct@2EKgc8h) zMxoM$SaF#p<`65BwIDfmXG6+OiK0e)`I=!A3E`+K@61f}0e z!2a*FOaDrOe>U`q%K!QN`&=&0C~)CaL3R4VY(NDt{Xz(Xpqru5=r#uQN1L$Je1*dkdqQ*=lofQaN%lO!<5z9ZlHgxt|`THd>2 zsWfU$9=p;yLyJyM^t zS2w9w?Bpto`@H^xJpZDKR1@~^30Il6oFGfk5%g6w*C+VM)+%R@gfIwNprOV5{F^M2 zO?n3DEzpT+EoSV-%OdvZvNF+pDd-ZVZ&d8 zKeIyrrfPN=EcFRCPEDCVflX#3-)Ik_HCkL(ejmY8vzcf-MTA{oHk!R2*36`O68$7J zf}zJC+bbQk--9Xm!u#lgLvx8TXx2J258E5^*IZ(FXMpq$2LUUvhWQPs((z1+2{Op% z?J}9k5^N=z;7ja~zi8a_-exIqWUBJwohe#4QJ`|FF*$C{lM18z^#hX6!5B8KAkLUX ziP=oti-gpV(BsLD{0(3*dw}4JxK23Y7M{BeFPucw!sHpY&l%Ws4pSm`+~V7;bZ%Dx zeI)MK=4vC&5#;2MT7fS?^ch9?2;%<8Jlu-IB&N~gg8t;6S-#C@!NU{`p7M8@2iGc& zg|JPg%@gCoCQ&s6JvDU&`X2S<57f(k8nJ1wvBu{8r?;q3_kpZZ${?|( z+^)UvR33sjSd)aT!UPkA;ylO6{aE3MQa{g%Mcf$1KONcjO@&g5zPHWtzM1rYC{_K> zgQNcs<{&X{OA=cEWw5JGqpr0O>x*Tfak2PE9?FuWtz^DDNI}rwAaT0(bdo-<+SJ6A z&}S%boGMWIS0L}=S>|-#kRX;e^sUsotry(MjE|3_9duvfc|nwF#NHuM-w7ZU!5ei8 z6Mkf>2)WunY2eU@C-Uj-A zG(z0Tz2YoBk>zCz_9-)4a>T46$(~kF+Y{#sA9MWH%5z#zNoz)sdXq7ZR_+`RZ%0(q zC7&GyS_|BGHNFl8Xa%@>iWh%Gr?=J5<(!OEjauj5jyrA-QXBjn0OAhJJ9+v=!LK`` z@g(`^*84Q4jcDL`OA&ZV60djgwG`|bcD*i50O}Q{9_noRg|~?dj%VtKOnyRs$Uzqg z191aWoR^rDX#@iSq0n z?9Sg$WSRPqSeI<}&n1T3!6%Wj@5iw5`*`Btni~G=&;J+4`7g#OQTa>u`{4ZZ(c@s$ zK0y;ySOGD-UTjREKbru{QaS>HjN<2)R%Nn-TZiQ(Twe4p@-saNa3~p{?^V9Nixz@a zykPv~<@lu6-Ng9i$Lrk(xi2Tri3q=RW`BJYOPC;S0Yly%77c727Yj-d1vF!Fuk{Xh z)lMbA69y7*5ufET>P*gXQrxsW+ zz)*MbHZv*eJPEXYE<6g6_M7N%#%mR{#awV3i^PafNv(zyI)&bH?F}2s8_rR(6%!V4SOWlup`TKAb@ee>!9JKPM=&8g#BeYRH9FpFybxBXQI2|g}FGJfJ+ zY-*2hB?o{TVL;Wt_ek;AP5PBqfDR4@Z->_182W z{P@Mc27j6jE*9xG{R$>6_;i=y{qf(c`5w9fa*`rEzX6t!KJ(p1H|>J1pC-2zqWENF zmm=Z5B4u{cY2XYl(PfrInB*~WGWik3@1oRhiMOS|D;acnf-Bs(QCm#wR;@Vf!hOPJ zgjhDCfDj$HcyVLJ=AaTbQ{@vIv14LWWF$=i-BDoC11}V;2V8A`S>_x)vIq44-VB-v z*w-d}$G+Ql?En8j!~ZkCpQ$|cA0|+rrY>tiCeWxkRGPoarxlGU2?7%k#F693RHT24 z-?JsiXlT2PTqZqNb&sSc>$d;O4V@|b6VKSWQb~bUaWn1Cf0+K%`Q&Wc<>mQ>*iEGB zbZ;aYOotBZ{vH3y<0A*L0QVM|#rf*LIsGx(O*-7)r@yyBIzJnBFSKBUSl1e|8lxU* zzFL+YDVVkIuzFWeJ8AbgN&w(4-7zbiaMn{5!JQXu)SELk*CNL+Fro|2v|YO)1l15t zs(0^&EB6DPMyaqvY>=KL>)tEpsn;N5Q#yJj<9}ImL((SqErWN3Q=;tBO~ExTCs9hB z2E$7eN#5wX4<3m^5pdjm#5o>s#eS_Q^P)tm$@SawTqF*1dj_i#)3};JslbLKHXl_N z)Fxzf>FN)EK&Rz&*|6&%Hs-^f{V|+_vL1S;-1K-l$5xiC@}%uDuwHYhmsV?YcOUlk zOYkG5v2+`+UWqpn0aaaqrD3lYdh0*!L`3FAsNKu=Q!vJu?Yc8n|CoYyDo_`r0mPoo z8>XCo$W4>l(==h?2~PoRR*kEe)&IH{1sM41mO#-36`02m#nTX{r*r`Q5rZ2-sE|nA zhnn5T#s#v`52T5|?GNS`%HgS2;R(*|^egNPDzzH_z^W)-Q98~$#YAe)cEZ%vge965AS_am#DK#pjPRr-!^za8>`kksCAUj(Xr*1NW5~e zpypt_eJpD&4_bl_y?G%>^L}=>xAaV>KR6;^aBytqpiHe%!j;&MzI_>Sx7O%F%D*8s zSN}cS^<{iiK)=Ji`FpO#^zY!_|D)qeRNAtgmH)m;qC|mq^j(|hL`7uBz+ULUj37gj zksdbnU+LSVo35riSX_4z{UX=%n&}7s0{WuZYoSfwAP`8aKN9P@%e=~1`~1ASL-z%# zw>DO&ixr}c9%4InGc*_y42bdEk)ZdG7-mTu0bD@_vGAr*NcFoMW;@r?@LUhRI zCUJgHb`O?M3!w)|CPu~ej%fddw20lod?Ufp8Dmt0PbnA0J%KE^2~AIcnKP()025V> zG>noSM3$5Btmc$GZoyP^v1@Poz0FD(6YSTH@aD0}BXva?LphAiSz9f&Y(aDAzBnUh z?d2m``~{z;{}kZJ>a^wYI?ry(V9hIoh;|EFc0*-#*`$T0DRQ1;WsqInG;YPS+I4{g zJGpKk%%Sdc5xBa$Q^_I~(F97eqDO7AN3EN0u)PNBAb+n+ zWBTxQx^;O9o0`=g+Zrt_{lP!sgWZHW?8bLYS$;1a@&7w9rD9|Ge;Gb?sEjFoF9-6v z#!2)t{DMHZ2@0W*fCx;62d#;jouz`R5Y(t{BT=$N4yr^^o$ON8d{PQ=!O zX17^CrdM~7D-;ZrC!||<+FEOxI_WI3CA<35va%4v>gc zEX-@h8esj=a4szW7x{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1* znV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI z##W$P9M{B3c3Si9gw^jlPU-JqD~Cye;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP> zrp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ueg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{ zlB`9HUl-WWCG|<1XANN3JVAkRYvr5U4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvx zK%p23>M&=KTCgR!Ee8c?DAO2_R?B zkaqr6^BSP!8dHXxj%N1l+V$_%vzHjqvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rU zHfcog>kv3UZAEB*g7Er@t6CF8kHDmKTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B zZ+jjWgjJ!043F+&#_;D*mz%Q60=L9Ove|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw- z19qI#oB(RSNydn0t~;tAmK!P-d{b-@@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^8 z2zk8VXx|>#R^JCcWdBCy{0nPmYFOxN55#^-rlqobe0#L6)bi?E?SPymF*a5oDDeSd zO0gx?#KMoOd&G(2O@*W)HgX6y_aa6iMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H z`oa=g0SyiLd~BxAj2~l$zRSDHxvDs;I4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*( ze-417=bO2q{492SWrqDK+L3#ChUHtz*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEX zATx4K*hcO`sY$jk#jN5WD<=C3nvuVsRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_ zl3F^#f_rDu8l}l8qcAz0FFa)EAt32IUy_JLIhU_J^l~FRH&6-ivSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPm zZi-noqS!^Ftb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@ zfFGJtW3r>qV>1Z0r|L>7I3un^gcep$AAWfZHRvB|E*kktY$qQP_$YG60C@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn` zEgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czP zg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-&SFp;!k?uFayytV$8HPwuyELSXOs^27XvK-D zOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2S43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@ zK^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf z9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^&X%=?`6lCy~?`&WSWt z?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6VjA#>1f@EYiS8MRHZphp zMA_5`znM=pzUpBPO)pXGYpQ6gkine{6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ z<1SE2Edkfk9C!0t%}8Yio09^F`YGzpaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8p zT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{eSyybt)m<=zXoA^RALYG-2t zouH|L*BLvmm9cdMmn+KGopyR@4*=&0&4g|FLoreZOhRmh=)R0bg~ zT2(8V_q7~42-zvb)+y959OAv!V$u(O3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+ zMWQoJI_r$HxL5km1#6(e@{lK3Udc~n0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai< z6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF# zMnbr-f55(cTa^q4+#)=s+ThMaV~E`B8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg% zbOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$18Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9Sq zuGh<9<=AO&g6BZte6hn>Qmvv;Rt)*cJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapi zPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wB zxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5o}_(P;=!y-AjFrERh%8la!z6Fn@lR?^E~H12D?8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2 zwG1|5ikb^qHv&9hT8w83+yv&BQXOQyMVJSBL(Ky~p)gU3#%|blG?IR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-} z9?*x{y(`509qhCV*B47f2hLrGl^<@SuRGR!KwHei?!CM10Tq*YDIoBNyRuO*>3FU? zHjipIE#B~y3FSfOsMfj~F9PNr*H?0oHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R% zrq|ic4fzJ#USpTm;X7K+E%xsT_3VHKe?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>Jm ziU#?2^`>arnsl#)*R&nf_%>A+qwl%o{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVD zM8AI6MM2V*^_M^sQ0dmHu11fy^kOqXqzpr?K$`}BKWG`=Es(9&S@K@)ZjA{lj3ea7_MBP zk(|hBFRjHVMN!sNUkrB;(cTP)T97M$0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5 zI7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIo zIZSVls9kFGsTwvr4{T_LidcWtt$u{kJlW7moRaH6+A5hW&;;2O#$oKyEN8kx`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41Uw z`P+tft^E2B$domKT@|nNW`EHwyj>&}K;eDpe z1bNOh=fvIfk`&B61+S8ND<(KC%>y&?>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xo zaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$itm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H z?n6^}l{D``Me90`^o|q!olsF?UX3YSq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfw zR!gX_%AR=L3BFsf8LxI|K^J}deh0ZdV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z z-G6kzA01M?rba+G_mwNMQD1mbVbNTWmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bA zv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$ z8p_}t*XIOehezolNa-a2x0BS})Y9}&*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWK zDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~VCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjMsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3 z-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$)WL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>I zgy8p#i4GN{>#v=pFYUQT(g&b$OeTy-X_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6< znXs{W!bkP|s_YI*Yx%4stI`=ZO45IK6rBs`g7sP40ic}GZ58s?Mc$&i`kq_tfci>N zIHrC0H+Qpam1bNa=(`SRKjixBTtm&e`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_ z%7SUeH6=TrXt3J@js`4iDD0=IoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bUpX9ATD#moByY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOx zXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+pmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X z?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L z*&?(77!-=zvnCVW&kUcZMb6;2!83si518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j( ziTaS4HhQ)ldR=r)_7vYFUr%THE}cPF{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVA zdDZRybv?H|>`9f$AKVjFWJ=wegO7hOOIYCtd?Vj{EYLT*^gl35|HQ`R=ti+ADm{jyQE7K@kdjuqJhWVSks>b^ zxha88-h3s;%3_5b1TqFCPTxVjvuB5U>v=HyZ$?JSk+&I%)M7KE*wOg<)1-Iy)8-K! z^XpIt|0ibmk9RtMmlUd7#Ap3Q!q9N4atQy)TmrhrFhfx1DAN`^vq@Q_SRl|V z#lU<~n67$mT)NvHh`%als+G-)x1`Y%4Bp*6Un5Ri9h=_Db zA-AdP!f>f0m@~>7X#uBM?diI@)Egjuz@jXKvm zJo+==juc9_<;CqeRaU9_Mz@;3e=E4=6TK+c`|uu#pIqhSyNm`G(X)&)B`8q0RBv#> z`gGlw(Q=1Xmf55VHj%C#^1lpc>LY8kfA@|rlC1EA<1#`iuyNO z(=;irt{_&K=i4)^x%;U(Xv<)+o=dczC5H3W~+e|f~{*ucxj@{Yi-cw^MqYr3fN zF5D+~!wd$#al?UfMnz(@K#wn`_5na@rRr8XqN@&M&FGEC@`+OEv}sI1hw>Up0qAWf zL#e4~&oM;TVfjRE+10B_gFlLEP9?Q-dARr3xi6nQqnw>k-S;~b z;!0s2VS4}W8b&pGuK=7im+t(`nz@FnT#VD|!)eQNp-W6)@>aA+j~K*H{$G`y2|QHY z|Hmy+CR@#jWY4~)lr1qBJB_RfHJFfP<}pK5(#ZZGSqcpyS&}01LnTWk5fzmXMGHkJ zTP6L^B+uj;lmB_W<~4=${+v0>z31M!-_O@o-O9GyW)j_mjx}!0@br_LE-7SIuPP84 z;5=O(U*g_um0tyG|61N@d9lEuOeiRd+#NY^{nd5;-CVlw&Ap7J?qwM^?E29wvS}2d zbzar4Fz&RSR(-|s!Z6+za&Z zY#D<5q_JUktIzvL0)yq_kLWG6DO{ri=?c!y!f(Dk%G{8)k`Gym%j#!OgXVDD3;$&v@qy#ISJfp=Vm>pls@9-mapVQChAHHd-x+OGx)(*Yr zC1qDUTZ6mM(b_hi!TuFF2k#8uI2;kD70AQ&di$L*4P*Y-@p`jdm%_c3f)XhYD^6M8&#Y$ZpzQMcR|6nsH>b=*R_Von!$BTRj7yGCXokoAQ z&ANvx0-Epw`QIEPgI(^cS2f(Y85yV@ygI{ewyv5Frng)e}KCZF7JbR(&W618_dcEh(#+^zZFY;o<815<5sOHQdeax9_!PyM&;{P zkBa5xymca0#)c#tke@3KNEM8a_mT&1gm;p&&JlMGH(cL(b)BckgMQ^9&vRwj!~3@l zY?L5}=Jzr080OGKb|y`ee(+`flQg|!lo6>=H)X4`$Gz~hLmu2a%kYW_Uu8x09Pa0J zKZ`E$BKJ=2GPj_3l*TEcZ*uYRr<*J^#5pILTT;k_cgto1ZL-%slyc16J~OH-(RgDA z%;EjEnoUkZ&acS{Q8`{i6T5^nywgqQI5bDIymoa7CSZG|WWVk>GM9)zy*bNih|QIm z%0+(Nnc*a_xo;$=!HQYaapLms>J1ToyjtFByY`C2H1wT#178#4+|{H0BBqtCdd$L% z_3Hc60j@{t9~MjM@LBalR&6@>B;9?r<7J~F+WXyYu*y3?px*=8MAK@EA+jRX8{CG?GI-< z54?Dc9CAh>QTAvyOEm0^+x;r2BWX|{3$Y7)L5l*qVE*y0`7J>l2wCmW zL1?|a`pJ-l{fb_N;R(Z9UMiSj6pQjOvQ^%DvhIJF!+Th7jO2~1f1N+(-TyCFYQZYw z4)>7caf^Ki_KJ^Zx2JUb z&$3zJy!*+rCV4%jqwyuNY3j1ZEiltS0xTzd+=itTb;IPYpaf?8Y+RSdVdpacB(bVQ zC(JupLfFp8y43%PMj2}T|VS@%LVp>hv4Y!RPMF?pp8U_$xCJ)S zQx!69>bphNTIb9yn*_yfj{N%bY)t{L1cs8<8|!f$;UQ*}IN=2<6lA;x^(`8t?;+ST zh)z4qeYYgZkIy{$4x28O-pugO&gauRh3;lti9)9Pvw+^)0!h~%m&8Q!AKX%urEMnl z?yEz?g#ODn$UM`+Q#$Q!6|zsq_`dLO5YK-6bJM6ya>}H+vnW^h?o$z;V&wvuM$dR& zeEq;uUUh$XR`TWeC$$c&Jjau2it3#%J-y}Qm>nW*s?En?R&6w@sDXMEr#8~$=b(gk zwDC3)NtAP;M2BW_lL^5ShpK$D%@|BnD{=!Tq)o(5@z3i7Z){} zGr}Exom_qDO{kAVkZ*MbLNHE666Kina#D{&>Jy%~w7yX$oj;cYCd^p9zy z8*+wgSEcj$4{WxKmCF(5o7U4jqwEvO&dm1H#7z}%VXAbW&W24v-tS6N3}qrm1OnE)fUkoE8yMMn9S$?IswS88tQWm4#Oid#ckgr6 zRtHm!mfNl-`d>O*1~d7%;~n+{Rph6BBy^95zqI{K((E!iFQ+h*C3EsbxNo_aRm5gj zKYug($r*Q#W9`p%Bf{bi6;IY0v`pB^^qu)gbg9QHQ7 zWBj(a1YSu)~2RK8Pi#C>{DMlrqFb9e_RehEHyI{n?e3vL_}L>kYJC z_ly$$)zFi*SFyNrnOt(B*7E$??s67EO%DgoZL2XNk8iVx~X_)o++4oaK1M|ou73vA0K^503j@uuVmLcHH4ya-kOIDfM%5%(E z+Xpt~#7y2!KB&)PoyCA+$~DXqxPxxALy!g-O?<9+9KTk4Pgq4AIdUkl`1<1#j^cJg zgU3`0hkHj_jxV>`Y~%LAZl^3o0}`Sm@iw7kwff{M%VwtN)|~!p{AsfA6vB5UolF~d zHWS%*uBDt<9y!9v2Xe|au&1j&iR1HXCdyCjxSgG*L{wmTD4(NQ=mFjpa~xooc6kju z`~+d{j7$h-;HAB04H!Zscu^hZffL#9!p$)9>sRI|Yovm)g@F>ZnosF2EgkU3ln0bR zTA}|+E(tt)!SG)-bEJi_0m{l+(cAz^pi}`9=~n?y&;2eG;d9{M6nj>BHGn(KA2n|O zt}$=FPq!j`p&kQ8>cirSzkU0c08%8{^Qyqi-w2LoO8)^E7;;I1;HQ6B$u0nNaX2CY zSmfi)F`m94zL8>#zu;8|{aBui@RzRKBlP1&mfFxEC@%cjl?NBs`cr^nm){>;$g?rhKr$AO&6qV_Wbn^}5tfFBry^e1`%du2~o zs$~dN;S_#%iwwA_QvmMjh%Qo?0?rR~6liyN5Xmej8(*V9ym*T`xAhHih-v$7U}8=dfXi2i*aAB!xM(Xekg*ix@r|ymDw*{*s0?dlVys2e)z62u1 z+k3esbJE=-P5S$&KdFp+2H7_2e=}OKDrf( z9-207?6$@f4m4B+9E*e((Y89!q?zH|mz_vM>kp*HGXldO0Hg#!EtFhRuOm$u8e~a9 z5(roy7m$Kh+zjW6@zw{&20u?1f2uP&boD}$#Zy)4o&T;vyBoqFiF2t;*g=|1=)PxB z8eM3Mp=l_obbc?I^xyLz?4Y1YDWPa+nm;O<$Cn;@ane616`J9OO2r=rZr{I_Kizyc zP#^^WCdIEp*()rRT+*YZK>V@^Zs=ht32x>Kwe zab)@ZEffz;VM4{XA6e421^h~`ji5r%)B{wZu#hD}f3$y@L0JV9f3g{-RK!A?vBUA}${YF(vO4)@`6f1 z-A|}e#LN{)(eXloDnX4Vs7eH|<@{r#LodP@Nz--$Dg_Par%DCpu2>2jUnqy~|J?eZ zBG4FVsz_A+ibdwv>mLp>P!(t}E>$JGaK$R~;fb{O3($y1ssQQo|5M;^JqC?7qe|hg zu0ZOqeFcp?qVn&Qu7FQJ4hcFi&|nR!*j)MF#b}QO^lN%5)4p*D^H+B){n8%VPUzi! zDihoGcP71a6!ab`l^hK&*dYrVYzJ0)#}xVrp!e;lI!+x+bfCN0KXwUAPU9@#l7@0& QuEJmfE|#`Dqx|px0L@K;Y5)KL diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a25..b82aa23a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 005bcde0..9d0ce634 100644 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -69,37 +69,35 @@ app_path=$0 # Need this for daisy-chained symlinks. while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] +APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path +[ -h "$app_path" ] do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac +ls=$( ls -ld "$app_path" ) +link=${ls#*' -> '} +case $link in #( +/*) app_path=$link ;; #( +*) app_path=$APP_HOME$link ;; +esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { - echo "$*" +echo "$*" } >&2 die () { - echo - echo "$*" - echo - exit 1 +echo +echo "$*" +echo +exit 1 } >&2 # OS specific support (must be 'true' or 'false'). @@ -108,10 +106,10 @@ msys=false darwin=false nonstop=false case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; +CYGWIN* ) cygwin=true ;; #( +Darwin* ) darwin=true ;; #( +MSYS* | MINGW* ) msys=true ;; #( +NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -119,39 +117,46 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME +if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# IBM's JDK on AIX uses strange locations for the executables +JAVACMD=$JAVA_HOME/jre/sh/java +else +JAVACMD=$JAVA_HOME/bin/java +fi +if [ ! -x "$JAVACMD" ] ; then +die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." - fi +fi else - JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +JAVACMD=java +if ! command -v java >/dev/null 2>&1 +then +die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi +fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac +case $MAX_FD in #( +max*) +# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +MAX_FD=$( ulimit -H -n ) || +warn "Could not query maximum file descriptor limit" +esac +case $MAX_FD in #( +'' | soft) :;; #( +*) +# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +ulimit -n "$MAX_FD" || +warn "Could not set maximum file descriptor limit to $MAX_FD" +esac fi # Collect all arguments for the java command, stacking in reverse order: @@ -164,46 +169,56 @@ fi # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done +APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) +CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + +JAVACMD=$( cygpath --unix "$JAVACMD" ) + +# Now convert the arguments - kludge to limit ourselves to /bin/sh +for arg do +if +case $arg in #( +-*) false ;; # don't mess with options #( +/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath +[ -e "$t" ] ;; #( +*) false ;; +esac +then +arg=$( cygpath --path --ignore --mixed "$arg" ) +fi +# Roll the args list around exactly as many times as the number of +# args, so each arg winds up back in the position where it started, but +# possibly modified. +# +# NB: a `for` loop captures its iteration list before it begins, so +# changing the positional parameters here affects neither the number of +# iterations, nor the values presented in `arg`. +shift # remove old arg +set -- "$@" "$arg" # push replacement arg +done fi -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" +"-Dorg.gradle.appname=$APP_BASE_NAME" \ +-classpath "$CLASSPATH" \ +org.gradle.wrapper.GradleWrapperMain \ +"$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then +die "xargs is not available" +fi # Use "xargs" to parse quoted args. # @@ -225,10 +240,10 @@ set -- \ # eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' +printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | +xargs -n1 | +sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | +tr '\n' ' ' +)" '"$@"' exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 6a68175e..25da30db 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -33,20 +34,20 @@ set APP_HOME=%DIRNAME% for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/pom.xml b/pom.xml index 083ce605..7099e6fe 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 11.2.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. @@ -19,11 +19,11 @@ Whether you're working on a cryptocurrency exchange, wallet application, or ossrh - https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots ossrh - https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/ + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ @@ -70,7 +70,7 @@ Whether you're working on a cryptocurrency exchange, wallet application, or maven-surefire-plugin - 3.0.0-M7 + 3.2.5 conf/log4j.properties @@ -179,7 +179,7 @@ Whether you're working on a cryptocurrency exchange, wallet application, or true ossrh - https://ossrh-staging-api.central.sonatype.com/ + https://s01.oss.sonatype.org/ true @@ -240,7 +240,6 @@ Whether you're working on a cryptocurrency exchange, wallet application, or ${jakarta-annotation-version} provided - com.auth0 java-jwt @@ -272,9 +271,10 @@ Whether you're working on a cryptocurrency exchange, wallet application, or UTF-8 11 11 - 2.15.2 + 2.17.1 0.2.6 - 2.1.1 + 2.1.1 + 3.0.2 4.13.2 2.27.2 4.1.0 diff --git a/src/main/java/com/fireblocks/sdk/ApiClient.java b/src/main/java/com/fireblocks/sdk/ApiClient.java index b94a0ea1..b00ef939 100644 --- a/src/main/java/com/fireblocks/sdk/ApiClient.java +++ b/src/main/java/com/fireblocks/sdk/ApiClient.java @@ -49,22 +49,24 @@ *

The setter methods of this class return the current object to facilitate a fluent style of * configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ApiClient { - private HttpClient.Builder builder; - private ObjectMapper mapper; - private String scheme; - private String host; - private int port; - private String basePath; - private Consumer interceptor; - private Consumer> responseInterceptor; - private Consumer> asyncResponseInterceptor; - private Duration readTimeout; - private Duration connectTimeout; - - private static String valueToString(Object value) { + protected HttpClient.Builder builder; + protected ObjectMapper mapper; + protected String scheme; + protected String host; + protected int port; + protected String basePath; + protected Consumer interceptor; + protected Consumer> responseInterceptor; + protected Consumer> asyncResponseInterceptor; + protected Duration readTimeout; + protected Duration connectTimeout; + + public static String valueToString(Object value) { if (value == null) { return ""; } @@ -185,7 +187,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri asyncResponseInterceptor = null; } - protected ObjectMapper createDefaultObjectMapper() { + public static ObjectMapper createDefaultObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -195,6 +197,7 @@ protected ObjectMapper createDefaultObjectMapper() { mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); mapper.registerModule(new JavaTimeModule()); + mapper.registerModule(new RFC3339JavaTimeModule()); return mapper; } @@ -202,11 +205,11 @@ protected String getDefaultBaseUri() { return "https://api.fireblocks.io/v1"; } - protected HttpClient.Builder createDefaultHttpClientBuilder() { + public static HttpClient.Builder createDefaultHttpClientBuilder() { return HttpClient.newBuilder(); } - public void updateBaseUri(String baseUri) { + public final void updateBaseUri(String baseUri) { URI uri = URI.create(baseUri); scheme = uri.getScheme(); host = uri.getHost(); diff --git a/src/main/java/com/fireblocks/sdk/ApiException.java b/src/main/java/com/fireblocks/sdk/ApiException.java index 8ec0848e..9fa8b6db 100644 --- a/src/main/java/com/fireblocks/sdk/ApiException.java +++ b/src/main/java/com/fireblocks/sdk/ApiException.java @@ -15,7 +15,9 @@ import java.net.http.HttpHeaders; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/fireblocks/sdk/ApiResponse.java b/src/main/java/com/fireblocks/sdk/ApiResponse.java index 41ce035c..cc9a0529 100644 --- a/src/main/java/com/fireblocks/sdk/ApiResponse.java +++ b/src/main/java/com/fireblocks/sdk/ApiResponse.java @@ -21,6 +21,9 @@ * * @param The type of data that is deserialized from response body */ +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ApiResponse { private final int statusCode; private final Map> headers; diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index 315a6d82..19e09ed9 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -12,11 +12,19 @@ package com.fireblocks.sdk; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") + +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Configuration { - public static final String VERSION = "11.2.0"; + public static final String VERSION = "0.0.0"; - private static ApiClient defaultApiClient = new ApiClient(); + private static final AtomicReference defaultApiClient = new AtomicReference<>(); + private static volatile Supplier apiClientFactory = ApiClient::new; /** * Get the default API client, which would be used when creating API instances without providing @@ -25,7 +33,18 @@ public class Configuration { * @return Default API client */ public static ApiClient getDefaultApiClient() { - return defaultApiClient; + ApiClient client = defaultApiClient.get(); + if (client == null) { + client = + defaultApiClient.updateAndGet( + val -> { + if (val != null) { // changed by another thread + return val; + } + return apiClientFactory.get(); + }); + } + return client; } /** @@ -35,6 +54,13 @@ public static ApiClient getDefaultApiClient() { * @param apiClient API client */ public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; + defaultApiClient.set(apiClient); } + + /** set the callback used to create new ApiClient objects */ + public static void setApiClientFactory(Supplier factory) { + apiClientFactory = Objects.requireNonNull(factory); + } + + private Configuration() {} } diff --git a/src/main/java/com/fireblocks/sdk/Fireblocks.java b/src/main/java/com/fireblocks/sdk/Fireblocks.java index 997f028d..372e4646 100644 --- a/src/main/java/com/fireblocks/sdk/Fireblocks.java +++ b/src/main/java/com/fireblocks/sdk/Fireblocks.java @@ -63,6 +63,7 @@ public class Fireblocks { private OtaBetaApi otaBeta; private PaymentsPayoutApi paymentsPayout; private PolicyEditorBetaApi policyEditorBeta; + private PolicyEditorV2BetaApi policyEditorV2Beta; private ResetDeviceApi resetDevice; private SmartTransferApi smartTransfer; private StakingApi staking; @@ -407,6 +408,13 @@ 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); diff --git a/src/main/java/com/fireblocks/sdk/JSON.java b/src/main/java/com/fireblocks/sdk/JSON.java index 11ae4788..c25f82ce 100644 --- a/src/main/java/com/fireblocks/sdk/JSON.java +++ b/src/main/java/com/fireblocks/sdk/JSON.java @@ -1,3 +1,15 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + package com.fireblocks.sdk; @@ -12,7 +24,9 @@ import java.util.Map; import java.util.Set; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class JSON { private ObjectMapper mapper; @@ -21,7 +35,7 @@ public JSON() { JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .disable(MapperFeature.ALLOW_COERCION_OF_SCALARS) - .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) @@ -66,6 +80,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { } /** Helper class to register the discriminator mappings. */ + @jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; diff --git a/src/main/java/com/fireblocks/sdk/Pair.java b/src/main/java/com/fireblocks/sdk/Pair.java index e69b9e82..23bb7a3f 100644 --- a/src/main/java/com/fireblocks/sdk/Pair.java +++ b/src/main/java/com/fireblocks/sdk/Pair.java @@ -12,7 +12,9 @@ package com.fireblocks.sdk; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java b/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java index 1b1cca55..ff976672 100644 --- a/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java +++ b/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java @@ -22,6 +22,9 @@ import java.util.GregorianCalendar; import java.util.TimeZone; +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RFC3339DateFormat extends DateFormat { private static final long serialVersionUID = 1L; private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); diff --git a/src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java b/src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java new file mode 100644 index 00000000..5f00d70d --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java @@ -0,0 +1,112 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk; + + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature; +import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer; +import java.io.IOException; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneId; +import java.time.ZonedDateTime; +import java.time.format.DateTimeFormatter; +import java.time.temporal.Temporal; +import java.time.temporal.TemporalAccessor; +import java.util.function.BiFunction; +import java.util.function.Function; + +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class RFC3339InstantDeserializer extends InstantDeserializer { + private static final long serialVersionUID = 1L; + private static final boolean DEFAULT_NORMALIZE_ZONE_ID = + JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault(); + private static final boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS = + JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault(); + + public static final RFC3339InstantDeserializer INSTANT = + new RFC3339InstantDeserializer<>( + Instant.class, + DateTimeFormatter.ISO_INSTANT, + Instant::from, + a -> Instant.ofEpochMilli(a.value), + a -> Instant.ofEpochSecond(a.integer, a.fraction), + null, + true, // yes, replace zero offset with Z + DEFAULT_NORMALIZE_ZONE_ID, + DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS); + + public static final RFC3339InstantDeserializer OFFSET_DATE_TIME = + new RFC3339InstantDeserializer<>( + OffsetDateTime.class, + DateTimeFormatter.ISO_OFFSET_DATE_TIME, + OffsetDateTime::from, + a -> OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId), + a -> + OffsetDateTime.ofInstant( + Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId), + (d, z) -> + (d.isEqual(OffsetDateTime.MIN) || d.isEqual(OffsetDateTime.MAX) + ? d + : d.withOffsetSameInstant( + z.getRules().getOffset(d.toLocalDateTime()))), + true, // yes, replace zero offset with Z + DEFAULT_NORMALIZE_ZONE_ID, + DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS); + + public static final RFC3339InstantDeserializer ZONED_DATE_TIME = + new RFC3339InstantDeserializer<>( + ZonedDateTime.class, + DateTimeFormatter.ISO_ZONED_DATE_TIME, + ZonedDateTime::from, + a -> ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId), + a -> + ZonedDateTime.ofInstant( + Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId), + ZonedDateTime::withZoneSameInstant, + false, // keep zero offset and Z separate since zones explicitly supported + DEFAULT_NORMALIZE_ZONE_ID, + DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS); + + protected RFC3339InstantDeserializer( + Class supportedType, + DateTimeFormatter formatter, + Function parsedToValue, + Function fromMilliseconds, + Function fromNanoseconds, + BiFunction adjust, + boolean replaceZeroOffsetAsZ, + boolean normalizeZoneId, + boolean readNumericStringsAsTimestamp) { + super( + supportedType, + formatter, + parsedToValue, + fromMilliseconds, + fromNanoseconds, + adjust, + replaceZeroOffsetAsZ, + normalizeZoneId, + readNumericStringsAsTimestamp); + } + + @Override + protected T _fromString(JsonParser p, DeserializationContext ctxt, String string0) + throws IOException { + return super._fromString(p, ctxt, string0.replace(' ', 'T')); + } +} diff --git a/src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java b/src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java new file mode 100644 index 00000000..aeb4d912 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java @@ -0,0 +1,34 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk; + + +import com.fasterxml.jackson.databind.module.SimpleModule; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZonedDateTime; + +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class RFC3339JavaTimeModule extends SimpleModule { + private static final long serialVersionUID = 1L; + + public RFC3339JavaTimeModule() { + super("RFC3339JavaTimeModule"); + + addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT); + addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME); + addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME); + } +} diff --git a/src/main/java/com/fireblocks/sdk/ServerConfiguration.java b/src/main/java/com/fireblocks/sdk/ServerConfiguration.java index 637a80a1..b24931cc 100644 --- a/src/main/java/com/fireblocks/sdk/ServerConfiguration.java +++ b/src/main/java/com/fireblocks/sdk/ServerConfiguration.java @@ -1,9 +1,24 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + package com.fireblocks.sdk; import java.util.Map; /** Representing a Server configuration. */ +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/fireblocks/sdk/ServerVariable.java b/src/main/java/com/fireblocks/sdk/ServerVariable.java index 326d6d67..33af2d59 100644 --- a/src/main/java/com/fireblocks/sdk/ServerVariable.java +++ b/src/main/java/com/fireblocks/sdk/ServerVariable.java @@ -1,9 +1,24 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + package com.fireblocks.sdk; import java.util.HashSet; /** Representing a Server Variable for server URL template substitution. */ +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java b/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java index 554d12f5..8d57d488 100644 --- a/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java @@ -30,7 +30,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ApiUserApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/AssetsApi.java b/src/main/java/com/fireblocks/sdk/api/AssetsApi.java index 47d535a9..ae819ecb 100644 --- a/src/main/java/com/fireblocks/sdk/api/AssetsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/AssetsApi.java @@ -31,7 +31,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java index 3ae1bc45..e6311dc8 100644 --- a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java @@ -33,7 +33,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AuditLogsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java index 52fa82ce..eeb1c221 100644 --- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java @@ -46,7 +46,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class BlockchainsAssetsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java index e59354fe..c9406418 100644 --- a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java @@ -19,6 +19,8 @@ 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; @@ -35,7 +37,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ComplianceApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -474,6 +478,89 @@ private HttpRequest.Builder retryRejectedTransactionBypassScreeningChecksRequest } 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. diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java index 3a971750..1ba32716 100644 --- a/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java @@ -29,7 +29,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ComplianceScreeningConfigurationApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java b/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java index bf2345da..4616e95d 100644 --- a/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java @@ -30,7 +30,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConsoleUserApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java index 93b69728..c3e21edb 100644 --- a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java @@ -38,7 +38,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractInteractionsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java b/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java index fe77e356..35185374 100644 --- a/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java @@ -40,7 +40,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractTemplatesApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/ContractsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractsApi.java index 6e84f577..eb15c742 100644 --- a/src/main/java/com/fireblocks/sdk/api/ContractsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ContractsApi.java @@ -34,7 +34,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java index 91532942..56c19163 100644 --- a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java @@ -47,7 +47,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CosignersBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java index 668904af..b627d06d 100644 --- a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java @@ -39,7 +39,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DeployedContractsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java index 2ee5d5b4..cdb640c3 100644 --- a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java @@ -47,7 +47,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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; diff --git a/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java b/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java index 163b2083..2929898f 100644 --- a/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java @@ -44,7 +44,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeAccountsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java index f62a44e5..18d51f6f 100644 --- a/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java @@ -35,7 +35,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExternalWalletsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java b/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java index 00a9ebef..f1cbd984 100644 --- a/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java @@ -34,7 +34,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class FiatAccountsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java b/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java index e356be15..ecf6e47e 100644 --- a/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java @@ -32,7 +32,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GasStationsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java index d2ea78f5..b3bd6130 100644 --- a/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java @@ -40,7 +40,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class InternalWalletsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java index 3996a14c..0bbd57c9 100644 --- a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java +++ b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java @@ -35,7 +35,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class JobManagementApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java index 52488501..52f2f351 100644 --- a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java @@ -44,7 +44,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class KeyLinkBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java index 17b1a733..5d675ecd 100644 --- a/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java @@ -30,7 +30,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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; diff --git a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java index 51b67a2e..38b5cf70 100644 --- a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java @@ -48,7 +48,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkConnectionsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/NftsApi.java b/src/main/java/com/fireblocks/sdk/api/NftsApi.java index 5fe48448..57a2eaca 100644 --- a/src/main/java/com/fireblocks/sdk/api/NftsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/NftsApi.java @@ -43,7 +43,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NftsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java b/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java index bca59bbf..ec6e8a6d 100644 --- a/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java +++ b/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java @@ -40,7 +40,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class OffExchangesApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java b/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java index fe0a6929..680bbef9 100644 --- a/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java @@ -32,7 +32,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class OtaBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java index 38ff7c44..a8f1f518 100644 --- a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java +++ b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java @@ -32,7 +32,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaymentsPayoutApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java index 783a6431..4c5bee9e 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.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 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 java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +34,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyEditorBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -73,18 +75,21 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * 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. + * 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. * - * @return CompletableFuture<ApiResponse<PolicyAndValidationResponse>> + * @return CompletableFuture<ApiResponse<LegacyPolicyAndValidationResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getActivePolicy() + public CompletableFuture> getActivePolicyLegacy() throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = getActivePolicyRequestBuilder(); + HttpRequest.Builder localVarRequestBuilder = getActivePolicyLegacyRequestBuilder(); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -94,12 +99,13 @@ public CompletableFuture> getActivePoli } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("getActivePolicy", localVarResponse)); + getApiException( + "getActivePolicyLegacy", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -107,7 +113,7 @@ public CompletableFuture> getActivePoli : memberVarObjectMapper.readValue( responseBody, new TypeReference< - PolicyAndValidationResponse>() {}))); + LegacyPolicyAndValidationResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -117,7 +123,7 @@ public CompletableFuture> getActivePoli } } - private HttpRequest.Builder getActivePolicyRequestBuilder() throws ApiException { + private HttpRequest.Builder getActivePolicyLegacyRequestBuilder() throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -137,18 +143,21 @@ private HttpRequest.Builder getActivePolicyRequestBuilder() throws ApiException return localVarRequestBuilder; } /** - * 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. + * 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. * - * @return CompletableFuture<ApiResponse<DraftReviewAndValidationResponse>> + * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getDraft() + public CompletableFuture> getDraftLegacy() throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = getDraftRequestBuilder(); + HttpRequest.Builder localVarRequestBuilder = getDraftLegacyRequestBuilder(); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -158,12 +167,12 @@ public CompletableFuture> getDraft } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("getDraft", localVarResponse)); + getApiException("getDraftLegacy", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -171,7 +180,7 @@ public CompletableFuture> getDraft : memberVarObjectMapper.readValue( responseBody, new TypeReference< - DraftReviewAndValidationResponse>() {}))); + LegacyDraftReviewAndValidationResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -181,7 +190,7 @@ public CompletableFuture> getDraft } } - private HttpRequest.Builder getDraftRequestBuilder() throws ApiException { + private HttpRequest.Builder getDraftLegacyRequestBuilder() throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -201,24 +210,28 @@ private HttpRequest.Builder getDraftRequestBuilder() throws ApiException { 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 TAP, + * 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. * - * @param publishDraftRequest (required) + * @param legacyPublishDraftRequest (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>> + * @return CompletableFuture<ApiResponse<LegacyPublishResult>> * @throws ApiException if fails to make API call */ - public CompletableFuture> publishDraft( - PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException { + public CompletableFuture> publishDraftLegacy( + LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - publishDraftRequestBuilder(publishDraftRequest, idempotencyKey); + publishDraftLegacyRequestBuilder(legacyPublishDraftRequest, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -228,12 +241,13 @@ public CompletableFuture> publishDraft( } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("publishDraft", localVarResponse)); + getApiException( + "publishDraftLegacy", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -241,7 +255,7 @@ public CompletableFuture> publishDraft( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - PublishResult>() {}))); + LegacyPublishResult>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -251,10 +265,11 @@ public CompletableFuture> publishDraft( } } - private HttpRequest.Builder publishDraftRequestBuilder( - PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException { + private HttpRequest.Builder publishDraftLegacyRequestBuilder( + LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) + throws ApiException { ValidationUtils.assertParamExists( - "publishDraft", "publishDraftRequest", publishDraftRequest); + "publishDraftLegacy", "legacyPublishDraftRequest", legacyPublishDraftRequest); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -269,7 +284,8 @@ private HttpRequest.Builder publishDraftRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(publishDraftRequest); + byte[] localVarPostBody = + memberVarObjectMapper.writeValueAsBytes(legacyPublishDraftRequest); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -290,18 +306,18 @@ private HttpRequest.Builder publishDraftRequestBuilder( * TAP, please contact your Fireblocks Customer Success Manager or send an email to * CSM@fireblocks.com. * - * @param policyRules (required) + * @param legacyPolicyRules (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>> + * @return CompletableFuture<ApiResponse<LegacyPublishResult>> * @throws ApiException if fails to make API call */ - public CompletableFuture> publishPolicyRules( - PolicyRules policyRules, String idempotencyKey) throws ApiException { + public CompletableFuture> publishPolicyRules( + LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - publishPolicyRulesRequestBuilder(policyRules, idempotencyKey); + publishPolicyRulesRequestBuilder(legacyPolicyRules, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -317,7 +333,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() @@ -325,7 +341,7 @@ public CompletableFuture> publishPolicyRules( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - PublishResult>() {}))); + LegacyPublishResult>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -336,8 +352,9 @@ public CompletableFuture> publishPolicyRules( } private HttpRequest.Builder publishPolicyRulesRequestBuilder( - PolicyRules policyRules, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("publishPolicyRules", "policyRules", policyRules); + LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExists( + "publishPolicyRules", "legacyPolicyRules", legacyPolicyRules); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -352,7 +369,7 @@ private HttpRequest.Builder publishPolicyRulesRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(policyRules); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -367,23 +384,26 @@ private HttpRequest.Builder publishPolicyRulesRequestBuilder( return localVarRequestBuilder; } /** - * 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. + * 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. * - * @param policyRules (required) + * @param legacyPolicyRules (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>> + * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> updateDraft( - PolicyRules policyRules, String idempotencyKey) throws ApiException { + public CompletableFuture> updateDraftLegacy( + LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - updateDraftRequestBuilder(policyRules, idempotencyKey); + updateDraftLegacyRequestBuilder(legacyPolicyRules, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -393,12 +413,12 @@ public CompletableFuture> updateDr } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("updateDraft", localVarResponse)); + getApiException("updateDraftLegacy", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -406,7 +426,7 @@ public CompletableFuture> updateDr : memberVarObjectMapper.readValue( responseBody, new TypeReference< - DraftReviewAndValidationResponse>() {}))); + LegacyDraftReviewAndValidationResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -416,9 +436,10 @@ public CompletableFuture> updateDr } } - private HttpRequest.Builder updateDraftRequestBuilder( - PolicyRules policyRules, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("updateDraft", "policyRules", policyRules); + private HttpRequest.Builder updateDraftLegacyRequestBuilder( + LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExists( + "updateDraftLegacy", "legacyPolicyRules", legacyPolicyRules); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -433,7 +454,7 @@ private HttpRequest.Builder updateDraftRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(policyRules); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules); 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 new file mode 100644 index 00000000..3c4f34c8 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java @@ -0,0 +1,412 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class 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/ResetDeviceApi.java b/src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java index e3d9ab89..221041d8 100644 --- a/src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java @@ -27,7 +27,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ResetDeviceApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java b/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java index e427e292..db96d41a 100644 --- a/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java +++ b/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java @@ -51,7 +51,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/StakingApi.java b/src/main/java/com/fireblocks/sdk/api/StakingApi.java index 818020da..7adbf50e 100644 --- a/src/main/java/com/fireblocks/sdk/api/StakingApi.java +++ b/src/main/java/com/fireblocks/sdk/api/StakingApi.java @@ -49,7 +49,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class StakingApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java b/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java index 51e690cc..198c9c35 100644 --- a/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java @@ -42,7 +42,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/TagsApi.java b/src/main/java/com/fireblocks/sdk/api/TagsApi.java index 171c5ec9..a7f47c52 100644 --- a/src/main/java/com/fireblocks/sdk/api/TagsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TagsApi.java @@ -39,7 +39,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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; diff --git a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java index 4ebe33fd..41d479d7 100644 --- a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java @@ -63,7 +63,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenizationApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java b/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java index d6df8354..27eb33d4 100644 --- a/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java @@ -49,7 +49,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java b/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java index ba82c2b9..114a70fe 100644 --- a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java @@ -40,7 +40,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java index 32d5e51f..2335530e 100644 --- a/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java @@ -35,7 +35,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UserGroupsBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/UsersApi.java b/src/main/java/com/fireblocks/sdk/api/UsersApi.java index 0c8e5c76..12c1c708 100644 --- a/src/main/java/com/fireblocks/sdk/api/UsersApi.java +++ b/src/main/java/com/fireblocks/sdk/api/UsersApi.java @@ -30,7 +30,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UsersApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java index 6a9372a0..880c80fb 100644 --- a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java @@ -61,7 +61,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java index 8e2df173..483c8f66 100644 --- a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java @@ -40,7 +40,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Web3ConnectionsApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java b/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java index 398fa35c..c5ec85fd 100644 --- a/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java +++ b/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java @@ -32,7 +32,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WebhooksApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java index d5b68469..897b6768 100644 --- a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java +++ b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java @@ -23,6 +23,7 @@ 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; @@ -30,6 +31,7 @@ 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; @@ -46,7 +48,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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; @@ -426,15 +430,41 @@ private HttpRequest.Builder getNotificationAttemptsRequestBuilder( * @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) + 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); + getNotificationsRequestBuilder( + webhookId, + order, + sortBy, + pageCursor, + pageSize, + startTime, + endTime, + statuses, + events, + resourceId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -468,7 +498,16 @@ public CompletableFuture> getNotifica } private HttpRequest.Builder getNotificationsRequestBuilder( - UUID webhookId, String order, String sortBy, String pageCursor, BigDecimal pageSize) + 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()); @@ -490,6 +529,16 @@ private HttpRequest.Builder getNotificationsRequestBuilder( 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("&"); diff --git a/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java b/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java index a64c7e5e..18e92175 100644 --- a/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java +++ b/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java @@ -30,7 +30,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WhitelistIpAddressesApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java b/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java index 8e242576..54ee18dc 100644 --- a/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java @@ -29,7 +29,9 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WorkspaceStatusBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; diff --git a/src/main/java/com/fireblocks/sdk/model/APIUser.java b/src/main/java/com/fireblocks/sdk/model/APIUser.java index 2b29c1fd..c0e0f5f3 100644 --- a/src/main/java/com/fireblocks/sdk/model/APIUser.java +++ b/src/main/java/com/fireblocks/sdk/model/APIUser.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +29,31 @@ APIUser.JSON_PROPERTY_STATUS, APIUser.JSON_PROPERTY_USER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class APIUser { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ROLE = "role"; - private UserRole role; + @jakarta.annotation.Nullable private UserRole role; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nullable private Boolean enabled; public static final String JSON_PROPERTY_STATUS = "status"; - private UserStatus status; + @jakarta.annotation.Nullable private UserStatus status; public static final String JSON_PROPERTY_USER_TYPE = "userType"; - private UserType userType; + @jakarta.annotation.Nullable private UserType userType; public APIUser() {} - public APIUser id(String id) { + public APIUser id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -71,11 +72,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public APIUser name(String name) { + public APIUser name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -94,11 +95,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public APIUser role(UserRole role) { + public APIUser role(@jakarta.annotation.Nullable UserRole role) { this.role = role; return this; } @@ -117,11 +118,11 @@ public UserRole getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRole(UserRole role) { + public void setRole(@jakarta.annotation.Nullable UserRole role) { this.role = role; } - public APIUser enabled(Boolean enabled) { + public APIUser enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -140,11 +141,11 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } - public APIUser status(UserStatus status) { + public APIUser status(@jakarta.annotation.Nullable UserStatus status) { this.status = status; return this; } @@ -163,11 +164,11 @@ public UserStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(UserStatus status) { + public void setStatus(@jakarta.annotation.Nullable UserStatus status) { this.status = status; } - public APIUser userType(UserType userType) { + public APIUser userType(@jakarta.annotation.Nullable UserType userType) { this.userType = userType; return this; } @@ -186,7 +187,7 @@ public UserType getUserType() { @JsonProperty(JSON_PROPERTY_USER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserType(UserType userType) { + public void setUserType(@jakarta.annotation.Nullable UserType userType) { this.userType = userType; } @@ -275,10 +276,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -288,8 +286,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `role` to the URL query string @@ -299,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%srole%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRole()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRole())))); } // add `enabled` to the URL query string @@ -310,8 +306,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } // add `status` to the URL query string @@ -321,8 +316,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `userType` to the URL query string @@ -332,8 +326,7 @@ public String toUrlQueryString(String prefix) { "%suserType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java b/src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java similarity index 59% rename from src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java rename to src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java index 4ef402aa..ae9087bc 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java +++ b/src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java @@ -13,75 +13,102 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; -/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */ +/** ABA payment information for US bank transfers */ @JsonPropertyOrder({ - 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 + 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 }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class AbaPaymentInfo { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - private String accountHolderGivenName; + @jakarta.annotation.Nonnull private String accountHolderGivenName; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - private String accountHolderSurname; + @jakarta.annotation.Nullable private String accountHolderSurname; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CITY = "accountHolderCity"; - private String accountHolderCity; + @jakarta.annotation.Nonnull private String accountHolderCity; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY = "accountHolderCountry"; - private String accountHolderCountry; + @jakarta.annotation.Nonnull private String accountHolderCountry; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1 = "accountHolderAddress1"; - private String accountHolderAddress1; + @jakarta.annotation.Nonnull private String accountHolderAddress1; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2 = "accountHolderAddress2"; - private String accountHolderAddress2; + @jakarta.annotation.Nullable private String accountHolderAddress2; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT = "accountHolderDistrict"; - private String accountHolderDistrict; + @jakarta.annotation.Nullable private String accountHolderDistrict; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE = "accountHolderPostalCode"; - private String accountHolderPostalCode; + @jakarta.annotation.Nonnull private String accountHolderPostalCode; public static final String JSON_PROPERTY_ABA_ROUTING_NUMBER = "abaRoutingNumber"; - private String abaRoutingNumber; + @jakarta.annotation.Nonnull private String abaRoutingNumber; public static final String JSON_PROPERTY_ABA_ACCOUNT_NUMBER = "abaAccountNumber"; - private String abaAccountNumber; + @jakarta.annotation.Nonnull private String abaAccountNumber; public static final String JSON_PROPERTY_ABA_COUNTRY = "abaCountry"; - private String abaCountry; - - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() {} + @jakarta.annotation.Nonnull private String abaCountry; + + public AbaPaymentInfo() {} + + @JsonCreator + public AbaPaymentInfo( + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) + String accountHolderGivenName, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_CITY, required = true) + String accountHolderCity, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, required = true) + String accountHolderCountry, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, required = true) + String accountHolderAddress1, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, required = true) + String accountHolderPostalCode, + @JsonProperty(value = JSON_PROPERTY_ABA_ROUTING_NUMBER, required = true) + String abaRoutingNumber, + @JsonProperty(value = JSON_PROPERTY_ABA_ACCOUNT_NUMBER, required = true) + String abaAccountNumber, + @JsonProperty(value = JSON_PROPERTY_ABA_COUNTRY, required = true) String abaCountry) { + this.accountHolderGivenName = accountHolderGivenName; + this.accountHolderCity = accountHolderCity; + this.accountHolderCountry = accountHolderCountry; + this.accountHolderAddress1 = accountHolderAddress1; + this.accountHolderPostalCode = accountHolderPostalCode; + this.abaRoutingNumber = abaRoutingNumber; + this.abaAccountNumber = abaAccountNumber; + this.abaCountry = abaCountry; + } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderGivenName( - String accountHolderGivenName) { + public AbaPaymentInfo accountHolderGivenName( + @jakarta.annotation.Nonnull String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; return this; } /** - * Get accountHolderGivenName + * The given name (first name) of the account holder * * @return accountHolderGivenName */ @@ -94,18 +121,19 @@ public String getAccountHolderGivenName() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName(String accountHolderGivenName) { + public void setAccountHolderGivenName( + @jakarta.annotation.Nonnull String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderSurname( - String accountHolderSurname) { + public AbaPaymentInfo accountHolderSurname( + @jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; return this; } /** - * Get accountHolderSurname + * The surname (last name) of the account holder * * @return accountHolderSurname */ @@ -118,18 +146,17 @@ public String getAccountHolderSurname() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderSurname(String accountHolderSurname) { + public void setAccountHolderSurname(@jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderCity( - String accountHolderCity) { + public AbaPaymentInfo accountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) { this.accountHolderCity = accountHolderCity; return this; } /** - * Get accountHolderCity + * The city where the account holder resides * * @return accountHolderCity */ @@ -142,18 +169,18 @@ public String getAccountHolderCity() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderCity(String accountHolderCity) { + public void setAccountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) { this.accountHolderCity = accountHolderCity; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderCountry( - String accountHolderCountry) { + public AbaPaymentInfo accountHolderCountry( + @jakarta.annotation.Nonnull String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; return this; } /** - * Get accountHolderCountry + * The country where the account holder resides (ISO 3166-1 alpha-2 code) * * @return accountHolderCountry */ @@ -166,18 +193,18 @@ public String getAccountHolderCountry() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderCountry(String accountHolderCountry) { + public void setAccountHolderCountry(@jakarta.annotation.Nonnull String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderAddress1( - String accountHolderAddress1) { + public AbaPaymentInfo accountHolderAddress1( + @jakarta.annotation.Nonnull String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; return this; } /** - * Get accountHolderAddress1 + * The primary address line of the account holder * * @return accountHolderAddress1 */ @@ -190,18 +217,18 @@ public String getAccountHolderAddress1() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderAddress1(String accountHolderAddress1) { + public void setAccountHolderAddress1(@jakarta.annotation.Nonnull String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderAddress2( - String accountHolderAddress2) { + public AbaPaymentInfo accountHolderAddress2( + @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; return this; } /** - * Get accountHolderAddress2 + * The secondary address line of the account holder (optional) * * @return accountHolderAddress2 */ @@ -214,18 +241,19 @@ public String getAccountHolderAddress2() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderAddress2(String accountHolderAddress2) { + public void setAccountHolderAddress2( + @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderDistrict( - String accountHolderDistrict) { + public AbaPaymentInfo accountHolderDistrict( + @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; return this; } /** - * Get accountHolderDistrict + * The district or region where the account holder resides * * @return accountHolderDistrict */ @@ -238,18 +266,19 @@ public String getAccountHolderDistrict() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderDistrict(String accountHolderDistrict) { + public void setAccountHolderDistrict( + @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderPostalCode( - String accountHolderPostalCode) { + public AbaPaymentInfo accountHolderPostalCode( + @jakarta.annotation.Nonnull String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; return this; } /** - * Get accountHolderPostalCode + * The postal code of the account holder's address * * @return accountHolderPostalCode */ @@ -262,18 +291,18 @@ public String getAccountHolderPostalCode() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderPostalCode(String accountHolderPostalCode) { + public void setAccountHolderPostalCode( + @jakarta.annotation.Nonnull String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaRoutingNumber( - String abaRoutingNumber) { + public AbaPaymentInfo abaRoutingNumber(@jakarta.annotation.Nonnull String abaRoutingNumber) { this.abaRoutingNumber = abaRoutingNumber; return this; } /** - * Get abaRoutingNumber + * The ABA routing number for the bank * * @return abaRoutingNumber */ @@ -286,18 +315,17 @@ public String getAbaRoutingNumber() { @JsonProperty(JSON_PROPERTY_ABA_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbaRoutingNumber(String abaRoutingNumber) { + public void setAbaRoutingNumber(@jakarta.annotation.Nonnull String abaRoutingNumber) { this.abaRoutingNumber = abaRoutingNumber; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaAccountNumber( - String abaAccountNumber) { + public AbaPaymentInfo abaAccountNumber(@jakarta.annotation.Nonnull String abaAccountNumber) { this.abaAccountNumber = abaAccountNumber; return this; } /** - * Get abaAccountNumber + * The account number at the bank * * @return abaAccountNumber */ @@ -310,17 +338,17 @@ public String getAbaAccountNumber() { @JsonProperty(JSON_PROPERTY_ABA_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbaAccountNumber(String abaAccountNumber) { + public void setAbaAccountNumber(@jakarta.annotation.Nonnull String abaAccountNumber) { this.abaAccountNumber = abaAccountNumber; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaCountry(String abaCountry) { + public AbaPaymentInfo abaCountry(@jakarta.annotation.Nonnull String abaCountry) { this.abaCountry = abaCountry; return this; } /** - * Get abaCountry + * The country for the ABA transfer (ISO 3166-1 alpha-2 code) * * @return abaCountry */ @@ -333,14 +361,11 @@ public String getAbaCountry() { @JsonProperty(JSON_PROPERTY_ABA_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbaCountry(String abaCountry) { + public void setAbaCountry(@jakarta.annotation.Nonnull String abaCountry) { this.abaCountry = abaCountry; } - /** - * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_1 object is - * equal to o. - */ + /** Return true if this AbaPaymentInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -349,49 +374,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - 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) + 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) && Objects.equals( - this.abaCountry, - addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaCountry); + this.accountHolderPostalCode, abaPaymentInfo.accountHolderPostalCode) + && Objects.equals(this.abaRoutingNumber, abaPaymentInfo.abaRoutingNumber) + && Objects.equals(this.abaAccountNumber, abaPaymentInfo.abaAccountNumber) + && Objects.equals(this.abaCountry, abaPaymentInfo.abaCountry); } @Override @@ -413,7 +408,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 {\n"); + sb.append("class AbaPaymentInfo {\n"); sb.append(" accountHolderGivenName: ") .append(toIndentedString(accountHolderGivenName)) .append("\n"); @@ -495,10 +490,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderGivenName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderGivenName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderGivenName())))); } // add `accountHolderSurname` to the URL query string @@ -508,10 +501,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderSurname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderSurname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderSurname())))); } // add `accountHolderCity` to the URL query string @@ -521,10 +512,7 @@ public String toUrlQueryString(String prefix) { "%saccountHolderCity%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderCity()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountHolderCity())))); } // add `accountHolderCountry` to the URL query string @@ -534,10 +522,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderCountry())))); } // add `accountHolderAddress1` to the URL query string @@ -547,10 +533,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderAddress1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderAddress1()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderAddress1())))); } // add `accountHolderAddress2` to the URL query string @@ -560,10 +544,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderAddress2%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderAddress2()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderAddress2())))); } // add `accountHolderDistrict` to the URL query string @@ -573,10 +555,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderDistrict%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderDistrict()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderDistrict())))); } // add `accountHolderPostalCode` to the URL query string @@ -586,10 +566,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderPostalCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderPostalCode()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderPostalCode())))); } // add `abaRoutingNumber` to the URL query string @@ -599,10 +577,7 @@ public String toUrlQueryString(String prefix) { "%sabaRoutingNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAbaRoutingNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAbaRoutingNumber())))); } // add `abaAccountNumber` to the URL query string @@ -612,10 +587,7 @@ public String toUrlQueryString(String prefix) { "%sabaAccountNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAbaAccountNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAbaAccountNumber())))); } // add `abaCountry` to the URL query string @@ -625,9 +597,7 @@ public String toUrlQueryString(String prefix) { "%sabaCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAbaCountry()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAbaCountry())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AbiFunction.java b/src/main/java/com/fireblocks/sdk/model/AbiFunction.java index 8e8712b7..17b01eca 100644 --- a/src/main/java/com/fireblocks/sdk/model/AbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/AbiFunction.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,20 +33,22 @@ AbiFunction.JSON_PROPERTY_OUTPUTS, AbiFunction.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AbiFunction { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; /** The state mutability of the contract function as it appears in the ABI */ public enum StateMutabilityEnum { - PURE("pure"), + PURE(String.valueOf("pure")), - VIEW("view"), + VIEW(String.valueOf("view")), - NONPAYABLE("nonpayable"), + NONPAYABLE(String.valueOf("nonpayable")), - PAYABLE("payable"); + PAYABLE(String.valueOf("payable")); private String value; @@ -77,21 +78,21 @@ public static StateMutabilityEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability"; - private StateMutabilityEnum stateMutability; + @jakarta.annotation.Nullable private StateMutabilityEnum stateMutability; /** The type of the function */ public enum TypeEnum { - CONSTRUCTOR("constructor"), + CONSTRUCTOR(String.valueOf("constructor")), - FUNCTION("function"), + FUNCTION(String.valueOf("function")), - ERROR("error"), + ERROR(String.valueOf("error")), - EVENT("event"), + EVENT(String.valueOf("event")), - RECEIVE("receive"), + RECEIVE(String.valueOf("receive")), - FALLBACK("fallback"); + FALLBACK(String.valueOf("fallback")); private String value; @@ -121,20 +122,25 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_INPUTS = "inputs"; - private List inputs; + @jakarta.annotation.Nullable private List inputs = new ArrayList<>(); public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - private List outputs; + @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public AbiFunction() {} - public AbiFunction name(String name) { + @JsonCreator + public AbiFunction(@JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { + this.type = type; + } + + public AbiFunction name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -153,11 +159,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public AbiFunction stateMutability(StateMutabilityEnum stateMutability) { + public AbiFunction stateMutability( + @jakarta.annotation.Nullable StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; return this; } @@ -176,11 +183,12 @@ public StateMutabilityEnum getStateMutability() { @JsonProperty(JSON_PROPERTY_STATE_MUTABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStateMutability(StateMutabilityEnum stateMutability) { + public void setStateMutability( + @jakarta.annotation.Nullable StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; } - public AbiFunction type(TypeEnum type) { + public AbiFunction type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -199,11 +207,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public AbiFunction inputs(List inputs) { + public AbiFunction inputs(@jakarta.annotation.Nullable List inputs) { this.inputs = inputs; return this; } @@ -230,11 +238,11 @@ public List getInputs() { @JsonProperty(JSON_PROPERTY_INPUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInputs(List inputs) { + public void setInputs(@jakarta.annotation.Nullable List inputs) { this.inputs = inputs; } - public AbiFunction outputs(List outputs) { + public AbiFunction outputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; return this; } @@ -261,11 +269,11 @@ public List getOutputs() { @JsonProperty(JSON_PROPERTY_OUTPUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutputs(List outputs) { + public void setOutputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; } - public AbiFunction description(String description) { + public AbiFunction description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -284,7 +292,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -375,8 +383,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `stateMutability` to the URL query string @@ -386,10 +393,7 @@ public String toUrlQueryString(String prefix) { "%sstateMutability%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStateMutability()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStateMutability())))); } // add `type` to the URL query string @@ -399,8 +403,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `inputs` to the URL query string @@ -456,10 +459,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AbstractOpenApiSchema.java b/src/main/java/com/fireblocks/sdk/model/AbstractOpenApiSchema.java index 6779624a..817ef498 100644 --- a/src/main/java/com/fireblocks/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/fireblocks/sdk/model/AbstractOpenApiSchema.java @@ -18,7 +18,9 @@ import java.util.Objects; /** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/fireblocks/sdk/model/Account.java b/src/main/java/com/fireblocks/sdk/model/Account.java index bd575a46..cca16aa4 100644 --- a/src/main/java/com/fireblocks/sdk/model/Account.java +++ b/src/main/java/com/fireblocks/sdk/model/Account.java @@ -13,27 +13,38 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** Account */ @JsonPropertyOrder({Account.JSON_PROPERTY_ACCOUNT_ID, Account.JSON_PROPERTY_ACCOUNT_TYPE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Account { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - private String accountId; + @jakarta.annotation.Nonnull private String accountId; public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType"; - private AccountType accountType; + @jakarta.annotation.Nonnull private AccountType accountType; public Account() {} - public Account accountId(String accountId) { + @JsonCreator + public Account( + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_TYPE, required = true) + AccountType accountType) { + this.accountId = accountId; + this.accountType = accountType; + } + + public Account accountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; return this; } @@ -52,11 +63,11 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; } - public Account accountType(AccountType accountType) { + public Account accountType(@jakarta.annotation.Nonnull AccountType accountType) { this.accountType = accountType; return this; } @@ -75,7 +86,7 @@ public AccountType getAccountType() { @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountType(AccountType accountType) { + public void setAccountType(@jakarta.annotation.Nonnull AccountType accountType) { this.accountType = accountType; } @@ -158,9 +169,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `accountType` to the URL query string @@ -170,10 +179,7 @@ public String toUrlQueryString(String prefix) { "%saccountType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountType())))); } 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 new file mode 100644 index 00000000..a48f1202 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AccountConfig.java @@ -0,0 +1,384 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/AccountIdentifier.java b/src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java new file mode 100644 index 00000000..b89a63bb --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java @@ -0,0 +1,263 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/AccountType2.java b/src/main/java/com/fireblocks/sdk/model/AccountType2.java new file mode 100644 index 00000000..1414b340 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AccountType2.java @@ -0,0 +1,98 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..0e3c5af4 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java @@ -0,0 +1,557 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 index 28a4f28d..37efe762 100644 --- a/src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java +++ b/src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,30 @@ AdapterProcessingResult.JSON_PROPERTY_INPUT_TOKEN_LINK_ID, AdapterProcessingResult.JSON_PROPERTY_ADAPTER_LINK_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String inputTokenLinkId; + @jakarta.annotation.Nonnull private String inputTokenLinkId; public static final String JSON_PROPERTY_ADAPTER_LINK_ID = "adapterLinkId"; - private String adapterLinkId; + @jakarta.annotation.Nonnull private String adapterLinkId; public AdapterProcessingResult() {} - public AdapterProcessingResult inputTokenLinkId(String inputTokenLinkId) { + @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; } @@ -55,11 +68,11 @@ public String getInputTokenLinkId() { @JsonProperty(JSON_PROPERTY_INPUT_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputTokenLinkId(String inputTokenLinkId) { + public void setInputTokenLinkId(@jakarta.annotation.Nonnull String inputTokenLinkId) { this.inputTokenLinkId = inputTokenLinkId; } - public AdapterProcessingResult adapterLinkId(String adapterLinkId) { + public AdapterProcessingResult adapterLinkId(@jakarta.annotation.Nonnull String adapterLinkId) { this.adapterLinkId = adapterLinkId; return this; } @@ -78,7 +91,7 @@ public String getAdapterLinkId() { @JsonProperty(JSON_PROPERTY_ADAPTER_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterLinkId(String adapterLinkId) { + public void setAdapterLinkId(@jakarta.annotation.Nonnull String adapterLinkId) { this.adapterLinkId = adapterLinkId; } @@ -161,10 +174,7 @@ public String toUrlQueryString(String prefix) { "%sinputTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputTokenLinkId())))); } // add `adapterLinkId` to the URL query string @@ -174,10 +184,7 @@ public String toUrlQueryString(String prefix) { "%sadapterLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdapterLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 20badef9..e38712a7 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +30,36 @@ AddAbiRequestDto.JSON_PROPERTY_ABI, AddAbiRequestDto.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String contractAddress; + @jakarta.annotation.Nonnull private String contractAddress; public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - private String baseAssetId; + @jakarta.annotation.Nonnull private String baseAssetId; public static final String JSON_PROPERTY_ABI = "abi"; - private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public AddAbiRequestDto() {} - public AddAbiRequestDto contractAddress(String contractAddress) { + @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; } @@ -65,11 +78,11 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; } - public AddAbiRequestDto baseAssetId(String baseAssetId) { + public AddAbiRequestDto baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; return this; } @@ -88,11 +101,11 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; } - public AddAbiRequestDto abi(List abi) { + public AddAbiRequestDto abi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; return this; } @@ -119,11 +132,11 @@ public List getAbi() { @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(List abi) { + public void setAbi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; } - public AddAbiRequestDto name(String name) { + public AddAbiRequestDto name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -142,7 +155,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -229,10 +242,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `baseAssetId` to the URL query string @@ -242,10 +252,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } // add `abi` to the URL query string @@ -277,8 +284,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 f6b32152..1af1273e 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = AddAssetToExternalWalletRequest.AddAssetToExternalWalletRequestDeserializer.class) @JsonSerialize( @@ -84,106 +86,90 @@ public AddAssetToExternalWalletRequest deserialize( boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AddAssetToExternalWalletRequestOneOf + // deserialize AdditionalInfoRequest try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - 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)) { + 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)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((AddAssetToExternalWalletRequestOneOf.class.equals(Integer.class) - || AddAssetToExternalWalletRequestOneOf.class - .equals(Long.class)) + ((AdditionalInfoRequest.class.equals(Integer.class) + || AdditionalInfoRequest.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((AddAssetToExternalWalletRequestOneOf.class.equals(Float.class) - || AddAssetToExternalWalletRequestOneOf.class - .equals(Double.class)) + ((AdditionalInfoRequest.class.equals(Float.class) + || AdditionalInfoRequest.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (AddAssetToExternalWalletRequestOneOf.class.equals(Boolean.class) + (AdditionalInfoRequest.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (AddAssetToExternalWalletRequestOneOf.class.equals(String.class) + (AdditionalInfoRequest.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(AddAssetToExternalWalletRequestOneOf.class); + tree.traverse(jp.getCodec()).readValueAs(AdditionalInfoRequest.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 'AddAssetToExternalWalletRequestOneOf'"); + log.log(Level.FINER, "Input data matches schema 'AdditionalInfoRequest'"); } } catch (Exception e) { // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'AddAssetToExternalWalletRequestOneOf'", - e); + log.log(Level.FINER, "Input data does not match schema 'AdditionalInfoRequest'", e); } - // deserialize AddAssetToExternalWalletRequestOneOf1 + // deserialize BasicAddressRequest try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - 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)) { + 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)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((AddAssetToExternalWalletRequestOneOf1.class.equals(Integer.class) - || AddAssetToExternalWalletRequestOneOf1.class - .equals(Long.class)) + ((BasicAddressRequest.class.equals(Integer.class) + || BasicAddressRequest.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((AddAssetToExternalWalletRequestOneOf1.class.equals(Float.class) - || AddAssetToExternalWalletRequestOneOf1.class - .equals(Double.class)) + ((BasicAddressRequest.class.equals(Float.class) + || BasicAddressRequest.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (AddAssetToExternalWalletRequestOneOf1.class.equals(Boolean.class) + (BasicAddressRequest.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (AddAssetToExternalWalletRequestOneOf1.class.equals(String.class) + (BasicAddressRequest.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(AddAssetToExternalWalletRequestOneOf1.class); + tree.traverse(jp.getCodec()).readValueAs(BasicAddressRequest.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 'AddAssetToExternalWalletRequestOneOf1'"); + log.log(Level.FINER, "Input data matches schema 'BasicAddressRequest'"); } } catch (Exception e) { // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'AddAssetToExternalWalletRequestOneOf1'", - e); + log.log(Level.FINER, "Input data does not match schema 'BasicAddressRequest'", e); } if (match == 1) { @@ -214,22 +200,19 @@ public AddAssetToExternalWalletRequest() { super("oneOf", Boolean.FALSE); } - public AddAssetToExternalWalletRequest(AddAssetToExternalWalletRequestOneOf o) { + public AddAssetToExternalWalletRequest(AdditionalInfoRequest o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public AddAssetToExternalWalletRequest(AddAssetToExternalWalletRequestOneOf1 o) { + public AddAssetToExternalWalletRequest(BasicAddressRequest o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put( - "AddAssetToExternalWalletRequestOneOf", AddAssetToExternalWalletRequestOneOf.class); - schemas.put( - "AddAssetToExternalWalletRequestOneOf1", - AddAssetToExternalWalletRequestOneOf1.class); + schemas.put("AdditionalInfoRequest", AdditionalInfoRequest.class); + schemas.put("BasicAddressRequest", BasicAddressRequest.class); JSON.registerDescendants( AddAssetToExternalWalletRequest.class, Collections.unmodifiableMap(schemas)); } @@ -241,37 +224,32 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AddAssetToExternalWalletRequestOneOf, - * AddAssetToExternalWalletRequestOneOf1 + * against the oneOf child schemas: AdditionalInfoRequest, BasicAddressRequest * *

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( - AddAssetToExternalWalletRequestOneOf.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(AdditionalInfoRequest.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf( - AddAssetToExternalWalletRequestOneOf1.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(BasicAddressRequest.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } throw new RuntimeException( - "Invalid instance type. Must be AddAssetToExternalWalletRequestOneOf," - + " AddAssetToExternalWalletRequestOneOf1"); + "Invalid instance type. Must be AdditionalInfoRequest, BasicAddressRequest"); } /** - * Get the actual instance, which can be the following: AddAssetToExternalWalletRequestOneOf, - * AddAssetToExternalWalletRequestOneOf1 + * Get the actual instance, which can be the following: AdditionalInfoRequest, + * BasicAddressRequest * - * @return The actual instance (AddAssetToExternalWalletRequestOneOf, - * AddAssetToExternalWalletRequestOneOf1) + * @return The actual instance (AdditionalInfoRequest, BasicAddressRequest) */ @Override public Object getActualInstance() { @@ -279,27 +257,25 @@ public Object getActualInstance() { } /** - * Get the actual instance of `AddAssetToExternalWalletRequestOneOf`. If the actual instance is - * not `AddAssetToExternalWalletRequestOneOf`, the ClassCastException will be thrown. + * Get the actual instance of `AdditionalInfoRequest`. If the actual instance is not + * `AdditionalInfoRequest`, the ClassCastException will be thrown. * - * @return The actual instance of `AddAssetToExternalWalletRequestOneOf` - * @throws ClassCastException if the instance is not `AddAssetToExternalWalletRequestOneOf` + * @return The actual instance of `AdditionalInfoRequest` + * @throws ClassCastException if the instance is not `AdditionalInfoRequest` */ - public AddAssetToExternalWalletRequestOneOf getAddAssetToExternalWalletRequestOneOf() - throws ClassCastException { - return (AddAssetToExternalWalletRequestOneOf) super.getActualInstance(); + public AdditionalInfoRequest getAdditionalInfoRequest() throws ClassCastException { + return (AdditionalInfoRequest) super.getActualInstance(); } /** - * Get the actual instance of `AddAssetToExternalWalletRequestOneOf1`. If the actual instance is - * not `AddAssetToExternalWalletRequestOneOf1`, the ClassCastException will be thrown. + * Get the actual instance of `BasicAddressRequest`. If the actual instance is not + * `BasicAddressRequest`, the ClassCastException will be thrown. * - * @return The actual instance of `AddAssetToExternalWalletRequestOneOf1` - * @throws ClassCastException if the instance is not `AddAssetToExternalWalletRequestOneOf1` + * @return The actual instance of `BasicAddressRequest` + * @throws ClassCastException if the instance is not `BasicAddressRequest` */ - public AddAssetToExternalWalletRequestOneOf1 getAddAssetToExternalWalletRequestOneOf1() - throws ClassCastException { - return (AddAssetToExternalWalletRequestOneOf1) super.getActualInstance(); + public BasicAddressRequest getBasicAddressRequest() throws ClassCastException { + return (BasicAddressRequest) super.getActualInstance(); } /** @@ -334,18 +310,18 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof AddAssetToExternalWalletRequestOneOf) { + if (getActualInstance() instanceof BasicAddressRequest) { if (getActualInstance() != null) { joiner.add( - ((AddAssetToExternalWalletRequestOneOf) getActualInstance()) + ((BasicAddressRequest) getActualInstance()) .toUrlQueryString(prefix + "one_of_0" + suffix)); } return joiner.toString(); } - if (getActualInstance() instanceof AddAssetToExternalWalletRequestOneOf1) { + if (getActualInstance() instanceof AdditionalInfoRequest) { if (getActualInstance() != null) { joiner.add( - ((AddAssetToExternalWalletRequestOneOf1) getActualInstance()) + ((AdditionalInfoRequest) getActualInstance()) .toUrlQueryString(prefix + "one_of_1" + suffix)); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java deleted file mode 100644 index 3c59ac5c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java +++ /dev/null @@ -1,530 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI 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") -@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/AddCollateralRequestBody.java b/src/main/java/com/fireblocks/sdk/model/AddCollateralRequestBody.java index 8c9e32dc..f8193c16 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddCollateralRequestBody.java +++ b/src/main/java/com/fireblocks/sdk/model/AddCollateralRequestBody.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ AddCollateralRequestBody.JSON_PROPERTY_TRANSACTION_REQUEST, AddCollateralRequestBody.JSON_PROPERTY_IS_SRC_COLLATERAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AddCollateralRequestBody { public static final String JSON_PROPERTY_TRANSACTION_REQUEST = "transactionRequest"; - private TransactionRequest transactionRequest; + @jakarta.annotation.Nullable private TransactionRequest transactionRequest; public static final String JSON_PROPERTY_IS_SRC_COLLATERAL = "isSrcCollateral"; - private Boolean isSrcCollateral; + @jakarta.annotation.Nullable private Boolean isSrcCollateral; public AddCollateralRequestBody() {} - public AddCollateralRequestBody transactionRequest(TransactionRequest transactionRequest) { + public AddCollateralRequestBody transactionRequest( + @jakarta.annotation.Nullable TransactionRequest transactionRequest) { this.transactionRequest = transactionRequest; return this; } @@ -55,11 +57,13 @@ public TransactionRequest getTransactionRequest() { @JsonProperty(JSON_PROPERTY_TRANSACTION_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionRequest(TransactionRequest transactionRequest) { + public void setTransactionRequest( + @jakarta.annotation.Nullable TransactionRequest transactionRequest) { this.transactionRequest = transactionRequest; } - public AddCollateralRequestBody isSrcCollateral(Boolean isSrcCollateral) { + public AddCollateralRequestBody isSrcCollateral( + @jakarta.annotation.Nullable Boolean isSrcCollateral) { this.isSrcCollateral = isSrcCollateral; return this; } @@ -78,7 +82,7 @@ public Boolean getIsSrcCollateral() { @JsonProperty(JSON_PROPERTY_IS_SRC_COLLATERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsSrcCollateral(Boolean isSrcCollateral) { + public void setIsSrcCollateral(@jakarta.annotation.Nullable Boolean isSrcCollateral) { this.isSrcCollateral = isSrcCollateral; } @@ -170,10 +174,7 @@ public String toUrlQueryString(String prefix) { "%sisSrcCollateral%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsSrcCollateral()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsSrcCollateral())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddContractAssetRequest.java b/src/main/java/com/fireblocks/sdk/model/AddContractAssetRequest.java index 3359b68f..9caede30 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddContractAssetRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddContractAssetRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ AddContractAssetRequest.JSON_PROPERTY_ADDRESS, AddContractAssetRequest.JSON_PROPERTY_TAG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AddContractAssetRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public AddContractAssetRequest() {} - public AddContractAssetRequest address(String address) { + @JsonCreator + public AddContractAssetRequest( + @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { + this.address = address; + } + + public AddContractAssetRequest address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } @@ -55,11 +63,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public AddContractAssetRequest tag(String tag) { + public AddContractAssetRequest tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -78,7 +86,7 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } @@ -161,8 +169,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `tag` to the URL query string @@ -172,8 +179,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java b/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java index c8dc2919..c75a07f1 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -28,20 +28,30 @@ AddCosignerRequest.JSON_PROPERTY_NAME, AddCosignerRequest.JSON_PROPERTY_EXISTING_COSIGNER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID apiKeyId; + @jakarta.annotation.Nonnull private UUID apiKeyId; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_EXISTING_COSIGNER = "existingCosigner"; - private Boolean existingCosigner = false; + @jakarta.annotation.Nullable private Boolean existingCosigner = false; public AddCosignerRequest() {} - public AddCosignerRequest apiKeyId(UUID apiKeyId) { + @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; } @@ -60,11 +70,11 @@ public UUID getApiKeyId() { @JsonProperty(JSON_PROPERTY_API_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiKeyId(UUID apiKeyId) { + public void setApiKeyId(@jakarta.annotation.Nonnull UUID apiKeyId) { this.apiKeyId = apiKeyId; } - public AddCosignerRequest name(String name) { + public AddCosignerRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -83,11 +93,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AddCosignerRequest existingCosigner(Boolean existingCosigner) { + public AddCosignerRequest existingCosigner( + @jakarta.annotation.Nullable Boolean existingCosigner) { this.existingCosigner = existingCosigner; return this; } @@ -106,7 +117,7 @@ public Boolean getExistingCosigner() { @JsonProperty(JSON_PROPERTY_EXISTING_COSIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExistingCosigner(Boolean existingCosigner) { + public void setExistingCosigner(@jakarta.annotation.Nullable Boolean existingCosigner) { this.existingCosigner = existingCosigner; } @@ -191,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%sapiKeyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getApiKeyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getApiKeyId())))); } // add `name` to the URL query string @@ -202,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `existingCosigner` to the URL query string @@ -213,10 +222,7 @@ public String toUrlQueryString(String prefix) { "%sexistingCosigner%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExistingCosigner()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index cce067c7..8947f0a4 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -29,23 +29,36 @@ AddCosignerResponse.JSON_PROPERTY_EXISTING_COSIGNER, AddCosignerResponse.JSON_PROPERTY_PENDING_COSIGNER_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID apiKeyId; + @jakarta.annotation.Nonnull private UUID apiKeyId; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_EXISTING_COSIGNER = "existingCosigner"; - private Boolean existingCosigner = false; + @jakarta.annotation.Nullable private Boolean existingCosigner = false; public static final String JSON_PROPERTY_PENDING_COSIGNER_ID = "pendingCosignerId"; - private UUID pendingCosignerId; + @jakarta.annotation.Nonnull private UUID pendingCosignerId; public AddCosignerResponse() {} - public AddCosignerResponse apiKeyId(UUID apiKeyId) { + @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; } @@ -64,11 +77,11 @@ public UUID getApiKeyId() { @JsonProperty(JSON_PROPERTY_API_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiKeyId(UUID apiKeyId) { + public void setApiKeyId(@jakarta.annotation.Nonnull UUID apiKeyId) { this.apiKeyId = apiKeyId; } - public AddCosignerResponse name(String name) { + public AddCosignerResponse name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -87,11 +100,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AddCosignerResponse existingCosigner(Boolean existingCosigner) { + public AddCosignerResponse existingCosigner( + @jakarta.annotation.Nullable Boolean existingCosigner) { this.existingCosigner = existingCosigner; return this; } @@ -110,11 +124,12 @@ public Boolean getExistingCosigner() { @JsonProperty(JSON_PROPERTY_EXISTING_COSIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExistingCosigner(Boolean existingCosigner) { + public void setExistingCosigner(@jakarta.annotation.Nullable Boolean existingCosigner) { this.existingCosigner = existingCosigner; } - public AddCosignerResponse pendingCosignerId(UUID pendingCosignerId) { + public AddCosignerResponse pendingCosignerId( + @jakarta.annotation.Nonnull UUID pendingCosignerId) { this.pendingCosignerId = pendingCosignerId; return this; } @@ -133,7 +148,7 @@ public UUID getPendingCosignerId() { @JsonProperty(JSON_PROPERTY_PENDING_COSIGNER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPendingCosignerId(UUID pendingCosignerId) { + public void setPendingCosignerId(@jakarta.annotation.Nonnull UUID pendingCosignerId) { this.pendingCosignerId = pendingCosignerId; } @@ -222,8 +237,7 @@ public String toUrlQueryString(String prefix) { "%sapiKeyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getApiKeyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getApiKeyId())))); } // add `name` to the URL query string @@ -233,8 +247,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `existingCosigner` to the URL query string @@ -244,10 +257,7 @@ public String toUrlQueryString(String prefix) { "%sexistingCosigner%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExistingCosigner()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExistingCosigner())))); } // add `pendingCosignerId` to the URL query string @@ -257,10 +267,7 @@ public String toUrlQueryString(String prefix) { "%spendingCosignerId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPendingCosignerId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index d03175a6..af1d9adf 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,38 @@ AddExchangeAccountRequest.JSON_PROPERTY_KEY, AddExchangeAccountRequest.JSON_PROPERTY_MAIN_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private ExchangeType exchangeType; + @jakarta.annotation.Nonnull private ExchangeType exchangeType; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CREDS = "creds"; - private String creds; + @jakarta.annotation.Nullable private String creds; public static final String JSON_PROPERTY_KEY = "key"; - private String key; + @jakarta.annotation.Nullable private String key; public static final String JSON_PROPERTY_MAIN_ACCOUNT_ID = "mainAccountId"; - private String mainAccountId; + @jakarta.annotation.Nullable private String mainAccountId; public AddExchangeAccountRequest() {} - public AddExchangeAccountRequest exchangeType(ExchangeType exchangeType) { + @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; } @@ -67,11 +79,11 @@ public ExchangeType getExchangeType() { @JsonProperty(JSON_PROPERTY_EXCHANGE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExchangeType(ExchangeType exchangeType) { + public void setExchangeType(@jakarta.annotation.Nonnull ExchangeType exchangeType) { this.exchangeType = exchangeType; } - public AddExchangeAccountRequest name(String name) { + public AddExchangeAccountRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -90,11 +102,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AddExchangeAccountRequest creds(String creds) { + public AddExchangeAccountRequest creds(@jakarta.annotation.Nullable String creds) { this.creds = creds; return this; } @@ -113,11 +125,11 @@ public String getCreds() { @JsonProperty(JSON_PROPERTY_CREDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreds(String creds) { + public void setCreds(@jakarta.annotation.Nullable String creds) { this.creds = creds; } - public AddExchangeAccountRequest key(String key) { + public AddExchangeAccountRequest key(@jakarta.annotation.Nullable String key) { this.key = key; return this; } @@ -136,11 +148,12 @@ public String getKey() { @JsonProperty(JSON_PROPERTY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKey(String key) { + public void setKey(@jakarta.annotation.Nullable String key) { this.key = key; } - public AddExchangeAccountRequest mainAccountId(String mainAccountId) { + public AddExchangeAccountRequest mainAccountId( + @jakarta.annotation.Nullable String mainAccountId) { this.mainAccountId = mainAccountId; return this; } @@ -159,7 +172,7 @@ public String getMainAccountId() { @JsonProperty(JSON_PROPERTY_MAIN_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainAccountId(String mainAccountId) { + public void setMainAccountId(@jakarta.annotation.Nullable String mainAccountId) { this.mainAccountId = mainAccountId; } @@ -248,10 +261,7 @@ public String toUrlQueryString(String prefix) { "%sexchangeType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExchangeType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExchangeType())))); } // add `name` to the URL query string @@ -261,8 +271,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `creds` to the URL query string @@ -272,8 +281,7 @@ public String toUrlQueryString(String prefix) { "%screds%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCreds()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreds())))); } // add `key` to the URL query string @@ -283,8 +291,7 @@ public String toUrlQueryString(String prefix) { "%skey%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getKey())))); } // add `mainAccountId` to the URL query string @@ -294,10 +301,7 @@ public String toUrlQueryString(String prefix) { "%smainAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMainAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index d04644e9..3dbd29cf 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ AddExchangeAccountResponse.JSON_PROPERTY_NAME, AddExchangeAccountResponse.JSON_PROPERTY_EXCHANGE_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_EXCHANGE_TYPE = "exchangeType"; - private ExchangeType exchangeType; + @jakarta.annotation.Nullable private ExchangeType exchangeType; public AddExchangeAccountResponse() {} - public AddExchangeAccountResponse id(String id) { + public AddExchangeAccountResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -59,11 +60,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public AddExchangeAccountResponse name(String name) { + public AddExchangeAccountResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -82,11 +83,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public AddExchangeAccountResponse exchangeType(ExchangeType exchangeType) { + public AddExchangeAccountResponse exchangeType( + @jakarta.annotation.Nullable ExchangeType exchangeType) { this.exchangeType = exchangeType; return this; } @@ -105,7 +107,7 @@ public ExchangeType getExchangeType() { @JsonProperty(JSON_PROPERTY_EXCHANGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExchangeType(ExchangeType exchangeType) { + public void setExchangeType(@jakarta.annotation.Nullable ExchangeType exchangeType) { this.exchangeType = exchangeType; } @@ -188,10 +190,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -201,8 +200,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `exchangeType` to the URL query string @@ -212,10 +210,7 @@ public String toUrlQueryString(String prefix) { "%sexchangeType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExchangeType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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/AdditionalInfo.java index 362e5048..9dce42d9 100644 --- a/src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,20 +31,36 @@ AdditionalInfo.JSON_PROPERTY_LOCKUP_PERIOD, AdditionalInfo.JSON_PROPERTY_ACTIVATION_PERIOD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AdditionalInfo { public static final String JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD = "estimatedAnnualReward"; - private BigDecimal estimatedAnnualReward; + @jakarta.annotation.Nonnull private BigDecimal estimatedAnnualReward; public static final String JSON_PROPERTY_LOCKUP_PERIOD = "lockupPeriod"; - private BigDecimal lockupPeriod; + @jakarta.annotation.Nonnull private BigDecimal lockupPeriod; public static final String JSON_PROPERTY_ACTIVATION_PERIOD = "activationPeriod"; - private BigDecimal activationPeriod; + @jakarta.annotation.Nonnull private BigDecimal activationPeriod; public AdditionalInfo() {} - public AdditionalInfo estimatedAnnualReward(BigDecimal estimatedAnnualReward) { + @JsonCreator + public AdditionalInfo( + @JsonProperty(value = JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD, required = true) + BigDecimal estimatedAnnualReward, + @JsonProperty(value = JSON_PROPERTY_LOCKUP_PERIOD, required = true) + BigDecimal lockupPeriod, + @JsonProperty(value = JSON_PROPERTY_ACTIVATION_PERIOD, required = true) + BigDecimal activationPeriod) { + this.estimatedAnnualReward = estimatedAnnualReward; + this.lockupPeriod = lockupPeriod; + this.activationPeriod = activationPeriod; + } + + public AdditionalInfo estimatedAnnualReward( + @jakarta.annotation.Nonnull BigDecimal estimatedAnnualReward) { this.estimatedAnnualReward = estimatedAnnualReward; return this; } @@ -64,11 +80,12 @@ public BigDecimal getEstimatedAnnualReward() { @JsonProperty(JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEstimatedAnnualReward(BigDecimal estimatedAnnualReward) { + public void setEstimatedAnnualReward( + @jakarta.annotation.Nonnull BigDecimal estimatedAnnualReward) { this.estimatedAnnualReward = estimatedAnnualReward; } - public AdditionalInfo lockupPeriod(BigDecimal lockupPeriod) { + public AdditionalInfo lockupPeriod(@jakarta.annotation.Nonnull BigDecimal lockupPeriod) { this.lockupPeriod = lockupPeriod; return this; } @@ -88,11 +105,12 @@ public BigDecimal getLockupPeriod() { @JsonProperty(JSON_PROPERTY_LOCKUP_PERIOD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLockupPeriod(BigDecimal lockupPeriod) { + public void setLockupPeriod(@jakarta.annotation.Nonnull BigDecimal lockupPeriod) { this.lockupPeriod = lockupPeriod; } - public AdditionalInfo activationPeriod(BigDecimal activationPeriod) { + public AdditionalInfo activationPeriod( + @jakarta.annotation.Nonnull BigDecimal activationPeriod) { this.activationPeriod = activationPeriod; return this; } @@ -112,7 +130,7 @@ public BigDecimal getActivationPeriod() { @JsonProperty(JSON_PROPERTY_ACTIVATION_PERIOD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setActivationPeriod(BigDecimal activationPeriod) { + public void setActivationPeriod(@jakarta.annotation.Nonnull BigDecimal activationPeriod) { this.activationPeriod = activationPeriod; } @@ -199,10 +217,8 @@ public String toUrlQueryString(String prefix) { "%sestimatedAnnualReward%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEstimatedAnnualReward()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getEstimatedAnnualReward())))); } // add `lockupPeriod` to the URL query string @@ -212,10 +228,7 @@ public String toUrlQueryString(String prefix) { "%slockupPeriod%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockupPeriod()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockupPeriod())))); } // add `activationPeriod` to the URL query string @@ -225,10 +238,7 @@ public String toUrlQueryString(String prefix) { "%sactivationPeriod%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActivationPeriod()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getActivationPeriod())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java similarity index 69% rename from src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java rename to src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java index 2294626d..25ea936a 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java +++ b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java @@ -13,23 +13,33 @@ 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; -/** AddAssetToExternalWalletRequestOneOf1 */ -@JsonPropertyOrder({AddAssetToExternalWalletRequestOneOf1.JSON_PROPERTY_ADDITIONAL_INFO}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AddAssetToExternalWalletRequestOneOf1 { +/** External wallet request with additional payment information for various payment rails */ +@JsonPropertyOrder({AdditionalInfoRequest.JSON_PROPERTY_ADDITIONAL_INFO}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class AdditionalInfoRequest { public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; - private AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo; + @jakarta.annotation.Nonnull private AdditionalInfoRequestAdditionalInfo additionalInfo; - public AddAssetToExternalWalletRequestOneOf1() {} + public AdditionalInfoRequest() {} - public AddAssetToExternalWalletRequestOneOf1 additionalInfo( - AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo) { + @JsonCreator + public AdditionalInfoRequest( + @JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = true) + AdditionalInfoRequestAdditionalInfo additionalInfo) { + this.additionalInfo = additionalInfo; + } + + public AdditionalInfoRequest additionalInfo( + @jakarta.annotation.Nonnull AdditionalInfoRequestAdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; return this; } @@ -42,18 +52,18 @@ public AddAssetToExternalWalletRequestOneOf1 additionalInfo( @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddAssetToExternalWalletRequestOneOf1AdditionalInfo getAdditionalInfo() { + public AdditionalInfoRequestAdditionalInfo getAdditionalInfo() { return additionalInfo; } @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAdditionalInfo( - AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo) { + @jakarta.annotation.Nonnull AdditionalInfoRequestAdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; } - /** Return true if this AddAssetToExternalWalletRequest_oneOf_1 object is equal to o. */ + /** Return true if this AdditionalInfoRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -62,10 +72,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddAssetToExternalWalletRequestOneOf1 addAssetToExternalWalletRequestOneOf1 = - (AddAssetToExternalWalletRequestOneOf1) o; - return Objects.equals( - this.additionalInfo, addAssetToExternalWalletRequestOneOf1.additionalInfo); + AdditionalInfoRequest additionalInfoRequest = (AdditionalInfoRequest) o; + return Objects.equals(this.additionalInfo, additionalInfoRequest.additionalInfo); } @Override @@ -76,7 +84,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AddAssetToExternalWalletRequestOneOf1 {\n"); + sb.append("class AdditionalInfoRequest {\n"); sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java new file mode 100644 index 00000000..43814474 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java @@ -0,0 +1,924 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI 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 index 536565ee..2e0c03c7 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java +++ b/src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AddressNotAvailableError.JSON_PROPERTY_MESSAGE, AddressNotAvailableError.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AddressNotAvailableError() {} - public AddressNotAvailableError message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AddressNotAvailableError code(BigDecimal code) { + public AddressNotAvailableError code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResult.java b/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResult.java index fa6b281b..426e1490 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResult.java +++ b/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResult.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -28,20 +27,22 @@ AmlRegistrationResult.JSON_PROPERTY_SUCCESS, AmlRegistrationResult.JSON_PROPERTY_TIMESTAMP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AmlRegistrationResult { public static final String JSON_PROPERTY_PROVIDER = "provider"; - private String provider; + @jakarta.annotation.Nullable private String provider; public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private BigDecimal timestamp; + @jakarta.annotation.Nullable private BigDecimal timestamp; public AmlRegistrationResult() {} - public AmlRegistrationResult provider(String provider) { + public AmlRegistrationResult provider(@jakarta.annotation.Nullable String provider) { this.provider = provider; return this; } @@ -60,11 +61,11 @@ public String getProvider() { @JsonProperty(JSON_PROPERTY_PROVIDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(String provider) { + public void setProvider(@jakarta.annotation.Nullable String provider) { this.provider = provider; } - public AmlRegistrationResult success(Boolean success) { + public AmlRegistrationResult success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -83,11 +84,11 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } - public AmlRegistrationResult timestamp(BigDecimal timestamp) { + public AmlRegistrationResult timestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; return this; } @@ -106,7 +107,7 @@ public BigDecimal getTimestamp() { @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; } @@ -191,8 +192,7 @@ public String toUrlQueryString(String prefix) { "%sprovider%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProvider()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); } // add `success` to the URL query string @@ -202,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } // add `timestamp` to the URL query string @@ -213,9 +212,7 @@ public String toUrlQueryString(String prefix) { "%stimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimestamp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); } 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 index fbd1bc9a..9440d3be 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java +++ b/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -28,20 +27,22 @@ AmlRegistrationResultFullPayload.JSON_PROPERTY_SUCCESS, AmlRegistrationResultFullPayload.JSON_PROPERTY_TIMESTAMP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String provider; + @jakarta.annotation.Nullable private String provider; public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private BigDecimal timestamp; + @jakarta.annotation.Nullable private BigDecimal timestamp; public AmlRegistrationResultFullPayload() {} - public AmlRegistrationResultFullPayload provider(String provider) { + public AmlRegistrationResultFullPayload provider(@jakarta.annotation.Nullable String provider) { this.provider = provider; return this; } @@ -60,11 +61,11 @@ public String getProvider() { @JsonProperty(JSON_PROPERTY_PROVIDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(String provider) { + public void setProvider(@jakarta.annotation.Nullable String provider) { this.provider = provider; } - public AmlRegistrationResultFullPayload success(Boolean success) { + public AmlRegistrationResultFullPayload success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -83,11 +84,12 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } - public AmlRegistrationResultFullPayload timestamp(BigDecimal timestamp) { + public AmlRegistrationResultFullPayload timestamp( + @jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; return this; } @@ -106,7 +108,7 @@ public BigDecimal getTimestamp() { @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; } @@ -192,8 +194,7 @@ public String toUrlQueryString(String prefix) { "%sprovider%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProvider()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); } // add `success` to the URL query string @@ -203,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } // add `timestamp` to the URL query string @@ -214,9 +214,7 @@ public String toUrlQueryString(String prefix) { "%stimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimestamp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AmlScreeningResult.java b/src/main/java/com/fireblocks/sdk/model/AmlScreeningResult.java index 9b7fd2f8..7705af55 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmlScreeningResult.java +++ b/src/main/java/com/fireblocks/sdk/model/AmlScreeningResult.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ AmlScreeningResult.JSON_PROPERTY_PROVIDER, AmlScreeningResult.JSON_PROPERTY_PAYLOAD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AmlScreeningResult { public static final String JSON_PROPERTY_PROVIDER = "provider"; - private String provider; + @jakarta.annotation.Nullable private String provider; public static final String JSON_PROPERTY_PAYLOAD = "payload"; - private Object payload; + @jakarta.annotation.Nullable private Object payload; public AmlScreeningResult() {} - public AmlScreeningResult provider(String provider) { + public AmlScreeningResult provider(@jakarta.annotation.Nullable String provider) { this.provider = provider; return this; } @@ -55,11 +56,11 @@ public String getProvider() { @JsonProperty(JSON_PROPERTY_PROVIDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(String provider) { + public void setProvider(@jakarta.annotation.Nullable String provider) { this.provider = provider; } - public AmlScreeningResult payload(Object payload) { + public AmlScreeningResult payload(@jakarta.annotation.Nullable Object payload) { this.payload = payload; return this; } @@ -78,7 +79,7 @@ public Object getPayload() { @JsonProperty(JSON_PROPERTY_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPayload(Object payload) { + public void setPayload(@jakarta.annotation.Nullable Object payload) { this.payload = payload; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%sprovider%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProvider()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); } // add `payload` to the URL query string @@ -172,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%spayload%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPayload()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPayload())))); } 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 new file mode 100644 index 00000000..355b21eb --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java @@ -0,0 +1,224 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..333a68d3 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java @@ -0,0 +1,189 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/AmountAndChainDescriptor.java b/src/main/java/com/fireblocks/sdk/model/AmountAndChainDescriptor.java index 0e9f1ae3..b2b27e31 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmountAndChainDescriptor.java +++ b/src/main/java/com/fireblocks/sdk/model/AmountAndChainDescriptor.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,29 @@ AmountAndChainDescriptor.JSON_PROPERTY_CHAIN_DESCRIPTOR, AmountAndChainDescriptor.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AmountAndChainDescriptor { public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; - private String chainDescriptor; + @jakarta.annotation.Nonnull private String chainDescriptor; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public AmountAndChainDescriptor() {} - public AmountAndChainDescriptor chainDescriptor(String chainDescriptor) { + @JsonCreator + public AmountAndChainDescriptor( + @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) + String chainDescriptor, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { + this.chainDescriptor = chainDescriptor; + this.amount = amount; + } + + public AmountAndChainDescriptor chainDescriptor( + @jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -55,11 +67,11 @@ public String getChainDescriptor() { @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainDescriptor(String chainDescriptor) { + public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; } - public AmountAndChainDescriptor amount(String amount) { + public AmountAndChainDescriptor amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -78,7 +90,7 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } @@ -161,10 +173,7 @@ public String toUrlQueryString(String prefix) { "%schainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getChainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChainDescriptor())))); } // add `amount` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AmountInfo.java b/src/main/java/com/fireblocks/sdk/model/AmountInfo.java index 22773133..2e2aedea 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmountInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AmountInfo.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ AmountInfo.JSON_PROPERTY_NET_AMOUNT, AmountInfo.JSON_PROPERTY_AMOUNT_U_S_D }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AmountInfo { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_REQUESTED_AMOUNT = "requestedAmount"; - private String requestedAmount; + @jakarta.annotation.Nullable private String requestedAmount; public static final String JSON_PROPERTY_NET_AMOUNT = "netAmount"; - private String netAmount; + @jakarta.annotation.Nullable private String netAmount; public static final String JSON_PROPERTY_AMOUNT_U_S_D = "amountUSD"; - private String amountUSD; + @jakarta.annotation.Nullable private String amountUSD; public AmountInfo() {} - public AmountInfo amount(String amount) { + public AmountInfo amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -64,11 +65,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public AmountInfo requestedAmount(String requestedAmount) { + public AmountInfo requestedAmount(@jakarta.annotation.Nullable String requestedAmount) { this.requestedAmount = requestedAmount; return this; } @@ -87,11 +88,11 @@ public String getRequestedAmount() { @JsonProperty(JSON_PROPERTY_REQUESTED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequestedAmount(String requestedAmount) { + public void setRequestedAmount(@jakarta.annotation.Nullable String requestedAmount) { this.requestedAmount = requestedAmount; } - public AmountInfo netAmount(String netAmount) { + public AmountInfo netAmount(@jakarta.annotation.Nullable String netAmount) { this.netAmount = netAmount; return this; } @@ -110,11 +111,11 @@ public String getNetAmount() { @JsonProperty(JSON_PROPERTY_NET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetAmount(String netAmount) { + public void setNetAmount(@jakarta.annotation.Nullable String netAmount) { this.netAmount = netAmount; } - public AmountInfo amountUSD(String amountUSD) { + public AmountInfo amountUSD(@jakarta.annotation.Nullable String amountUSD) { this.amountUSD = amountUSD; return this; } @@ -133,7 +134,7 @@ public String getAmountUSD() { @JsonProperty(JSON_PROPERTY_AMOUNT_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUSD(String amountUSD) { + public void setAmountUSD(@jakarta.annotation.Nullable String amountUSD) { this.amountUSD = amountUSD; } @@ -220,8 +221,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `requestedAmount` to the URL query string @@ -231,10 +231,7 @@ public String toUrlQueryString(String prefix) { "%srequestedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRequestedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRequestedAmount())))); } // add `netAmount` to the URL query string @@ -244,9 +241,7 @@ public String toUrlQueryString(String prefix) { "%snetAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetAmount())))); } // add `amountUSD` to the URL query string @@ -256,9 +251,7 @@ public String toUrlQueryString(String prefix) { "%samountUSD%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUSD())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java b/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java new file mode 100644 index 00000000..fcb0a523 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java @@ -0,0 +1,257 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..3a0389d9 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java @@ -0,0 +1,187 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..61a6099d --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AmountRange.java @@ -0,0 +1,230 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 f5c2f3e1..7cb2e64c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ApiKey.java +++ b/src/main/java/com/fireblocks/sdk/model/ApiKey.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.time.OffsetDateTime; import java.util.Objects; import java.util.StringJoiner; @@ -29,20 +29,27 @@ ApiKey.JSON_PROPERTY_LAST_SEEN, ApiKey.JSON_PROPERTY_CALLBACK_HANDLER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ApiKey { public static final String JSON_PROPERTY_ID = "id"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_LAST_SEEN = "lastSeen"; - private OffsetDateTime lastSeen; + @jakarta.annotation.Nullable private OffsetDateTime lastSeen; public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - private CallbackHandler callbackHandler; + @jakarta.annotation.Nullable private CallbackHandler callbackHandler; public ApiKey() {} - public ApiKey id(UUID id) { + @JsonCreator + public ApiKey(@JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id) { + this.id = id; + } + + public ApiKey id(@jakarta.annotation.Nonnull UUID id) { this.id = id; return this; } @@ -61,11 +68,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public ApiKey lastSeen(OffsetDateTime lastSeen) { + public ApiKey lastSeen(@jakarta.annotation.Nullable OffsetDateTime lastSeen) { this.lastSeen = lastSeen; return this; } @@ -84,11 +91,11 @@ public OffsetDateTime getLastSeen() { @JsonProperty(JSON_PROPERTY_LAST_SEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastSeen(OffsetDateTime lastSeen) { + public void setLastSeen(@jakarta.annotation.Nullable OffsetDateTime lastSeen) { this.lastSeen = lastSeen; } - public ApiKey callbackHandler(CallbackHandler callbackHandler) { + public ApiKey callbackHandler(@jakarta.annotation.Nullable CallbackHandler callbackHandler) { this.callbackHandler = callbackHandler; return this; } @@ -107,7 +114,7 @@ public CallbackHandler getCallbackHandler() { @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler(CallbackHandler callbackHandler) { + public void setCallbackHandler(@jakarta.annotation.Nullable CallbackHandler callbackHandler) { this.callbackHandler = callbackHandler; } @@ -190,10 +197,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `lastSeen` to the URL query string @@ -203,8 +207,7 @@ public String toUrlQueryString(String prefix) { "%slastSeen%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLastSeen()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastSeen())))); } // add `callbackHandler` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java index 51ed2c57..585dcaac 100644 --- a/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,25 @@ ApiKeysPaginatedResponse.JSON_PROPERTY_DATA, ApiKeysPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ApiKeysPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public ApiKeysPaginatedResponse() {} - public ApiKeysPaginatedResponse data(List data) { + @JsonCreator + public ApiKeysPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public ApiKeysPaginatedResponse data(@jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +73,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public ApiKeysPaginatedResponse next(String next) { + public ApiKeysPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +96,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ApproversConfig.java b/src/main/java/com/fireblocks/sdk/model/ApproversConfig.java new file mode 100644 index 00000000..14dfdd60 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ApproversConfig.java @@ -0,0 +1,333 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..b5574d70 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java @@ -0,0 +1,261 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 index 9cb23c2e..cc50c1c5 100644 --- a/src/main/java/com/fireblocks/sdk/model/Asset.java +++ b/src/main/java/com/fireblocks/sdk/model/Asset.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,35 +32,55 @@ Asset.JSON_PROPERTY_ONCHAIN, Asset.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; - private String legacyId; + @jakarta.annotation.Nonnull private String legacyId; public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - private String blockchainId; + @jakarta.annotation.Nullable private String blockchainId; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nonnull private String displayName; public static final String JSON_PROPERTY_DISPLAY_SYMBOL = "displaySymbol"; - private String displaySymbol; + @jakarta.annotation.Nonnull private String displaySymbol; public static final String JSON_PROPERTY_ASSET_CLASS = "assetClass"; - private AssetClass assetClass; + @jakarta.annotation.Nonnull private AssetClass assetClass; public static final String JSON_PROPERTY_ONCHAIN = "onchain"; - private AssetDetailsOnchain onchain; + @jakarta.annotation.Nullable private AssetDetailsOnchain onchain; public static final String JSON_PROPERTY_METADATA = "metadata"; - private AssetDetailsMetadata metadata; + @jakarta.annotation.Nonnull private AssetDetailsMetadata metadata; public Asset() {} - public Asset id(String id) { + @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; } @@ -79,11 +99,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Asset legacyId(String legacyId) { + public Asset legacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; return this; } @@ -102,11 +122,11 @@ public String getLegacyId() { @JsonProperty(JSON_PROPERTY_LEGACY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(String legacyId) { + public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; } - public Asset blockchainId(String blockchainId) { + public Asset blockchainId(@jakarta.annotation.Nullable String blockchainId) { this.blockchainId = blockchainId; return this; } @@ -125,11 +145,11 @@ public String getBlockchainId() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainId(String blockchainId) { + public void setBlockchainId(@jakarta.annotation.Nullable String blockchainId) { this.blockchainId = blockchainId; } - public Asset displayName(String displayName) { + public Asset displayName(@jakarta.annotation.Nonnull String displayName) { this.displayName = displayName; return this; } @@ -148,11 +168,11 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nonnull String displayName) { this.displayName = displayName; } - public Asset displaySymbol(String displaySymbol) { + public Asset displaySymbol(@jakarta.annotation.Nonnull String displaySymbol) { this.displaySymbol = displaySymbol; return this; } @@ -171,11 +191,11 @@ public String getDisplaySymbol() { @JsonProperty(JSON_PROPERTY_DISPLAY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplaySymbol(String displaySymbol) { + public void setDisplaySymbol(@jakarta.annotation.Nonnull String displaySymbol) { this.displaySymbol = displaySymbol; } - public Asset assetClass(AssetClass assetClass) { + public Asset assetClass(@jakarta.annotation.Nonnull AssetClass assetClass) { this.assetClass = assetClass; return this; } @@ -194,11 +214,11 @@ public AssetClass getAssetClass() { @JsonProperty(JSON_PROPERTY_ASSET_CLASS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetClass(AssetClass assetClass) { + public void setAssetClass(@jakarta.annotation.Nonnull AssetClass assetClass) { this.assetClass = assetClass; } - public Asset onchain(AssetDetailsOnchain onchain) { + public Asset onchain(@jakarta.annotation.Nullable AssetDetailsOnchain onchain) { this.onchain = onchain; return this; } @@ -217,11 +237,11 @@ public AssetDetailsOnchain getOnchain() { @JsonProperty(JSON_PROPERTY_ONCHAIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOnchain(AssetDetailsOnchain onchain) { + public void setOnchain(@jakarta.annotation.Nullable AssetDetailsOnchain onchain) { this.onchain = onchain; } - public Asset metadata(AssetDetailsMetadata metadata) { + public Asset metadata(@jakarta.annotation.Nonnull AssetDetailsMetadata metadata) { this.metadata = metadata; return this; } @@ -240,7 +260,7 @@ public AssetDetailsMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(AssetDetailsMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull AssetDetailsMetadata metadata) { this.metadata = metadata; } @@ -341,10 +361,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `legacyId` to the URL query string @@ -354,8 +371,7 @@ public String toUrlQueryString(String prefix) { "%slegacyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLegacyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); } // add `blockchainId` to the URL query string @@ -365,10 +381,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } // add `displayName` to the URL query string @@ -378,10 +391,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `displaySymbol` to the URL query string @@ -391,10 +401,7 @@ public String toUrlQueryString(String prefix) { "%sdisplaySymbol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplaySymbol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplaySymbol())))); } // add `assetClass` to the URL query string @@ -404,9 +411,7 @@ public String toUrlQueryString(String prefix) { "%sassetClass%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAssetClass()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetClass())))); } // add `onchain` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpError.java b/src/main/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpError.java index e6b904c7..b21d0371 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpError.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpError.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ AssetAlreadyExistHttpError.JSON_PROPERTY_MESSAGE, AssetAlreadyExistHttpError.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetAlreadyExistHttpError { public static final String JSON_PROPERTY_STATUS_CODE = "statusCode"; - private Integer statusCode; + @jakarta.annotation.Nullable private Integer statusCode; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_ERROR = "error"; - private String error; + @jakarta.annotation.Nullable private String error; public AssetAlreadyExistHttpError() {} - public AssetAlreadyExistHttpError statusCode(Integer statusCode) { + public AssetAlreadyExistHttpError statusCode(@jakarta.annotation.Nullable Integer statusCode) { this.statusCode = statusCode; return this; } @@ -59,11 +60,11 @@ public Integer getStatusCode() { @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatusCode(Integer statusCode) { + public void setStatusCode(@jakarta.annotation.Nullable Integer statusCode) { this.statusCode = statusCode; } - public AssetAlreadyExistHttpError message(String message) { + public AssetAlreadyExistHttpError message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -82,11 +83,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public AssetAlreadyExistHttpError error(String error) { + public AssetAlreadyExistHttpError error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } @@ -105,7 +106,7 @@ public String getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } @@ -190,9 +191,7 @@ public String toUrlQueryString(String prefix) { "%sstatusCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStatusCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatusCode())))); } // add `message` to the URL query string @@ -202,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `error` to the URL query string @@ -213,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%serror%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getError()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getError())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetAmount.java b/src/main/java/com/fireblocks/sdk/model/AssetAmount.java index 0aea8715..87edd9d9 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetAmount.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetAmount.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** AssetAmount */ @JsonPropertyOrder({AssetAmount.JSON_PROPERTY_AMOUNT, AssetAmount.JSON_PROPERTY_ASSET_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetAmount { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public AssetAmount() {} - public AssetAmount amount(String amount) { + @JsonCreator + public AssetAmount( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId) { + this.amount = amount; + this.assetId = assetId; + } + + public AssetAmount amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -52,11 +62,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public AssetAmount assetId(String assetId) { + public AssetAmount assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -75,7 +85,7 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } @@ -158,8 +168,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `assetId` to the URL query string @@ -169,8 +178,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } 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 2ccc8189..92306750 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetBadRequestErrorResponse.JSON_PROPERTY_MESSAGE, AssetBadRequestErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetBadRequestErrorResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetBadRequestErrorResponse() {} - public AssetBadRequestErrorResponse message(String message) { + @JsonCreator + public AssetBadRequestErrorResponse( + @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 AssetBadRequestErrorResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetBadRequestErrorResponse code(BigDecimal code) { + public AssetBadRequestErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetConfig.java b/src/main/java/com/fireblocks/sdk/model/AssetConfig.java new file mode 100644 index 00000000..6559de51 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AssetConfig.java @@ -0,0 +1,251 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 4d51acf0..43b0b9d1 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetConflictErrorResponse.JSON_PROPERTY_MESSAGE, AssetConflictErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetConflictErrorResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetConflictErrorResponse() {} - public AssetConflictErrorResponse message(String message) { + @JsonCreator + public AssetConflictErrorResponse( + @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 AssetConflictErrorResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetConflictErrorResponse code(BigDecimal code) { + public AssetConflictErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java b/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java index cb433ca4..09b82eb8 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,32 +33,44 @@ AssetDetailsMetadata.JSON_PROPERTY_MEDIA, AssetDetailsMetadata.JSON_PROPERTY_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private AssetScope scope; + @jakarta.annotation.Nonnull private AssetScope scope; public static final String JSON_PROPERTY_VERIFIED = "verified"; - private Boolean verified; + @jakarta.annotation.Nonnull private Boolean verified; public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - private Boolean deprecated; + @jakarta.annotation.Nonnull private Boolean deprecated; public static final String JSON_PROPERTY_DEPRECATION_REFERRAL_ID = "deprecationReferralId"; - private String deprecationReferralId; + @jakarta.annotation.Nullable private String deprecationReferralId; public static final String JSON_PROPERTY_WEBSITE = "website"; - private String website; + @jakarta.annotation.Nullable private String website; public static final String JSON_PROPERTY_MEDIA = "media"; - private List media; + @jakarta.annotation.Nullable private List media = new ArrayList<>(); public static final String JSON_PROPERTY_NOTE = "note"; - private AssetNote note; + @jakarta.annotation.Nullable private AssetNote note; public AssetDetailsMetadata() {} - public AssetDetailsMetadata scope(AssetScope scope) { + @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; } @@ -77,11 +89,11 @@ public AssetScope getScope() { @JsonProperty(JSON_PROPERTY_SCOPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScope(AssetScope scope) { + public void setScope(@jakarta.annotation.Nonnull AssetScope scope) { this.scope = scope; } - public AssetDetailsMetadata verified(Boolean verified) { + public AssetDetailsMetadata verified(@jakarta.annotation.Nonnull Boolean verified) { this.verified = verified; return this; } @@ -100,11 +112,11 @@ public Boolean getVerified() { @JsonProperty(JSON_PROPERTY_VERIFIED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerified(Boolean verified) { + public void setVerified(@jakarta.annotation.Nonnull Boolean verified) { this.verified = verified; } - public AssetDetailsMetadata deprecated(Boolean deprecated) { + public AssetDetailsMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; return this; } @@ -123,11 +135,12 @@ public Boolean getDeprecated() { @JsonProperty(JSON_PROPERTY_DEPRECATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeprecated(Boolean deprecated) { + public void setDeprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; } - public AssetDetailsMetadata deprecationReferralId(String deprecationReferralId) { + public AssetDetailsMetadata deprecationReferralId( + @jakarta.annotation.Nullable String deprecationReferralId) { this.deprecationReferralId = deprecationReferralId; return this; } @@ -146,11 +159,12 @@ public String getDeprecationReferralId() { @JsonProperty(JSON_PROPERTY_DEPRECATION_REFERRAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecationReferralId(String deprecationReferralId) { + public void setDeprecationReferralId( + @jakarta.annotation.Nullable String deprecationReferralId) { this.deprecationReferralId = deprecationReferralId; } - public AssetDetailsMetadata website(String website) { + public AssetDetailsMetadata website(@jakarta.annotation.Nullable String website) { this.website = website; return this; } @@ -169,11 +183,11 @@ public String getWebsite() { @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWebsite(String website) { + public void setWebsite(@jakarta.annotation.Nullable String website) { this.website = website; } - public AssetDetailsMetadata media(List media) { + public AssetDetailsMetadata media(@jakarta.annotation.Nullable List media) { this.media = media; return this; } @@ -200,11 +214,11 @@ public List getMedia() { @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(List media) { + public void setMedia(@jakarta.annotation.Nullable List media) { this.media = media; } - public AssetDetailsMetadata note(AssetNote note) { + public AssetDetailsMetadata note(@jakarta.annotation.Nullable AssetNote note) { this.note = note; return this; } @@ -223,7 +237,7 @@ public AssetNote getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(AssetNote note) { + public void setNote(@jakarta.annotation.Nullable AssetNote note) { this.note = note; } @@ -320,8 +334,7 @@ public String toUrlQueryString(String prefix) { "%sscope%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getScope()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScope())))); } // add `verified` to the URL query string @@ -331,8 +344,7 @@ public String toUrlQueryString(String prefix) { "%sverified%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getVerified()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVerified())))); } // add `deprecated` to the URL query string @@ -342,9 +354,7 @@ public String toUrlQueryString(String prefix) { "%sdeprecated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDeprecated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); } // add `deprecationReferralId` to the URL query string @@ -354,10 +364,8 @@ public String toUrlQueryString(String prefix) { "%sdeprecationReferralId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDeprecationReferralId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDeprecationReferralId())))); } // add `website` to the URL query string @@ -367,8 +375,7 @@ public String toUrlQueryString(String prefix) { "%swebsite%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWebsite())))); } // add `media` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java b/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java index 34c31fc3..7ddcd056 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,26 +32,38 @@ AssetDetailsOnchain.JSON_PROPERTY_DECIMALS, AssetDetailsOnchain.JSON_PROPERTY_STANDARDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String symbol; + @jakarta.annotation.Nonnull private String symbol; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_DECIMALS = "decimals"; - private BigDecimal decimals; + @jakarta.annotation.Nonnull private BigDecimal decimals; public static final String JSON_PROPERTY_STANDARDS = "standards"; - private List standards; + @jakarta.annotation.Nullable private List standards = new ArrayList<>(); public AssetDetailsOnchain() {} - public AssetDetailsOnchain symbol(String symbol) { + @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; } @@ -70,11 +82,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public AssetDetailsOnchain name(String name) { + public AssetDetailsOnchain name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -93,11 +105,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AssetDetailsOnchain address(String address) { + public AssetDetailsOnchain address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -116,11 +128,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public AssetDetailsOnchain decimals(BigDecimal decimals) { + public AssetDetailsOnchain decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; return this; } @@ -139,11 +151,11 @@ public BigDecimal getDecimals() { @JsonProperty(JSON_PROPERTY_DECIMALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(BigDecimal decimals) { + public void setDecimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; } - public AssetDetailsOnchain standards(List standards) { + public AssetDetailsOnchain standards(@jakarta.annotation.Nullable List standards) { this.standards = standards; return this; } @@ -170,7 +182,7 @@ public List getStandards() { @JsonProperty(JSON_PROPERTY_STANDARDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStandards(List standards) { + public void setStandards(@jakarta.annotation.Nullable List standards) { this.standards = standards; } @@ -259,8 +271,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `name` to the URL query string @@ -270,8 +281,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `address` to the URL query string @@ -281,8 +291,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `decimals` to the URL query string @@ -292,8 +301,7 @@ public String toUrlQueryString(String prefix) { "%sdecimals%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); } // add `standards` to the URL query string @@ -308,10 +316,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getStandards().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getStandards().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java index 9cf4db6e..88499ba5 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetForbiddenErrorResponse.JSON_PROPERTY_MESSAGE, AssetForbiddenErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetForbiddenErrorResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetForbiddenErrorResponse() {} - public AssetForbiddenErrorResponse message(String message) { + @JsonCreator + public AssetForbiddenErrorResponse( + @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 AssetForbiddenErrorResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetForbiddenErrorResponse code(BigDecimal code) { + public AssetForbiddenErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java index 94e9f74c..6f96ebac 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetInternalServerErrorResponse.JSON_PROPERTY_MESSAGE, AssetInternalServerErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetInternalServerErrorResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetInternalServerErrorResponse() {} - public AssetInternalServerErrorResponse message(String message) { + @JsonCreator + public AssetInternalServerErrorResponse( + @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 AssetInternalServerErrorResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetInternalServerErrorResponse code(BigDecimal code) { + public AssetInternalServerErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMedia.java b/src/main/java/com/fireblocks/sdk/model/AssetMedia.java index 9d96ea61..14561495 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetMedia.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetMedia.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,16 +28,18 @@ AssetMedia.JSON_PROPERTY_TYPE, AssetMedia.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String url; + @jakarta.annotation.Nonnull private String url; /** Media type */ public enum TypeEnum { - SVG_XML("image/svg+xml"), + IMAGE_SVG_XML(String.valueOf("image/svg+xml")), - PNG("image/png"); + IMAGE_PNG(String.valueOf("image/png")); private String value; @@ -68,14 +69,22 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private AssetMediaAttributes attributes; + @jakarta.annotation.Nullable private AssetMediaAttributes attributes; public AssetMedia() {} - public AssetMedia url(String url) { + @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; } @@ -94,11 +103,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public AssetMedia type(TypeEnum type) { + public AssetMedia type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -117,11 +126,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public AssetMedia attributes(AssetMediaAttributes attributes) { + public AssetMedia attributes(@jakarta.annotation.Nullable AssetMediaAttributes attributes) { this.attributes = attributes; return this; } @@ -140,7 +149,7 @@ public AssetMediaAttributes getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(AssetMediaAttributes attributes) { + public void setAttributes(@jakarta.annotation.Nullable AssetMediaAttributes attributes) { this.attributes = attributes; } @@ -225,8 +234,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `type` to the URL query string @@ -236,8 +244,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `attributes` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java b/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java index 5a68a966..a8709b85 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private Boolean monochrome; + @jakarta.annotation.Nullable private Boolean monochrome; public AssetMediaAttributes() {} - public AssetMediaAttributes monochrome(Boolean monochrome) { + public AssetMediaAttributes monochrome(@jakarta.annotation.Nullable Boolean monochrome) { this.monochrome = monochrome; return this; } @@ -49,7 +50,7 @@ public Boolean getMonochrome() { @JsonProperty(JSON_PROPERTY_MONOCHROME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMonochrome(Boolean monochrome) { + public void setMonochrome(@jakarta.annotation.Nullable Boolean monochrome) { this.monochrome = monochrome; } @@ -130,9 +131,7 @@ public String toUrlQueryString(String prefix) { "%smonochrome%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMonochrome()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMonochrome())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMetadata.java b/src/main/java/com/fireblocks/sdk/model/AssetMetadata.java index 40885e49..260d24ff 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetMetadata.java @@ -18,20 +18,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** AssetMetadata */ @JsonPropertyOrder({AssetMetadata.JSON_PROPERTY_SCOPE, AssetMetadata.JSON_PROPERTY_DEPRECATED}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetMetadata { /** The scope of the asset */ public enum ScopeEnum { - GLOBAL("Global"), + GLOBAL(String.valueOf("Global")), - LOCAL("Local"); + LOCAL(String.valueOf("Local")); private String value; @@ -61,14 +62,22 @@ public static ScopeEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCOPE = "scope"; - private ScopeEnum scope; + @jakarta.annotation.Nonnull private ScopeEnum scope; public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - private Boolean deprecated; + @jakarta.annotation.Nonnull private Boolean deprecated; public AssetMetadata() {} - public AssetMetadata scope(ScopeEnum scope) { + @JsonCreator + public AssetMetadata( + @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) { this.scope = scope; return this; } @@ -87,11 +96,11 @@ public ScopeEnum getScope() { @JsonProperty(JSON_PROPERTY_SCOPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScope(ScopeEnum scope) { + public void setScope(@jakarta.annotation.Nonnull ScopeEnum scope) { this.scope = scope; } - public AssetMetadata deprecated(Boolean deprecated) { + public AssetMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; return this; } @@ -110,7 +119,7 @@ public Boolean getDeprecated() { @JsonProperty(JSON_PROPERTY_DEPRECATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeprecated(Boolean deprecated) { + public void setDeprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; } @@ -193,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%sscope%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getScope()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScope())))); } // add `deprecated` to the URL query string @@ -204,9 +212,7 @@ public String toUrlQueryString(String prefix) { "%sdeprecated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDeprecated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMetadataDto.java b/src/main/java/com/fireblocks/sdk/model/AssetMetadataDto.java index a9e70445..48085e1d 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetMetadataDto.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetMetadataDto.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -38,50 +38,58 @@ AssetMetadataDto.JSON_PROPERTY_DECIMALS, AssetMetadataDto.JSON_PROPERTY_VAULT_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetMetadataDto { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nullable private String symbol; public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; - private String networkProtocol; + @jakarta.annotation.Nullable private String networkProtocol; public static final String JSON_PROPERTY_TOTAL_SUPPLY = "totalSupply"; - private String totalSupply; + @jakarta.annotation.Nullable private String totalSupply; public static final String JSON_PROPERTY_HOLDERS_COUNT = "holdersCount"; - private BigDecimal holdersCount; + @jakarta.annotation.Nullable private BigDecimal holdersCount; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nullable private String contractAddress; public static final String JSON_PROPERTY_ISSUER_ADDRESS = "issuerAddress"; - private String issuerAddress; + @jakarta.annotation.Nullable private String issuerAddress; public static final String JSON_PROPERTY_TESTNET = "testnet"; - private Boolean testnet; + @jakarta.annotation.Nullable private Boolean testnet; public static final String JSON_PROPERTY_BLOCKCHAIN = "blockchain"; - private String blockchain; + @jakarta.annotation.Nullable private String blockchain; public static final String JSON_PROPERTY_DECIMALS = "decimals"; - private BigDecimal decimals; + @jakarta.annotation.Nullable private BigDecimal decimals; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nullable private String vaultAccountId; public AssetMetadataDto() {} - public AssetMetadataDto assetId(String assetId) { + @JsonCreator + public AssetMetadataDto( + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId) { + this.assetId = assetId; + } + + public AssetMetadataDto assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -100,11 +108,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public AssetMetadataDto name(String name) { + public AssetMetadataDto name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -123,11 +131,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public AssetMetadataDto symbol(String symbol) { + public AssetMetadataDto symbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; return this; } @@ -146,11 +154,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; } - public AssetMetadataDto networkProtocol(String networkProtocol) { + public AssetMetadataDto networkProtocol(@jakarta.annotation.Nullable String networkProtocol) { this.networkProtocol = networkProtocol; return this; } @@ -169,11 +177,11 @@ public String getNetworkProtocol() { @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkProtocol(String networkProtocol) { + public void setNetworkProtocol(@jakarta.annotation.Nullable String networkProtocol) { this.networkProtocol = networkProtocol; } - public AssetMetadataDto totalSupply(String totalSupply) { + public AssetMetadataDto totalSupply(@jakarta.annotation.Nullable String totalSupply) { this.totalSupply = totalSupply; return this; } @@ -192,11 +200,11 @@ public String getTotalSupply() { @JsonProperty(JSON_PROPERTY_TOTAL_SUPPLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalSupply(String totalSupply) { + public void setTotalSupply(@jakarta.annotation.Nullable String totalSupply) { this.totalSupply = totalSupply; } - public AssetMetadataDto holdersCount(BigDecimal holdersCount) { + public AssetMetadataDto holdersCount(@jakarta.annotation.Nullable BigDecimal holdersCount) { this.holdersCount = holdersCount; return this; } @@ -215,11 +223,11 @@ public BigDecimal getHoldersCount() { @JsonProperty(JSON_PROPERTY_HOLDERS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHoldersCount(BigDecimal holdersCount) { + public void setHoldersCount(@jakarta.annotation.Nullable BigDecimal holdersCount) { this.holdersCount = holdersCount; } - public AssetMetadataDto type(String type) { + public AssetMetadataDto type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -238,11 +246,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public AssetMetadataDto contractAddress(String contractAddress) { + public AssetMetadataDto contractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -261,11 +269,11 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; } - public AssetMetadataDto issuerAddress(String issuerAddress) { + public AssetMetadataDto issuerAddress(@jakarta.annotation.Nullable String issuerAddress) { this.issuerAddress = issuerAddress; return this; } @@ -284,11 +292,11 @@ public String getIssuerAddress() { @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIssuerAddress(String issuerAddress) { + public void setIssuerAddress(@jakarta.annotation.Nullable String issuerAddress) { this.issuerAddress = issuerAddress; } - public AssetMetadataDto testnet(Boolean testnet) { + public AssetMetadataDto testnet(@jakarta.annotation.Nullable Boolean testnet) { this.testnet = testnet; return this; } @@ -307,11 +315,11 @@ public Boolean getTestnet() { @JsonProperty(JSON_PROPERTY_TESTNET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestnet(Boolean testnet) { + public void setTestnet(@jakarta.annotation.Nullable Boolean testnet) { this.testnet = testnet; } - public AssetMetadataDto blockchain(String blockchain) { + public AssetMetadataDto blockchain(@jakarta.annotation.Nullable String blockchain) { this.blockchain = blockchain; return this; } @@ -330,11 +338,11 @@ public String getBlockchain() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchain(String blockchain) { + public void setBlockchain(@jakarta.annotation.Nullable String blockchain) { this.blockchain = blockchain; } - public AssetMetadataDto decimals(BigDecimal decimals) { + public AssetMetadataDto decimals(@jakarta.annotation.Nullable BigDecimal decimals) { this.decimals = decimals; return this; } @@ -353,11 +361,11 @@ public BigDecimal getDecimals() { @JsonProperty(JSON_PROPERTY_DECIMALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimals(BigDecimal decimals) { + public void setDecimals(@jakarta.annotation.Nullable BigDecimal decimals) { this.decimals = decimals; } - public AssetMetadataDto vaultAccountId(String vaultAccountId) { + public AssetMetadataDto vaultAccountId(@jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -377,7 +385,7 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; } @@ -495,8 +503,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `name` to the URL query string @@ -506,8 +513,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `symbol` to the URL query string @@ -517,8 +523,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `networkProtocol` to the URL query string @@ -528,10 +533,7 @@ public String toUrlQueryString(String prefix) { "%snetworkProtocol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkProtocol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkProtocol())))); } // add `totalSupply` to the URL query string @@ -541,10 +543,7 @@ public String toUrlQueryString(String prefix) { "%stotalSupply%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTotalSupply()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotalSupply())))); } // add `holdersCount` to the URL query string @@ -554,10 +553,7 @@ public String toUrlQueryString(String prefix) { "%sholdersCount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getHoldersCount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getHoldersCount())))); } // add `type` to the URL query string @@ -567,8 +563,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `contractAddress` to the URL query string @@ -578,10 +573,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `issuerAddress` to the URL query string @@ -591,10 +583,7 @@ public String toUrlQueryString(String prefix) { "%sissuerAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIssuerAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIssuerAddress())))); } // add `testnet` to the URL query string @@ -604,8 +593,7 @@ public String toUrlQueryString(String prefix) { "%stestnet%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTestnet()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTestnet())))); } // add `blockchain` to the URL query string @@ -615,9 +603,7 @@ public String toUrlQueryString(String prefix) { "%sblockchain%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchain()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchain())))); } // add `decimals` to the URL query string @@ -627,8 +613,7 @@ public String toUrlQueryString(String prefix) { "%sdecimals%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); } // add `vaultAccountId` to the URL query string @@ -638,10 +623,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } 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 index 90c3eda7..77804276 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java @@ -21,14 +21,16 @@ /** AssetMetadataRequest */ @JsonPropertyOrder({AssetMetadataRequest.JSON_PROPERTY_NOTE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private AssetNoteRequest note; + @jakarta.annotation.Nullable private AssetNoteRequest note; public AssetMetadataRequest() {} - public AssetMetadataRequest note(AssetNoteRequest note) { + public AssetMetadataRequest note(@jakarta.annotation.Nullable AssetNoteRequest note) { this.note = note; return this; } @@ -47,7 +49,7 @@ public AssetNoteRequest getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(AssetNoteRequest note) { + public void setNote(@jakarta.annotation.Nullable AssetNoteRequest note) { this.note = note; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java index 33a4ede6..d74d3f83 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, AssetNotFoundErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetNotFoundErrorResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetNotFoundErrorResponse() {} - public AssetNotFoundErrorResponse message(String message) { + @JsonCreator + public AssetNotFoundErrorResponse( + @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 AssetNotFoundErrorResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetNotFoundErrorResponse code(BigDecimal code) { + public AssetNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetNote.java b/src/main/java/com/fireblocks/sdk/model/AssetNote.java index 8b6b9c01..24e047c9 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetNote.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetNote.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.time.OffsetDateTime; import java.util.Objects; import java.util.StringJoiner; @@ -30,23 +30,38 @@ AssetNote.JSON_PROPERTY_USER_NAME, AssetNote.JSON_PROPERTY_UPDATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String text; + @jakarta.annotation.Nonnull private String text; public static final String JSON_PROPERTY_USER_ID = "userId"; - private UUID userId; + @jakarta.annotation.Nonnull private UUID userId; public static final String JSON_PROPERTY_USER_NAME = "userName"; - private String userName; + @jakarta.annotation.Nonnull private String userName; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private OffsetDateTime updatedAt; + @jakarta.annotation.Nonnull private OffsetDateTime updatedAt; public AssetNote() {} - public AssetNote text(String text) { + @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; } @@ -65,11 +80,11 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setText(String text) { + public void setText(@jakarta.annotation.Nonnull String text) { this.text = text; } - public AssetNote userId(UUID userId) { + public AssetNote userId(@jakarta.annotation.Nonnull UUID userId) { this.userId = userId; return this; } @@ -88,11 +103,11 @@ public UUID getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(UUID userId) { + public void setUserId(@jakarta.annotation.Nonnull UUID userId) { this.userId = userId; } - public AssetNote userName(String userName) { + public AssetNote userName(@jakarta.annotation.Nonnull String userName) { this.userName = userName; return this; } @@ -111,11 +126,11 @@ public String getUserName() { @JsonProperty(JSON_PROPERTY_USER_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserName(String userName) { + public void setUserName(@jakarta.annotation.Nonnull String userName) { this.userName = userName; } - public AssetNote updatedAt(OffsetDateTime updatedAt) { + public AssetNote updatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } @@ -134,7 +149,7 @@ public OffsetDateTime getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(OffsetDateTime updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } @@ -221,8 +236,7 @@ public String toUrlQueryString(String prefix) { "%stext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getText()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getText())))); } // add `userId` to the URL query string @@ -232,8 +246,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } // add `userName` to the URL query string @@ -243,8 +256,7 @@ public String toUrlQueryString(String prefix) { "%suserName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserName())))); } // add `updatedAt` to the URL query string @@ -254,9 +266,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 6db0aa81..8acec6be 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String text; + @jakarta.annotation.Nullable private String text; public AssetNoteRequest() {} - public AssetNoteRequest text(String text) { + public AssetNoteRequest text(@jakarta.annotation.Nullable String text) { this.text = text; return this; } @@ -49,7 +50,7 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(String text) { + public void setText(@jakarta.annotation.Nullable String text) { this.text = text; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%stext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getText()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getText())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetOnchain.java b/src/main/java/com/fireblocks/sdk/model/AssetOnchain.java index 1aae9026..3080ad33 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetOnchain.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetOnchain.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +30,38 @@ AssetOnchain.JSON_PROPERTY_DECIMALS, AssetOnchain.JSON_PROPERTY_STANDARD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetOnchain { public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nonnull private String symbol; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_DECIMALS = "decimals"; - private BigDecimal decimals; + @jakarta.annotation.Nonnull private BigDecimal decimals; public static final String JSON_PROPERTY_STANDARD = "standard"; - private String standard; + @jakarta.annotation.Nullable private String standard; public AssetOnchain() {} - public AssetOnchain symbol(String symbol) { + @JsonCreator + public AssetOnchain( + @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 AssetOnchain symbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; return this; } @@ -68,11 +80,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public AssetOnchain name(String name) { + public AssetOnchain name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -91,11 +103,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AssetOnchain address(String address) { + public AssetOnchain address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -114,11 +126,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public AssetOnchain decimals(BigDecimal decimals) { + public AssetOnchain decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; return this; } @@ -137,11 +149,11 @@ public BigDecimal getDecimals() { @JsonProperty(JSON_PROPERTY_DECIMALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(BigDecimal decimals) { + public void setDecimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; } - public AssetOnchain standard(String standard) { + public AssetOnchain standard(@jakarta.annotation.Nullable String standard) { this.standard = standard; return this; } @@ -160,7 +172,7 @@ public String getStandard() { @JsonProperty(JSON_PROPERTY_STANDARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStandard(String standard) { + public void setStandard(@jakarta.annotation.Nullable String standard) { this.standard = standard; } @@ -249,8 +261,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `name` to the URL query string @@ -260,8 +271,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `address` to the URL query string @@ -271,8 +281,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `decimals` to the URL query string @@ -282,8 +291,7 @@ public String toUrlQueryString(String prefix) { "%sdecimals%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); } // add `standard` to the URL query string @@ -293,8 +301,7 @@ public String toUrlQueryString(String prefix) { "%sstandard%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStandard()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStandard())))); } 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 index 18c27a0f..5e5f026c 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetPriceForbiddenErrorResponse.JSON_PROPERTY_MESSAGE, AssetPriceForbiddenErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetPriceForbiddenErrorResponse() {} - public AssetPriceForbiddenErrorResponse message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetPriceForbiddenErrorResponse code(BigDecimal code) { + public AssetPriceForbiddenErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 4253bb12..38cde82d 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ AssetPriceNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, AssetPriceNotFoundErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public AssetPriceNotFoundErrorResponse() {} - public AssetPriceNotFoundErrorResponse message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetPriceNotFoundErrorResponse code(BigDecimal code) { + public AssetPriceNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index a83d9179..4703a1be 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -32,25 +31,27 @@ AssetPriceResponse.JSON_PROPERTY_PRICE, AssetPriceResponse.JSON_PROPERTY_SOURCE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String legacyId; + @jakarta.annotation.Nonnull private String legacyId; public static final String JSON_PROPERTY_LAST_UPDATE_AT = "lastUpdateAt"; - private BigDecimal lastUpdateAt; + @jakarta.annotation.Nonnull private BigDecimal lastUpdateAt; public static final String JSON_PROPERTY_CURRENCY = "currency"; - private String currency; + @jakarta.annotation.Nonnull private String currency; public static final String JSON_PROPERTY_PRICE = "price"; - private BigDecimal price; + @jakarta.annotation.Nonnull private BigDecimal price; /** Source of the price data */ public enum SourceEnum { - PUBLIC("PUBLIC"), + PUBLIC(String.valueOf("PUBLIC")), - PRIVATE("PRIVATE"); + PRIVATE(String.valueOf("PRIVATE")); private String value; @@ -80,11 +81,26 @@ public static SourceEnum fromValue(String value) { } public static final String JSON_PROPERTY_SOURCE = "source"; - private SourceEnum source; + @jakarta.annotation.Nonnull private SourceEnum source; public AssetPriceResponse() {} - public AssetPriceResponse legacyId(String legacyId) { + @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; } @@ -103,11 +119,11 @@ public String getLegacyId() { @JsonProperty(JSON_PROPERTY_LEGACY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(String legacyId) { + public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; } - public AssetPriceResponse lastUpdateAt(BigDecimal lastUpdateAt) { + public AssetPriceResponse lastUpdateAt(@jakarta.annotation.Nonnull BigDecimal lastUpdateAt) { this.lastUpdateAt = lastUpdateAt; return this; } @@ -126,11 +142,11 @@ public BigDecimal getLastUpdateAt() { @JsonProperty(JSON_PROPERTY_LAST_UPDATE_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastUpdateAt(BigDecimal lastUpdateAt) { + public void setLastUpdateAt(@jakarta.annotation.Nonnull BigDecimal lastUpdateAt) { this.lastUpdateAt = lastUpdateAt; } - public AssetPriceResponse currency(String currency) { + public AssetPriceResponse currency(@jakarta.annotation.Nonnull String currency) { this.currency = currency; return this; } @@ -149,11 +165,11 @@ public String getCurrency() { @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCurrency(String currency) { + public void setCurrency(@jakarta.annotation.Nonnull String currency) { this.currency = currency; } - public AssetPriceResponse price(BigDecimal price) { + public AssetPriceResponse price(@jakarta.annotation.Nonnull BigDecimal price) { this.price = price; return this; } @@ -172,11 +188,11 @@ public BigDecimal getPrice() { @JsonProperty(JSON_PROPERTY_PRICE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPrice(BigDecimal price) { + public void setPrice(@jakarta.annotation.Nonnull BigDecimal price) { this.price = price; } - public AssetPriceResponse source(SourceEnum source) { + public AssetPriceResponse source(@jakarta.annotation.Nonnull SourceEnum source) { this.source = source; return this; } @@ -195,7 +211,7 @@ public SourceEnum getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSource(SourceEnum source) { + public void setSource(@jakarta.annotation.Nonnull SourceEnum source) { this.source = source; } @@ -284,8 +300,7 @@ public String toUrlQueryString(String prefix) { "%slegacyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLegacyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); } // add `lastUpdateAt` to the URL query string @@ -295,10 +310,7 @@ public String toUrlQueryString(String prefix) { "%slastUpdateAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastUpdateAt()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastUpdateAt())))); } // add `currency` to the URL query string @@ -308,8 +320,7 @@ public String toUrlQueryString(String prefix) { "%scurrency%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCurrency()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCurrency())))); } // add `price` to the URL query string @@ -319,8 +330,7 @@ public String toUrlQueryString(String prefix) { "%sprice%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPrice()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPrice())))); } // add `source` to the URL query string @@ -330,8 +340,7 @@ public String toUrlQueryString(String prefix) { "%ssource%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSource()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 d5402a6e..c49bacf2 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetResponse.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,20 +29,22 @@ AssetResponse.JSON_PROPERTY_ONCHAIN, AssetResponse.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetResponse { public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; - private String legacyId; + @jakarta.annotation.Nonnull private String legacyId; /** Gets or Sets assetClass */ public enum AssetClassEnum { - NATIVE("NATIVE"), + NATIVE(String.valueOf("NATIVE")), - FT("FT"), + FT(String.valueOf("FT")), - NFT("NFT"), + NFT(String.valueOf("NFT")), - SFT("SFT"); + SFT(String.valueOf("SFT")); private String value; @@ -73,17 +74,30 @@ public static AssetClassEnum fromValue(String value) { } public static final String JSON_PROPERTY_ASSET_CLASS = "assetClass"; - private AssetClassEnum assetClass; + @jakarta.annotation.Nonnull private AssetClassEnum assetClass; public static final String JSON_PROPERTY_ONCHAIN = "onchain"; - private AssetOnchain onchain; + @jakarta.annotation.Nonnull private AssetOnchain onchain; public static final String JSON_PROPERTY_METADATA = "metadata"; - private AssetMetadata metadata; + @jakarta.annotation.Nonnull private AssetMetadata metadata; public AssetResponse() {} - public AssetResponse legacyId(String legacyId) { + @JsonCreator + 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) { + this.legacyId = legacyId; + this.assetClass = assetClass; + this.onchain = onchain; + this.metadata = metadata; + } + + public AssetResponse legacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; return this; } @@ -102,11 +116,11 @@ public String getLegacyId() { @JsonProperty(JSON_PROPERTY_LEGACY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(String legacyId) { + public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; } - public AssetResponse assetClass(AssetClassEnum assetClass) { + public AssetResponse assetClass(@jakarta.annotation.Nonnull AssetClassEnum assetClass) { this.assetClass = assetClass; return this; } @@ -125,11 +139,11 @@ public AssetClassEnum getAssetClass() { @JsonProperty(JSON_PROPERTY_ASSET_CLASS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetClass(AssetClassEnum assetClass) { + public void setAssetClass(@jakarta.annotation.Nonnull AssetClassEnum assetClass) { this.assetClass = assetClass; } - public AssetResponse onchain(AssetOnchain onchain) { + public AssetResponse onchain(@jakarta.annotation.Nonnull AssetOnchain onchain) { this.onchain = onchain; return this; } @@ -148,11 +162,11 @@ public AssetOnchain getOnchain() { @JsonProperty(JSON_PROPERTY_ONCHAIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOnchain(AssetOnchain onchain) { + public void setOnchain(@jakarta.annotation.Nonnull AssetOnchain onchain) { this.onchain = onchain; } - public AssetResponse metadata(AssetMetadata metadata) { + public AssetResponse metadata(@jakarta.annotation.Nonnull AssetMetadata metadata) { this.metadata = metadata; return this; } @@ -171,7 +185,7 @@ public AssetMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(AssetMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull AssetMetadata metadata) { this.metadata = metadata; } @@ -258,8 +272,7 @@ public String toUrlQueryString(String prefix) { "%slegacyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLegacyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); } // add `assetClass` to the URL query string @@ -269,9 +282,7 @@ public String toUrlQueryString(String prefix) { "%sassetClass%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAssetClass()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetClass())))); } // add `onchain` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/AssetTypeResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetTypeResponse.java index a573038f..47ce7e85 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetTypeResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetTypeResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,29 +31,41 @@ AssetTypeResponse.JSON_PROPERTY_NATIVE_ASSET, AssetTypeResponse.JSON_PROPERTY_DECIMALS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetTypeResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nullable private String contractAddress; public static final String JSON_PROPERTY_NATIVE_ASSET = "nativeAsset"; - private String nativeAsset; + @jakarta.annotation.Nullable private String nativeAsset; public static final String JSON_PROPERTY_DECIMALS = "decimals"; - private BigDecimal decimals; + @jakarta.annotation.Nullable private BigDecimal decimals; public AssetTypeResponse() {} - public AssetTypeResponse id(String id) { + @JsonCreator + public AssetTypeResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) String type) { + this.id = id; + this.name = name; + this.type = type; + } + + public AssetTypeResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -72,11 +84,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public AssetTypeResponse name(String name) { + public AssetTypeResponse name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -95,11 +107,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AssetTypeResponse type(String type) { + public AssetTypeResponse type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -118,11 +130,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public AssetTypeResponse contractAddress(String contractAddress) { + public AssetTypeResponse contractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -141,11 +153,11 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; } - public AssetTypeResponse nativeAsset(String nativeAsset) { + public AssetTypeResponse nativeAsset(@jakarta.annotation.Nullable String nativeAsset) { this.nativeAsset = nativeAsset; return this; } @@ -164,11 +176,11 @@ public String getNativeAsset() { @JsonProperty(JSON_PROPERTY_NATIVE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNativeAsset(String nativeAsset) { + public void setNativeAsset(@jakarta.annotation.Nullable String nativeAsset) { this.nativeAsset = nativeAsset; } - public AssetTypeResponse decimals(BigDecimal decimals) { + public AssetTypeResponse decimals(@jakarta.annotation.Nullable BigDecimal decimals) { this.decimals = decimals; return this; } @@ -187,7 +199,7 @@ public BigDecimal getDecimals() { @JsonProperty(JSON_PROPERTY_DECIMALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimals(BigDecimal decimals) { + public void setDecimals(@jakarta.annotation.Nullable BigDecimal decimals) { this.decimals = decimals; } @@ -276,10 +288,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -289,8 +298,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `type` to the URL query string @@ -300,8 +308,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `contractAddress` to the URL query string @@ -311,10 +318,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `nativeAsset` to the URL query string @@ -324,10 +328,7 @@ public String toUrlQueryString(String prefix) { "%snativeAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNativeAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNativeAsset())))); } // add `decimals` to the URL query string @@ -337,8 +338,7 @@ public String toUrlQueryString(String prefix) { "%sdecimals%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParams.java b/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java similarity index 53% rename from src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParams.java rename to src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java index ab4bb240..3d763477 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParams.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java @@ -26,6 +26,7 @@ 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; @@ -36,173 +37,156 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@JsonDeserialize( - using = - CreateMultichainTokenRequestCreateParams - .CreateMultichainTokenRequestCreateParamsDeserializer.class) -@JsonSerialize( - using = - CreateMultichainTokenRequestCreateParams - .CreateMultichainTokenRequestCreateParamsSerializer.class) -public class CreateMultichainTokenRequestCreateParams extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(CreateMultichainTokenRequestCreateParams.class.getName()); - - public static class CreateMultichainTokenRequestCreateParamsSerializer - extends StdSerializer { - public CreateMultichainTokenRequestCreateParamsSerializer( - Class t) { +@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 CreateMultichainTokenRequestCreateParamsSerializer() { + public AssetTypesConfigInnerSerializer() { this(null); } @Override public void serialize( - CreateMultichainTokenRequestCreateParams value, - JsonGenerator jgen, - SerializerProvider provider) + AssetTypesConfigInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class CreateMultichainTokenRequestCreateParamsDeserializer - extends StdDeserializer { - public CreateMultichainTokenRequestCreateParamsDeserializer() { - this(CreateMultichainTokenRequestCreateParams.class); + public static class AssetTypesConfigInnerDeserializer + extends StdDeserializer { + public AssetTypesConfigInnerDeserializer() { + this(AssetTypesConfigInner.class); } - public CreateMultichainTokenRequestCreateParamsDeserializer(Class vc) { + public AssetTypesConfigInnerDeserializer(Class vc) { super(vc); } @Override - public CreateMultichainTokenRequestCreateParams deserialize( - JsonParser jp, DeserializationContext ctxt) + 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 EVMTokenCreateParamsDto + // deserialize String try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (EVMTokenCreateParamsDto.class.equals(Integer.class) - || EVMTokenCreateParamsDto.class.equals(Long.class) - || EVMTokenCreateParamsDto.class.equals(Float.class) - || EVMTokenCreateParamsDto.class.equals(Double.class) - || EVMTokenCreateParamsDto.class.equals(Boolean.class) - || EVMTokenCreateParamsDto.class.equals(String.class)) { + 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 |= - ((EVMTokenCreateParamsDto.class.equals(Integer.class) - || EVMTokenCreateParamsDto.class.equals(Long.class)) + ((String.class.equals(Integer.class) + || String.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((EVMTokenCreateParamsDto.class.equals(Float.class) - || EVMTokenCreateParamsDto.class.equals( - Double.class)) + ((String.class.equals(Float.class) + || String.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (EVMTokenCreateParamsDto.class.equals(Boolean.class) + (String.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (EVMTokenCreateParamsDto.class.equals(String.class) + (String.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(EVMTokenCreateParamsDto.class); + 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 'EVMTokenCreateParamsDto'"); + 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 'EVMTokenCreateParamsDto'", - e); + log.log(Level.FINER, "Input data does not match schema 'String'", e); } if (match == 1) { - CreateMultichainTokenRequestCreateParams ret = - new CreateMultichainTokenRequestCreateParams(); + AssetTypesConfigInner ret = new AssetTypesConfigInner(); ret.setActualInstance(deserialized); return ret; } throw new IOException( String.format( - "Failed deserialization for CreateMultichainTokenRequestCreateParams:" - + " %d classes match result, expected 1", + "Failed deserialization for AssetTypesConfigInner: %d classes match" + + " result, expected 1", match)); } /** Handle deserialization of the 'null' value. */ @Override - public CreateMultichainTokenRequestCreateParams getNullValue(DeserializationContext ctxt) + public AssetTypesConfigInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { throw new JsonMappingException( - ctxt.getParser(), "CreateMultichainTokenRequestCreateParams cannot be null"); + ctxt.getParser(), "AssetTypesConfigInner cannot be null"); } } // store a list of schema names defined in oneOf public static final Map> schemas = new HashMap<>(); - public CreateMultichainTokenRequestCreateParams() { + public AssetTypesConfigInner() { super("oneOf", Boolean.FALSE); } - public CreateMultichainTokenRequestCreateParams(EVMTokenCreateParamsDto o) { + public AssetTypesConfigInner(String o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("EVMTokenCreateParamsDto", EVMTokenCreateParamsDto.class); - JSON.registerDescendants( - CreateMultichainTokenRequestCreateParams.class, - Collections.unmodifiableMap(schemas)); + schemas.put("String", String.class); + JSON.registerDescendants(AssetTypesConfigInner.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return CreateMultichainTokenRequestCreateParams.schemas; + return AssetTypesConfigInner.schemas; } /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: EVMTokenCreateParamsDto + * 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(EVMTokenCreateParamsDto.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be EVMTokenCreateParamsDto"); + throw new RuntimeException("Invalid instance type. Must be String"); } /** - * Get the actual instance, which can be the following: EVMTokenCreateParamsDto + * Get the actual instance, which can be the following: String * - * @return The actual instance (EVMTokenCreateParamsDto) + * @return The actual instance (String) */ @Override public Object getActualInstance() { @@ -210,14 +194,14 @@ public Object getActualInstance() { } /** - * Get the actual instance of `EVMTokenCreateParamsDto`. If the actual instance is not - * `EVMTokenCreateParamsDto`, the ClassCastException will be thrown. + * Get the actual instance of `String`. If the actual instance is not `String`, the + * ClassCastException will be thrown. * - * @return The actual instance of `EVMTokenCreateParamsDto` - * @throws ClassCastException if the instance is not `EVMTokenCreateParamsDto` + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` */ - public EVMTokenCreateParamsDto getEVMTokenCreateParamsDto() throws ClassCastException { - return (EVMTokenCreateParamsDto) super.getActualInstance(); + public String getString() throws ClassCastException { + return (String) super.getActualInstance(); } /** @@ -252,11 +236,14 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof EVMTokenCreateParamsDto) { + if (getActualInstance() instanceof String) { if (getActualInstance() != null) { joiner.add( - ((EVMTokenCreateParamsDto) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); + String.format( + "%sone_of_0%s=%s", + prefix, + suffix, + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetWallet.java b/src/main/java/com/fireblocks/sdk/model/AssetWallet.java index 094a0fc3..c523cecf 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetWallet.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetWallet.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -35,44 +34,46 @@ AssetWallet.JSON_PROPERTY_BLOCK_HASH, AssetWallet.JSON_PROPERTY_CREATION_TIMESTAMP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AssetWallet { public static final String JSON_PROPERTY_VAULT_ID = "vaultId"; - private String vaultId; + @jakarta.annotation.Nullable private String vaultId; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_AVAILABLE = "available"; - private String available; + @jakarta.annotation.Nullable private String available; public static final String JSON_PROPERTY_TOTAL = "total"; - private String total; + @jakarta.annotation.Nullable private String total; public static final String JSON_PROPERTY_PENDING = "pending"; - private String pending; + @jakarta.annotation.Nullable private String pending; public static final String JSON_PROPERTY_STAKED = "staked"; - private String staked; + @jakarta.annotation.Nullable private String staked; public static final String JSON_PROPERTY_FROZEN = "frozen"; - private String frozen; + @jakarta.annotation.Nullable private String frozen; public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - private String lockedAmount; + @jakarta.annotation.Nullable private String lockedAmount; public static final String JSON_PROPERTY_BLOCK_HEIGHT = "blockHeight"; - private String blockHeight; + @jakarta.annotation.Nullable private String blockHeight; public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - private String blockHash; + @jakarta.annotation.Nullable private String blockHash; public static final String JSON_PROPERTY_CREATION_TIMESTAMP = "creationTimestamp"; - private String creationTimestamp; + @jakarta.annotation.Nullable private String creationTimestamp; public AssetWallet() {} - public AssetWallet vaultId(String vaultId) { + public AssetWallet vaultId(@jakarta.annotation.Nullable String vaultId) { this.vaultId = vaultId; return this; } @@ -94,11 +95,11 @@ public String getVaultId() { @JsonProperty(JSON_PROPERTY_VAULT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultId(String vaultId) { + public void setVaultId(@jakarta.annotation.Nullable String vaultId) { this.vaultId = vaultId; } - public AssetWallet assetId(String assetId) { + public AssetWallet assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -118,11 +119,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public AssetWallet available(String available) { + public AssetWallet available(@jakarta.annotation.Nullable String available) { this.available = available; return this; } @@ -141,11 +142,11 @@ public String getAvailable() { @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAvailable(String available) { + public void setAvailable(@jakarta.annotation.Nullable String available) { this.available = available; } - public AssetWallet total(String total) { + public AssetWallet total(@jakarta.annotation.Nullable String total) { this.total = total; return this; } @@ -165,11 +166,11 @@ public String getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(String total) { + public void setTotal(@jakarta.annotation.Nullable String total) { this.total = total; } - public AssetWallet pending(String pending) { + public AssetWallet pending(@jakarta.annotation.Nullable String pending) { this.pending = pending; return this; } @@ -188,11 +189,11 @@ public String getPending() { @JsonProperty(JSON_PROPERTY_PENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPending(String pending) { + public void setPending(@jakarta.annotation.Nullable String pending) { this.pending = pending; } - public AssetWallet staked(String staked) { + public AssetWallet staked(@jakarta.annotation.Nullable String staked) { this.staked = staked; return this; } @@ -211,11 +212,11 @@ public String getStaked() { @JsonProperty(JSON_PROPERTY_STAKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStaked(String staked) { + public void setStaked(@jakarta.annotation.Nullable String staked) { this.staked = staked; } - public AssetWallet frozen(String frozen) { + public AssetWallet frozen(@jakarta.annotation.Nullable String frozen) { this.frozen = frozen; return this; } @@ -234,11 +235,11 @@ public String getFrozen() { @JsonProperty(JSON_PROPERTY_FROZEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFrozen(String frozen) { + public void setFrozen(@jakarta.annotation.Nullable String frozen) { this.frozen = frozen; } - public AssetWallet lockedAmount(String lockedAmount) { + public AssetWallet lockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; return this; } @@ -257,11 +258,11 @@ public String getLockedAmount() { @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLockedAmount(String lockedAmount) { + public void setLockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; } - public AssetWallet blockHeight(String blockHeight) { + public AssetWallet blockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; return this; } @@ -280,11 +281,11 @@ public String getBlockHeight() { @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHeight(String blockHeight) { + public void setBlockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; } - public AssetWallet blockHash(String blockHash) { + public AssetWallet blockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; return this; } @@ -303,11 +304,11 @@ public String getBlockHash() { @JsonProperty(JSON_PROPERTY_BLOCK_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHash(String blockHash) { + public void setBlockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; } - public AssetWallet creationTimestamp(String creationTimestamp) { + public AssetWallet creationTimestamp(@jakarta.annotation.Nullable String creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } @@ -326,7 +327,7 @@ public String getCreationTimestamp() { @JsonProperty(JSON_PROPERTY_CREATION_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreationTimestamp(String creationTimestamp) { + public void setCreationTimestamp(@jakarta.annotation.Nullable String creationTimestamp) { this.creationTimestamp = creationTimestamp; } @@ -440,8 +441,7 @@ public String toUrlQueryString(String prefix) { "%svaultId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getVaultId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultId())))); } // add `assetId` to the URL query string @@ -451,8 +451,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `available` to the URL query string @@ -462,9 +461,7 @@ public String toUrlQueryString(String prefix) { "%savailable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAvailable()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAvailable())))); } // add `total` to the URL query string @@ -474,8 +471,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } // add `pending` to the URL query string @@ -485,8 +481,7 @@ public String toUrlQueryString(String prefix) { "%spending%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPending()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPending())))); } // add `staked` to the URL query string @@ -496,8 +491,7 @@ public String toUrlQueryString(String prefix) { "%sstaked%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStaked()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStaked())))); } // add `frozen` to the URL query string @@ -507,8 +501,7 @@ public String toUrlQueryString(String prefix) { "%sfrozen%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFrozen()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFrozen())))); } // add `lockedAmount` to the URL query string @@ -518,10 +511,7 @@ public String toUrlQueryString(String prefix) { "%slockedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); } // add `blockHeight` to the URL query string @@ -531,10 +521,7 @@ public String toUrlQueryString(String prefix) { "%sblockHeight%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHeight()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHeight())))); } // add `blockHash` to the URL query string @@ -544,9 +531,7 @@ public String toUrlQueryString(String prefix) { "%sblockHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); } // add `creationTimestamp` to the URL query string @@ -556,10 +541,7 @@ public String toUrlQueryString(String prefix) { "%screationTimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreationTimestamp()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreationTimestamp())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AuditLogData.java b/src/main/java/com/fireblocks/sdk/model/AuditLogData.java index 7c6c0ec0..8005dc57 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuditLogData.java +++ b/src/main/java/com/fireblocks/sdk/model/AuditLogData.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -33,35 +32,37 @@ AuditLogData.JSON_PROPERTY_TENANT_ID, AuditLogData.JSON_PROPERTY_USER_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AuditLogData { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private BigDecimal timestamp; + @jakarta.annotation.Nullable private BigDecimal timestamp; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private BigDecimal createdAt; + @jakarta.annotation.Nullable private BigDecimal createdAt; public static final String JSON_PROPERTY_USER = "user"; - private String user; + @jakarta.annotation.Nullable private String user; public static final String JSON_PROPERTY_SUBJECT = "subject"; - private String subject; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_EVENT = "event"; - private String event; + @jakarta.annotation.Nullable private String event; public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; - private String tenantId; + @jakarta.annotation.Nullable private String tenantId; public static final String JSON_PROPERTY_USER_ID = "userId"; - private String userId; + @jakarta.annotation.Nullable private String userId; public AuditLogData() {} - public AuditLogData id(String id) { + public AuditLogData id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -80,11 +81,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public AuditLogData timestamp(BigDecimal timestamp) { + public AuditLogData timestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; return this; } @@ -103,11 +104,11 @@ public BigDecimal getTimestamp() { @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; } - public AuditLogData createdAt(BigDecimal createdAt) { + public AuditLogData createdAt(@jakarta.annotation.Nullable BigDecimal createdAt) { this.createdAt = createdAt; return this; } @@ -126,11 +127,11 @@ public BigDecimal getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable BigDecimal createdAt) { this.createdAt = createdAt; } - public AuditLogData user(String user) { + public AuditLogData user(@jakarta.annotation.Nullable String user) { this.user = user; return this; } @@ -149,11 +150,11 @@ public String getUser() { @JsonProperty(JSON_PROPERTY_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUser(String user) { + public void setUser(@jakarta.annotation.Nullable String user) { this.user = user; } - public AuditLogData subject(String subject) { + public AuditLogData subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -172,11 +173,11 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public AuditLogData event(String event) { + public AuditLogData event(@jakarta.annotation.Nullable String event) { this.event = event; return this; } @@ -195,11 +196,11 @@ public String getEvent() { @JsonProperty(JSON_PROPERTY_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEvent(String event) { + public void setEvent(@jakarta.annotation.Nullable String event) { this.event = event; } - public AuditLogData tenantId(String tenantId) { + public AuditLogData tenantId(@jakarta.annotation.Nullable String tenantId) { this.tenantId = tenantId; return this; } @@ -218,11 +219,11 @@ public String getTenantId() { @JsonProperty(JSON_PROPERTY_TENANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTenantId(String tenantId) { + public void setTenantId(@jakarta.annotation.Nullable String tenantId) { this.tenantId = tenantId; } - public AuditLogData userId(String userId) { + public AuditLogData userId(@jakarta.annotation.Nullable String userId) { this.userId = userId; return this; } @@ -241,7 +242,7 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserId(String userId) { + public void setUserId(@jakarta.annotation.Nullable String userId) { this.userId = userId; } @@ -334,10 +335,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `timestamp` to the URL query string @@ -347,9 +345,7 @@ public String toUrlQueryString(String prefix) { "%stimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimestamp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); } // add `createdAt` to the URL query string @@ -359,9 +355,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `user` to the URL query string @@ -371,8 +365,7 @@ public String toUrlQueryString(String prefix) { "%suser%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUser()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUser())))); } // add `subject` to the URL query string @@ -382,8 +375,7 @@ public String toUrlQueryString(String prefix) { "%ssubject%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSubject()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubject())))); } // add `event` to the URL query string @@ -393,8 +385,7 @@ public String toUrlQueryString(String prefix) { "%sevent%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEvent()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEvent())))); } // add `tenantId` to the URL query string @@ -404,8 +395,7 @@ public String toUrlQueryString(String prefix) { "%stenantId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTenantId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); } // add `userId` to the URL query string @@ -415,8 +405,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AuditorData.java b/src/main/java/com/fireblocks/sdk/model/AuditorData.java index c19c6f1a..a668c36f 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuditorData.java +++ b/src/main/java/com/fireblocks/sdk/model/AuditorData.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,32 @@ AuditorData.JSON_PROPERTY_IMAGE_U_R_L, AuditorData.JSON_PROPERTY_LINK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AuditorData { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_IMAGE_U_R_L = "imageURL"; - private String imageURL; + @jakarta.annotation.Nonnull private String imageURL; public static final String JSON_PROPERTY_LINK = "link"; - private String link; + @jakarta.annotation.Nonnull private String link; public AuditorData() {} - public AuditorData name(String name) { + @JsonCreator + public AuditorData( + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_IMAGE_U_R_L, required = true) String imageURL, + @JsonProperty(value = JSON_PROPERTY_LINK, required = true) String link) { + this.name = name; + this.imageURL = imageURL; + this.link = link; + } + + public AuditorData name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -59,11 +71,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AuditorData imageURL(String imageURL) { + public AuditorData imageURL(@jakarta.annotation.Nonnull String imageURL) { this.imageURL = imageURL; return this; } @@ -82,11 +94,11 @@ public String getImageURL() { @JsonProperty(JSON_PROPERTY_IMAGE_U_R_L) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setImageURL(String imageURL) { + public void setImageURL(@jakarta.annotation.Nonnull String imageURL) { this.imageURL = imageURL; } - public AuditorData link(String link) { + public AuditorData link(@jakarta.annotation.Nonnull String link) { this.link = link; return this; } @@ -105,7 +117,7 @@ public String getLink() { @JsonProperty(JSON_PROPERTY_LINK) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLink(String link) { + public void setLink(@jakarta.annotation.Nonnull String link) { this.link = link; } @@ -190,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `imageURL` to the URL query string @@ -201,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%simageURL%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getImageURL()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getImageURL())))); } // add `link` to the URL query string @@ -212,8 +222,7 @@ public String toUrlQueryString(String prefix) { "%slink%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLink()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLink())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java b/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java index 119cff73..1cf9de31 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -28,20 +27,22 @@ /** AuthorizationGroups */ @JsonPropertyOrder({AuthorizationGroups.JSON_PROPERTY_TH, AuthorizationGroups.JSON_PROPERTY_USERS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AuthorizationGroups { public static final String JSON_PROPERTY_TH = "th"; - private BigDecimal th; + @jakarta.annotation.Nullable private BigDecimal th; /** Gets or Sets inner */ public enum InnerEnum { - PENDING_AUTHORIZATION("PENDING_AUTHORIZATION"), + PENDING_AUTHORIZATION(String.valueOf("PENDING_AUTHORIZATION")), - APPROVED("APPROVED"), + APPROVED(String.valueOf("APPROVED")), - REJECTED("REJECTED"), + REJECTED(String.valueOf("REJECTED")), - NA("NA"); + NA(String.valueOf("NA")); private String value; @@ -71,11 +72,11 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_USERS = "users"; - private Map users = new HashMap<>(); + @jakarta.annotation.Nullable private Map users = new HashMap<>(); public AuthorizationGroups() {} - public AuthorizationGroups th(BigDecimal th) { + public AuthorizationGroups th(@jakarta.annotation.Nullable BigDecimal th) { this.th = th; return this; } @@ -94,11 +95,11 @@ public BigDecimal getTh() { @JsonProperty(JSON_PROPERTY_TH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTh(BigDecimal th) { + public void setTh(@jakarta.annotation.Nullable BigDecimal th) { this.th = th; } - public AuthorizationGroups users(Map users) { + public AuthorizationGroups users(@jakarta.annotation.Nullable Map users) { this.users = users; return this; } @@ -125,7 +126,7 @@ public Map getUsers() { @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(Map users) { + public void setUsers(@jakarta.annotation.Nullable Map users) { this.users = users; } @@ -206,10 +207,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sth%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getTh()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTh())))); } // add `users` to the URL query string @@ -225,10 +223,8 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getUsers().get(_key), - URLEncoder.encode( - String.valueOf(getUsers().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUsers().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java b/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java index fdd61f5f..f31422b2 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,17 +33,19 @@ AuthorizationInfo.JSON_PROPERTY_LOGIC, AuthorizationInfo.JSON_PROPERTY_GROUPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class AuthorizationInfo { public static final String JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER = "allowOperatorAsAuthorizer"; - private Boolean allowOperatorAsAuthorizer; + @jakarta.annotation.Nullable private Boolean allowOperatorAsAuthorizer; /** Gets or Sets logic */ public enum LogicEnum { - AND("AND"), + AND(String.valueOf("AND")), - OR("OR"); + OR(String.valueOf("OR")); private String value; @@ -74,14 +75,15 @@ public static LogicEnum fromValue(String value) { } public static final String JSON_PROPERTY_LOGIC = "logic"; - private LogicEnum logic; + @jakarta.annotation.Nullable private LogicEnum logic; public static final String JSON_PROPERTY_GROUPS = "groups"; - private List groups; + @jakarta.annotation.Nullable private List groups = new ArrayList<>(); public AuthorizationInfo() {} - public AuthorizationInfo allowOperatorAsAuthorizer(Boolean allowOperatorAsAuthorizer) { + public AuthorizationInfo allowOperatorAsAuthorizer( + @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; return this; } @@ -100,11 +102,12 @@ public Boolean getAllowOperatorAsAuthorizer() { @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowOperatorAsAuthorizer(Boolean allowOperatorAsAuthorizer) { + public void setAllowOperatorAsAuthorizer( + @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; } - public AuthorizationInfo logic(LogicEnum logic) { + public AuthorizationInfo logic(@jakarta.annotation.Nullable LogicEnum logic) { this.logic = logic; return this; } @@ -123,11 +126,11 @@ public LogicEnum getLogic() { @JsonProperty(JSON_PROPERTY_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogic(LogicEnum logic) { + public void setLogic(@jakarta.annotation.Nullable LogicEnum logic) { this.logic = logic; } - public AuthorizationInfo groups(List groups) { + public AuthorizationInfo groups(@jakarta.annotation.Nullable List groups) { this.groups = groups; return this; } @@ -154,7 +157,7 @@ public List getGroups() { @JsonProperty(JSON_PROPERTY_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroups(List groups) { + public void setGroups(@jakarta.annotation.Nullable List groups) { this.groups = groups; } @@ -242,10 +245,8 @@ public String toUrlQueryString(String prefix) { "%sallowOperatorAsAuthorizer%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAllowOperatorAsAuthorizer()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAllowOperatorAsAuthorizer())))); } // add `logic` to the URL query string @@ -255,8 +256,7 @@ public String toUrlQueryString(String prefix) { "%slogic%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLogic()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLogic())))); } // add `groups` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java b/src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java similarity index 71% rename from src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java rename to src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java index 4204248b..ff1fc883 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java +++ b/src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java @@ -13,36 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; -/** AddAssetToExternalWalletRequestOneOf */ +/** Basic external wallet request with address information */ @JsonPropertyOrder({ - AddAssetToExternalWalletRequestOneOf.JSON_PROPERTY_ADDRESS, - AddAssetToExternalWalletRequestOneOf.JSON_PROPERTY_TAG + BasicAddressRequest.JSON_PROPERTY_ADDRESS, + BasicAddressRequest.JSON_PROPERTY_TAG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AddAssetToExternalWalletRequestOneOf { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class BasicAddressRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; - public AddAssetToExternalWalletRequestOneOf() {} + public BasicAddressRequest() {} - public AddAssetToExternalWalletRequestOneOf address(String address) { + @JsonCreator + public BasicAddressRequest( + @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { + this.address = address; + } + + public BasicAddressRequest address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } /** - * The wallet's address (or xpub) of the wallet + * The wallet's address (or xpub) of the external wallet * * @return address */ @@ -55,11 +63,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public AddAssetToExternalWalletRequestOneOf tag(String tag) { + public BasicAddressRequest tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -79,11 +87,11 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - /** Return true if this AddAssetToExternalWalletRequest_oneOf object is equal to o. */ + /** Return true if this BasicAddressRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,10 +100,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddAssetToExternalWalletRequestOneOf addAssetToExternalWalletRequestOneOf = - (AddAssetToExternalWalletRequestOneOf) o; - return Objects.equals(this.address, addAssetToExternalWalletRequestOneOf.address) - && Objects.equals(this.tag, addAssetToExternalWalletRequestOneOf.tag); + BasicAddressRequest basicAddressRequest = (BasicAddressRequest) o; + return Objects.equals(this.address, basicAddressRequest.address) + && Objects.equals(this.tag, basicAddressRequest.tag); } @Override @@ -106,7 +113,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AddAssetToExternalWalletRequestOneOf {\n"); + sb.append("class BasicAddressRequest {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); @@ -163,8 +170,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `tag` to the URL query string @@ -174,8 +180,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/BlockInfo.java b/src/main/java/com/fireblocks/sdk/model/BlockInfo.java index fdf497f8..142d573e 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockInfo.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +26,19 @@ * blockHash is set to null. */ @JsonPropertyOrder({BlockInfo.JSON_PROPERTY_BLOCK_HEIGHT, BlockInfo.JSON_PROPERTY_BLOCK_HASH}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class BlockInfo { public static final String JSON_PROPERTY_BLOCK_HEIGHT = "blockHeight"; - private String blockHeight; + @jakarta.annotation.Nullable private String blockHeight; public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - private String blockHash; + @jakarta.annotation.Nullable private String blockHash; public BlockInfo() {} - public BlockInfo blockHeight(String blockHeight) { + public BlockInfo blockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; return this; } @@ -56,11 +57,11 @@ public String getBlockHeight() { @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHeight(String blockHeight) { + public void setBlockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; } - public BlockInfo blockHash(String blockHash) { + public BlockInfo blockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; return this; } @@ -79,7 +80,7 @@ public String getBlockHash() { @JsonProperty(JSON_PROPERTY_BLOCK_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHash(String blockHash) { + public void setBlockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; } @@ -162,10 +163,7 @@ public String toUrlQueryString(String prefix) { "%sblockHeight%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHeight()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHeight())))); } // add `blockHash` to the URL query string @@ -175,9 +173,7 @@ public String toUrlQueryString(String prefix) { "%sblockHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); } 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 index dc6f0a1d..48cb511a 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,31 @@ BlockchainExplorer.JSON_PROPERTY_TX, BlockchainExplorer.JSON_PROPERTY_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String base; + @jakarta.annotation.Nonnull private String base; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_TX = "tx"; - private String tx; + @jakarta.annotation.Nullable private String tx; public static final String JSON_PROPERTY_TOKEN = "token"; - private String token; + @jakarta.annotation.Nullable private String token; public BlockchainExplorer() {} - public BlockchainExplorer base(String base) { + @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; } @@ -63,11 +71,11 @@ public String getBase() { @JsonProperty(JSON_PROPERTY_BASE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBase(String base) { + public void setBase(@jakarta.annotation.Nonnull String base) { this.base = base; } - public BlockchainExplorer address(String address) { + public BlockchainExplorer address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -86,11 +94,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public BlockchainExplorer tx(String tx) { + public BlockchainExplorer tx(@jakarta.annotation.Nullable String tx) { this.tx = tx; return this; } @@ -109,11 +117,11 @@ public String getTx() { @JsonProperty(JSON_PROPERTY_TX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTx(String tx) { + public void setTx(@jakarta.annotation.Nullable String tx) { this.tx = tx; } - public BlockchainExplorer token(String token) { + public BlockchainExplorer token(@jakarta.annotation.Nullable String token) { this.token = token; return this; } @@ -132,7 +140,7 @@ public String getToken() { @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setToken(String token) { + public void setToken(@jakarta.annotation.Nullable String token) { this.token = token; } @@ -219,8 +227,7 @@ public String toUrlQueryString(String prefix) { "%sbase%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBase()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBase())))); } // add `address` to the URL query string @@ -230,8 +237,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `tx` to the URL query string @@ -239,10 +245,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%stx%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getTx()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTx())))); } // add `token` to the URL query string @@ -252,8 +255,7 @@ public String toUrlQueryString(String prefix) { "%stoken%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getToken()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index d3fcb278..cee4c0e9 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java @@ -18,23 +18,24 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String url; + @jakarta.annotation.Nonnull private String url; /** Media type */ public enum TypeEnum { - SVG_XML("image/svg+xml"), + IMAGE_SVG_XML(String.valueOf("image/svg+xml")), - PNG("image/png"); + IMAGE_PNG(String.valueOf("image/png")); private String value; @@ -64,11 +65,19 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public BlockchainMedia() {} - public BlockchainMedia url(String url) { + @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; } @@ -87,11 +96,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public BlockchainMedia type(TypeEnum type) { + public BlockchainMedia type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -110,7 +119,7 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } @@ -193,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `type` to the URL query string @@ -204,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 5009859d..284c39db 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +30,33 @@ BlockchainMetadata.JSON_PROPERTY_MEDIA, BlockchainMetadata.JSON_PROPERTY_EXPLORER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private AssetScope scope; + @jakarta.annotation.Nonnull private AssetScope scope; public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - private Boolean deprecated; + @jakarta.annotation.Nonnull private Boolean deprecated; public static final String JSON_PROPERTY_MEDIA = "media"; - private List media; + @jakarta.annotation.Nullable private List media = new ArrayList<>(); public static final String JSON_PROPERTY_EXPLORER = "explorer"; - private BlockchainExplorer explorer; + @jakarta.annotation.Nullable private BlockchainExplorer explorer; public BlockchainMetadata() {} - public BlockchainMetadata scope(AssetScope scope) { + @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; } @@ -65,11 +75,11 @@ public AssetScope getScope() { @JsonProperty(JSON_PROPERTY_SCOPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScope(AssetScope scope) { + public void setScope(@jakarta.annotation.Nonnull AssetScope scope) { this.scope = scope; } - public BlockchainMetadata deprecated(Boolean deprecated) { + public BlockchainMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; return this; } @@ -88,11 +98,11 @@ public Boolean getDeprecated() { @JsonProperty(JSON_PROPERTY_DEPRECATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeprecated(Boolean deprecated) { + public void setDeprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; } - public BlockchainMetadata media(List media) { + public BlockchainMetadata media(@jakarta.annotation.Nullable List media) { this.media = media; return this; } @@ -119,11 +129,11 @@ public List getMedia() { @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(List media) { + public void setMedia(@jakarta.annotation.Nullable List media) { this.media = media; } - public BlockchainMetadata explorer(BlockchainExplorer explorer) { + public BlockchainMetadata explorer(@jakarta.annotation.Nullable BlockchainExplorer explorer) { this.explorer = explorer; return this; } @@ -142,7 +152,7 @@ public BlockchainExplorer getExplorer() { @JsonProperty(JSON_PROPERTY_EXPLORER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExplorer(BlockchainExplorer explorer) { + public void setExplorer(@jakarta.annotation.Nullable BlockchainExplorer explorer) { this.explorer = explorer; } @@ -229,8 +239,7 @@ public String toUrlQueryString(String prefix) { "%sscope%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getScope()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScope())))); } // add `deprecated` to the URL query string @@ -240,9 +249,7 @@ public String toUrlQueryString(String prefix) { "%sdeprecated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDeprecated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); } // add `media` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java index f03c4946..67ddd875 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ BlockchainNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, BlockchainNotFoundErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public BlockchainNotFoundErrorResponse() {} - public BlockchainNotFoundErrorResponse message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public BlockchainNotFoundErrorResponse code(BigDecimal code) { + public BlockchainNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 2222b556..44ee3c26 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,22 +29,24 @@ BlockchainOnchain.JSON_PROPERTY_TEST, BlockchainOnchain.JSON_PROPERTY_SIGNING_ALGO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String protocol; + @jakarta.annotation.Nonnull private String protocol; public static final String JSON_PROPERTY_CHAIN_ID = "chainId"; - private String chainId; + @jakarta.annotation.Nullable private String chainId; public static final String JSON_PROPERTY_TEST = "test"; - private Boolean test; + @jakarta.annotation.Nonnull private Boolean test; /** Signing alghorithm */ public enum SigningAlgoEnum { - ECDSA_SECP256K1("ECDSA_SECP256K1"), + ECDSA_SECP256_K1(String.valueOf("ECDSA_SECP256K1")), - EDDSA_ED25519("EDDSA_ED25519"); + EDDSA_ED25519(String.valueOf("EDDSA_ED25519")); private String value; @@ -75,11 +76,22 @@ public static SigningAlgoEnum fromValue(String value) { } public static final String JSON_PROPERTY_SIGNING_ALGO = "signingAlgo"; - private SigningAlgoEnum signingAlgo; + @jakarta.annotation.Nonnull private SigningAlgoEnum signingAlgo; public BlockchainOnchain() {} - public BlockchainOnchain protocol(String protocol) { + @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; } @@ -98,11 +110,11 @@ public String getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocol(String protocol) { + public void setProtocol(@jakarta.annotation.Nonnull String protocol) { this.protocol = protocol; } - public BlockchainOnchain chainId(String chainId) { + public BlockchainOnchain chainId(@jakarta.annotation.Nullable String chainId) { this.chainId = chainId; return this; } @@ -121,11 +133,11 @@ public String getChainId() { @JsonProperty(JSON_PROPERTY_CHAIN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChainId(String chainId) { + public void setChainId(@jakarta.annotation.Nullable String chainId) { this.chainId = chainId; } - public BlockchainOnchain test(Boolean test) { + public BlockchainOnchain test(@jakarta.annotation.Nonnull Boolean test) { this.test = test; return this; } @@ -144,11 +156,11 @@ public Boolean getTest() { @JsonProperty(JSON_PROPERTY_TEST) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTest(Boolean test) { + public void setTest(@jakarta.annotation.Nonnull Boolean test) { this.test = test; } - public BlockchainOnchain signingAlgo(SigningAlgoEnum signingAlgo) { + public BlockchainOnchain signingAlgo(@jakarta.annotation.Nonnull SigningAlgoEnum signingAlgo) { this.signingAlgo = signingAlgo; return this; } @@ -167,7 +179,7 @@ public SigningAlgoEnum getSigningAlgo() { @JsonProperty(JSON_PROPERTY_SIGNING_ALGO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigningAlgo(SigningAlgoEnum signingAlgo) { + public void setSigningAlgo(@jakarta.annotation.Nonnull SigningAlgoEnum signingAlgo) { this.signingAlgo = signingAlgo; } @@ -254,8 +266,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } // add `chainId` to the URL query string @@ -265,8 +276,7 @@ public String toUrlQueryString(String prefix) { "%schainId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getChainId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChainId())))); } // add `test` to the URL query string @@ -276,8 +286,7 @@ public String toUrlQueryString(String prefix) { "%stest%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTest()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTest())))); } // add `signingAlgo` to the URL query string @@ -287,10 +296,7 @@ public String toUrlQueryString(String prefix) { "%ssigningAlgo%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSigningAlgo()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index e8a2a040..5c75e609 100644 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,49 @@ BlockchainResponse.JSON_PROPERTY_ONCHAIN, BlockchainResponse.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; - private String legacyId; + @jakarta.annotation.Nonnull private String legacyId; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nonnull private String displayName; public static final String JSON_PROPERTY_NATIVE_ASSET_ID = "nativeAssetId"; - private String nativeAssetId; + @jakarta.annotation.Nonnull private String nativeAssetId; public static final String JSON_PROPERTY_ONCHAIN = "onchain"; - private BlockchainOnchain onchain; + @jakarta.annotation.Nonnull private BlockchainOnchain onchain; public static final String JSON_PROPERTY_METADATA = "metadata"; - private BlockchainMetadata metadata; + @jakarta.annotation.Nonnull private BlockchainMetadata metadata; public BlockchainResponse() {} - public BlockchainResponse id(String id) { + @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; } @@ -71,11 +91,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public BlockchainResponse legacyId(String legacyId) { + public BlockchainResponse legacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; return this; } @@ -94,11 +114,11 @@ public String getLegacyId() { @JsonProperty(JSON_PROPERTY_LEGACY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(String legacyId) { + public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { this.legacyId = legacyId; } - public BlockchainResponse displayName(String displayName) { + public BlockchainResponse displayName(@jakarta.annotation.Nonnull String displayName) { this.displayName = displayName; return this; } @@ -117,11 +137,11 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nonnull String displayName) { this.displayName = displayName; } - public BlockchainResponse nativeAssetId(String nativeAssetId) { + public BlockchainResponse nativeAssetId(@jakarta.annotation.Nonnull String nativeAssetId) { this.nativeAssetId = nativeAssetId; return this; } @@ -140,11 +160,11 @@ public String getNativeAssetId() { @JsonProperty(JSON_PROPERTY_NATIVE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNativeAssetId(String nativeAssetId) { + public void setNativeAssetId(@jakarta.annotation.Nonnull String nativeAssetId) { this.nativeAssetId = nativeAssetId; } - public BlockchainResponse onchain(BlockchainOnchain onchain) { + public BlockchainResponse onchain(@jakarta.annotation.Nonnull BlockchainOnchain onchain) { this.onchain = onchain; return this; } @@ -163,11 +183,11 @@ public BlockchainOnchain getOnchain() { @JsonProperty(JSON_PROPERTY_ONCHAIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOnchain(BlockchainOnchain onchain) { + public void setOnchain(@jakarta.annotation.Nonnull BlockchainOnchain onchain) { this.onchain = onchain; } - public BlockchainResponse metadata(BlockchainMetadata metadata) { + public BlockchainResponse metadata(@jakarta.annotation.Nonnull BlockchainMetadata metadata) { this.metadata = metadata; return this; } @@ -186,7 +206,7 @@ public BlockchainMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(BlockchainMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull BlockchainMetadata metadata) { this.metadata = metadata; } @@ -275,10 +295,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `legacyId` to the URL query string @@ -288,8 +305,7 @@ public String toUrlQueryString(String prefix) { "%slegacyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLegacyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); } // add `displayName` to the URL query string @@ -299,10 +315,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `nativeAssetId` to the URL query string @@ -312,10 +325,7 @@ public String toUrlQueryString(String prefix) { "%snativeAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNativeAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNativeAssetId())))); } // add `onchain` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java b/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java index 3306fcaa..1041f80a 100644 --- a/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java +++ b/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,27 @@ CallbackHandler.JSON_PROPERTY_PUBLIC_KEY, CallbackHandler.JSON_PROPERTY_CERT_PUBLIC_KEY_HASH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String url; + @jakarta.annotation.Nonnull private String url; public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - private String publicKey; + @jakarta.annotation.Nullable private String publicKey; public static final String JSON_PROPERTY_CERT_PUBLIC_KEY_HASH = "certPublicKeyHash"; - private String certPublicKeyHash; + @jakarta.annotation.Nullable private String certPublicKeyHash; public CallbackHandler() {} - public CallbackHandler url(String url) { + @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; } @@ -59,11 +66,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public CallbackHandler publicKey(String publicKey) { + public CallbackHandler publicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; return this; } @@ -82,11 +89,12 @@ public String getPublicKey() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublicKey(String publicKey) { + public void setPublicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; } - public CallbackHandler certPublicKeyHash(String certPublicKeyHash) { + public CallbackHandler certPublicKeyHash( + @jakarta.annotation.Nullable String certPublicKeyHash) { this.certPublicKeyHash = certPublicKeyHash; return this; } @@ -105,7 +113,7 @@ public String getCertPublicKeyHash() { @JsonProperty(JSON_PROPERTY_CERT_PUBLIC_KEY_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCertPublicKeyHash(String certPublicKeyHash) { + public void setCertPublicKeyHash(@jakarta.annotation.Nullable String certPublicKeyHash) { this.certPublicKeyHash = certPublicKeyHash; } @@ -192,8 +200,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `publicKey` to the URL query string @@ -203,9 +210,7 @@ public String toUrlQueryString(String prefix) { "%spublicKey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); } // add `certPublicKeyHash` to the URL query string @@ -215,10 +220,7 @@ public String toUrlQueryString(String prefix) { "%scertPublicKeyHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCertPublicKeyHash()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 0c52286d..3d1aa75a 100644 --- a/src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,28 @@ CallbackHandlerRequest.JSON_PROPERTY_PUBLIC_KEY, CallbackHandlerRequest.JSON_PROPERTY_CERT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String url; + @jakarta.annotation.Nonnull private String url; public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - private String publicKey; + @jakarta.annotation.Nullable private String publicKey; public static final String JSON_PROPERTY_CERT = "cert"; - private String cert; + @jakarta.annotation.Nullable private String cert; public CallbackHandlerRequest() {} - public CallbackHandlerRequest url(String url) { + @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; } @@ -59,11 +67,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public CallbackHandlerRequest publicKey(String publicKey) { + public CallbackHandlerRequest publicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; return this; } @@ -82,11 +90,11 @@ public String getPublicKey() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublicKey(String publicKey) { + public void setPublicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; } - public CallbackHandlerRequest cert(String cert) { + public CallbackHandlerRequest cert(@jakarta.annotation.Nullable String cert) { this.cert = cert; return this; } @@ -105,7 +113,7 @@ public String getCert() { @JsonProperty(JSON_PROPERTY_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCert(String cert) { + public void setCert(@jakarta.annotation.Nullable String cert) { this.cert = cert; } @@ -190,8 +198,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `publicKey` to the URL query string @@ -201,9 +208,7 @@ public String toUrlQueryString(String prefix) { "%spublicKey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); } // add `cert` to the URL query string @@ -213,8 +218,7 @@ public String toUrlQueryString(String prefix) { "%scert%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCert()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCert())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CancelTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/CancelTransactionResponse.java index e8054b60..059875cb 100644 --- a/src/main/java/com/fireblocks/sdk/model/CancelTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CancelTransactionResponse.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** CancelTransactionResponse */ @JsonPropertyOrder({CancelTransactionResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CancelTransactionResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public CancelTransactionResponse() {} - public CancelTransactionResponse success(Boolean success) { + public CancelTransactionResponse success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -49,7 +50,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java b/src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java index b63df14a..cc4a3424 100644 --- a/src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +30,47 @@ ChainInfoResponse.JSON_PROPERTY_EPOCH_DURATION, ChainInfoResponse.JSON_PROPERTY_ADDITIONAL_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ChainInfoResponse { public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; - private String chainDescriptor; + @jakarta.annotation.Nonnull private String chainDescriptor; public static final String JSON_PROPERTY_CURRENT_EPOCH = "currentEpoch"; - private BigDecimal currentEpoch; + @jakarta.annotation.Nonnull private BigDecimal currentEpoch; public static final String JSON_PROPERTY_EPOCH_ELAPSED = "epochElapsed"; - private BigDecimal epochElapsed; + @jakarta.annotation.Nonnull private BigDecimal epochElapsed; public static final String JSON_PROPERTY_EPOCH_DURATION = "epochDuration"; - private BigDecimal epochDuration; + @jakarta.annotation.Nonnull private BigDecimal epochDuration; public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; - private AdditionalInfo additionalInfo; + @jakarta.annotation.Nonnull private AdditionalInfo additionalInfo; public ChainInfoResponse() {} - public ChainInfoResponse chainDescriptor(String chainDescriptor) { + @JsonCreator + public ChainInfoResponse( + @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) + String chainDescriptor, + @JsonProperty(value = JSON_PROPERTY_CURRENT_EPOCH, required = true) + BigDecimal currentEpoch, + @JsonProperty(value = JSON_PROPERTY_EPOCH_ELAPSED, required = true) + BigDecimal epochElapsed, + @JsonProperty(value = JSON_PROPERTY_EPOCH_DURATION, required = true) + BigDecimal epochDuration, + @JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = true) + AdditionalInfo additionalInfo) { + this.chainDescriptor = chainDescriptor; + this.currentEpoch = currentEpoch; + this.epochElapsed = epochElapsed; + this.epochDuration = epochDuration; + this.additionalInfo = additionalInfo; + } + + public ChainInfoResponse chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -68,11 +89,11 @@ public String getChainDescriptor() { @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainDescriptor(String chainDescriptor) { + public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; } - public ChainInfoResponse currentEpoch(BigDecimal currentEpoch) { + public ChainInfoResponse currentEpoch(@jakarta.annotation.Nonnull BigDecimal currentEpoch) { this.currentEpoch = currentEpoch; return this; } @@ -91,11 +112,11 @@ public BigDecimal getCurrentEpoch() { @JsonProperty(JSON_PROPERTY_CURRENT_EPOCH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCurrentEpoch(BigDecimal currentEpoch) { + public void setCurrentEpoch(@jakarta.annotation.Nonnull BigDecimal currentEpoch) { this.currentEpoch = currentEpoch; } - public ChainInfoResponse epochElapsed(BigDecimal epochElapsed) { + public ChainInfoResponse epochElapsed(@jakarta.annotation.Nonnull BigDecimal epochElapsed) { this.epochElapsed = epochElapsed; return this; } @@ -115,11 +136,11 @@ public BigDecimal getEpochElapsed() { @JsonProperty(JSON_PROPERTY_EPOCH_ELAPSED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEpochElapsed(BigDecimal epochElapsed) { + public void setEpochElapsed(@jakarta.annotation.Nonnull BigDecimal epochElapsed) { this.epochElapsed = epochElapsed; } - public ChainInfoResponse epochDuration(BigDecimal epochDuration) { + public ChainInfoResponse epochDuration(@jakarta.annotation.Nonnull BigDecimal epochDuration) { this.epochDuration = epochDuration; return this; } @@ -138,11 +159,12 @@ public BigDecimal getEpochDuration() { @JsonProperty(JSON_PROPERTY_EPOCH_DURATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEpochDuration(BigDecimal epochDuration) { + public void setEpochDuration(@jakarta.annotation.Nonnull BigDecimal epochDuration) { this.epochDuration = epochDuration; } - public ChainInfoResponse additionalInfo(AdditionalInfo additionalInfo) { + public ChainInfoResponse additionalInfo( + @jakarta.annotation.Nonnull AdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; return this; } @@ -161,7 +183,7 @@ public AdditionalInfo getAdditionalInfo() { @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdditionalInfo(AdditionalInfo additionalInfo) { + public void setAdditionalInfo(@jakarta.annotation.Nonnull AdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; } @@ -251,10 +273,7 @@ public String toUrlQueryString(String prefix) { "%schainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getChainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChainDescriptor())))); } // add `currentEpoch` to the URL query string @@ -264,10 +283,7 @@ public String toUrlQueryString(String prefix) { "%scurrentEpoch%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCurrentEpoch()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCurrentEpoch())))); } // add `epochElapsed` to the URL query string @@ -277,10 +293,7 @@ public String toUrlQueryString(String prefix) { "%sepochElapsed%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEpochElapsed()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEpochElapsed())))); } // add `epochDuration` to the URL query string @@ -290,10 +303,7 @@ public String toUrlQueryString(String prefix) { "%sepochDuration%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEpochDuration()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEpochDuration())))); } // add `additionalInfo` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java b/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java index ef2020cb..d5039a5c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java +++ b/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java @@ -24,61 +24,64 @@ ChannelDvnConfigWithConfirmations.JSON_PROPERTY_SEND_CONFIG, ChannelDvnConfigWithConfirmations.JSON_PROPERTY_RECEIVE_CONFIG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private ChannelDvnConfigWithConfirmationsSendConfig sendConfig; + @jakarta.annotation.Nullable private DvnConfigWithConfirmations sendConfig; public static final String JSON_PROPERTY_RECEIVE_CONFIG = "receiveConfig"; - private ChannelDvnConfigWithConfirmationsReceiveConfig receiveConfig; + @jakarta.annotation.Nullable private DvnConfigWithConfirmations receiveConfig; public ChannelDvnConfigWithConfirmations() {} public ChannelDvnConfigWithConfirmations sendConfig( - ChannelDvnConfigWithConfirmationsSendConfig sendConfig) { + @jakarta.annotation.Nullable DvnConfigWithConfirmations sendConfig) { this.sendConfig = sendConfig; return this; } /** - * Get sendConfig + * Outbound (source → peer) DVN config with confirmations. * * @return sendConfig */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEND_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ChannelDvnConfigWithConfirmationsSendConfig getSendConfig() { + public DvnConfigWithConfirmations getSendConfig() { return sendConfig; } @JsonProperty(JSON_PROPERTY_SEND_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSendConfig(ChannelDvnConfigWithConfirmationsSendConfig sendConfig) { + public void setSendConfig(@jakarta.annotation.Nullable DvnConfigWithConfirmations sendConfig) { this.sendConfig = sendConfig; } public ChannelDvnConfigWithConfirmations receiveConfig( - ChannelDvnConfigWithConfirmationsReceiveConfig receiveConfig) { + @jakarta.annotation.Nullable DvnConfigWithConfirmations receiveConfig) { this.receiveConfig = receiveConfig; return this; } /** - * Get receiveConfig + * Inbound (peer → source) DVN config with confirmations. * * @return receiveConfig */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ChannelDvnConfigWithConfirmationsReceiveConfig getReceiveConfig() { + public DvnConfigWithConfirmations getReceiveConfig() { return receiveConfig; } @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReceiveConfig(ChannelDvnConfigWithConfirmationsReceiveConfig receiveConfig) { + public void setReceiveConfig( + @jakarta.annotation.Nullable DvnConfigWithConfirmations receiveConfig) { this.receiveConfig = receiveConfig; } diff --git a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfig.java b/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfig.java deleted file mode 100644 index af44dc32..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfig.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.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ChannelDvnConfigWithConfirmationsReceiveConfig */ -@JsonPropertyOrder({ - ChannelDvnConfigWithConfirmationsReceiveConfig.JSON_PROPERTY_DVN_ADDRESSES, - ChannelDvnConfigWithConfirmationsReceiveConfig.JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES, - ChannelDvnConfigWithConfirmationsReceiveConfig.JSON_PROPERTY_OPTIONAL_THRESHOLD, - ChannelDvnConfigWithConfirmationsReceiveConfig.JSON_PROPERTY_CONFIRMATIONS -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ChannelDvnConfigWithConfirmationsReceiveConfig { - public static final String JSON_PROPERTY_DVN_ADDRESSES = "dvnAddresses"; - private List dvnAddresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES = "optionalDVNAddresses"; - private List optionalDVNAddresses; - - public static final String JSON_PROPERTY_OPTIONAL_THRESHOLD = "optionalThreshold"; - private BigDecimal optionalThreshold; - - public static final String JSON_PROPERTY_CONFIRMATIONS = "confirmations"; - private BigDecimal confirmations; - - public ChannelDvnConfigWithConfirmationsReceiveConfig() {} - - public ChannelDvnConfigWithConfirmationsReceiveConfig dvnAddresses(List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - return this; - } - - public ChannelDvnConfigWithConfirmationsReceiveConfig 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(List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - } - - public ChannelDvnConfigWithConfirmationsReceiveConfig optionalDVNAddresses( - List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - return this; - } - - public ChannelDvnConfigWithConfirmationsReceiveConfig 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(List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - } - - public ChannelDvnConfigWithConfirmationsReceiveConfig optionalThreshold( - 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(BigDecimal optionalThreshold) { - this.optionalThreshold = optionalThreshold; - } - - public ChannelDvnConfigWithConfirmationsReceiveConfig confirmations(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(BigDecimal confirmations) { - this.confirmations = confirmations; - } - - /** Return true if this ChannelDvnConfigWithConfirmations_receiveConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ChannelDvnConfigWithConfirmationsReceiveConfig - channelDvnConfigWithConfirmationsReceiveConfig = - (ChannelDvnConfigWithConfirmationsReceiveConfig) o; - return Objects.equals( - this.dvnAddresses, - channelDvnConfigWithConfirmationsReceiveConfig.dvnAddresses) - && Objects.equals( - this.optionalDVNAddresses, - channelDvnConfigWithConfirmationsReceiveConfig.optionalDVNAddresses) - && Objects.equals( - this.optionalThreshold, - channelDvnConfigWithConfirmationsReceiveConfig.optionalThreshold) - && Objects.equals( - this.confirmations, - channelDvnConfigWithConfirmationsReceiveConfig.confirmations); - } - - @Override - public int hashCode() { - return Objects.hash(dvnAddresses, optionalDVNAddresses, optionalThreshold, confirmations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ChannelDvnConfigWithConfirmationsReceiveConfig {\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), - URLEncoder.encode( - String.valueOf(getDvnAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - } - - // 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), - URLEncoder.encode( - String.valueOf(getOptionalDVNAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - } - - // add `optionalThreshold` to the URL query string - if (getOptionalThreshold() != null) { - joiner.add( - String.format( - "%soptionalThreshold%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getOptionalThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `confirmations` to the URL query string - if (getConfirmations() != null) { - joiner.add( - String.format( - "%sconfirmations%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getConfirmations()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfig.java b/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfig.java deleted file mode 100644 index 87e9327a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfig.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 java.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ChannelDvnConfigWithConfirmationsSendConfig */ -@JsonPropertyOrder({ - ChannelDvnConfigWithConfirmationsSendConfig.JSON_PROPERTY_DVN_ADDRESSES, - ChannelDvnConfigWithConfirmationsSendConfig.JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES, - ChannelDvnConfigWithConfirmationsSendConfig.JSON_PROPERTY_OPTIONAL_THRESHOLD, - ChannelDvnConfigWithConfirmationsSendConfig.JSON_PROPERTY_CONFIRMATIONS -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ChannelDvnConfigWithConfirmationsSendConfig { - public static final String JSON_PROPERTY_DVN_ADDRESSES = "dvnAddresses"; - private List dvnAddresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES = "optionalDVNAddresses"; - private List optionalDVNAddresses; - - public static final String JSON_PROPERTY_OPTIONAL_THRESHOLD = "optionalThreshold"; - private BigDecimal optionalThreshold; - - public static final String JSON_PROPERTY_CONFIRMATIONS = "confirmations"; - private BigDecimal confirmations; - - public ChannelDvnConfigWithConfirmationsSendConfig() {} - - public ChannelDvnConfigWithConfirmationsSendConfig dvnAddresses(List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - return this; - } - - public ChannelDvnConfigWithConfirmationsSendConfig 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(List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - } - - public ChannelDvnConfigWithConfirmationsSendConfig optionalDVNAddresses( - List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - return this; - } - - public ChannelDvnConfigWithConfirmationsSendConfig 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(List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - } - - public ChannelDvnConfigWithConfirmationsSendConfig optionalThreshold( - 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(BigDecimal optionalThreshold) { - this.optionalThreshold = optionalThreshold; - } - - public ChannelDvnConfigWithConfirmationsSendConfig confirmations(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(BigDecimal confirmations) { - this.confirmations = confirmations; - } - - /** Return true if this ChannelDvnConfigWithConfirmations_sendConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ChannelDvnConfigWithConfirmationsSendConfig channelDvnConfigWithConfirmationsSendConfig = - (ChannelDvnConfigWithConfirmationsSendConfig) o; - return Objects.equals( - this.dvnAddresses, channelDvnConfigWithConfirmationsSendConfig.dvnAddresses) - && Objects.equals( - this.optionalDVNAddresses, - channelDvnConfigWithConfirmationsSendConfig.optionalDVNAddresses) - && Objects.equals( - this.optionalThreshold, - channelDvnConfigWithConfirmationsSendConfig.optionalThreshold) - && Objects.equals( - this.confirmations, - channelDvnConfigWithConfirmationsSendConfig.confirmations); - } - - @Override - public int hashCode() { - return Objects.hash(dvnAddresses, optionalDVNAddresses, optionalThreshold, confirmations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ChannelDvnConfigWithConfirmationsSendConfig {\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), - URLEncoder.encode( - String.valueOf(getDvnAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - } - - // 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), - URLEncoder.encode( - String.valueOf(getOptionalDVNAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - } - - // add `optionalThreshold` to the URL query string - if (getOptionalThreshold() != null) { - joiner.add( - String.format( - "%soptionalThreshold%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getOptionalThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `confirmations` to the URL query string - if (getConfirmations() != null) { - joiner.add( - String.format( - "%sconfirmations%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getConfirmations()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java b/src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java index 6d9e64bf..42cc2ed0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,30 @@ ClaimRewardsRequest.JSON_PROPERTY_FEE_LEVEL, ClaimRewardsRequest.JSON_PROPERTY_TX_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ClaimRewardsRequest { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevel feeLevel; + @jakarta.annotation.Nullable private FeeLevel feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public ClaimRewardsRequest() {} - public ClaimRewardsRequest id(String id) { + @JsonCreator + public ClaimRewardsRequest(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + this.id = id; + } + + public ClaimRewardsRequest id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -63,11 +70,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public ClaimRewardsRequest fee(String fee) { + public ClaimRewardsRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -87,11 +94,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public ClaimRewardsRequest feeLevel(FeeLevel feeLevel) { + public ClaimRewardsRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; return this; } @@ -110,11 +117,11 @@ public FeeLevel getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; } - public ClaimRewardsRequest txNote(String txNote) { + public ClaimRewardsRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -133,7 +140,7 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } @@ -218,10 +225,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `fee` to the URL query string @@ -231,8 +235,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -242,8 +245,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `txNote` to the URL query string @@ -253,8 +255,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); } 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 index b861d990..8325c8be 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,32 @@ CollectionBurnRequestDto.JSON_PROPERTY_TOKEN_ID, CollectionBurnRequestDto.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_TOKEN_ID = "tokenId"; - private String tokenId; + @jakarta.annotation.Nonnull private String tokenId; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public CollectionBurnRequestDto() {} - public CollectionBurnRequestDto vaultAccountId(String vaultAccountId) { + @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; } @@ -59,11 +71,11 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public CollectionBurnRequestDto tokenId(String tokenId) { + public CollectionBurnRequestDto tokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; return this; } @@ -82,11 +94,11 @@ public String getTokenId() { @JsonProperty(JSON_PROPERTY_TOKEN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenId(String tokenId) { + public void setTokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; } - public CollectionBurnRequestDto amount(String amount) { + public CollectionBurnRequestDto amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -106,7 +118,7 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } @@ -191,10 +203,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `tokenId` to the URL query string @@ -204,8 +213,7 @@ public String toUrlQueryString(String prefix) { "%stokenId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTokenId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTokenId())))); } // add `amount` to the URL query string @@ -215,8 +223,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 698784b8..0a244953 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String txId; + @jakarta.annotation.Nonnull private String txId; public CollectionBurnResponseDto() {} - public CollectionBurnResponseDto txId(String txId) { + @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; } @@ -49,7 +57,7 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 7f6c2fe7..c5882039 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -31,32 +31,52 @@ CollectionDeployRequestDto.JSON_PROPERTY_ADMIN_ADDRESS, CollectionDeployRequestDto.JSON_PROPERTY_DISPLAY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String baseAssetId; + @jakarta.annotation.Nonnull private String baseAssetId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_TYPE = "type"; - private CollectionType type; + @jakarta.annotation.Nonnull private CollectionType type; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nonnull private String symbol; public static final String JSON_PROPERTY_ADMIN_ADDRESS = "adminAddress"; - private String adminAddress; + @jakarta.annotation.Nonnull private String adminAddress; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public CollectionDeployRequestDto() {} - public CollectionDeployRequestDto baseAssetId(String baseAssetId) { + @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; } @@ -75,11 +95,12 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; } - public CollectionDeployRequestDto vaultAccountId(String vaultAccountId) { + public CollectionDeployRequestDto vaultAccountId( + @jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -98,11 +119,11 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public CollectionDeployRequestDto type(CollectionType type) { + public CollectionDeployRequestDto type(@jakarta.annotation.Nonnull CollectionType type) { this.type = type; return this; } @@ -121,11 +142,11 @@ public CollectionType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(CollectionType type) { + public void setType(@jakarta.annotation.Nonnull CollectionType type) { this.type = type; } - public CollectionDeployRequestDto name(String name) { + public CollectionDeployRequestDto name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -144,11 +165,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public CollectionDeployRequestDto symbol(String symbol) { + public CollectionDeployRequestDto symbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; return this; } @@ -167,11 +188,12 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public CollectionDeployRequestDto adminAddress(String adminAddress) { + public CollectionDeployRequestDto adminAddress( + @jakarta.annotation.Nonnull String adminAddress) { this.adminAddress = adminAddress; return this; } @@ -190,11 +212,11 @@ public String getAdminAddress() { @JsonProperty(JSON_PROPERTY_ADMIN_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdminAddress(String adminAddress) { + public void setAdminAddress(@jakarta.annotation.Nonnull String adminAddress) { this.adminAddress = adminAddress; } - public CollectionDeployRequestDto displayName(String displayName) { + public CollectionDeployRequestDto displayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -213,7 +235,7 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } @@ -307,10 +329,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } // add `vaultAccountId` to the URL query string @@ -320,10 +339,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `type` to the URL query string @@ -333,8 +349,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `name` to the URL query string @@ -344,8 +359,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `symbol` to the URL query string @@ -355,8 +369,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `adminAddress` to the URL query string @@ -366,10 +379,7 @@ public String toUrlQueryString(String prefix) { "%sadminAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdminAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAdminAddress())))); } // add `displayName` to the URL query string @@ -379,10 +389,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index eb613fcc..e4b00ee7 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -31,16 +30,18 @@ CollectionLinkDto.JSON_PROPERTY_DISPLAY_NAME, CollectionLinkDto.JSON_PROPERTY_COLLECTION_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; /** The collection status */ public enum StatusEnum { - PENDING("PENDING"), + PENDING(String.valueOf("PENDING")), - COMPLETED("COMPLETED"); + COMPLETED(String.valueOf("COMPLETED")); private String value; @@ -70,20 +71,30 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_TYPE = "type"; - private CollectionType type; + @jakarta.annotation.Nonnull private CollectionType type; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_COLLECTION_METADATA = "collectionMetadata"; - private CollectionMetadataDto collectionMetadata; + @jakarta.annotation.Nullable private CollectionMetadataDto collectionMetadata; public CollectionLinkDto() {} - public CollectionLinkDto id(String id) { + @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; } @@ -102,11 +113,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public CollectionLinkDto status(StatusEnum status) { + public CollectionLinkDto status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -125,11 +136,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public CollectionLinkDto type(CollectionType type) { + public CollectionLinkDto type(@jakarta.annotation.Nonnull CollectionType type) { this.type = type; return this; } @@ -148,11 +159,11 @@ public CollectionType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(CollectionType type) { + public void setType(@jakarta.annotation.Nonnull CollectionType type) { this.type = type; } - public CollectionLinkDto displayName(String displayName) { + public CollectionLinkDto displayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -172,11 +183,12 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public CollectionLinkDto collectionMetadata(CollectionMetadataDto collectionMetadata) { + public CollectionLinkDto collectionMetadata( + @jakarta.annotation.Nullable CollectionMetadataDto collectionMetadata) { this.collectionMetadata = collectionMetadata; return this; } @@ -195,7 +207,8 @@ public CollectionMetadataDto getCollectionMetadata() { @JsonProperty(JSON_PROPERTY_COLLECTION_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCollectionMetadata(CollectionMetadataDto collectionMetadata) { + public void setCollectionMetadata( + @jakarta.annotation.Nullable CollectionMetadataDto collectionMetadata) { this.collectionMetadata = collectionMetadata; } @@ -284,10 +297,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `status` to the URL query string @@ -297,8 +307,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `type` to the URL query string @@ -308,8 +317,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `displayName` to the URL query string @@ -319,10 +327,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `collectionMetadata` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionMetadataDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionMetadataDto.java index 48a473ec..7a40a8c6 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionMetadataDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionMetadataDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,41 @@ CollectionMetadataDto.JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR, CollectionMetadataDto.JSON_PROPERTY_CONTRACT_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CollectionMetadataDto { public static final String JSON_PROPERTY_FB_COLLECTION_ID = "fbCollectionId"; - private String fbCollectionId; + @jakarta.annotation.Nonnull private String fbCollectionId; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nullable private String symbol; public static final String JSON_PROPERTY_STANDARD = "standard"; - private String standard; + @jakarta.annotation.Nullable private String standard; public static final String JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR = "blockchainDescriptor"; - private String blockchainDescriptor; + @jakarta.annotation.Nonnull private String blockchainDescriptor; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nullable private String contractAddress; public CollectionMetadataDto() {} - public CollectionMetadataDto fbCollectionId(String fbCollectionId) { + @JsonCreator + public CollectionMetadataDto( + @JsonProperty(value = JSON_PROPERTY_FB_COLLECTION_ID, required = true) + String fbCollectionId, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR, required = true) + String blockchainDescriptor) { + this.fbCollectionId = fbCollectionId; + this.blockchainDescriptor = blockchainDescriptor; + } + + public CollectionMetadataDto fbCollectionId(@jakarta.annotation.Nonnull String fbCollectionId) { this.fbCollectionId = fbCollectionId; return this; } @@ -71,11 +83,11 @@ public String getFbCollectionId() { @JsonProperty(JSON_PROPERTY_FB_COLLECTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFbCollectionId(String fbCollectionId) { + public void setFbCollectionId(@jakarta.annotation.Nonnull String fbCollectionId) { this.fbCollectionId = fbCollectionId; } - public CollectionMetadataDto name(String name) { + public CollectionMetadataDto name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -94,11 +106,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public CollectionMetadataDto symbol(String symbol) { + public CollectionMetadataDto symbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; return this; } @@ -117,11 +129,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; } - public CollectionMetadataDto standard(String standard) { + public CollectionMetadataDto standard(@jakarta.annotation.Nullable String standard) { this.standard = standard; return this; } @@ -140,11 +152,12 @@ public String getStandard() { @JsonProperty(JSON_PROPERTY_STANDARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStandard(String standard) { + public void setStandard(@jakarta.annotation.Nullable String standard) { this.standard = standard; } - public CollectionMetadataDto blockchainDescriptor(String blockchainDescriptor) { + public CollectionMetadataDto blockchainDescriptor( + @jakarta.annotation.Nonnull String blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; return this; } @@ -163,11 +176,12 @@ public String getBlockchainDescriptor() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainDescriptor(String blockchainDescriptor) { + public void setBlockchainDescriptor(@jakarta.annotation.Nonnull String blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; } - public CollectionMetadataDto contractAddress(String contractAddress) { + public CollectionMetadataDto contractAddress( + @jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -186,7 +200,7 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; } @@ -281,10 +295,7 @@ public String toUrlQueryString(String prefix) { "%sfbCollectionId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFbCollectionId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFbCollectionId())))); } // add `name` to the URL query string @@ -294,8 +305,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `symbol` to the URL query string @@ -305,8 +315,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `standard` to the URL query string @@ -316,8 +325,7 @@ public String toUrlQueryString(String prefix) { "%sstandard%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStandard()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStandard())))); } // add `blockchainDescriptor` to the URL query string @@ -327,10 +335,8 @@ public String toUrlQueryString(String prefix) { "%sblockchainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBlockchainDescriptor())))); } // add `contractAddress` to the URL query string @@ -340,10 +346,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } 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 index c147c8c9..ca61183a 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,43 @@ CollectionMintRequestDto.JSON_PROPERTY_METADATA_U_R_I, CollectionMintRequestDto.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_TO = "to"; - private String to; + @jakarta.annotation.Nonnull private String to; public static final String JSON_PROPERTY_TOKEN_ID = "tokenId"; - private String tokenId; + @jakarta.annotation.Nonnull private String tokenId; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_METADATA_U_R_I = "metadataURI"; - private String metadataURI; + @jakarta.annotation.Nullable private String metadataURI; public static final String JSON_PROPERTY_METADATA = "metadata"; - private CollectionTokenMetadataDto metadata; + @jakarta.annotation.Nullable private CollectionTokenMetadataDto metadata; public CollectionMintRequestDto() {} - public CollectionMintRequestDto vaultAccountId(String vaultAccountId) { + @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; } @@ -71,11 +85,11 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public CollectionMintRequestDto to(String to) { + public CollectionMintRequestDto to(@jakarta.annotation.Nonnull String to) { this.to = to; return this; } @@ -94,11 +108,11 @@ public String getTo() { @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTo(String to) { + public void setTo(@jakarta.annotation.Nonnull String to) { this.to = to; } - public CollectionMintRequestDto tokenId(String tokenId) { + public CollectionMintRequestDto tokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; return this; } @@ -117,11 +131,11 @@ public String getTokenId() { @JsonProperty(JSON_PROPERTY_TOKEN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenId(String tokenId) { + public void setTokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; } - public CollectionMintRequestDto amount(String amount) { + public CollectionMintRequestDto amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -141,11 +155,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public CollectionMintRequestDto metadataURI(String metadataURI) { + public CollectionMintRequestDto metadataURI(@jakarta.annotation.Nullable String metadataURI) { this.metadataURI = metadataURI; return this; } @@ -164,11 +178,12 @@ public String getMetadataURI() { @JsonProperty(JSON_PROPERTY_METADATA_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadataURI(String metadataURI) { + public void setMetadataURI(@jakarta.annotation.Nullable String metadataURI) { this.metadataURI = metadataURI; } - public CollectionMintRequestDto metadata(CollectionTokenMetadataDto metadata) { + public CollectionMintRequestDto metadata( + @jakarta.annotation.Nullable CollectionTokenMetadataDto metadata) { this.metadata = metadata; return this; } @@ -187,7 +202,7 @@ public CollectionTokenMetadataDto getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(CollectionTokenMetadataDto metadata) { + public void setMetadata(@jakarta.annotation.Nullable CollectionTokenMetadataDto metadata) { this.metadata = metadata; } @@ -278,10 +293,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `to` to the URL query string @@ -289,10 +301,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sto%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getTo()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTo())))); } // add `tokenId` to the URL query string @@ -302,8 +311,7 @@ public String toUrlQueryString(String prefix) { "%stokenId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTokenId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTokenId())))); } // add `amount` to the URL query string @@ -313,8 +321,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `metadataURI` to the URL query string @@ -324,10 +331,7 @@ public String toUrlQueryString(String prefix) { "%smetadataURI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMetadataURI()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMetadataURI())))); } // add `metadata` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java index 430af77a..d328a351 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** CollectionMintResponseDto */ @JsonPropertyOrder({CollectionMintResponseDto.JSON_PROPERTY_TX_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String txId; + @jakarta.annotation.Nonnull private String txId; public CollectionMintResponseDto() {} - public CollectionMintResponseDto txId(String txId) { + @JsonCreator + public CollectionMintResponseDto( + @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId) { + this.txId = txId; + } + + public CollectionMintResponseDto txId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; return this; } @@ -49,7 +57,7 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } 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 bfdd0b6c..b7cc3907 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,71 +31,73 @@ CollectionOwnershipResponse.JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR, CollectionOwnershipResponse.JSON_PROPERTY_CONTRACT_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CollectionOwnershipResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nullable private String symbol; public static final String JSON_PROPERTY_STANDARD = "standard"; - private String standard; + @jakarta.annotation.Nullable private String standard; /** Collection's blockchain */ public enum BlockchainDescriptorEnum { - ETH("ETH"), + ETH(String.valueOf("ETH")), - ETH_TEST3("ETH_TEST3"), + ETH_TEST3(String.valueOf("ETH_TEST3")), - ETH_TEST5("ETH_TEST5"), + ETH_TEST5(String.valueOf("ETH_TEST5")), - ETH_TEST6("ETH_TEST6"), + ETH_TEST6(String.valueOf("ETH_TEST6")), - POLYGON("POLYGON"), + POLYGON(String.valueOf("POLYGON")), - POLYGON_TEST_MUMBAI("POLYGON_TEST_MUMBAI"), + POLYGON_TEST_MUMBAI(String.valueOf("POLYGON_TEST_MUMBAI")), - AMOY_POLYGON_TEST("AMOY_POLYGON_TEST"), + AMOY_POLYGON_TEST(String.valueOf("AMOY_POLYGON_TEST")), - XTZ("XTZ"), + XTZ(String.valueOf("XTZ")), - XTZ_TEST("XTZ_TEST"), + XTZ_TEST(String.valueOf("XTZ_TEST")), - BASECHAIN_ETH("BASECHAIN_ETH"), + BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")), - BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"), + BASECHAIN_ETH_TEST3(String.valueOf("BASECHAIN_ETH_TEST3")), - BASECHAIN_ETH_TEST5("BASECHAIN_ETH_TEST5"), + BASECHAIN_ETH_TEST5(String.valueOf("BASECHAIN_ETH_TEST5")), - ETHERLINK("ETHERLINK"), + ETHERLINK(String.valueOf("ETHERLINK")), - ETHERLINK_TEST("ETHERLINK_TEST"), + ETHERLINK_TEST(String.valueOf("ETHERLINK_TEST")), - MANTLE("MANTLE"), + MANTLE(String.valueOf("MANTLE")), - MANTLE_TEST("MANTLE_TEST"), + MANTLE_TEST(String.valueOf("MANTLE_TEST")), - GUN_GUNZILLA("GUN_GUNZILLA"), + GUN_GUNZILLA(String.valueOf("GUN_GUNZILLA")), - GUN_GUNZILLA_TEST("GUN_GUNZILLA_TEST"), + GUN_GUNZILLA_TEST(String.valueOf("GUN_GUNZILLA_TEST")), - ETH_SONEIUM("ETH_SONEIUM"), + ETH_SONEIUM(String.valueOf("ETH_SONEIUM")), - SONEIUM_MINATO_TEST("SONEIUM_MINATO_TEST"), + SONEIUM_MINATO_TEST(String.valueOf("SONEIUM_MINATO_TEST")), - IOTX_IOTEX("IOTX_IOTEX"), + IOTX_IOTEX(String.valueOf("IOTX_IOTEX")), - KLAY_KAIA("KLAY_KAIA"), + KLAY_KAIA(String.valueOf("KLAY_KAIA")), - KLAY_KAIA_TEST("KLAY_KAIA_TEST"), + KLAY_KAIA_TEST(String.valueOf("KLAY_KAIA_TEST")), - APECHAIN("APECHAIN"), + APECHAIN(String.valueOf("APECHAIN")), - APECHAIN_TEST("APECHAIN_TEST"); + APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); private String value; @@ -126,14 +127,23 @@ public static BlockchainDescriptorEnum fromValue(String value) { } public static final String JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR = "blockchainDescriptor"; - private BlockchainDescriptorEnum blockchainDescriptor; + @jakarta.annotation.Nonnull private BlockchainDescriptorEnum blockchainDescriptor; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nullable private String contractAddress; public CollectionOwnershipResponse() {} - public CollectionOwnershipResponse id(String id) { + @JsonCreator + public CollectionOwnershipResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR, required = true) + BlockchainDescriptorEnum blockchainDescriptor) { + this.id = id; + this.blockchainDescriptor = blockchainDescriptor; + } + + public CollectionOwnershipResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -152,11 +162,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public CollectionOwnershipResponse name(String name) { + public CollectionOwnershipResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -175,11 +185,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public CollectionOwnershipResponse symbol(String symbol) { + public CollectionOwnershipResponse symbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; return this; } @@ -198,11 +208,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; } - public CollectionOwnershipResponse standard(String standard) { + public CollectionOwnershipResponse standard(@jakarta.annotation.Nullable String standard) { this.standard = standard; return this; } @@ -221,12 +231,12 @@ public String getStandard() { @JsonProperty(JSON_PROPERTY_STANDARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStandard(String standard) { + public void setStandard(@jakarta.annotation.Nullable String standard) { this.standard = standard; } public CollectionOwnershipResponse blockchainDescriptor( - BlockchainDescriptorEnum blockchainDescriptor) { + @jakarta.annotation.Nonnull BlockchainDescriptorEnum blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; return this; } @@ -245,11 +255,13 @@ public BlockchainDescriptorEnum getBlockchainDescriptor() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainDescriptor(BlockchainDescriptorEnum blockchainDescriptor) { + public void setBlockchainDescriptor( + @jakarta.annotation.Nonnull BlockchainDescriptorEnum blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; } - public CollectionOwnershipResponse contractAddress(String contractAddress) { + public CollectionOwnershipResponse contractAddress( + @jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -268,7 +280,7 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; } @@ -361,10 +373,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -374,8 +383,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `symbol` to the URL query string @@ -385,8 +393,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `standard` to the URL query string @@ -396,8 +403,7 @@ public String toUrlQueryString(String prefix) { "%sstandard%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStandard()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStandard())))); } // add `blockchainDescriptor` to the URL query string @@ -407,10 +413,8 @@ public String toUrlQueryString(String prefix) { "%sblockchainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBlockchainDescriptor())))); } // add `contractAddress` to the URL query string @@ -420,10 +424,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java index ac513368..ce8f2622 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,31 @@ CollectionTokenMetadataAttributeDto.JSON_PROPERTY_VALUE, CollectionTokenMetadataAttributeDto.JSON_PROPERTY_DISPLAY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String traitType; + @jakarta.annotation.Nonnull private String traitType; public static final String JSON_PROPERTY_VALUE = "value"; - private String value; + @jakarta.annotation.Nonnull private String value; public static final String JSON_PROPERTY_DISPLAY_TYPE = "display_type"; - private String displayType; + @jakarta.annotation.Nullable private String displayType; public CollectionTokenMetadataAttributeDto() {} - public CollectionTokenMetadataAttributeDto traitType(String traitType) { + @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; } @@ -59,11 +70,11 @@ public String getTraitType() { @JsonProperty(JSON_PROPERTY_TRAIT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTraitType(String traitType) { + public void setTraitType(@jakarta.annotation.Nonnull String traitType) { this.traitType = traitType; } - public CollectionTokenMetadataAttributeDto value(String value) { + public CollectionTokenMetadataAttributeDto value(@jakarta.annotation.Nonnull String value) { this.value = value; return this; } @@ -82,11 +93,12 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nonnull String value) { this.value = value; } - public CollectionTokenMetadataAttributeDto displayType(String displayType) { + public CollectionTokenMetadataAttributeDto displayType( + @jakarta.annotation.Nullable String displayType) { this.displayType = displayType; return this; } @@ -105,7 +117,7 @@ public String getDisplayType() { @JsonProperty(JSON_PROPERTY_DISPLAY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayType(String displayType) { + public void setDisplayType(@jakarta.annotation.Nullable String displayType) { this.displayType = displayType; } @@ -192,9 +204,7 @@ public String toUrlQueryString(String prefix) { "%strait_type%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTraitType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTraitType())))); } // add `value` to the URL query string @@ -204,8 +214,7 @@ public String toUrlQueryString(String prefix) { "%svalue%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getValue()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getValue())))); } // add `display_type` to the URL query string @@ -215,10 +224,7 @@ public String toUrlQueryString(String prefix) { "%sdisplay_type%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 5f9a8ed8..df56b51f 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,29 +32,41 @@ CollectionTokenMetadataDto.JSON_PROPERTY_EXTERNAL_URL, CollectionTokenMetadataDto.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nonnull private String description; public static final String JSON_PROPERTY_IMAGE = "image"; - private String image; + @jakarta.annotation.Nullable private String image; public static final String JSON_PROPERTY_ANIMATION_URL = "animation_url"; - private String animationUrl; + @jakarta.annotation.Nullable private String animationUrl; public static final String JSON_PROPERTY_EXTERNAL_URL = "external_url"; - private String externalUrl; + @jakarta.annotation.Nullable private String externalUrl; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private List attributes; + + @jakarta.annotation.Nullable + private List attributes = new ArrayList<>(); public CollectionTokenMetadataDto() {} - public CollectionTokenMetadataDto name(String name) { + @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; } @@ -73,11 +85,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public CollectionTokenMetadataDto description(String description) { + public CollectionTokenMetadataDto description(@jakarta.annotation.Nonnull String description) { this.description = description; return this; } @@ -96,11 +108,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nonnull String description) { this.description = description; } - public CollectionTokenMetadataDto image(String image) { + public CollectionTokenMetadataDto image(@jakarta.annotation.Nullable String image) { this.image = image; return this; } @@ -119,11 +131,12 @@ public String getImage() { @JsonProperty(JSON_PROPERTY_IMAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setImage(String image) { + public void setImage(@jakarta.annotation.Nullable String image) { this.image = image; } - public CollectionTokenMetadataDto animationUrl(String animationUrl) { + public CollectionTokenMetadataDto animationUrl( + @jakarta.annotation.Nullable String animationUrl) { this.animationUrl = animationUrl; return this; } @@ -142,11 +155,11 @@ public String getAnimationUrl() { @JsonProperty(JSON_PROPERTY_ANIMATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnimationUrl(String animationUrl) { + public void setAnimationUrl(@jakarta.annotation.Nullable String animationUrl) { this.animationUrl = animationUrl; } - public CollectionTokenMetadataDto externalUrl(String externalUrl) { + public CollectionTokenMetadataDto externalUrl(@jakarta.annotation.Nullable String externalUrl) { this.externalUrl = externalUrl; return this; } @@ -165,12 +178,12 @@ public String getExternalUrl() { @JsonProperty(JSON_PROPERTY_EXTERNAL_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalUrl(String externalUrl) { + public void setExternalUrl(@jakarta.annotation.Nullable String externalUrl) { this.externalUrl = externalUrl; } public CollectionTokenMetadataDto attributes( - List attributes) { + @jakarta.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -198,7 +211,8 @@ public List getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(List attributes) { + public void setAttributes( + @jakarta.annotation.Nullable List attributes) { this.attributes = attributes; } @@ -289,8 +303,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `description` to the URL query string @@ -300,10 +313,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `image` to the URL query string @@ -313,8 +323,7 @@ public String toUrlQueryString(String prefix) { "%simage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getImage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getImage())))); } // add `animation_url` to the URL query string @@ -324,10 +333,7 @@ public String toUrlQueryString(String prefix) { "%sanimation_url%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAnimationUrl()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAnimationUrl())))); } // add `external_url` to the URL query string @@ -337,10 +343,7 @@ public String toUrlQueryString(String prefix) { "%sexternal_url%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalUrl()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalUrl())))); } // add `attributes` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java index 2c5e3b60..82f6cc9f 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,26 +30,31 @@ ComplianceResultFullPayload.JSON_PROPERTY_STATUS, ComplianceResultFullPayload.JSON_PROPERTY_AML_REGISTRATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private ComplianceScreeningResultFullPayload aml; + @jakarta.annotation.Nullable private ComplianceScreeningResultFullPayload aml; public static final String JSON_PROPERTY_TR = "tr"; - private ComplianceScreeningResultFullPayload tr; + @jakarta.annotation.Nullable private ComplianceScreeningResultFullPayload tr; public static final String JSON_PROPERTY_AML_LIST = "amlList"; - private List amlList; + + @jakarta.annotation.Nullable + private List amlList = new ArrayList<>(); public static final String JSON_PROPERTY_STATUS = "status"; - private ComplianceResultStatusesEnum status; + @jakarta.annotation.Nullable private ComplianceResultStatusesEnum status; public static final String JSON_PROPERTY_AML_REGISTRATION = "amlRegistration"; - private AmlRegistrationResultFullPayload amlRegistration; + @jakarta.annotation.Nullable private AmlRegistrationResultFullPayload amlRegistration; public ComplianceResultFullPayload() {} - public ComplianceResultFullPayload aml(ComplianceScreeningResultFullPayload aml) { + public ComplianceResultFullPayload aml( + @jakarta.annotation.Nullable ComplianceScreeningResultFullPayload aml) { this.aml = aml; return this; } @@ -69,11 +73,12 @@ public ComplianceScreeningResultFullPayload getAml() { @JsonProperty(JSON_PROPERTY_AML) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAml(ComplianceScreeningResultFullPayload aml) { + public void setAml(@jakarta.annotation.Nullable ComplianceScreeningResultFullPayload aml) { this.aml = aml; } - public ComplianceResultFullPayload tr(ComplianceScreeningResultFullPayload tr) { + public ComplianceResultFullPayload tr( + @jakarta.annotation.Nullable ComplianceScreeningResultFullPayload tr) { this.tr = tr; return this; } @@ -92,11 +97,12 @@ public ComplianceScreeningResultFullPayload getTr() { @JsonProperty(JSON_PROPERTY_TR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTr(ComplianceScreeningResultFullPayload tr) { + public void setTr(@jakarta.annotation.Nullable ComplianceScreeningResultFullPayload tr) { this.tr = tr; } - public ComplianceResultFullPayload amlList(List amlList) { + public ComplianceResultFullPayload amlList( + @jakarta.annotation.Nullable List amlList) { this.amlList = amlList; return this; } @@ -124,11 +130,13 @@ public List getAmlList() { @JsonProperty(JSON_PROPERTY_AML_LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlList(List amlList) { + public void setAmlList( + @jakarta.annotation.Nullable List amlList) { this.amlList = amlList; } - public ComplianceResultFullPayload status(ComplianceResultStatusesEnum status) { + public ComplianceResultFullPayload status( + @jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { this.status = status; return this; } @@ -147,12 +155,12 @@ public ComplianceResultStatusesEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(ComplianceResultStatusesEnum status) { + public void setStatus(@jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { this.status = status; } public ComplianceResultFullPayload amlRegistration( - AmlRegistrationResultFullPayload amlRegistration) { + @jakarta.annotation.Nullable AmlRegistrationResultFullPayload amlRegistration) { this.amlRegistration = amlRegistration; return this; } @@ -171,7 +179,8 @@ public AmlRegistrationResultFullPayload getAmlRegistration() { @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlRegistration(AmlRegistrationResultFullPayload amlRegistration) { + public void setAmlRegistration( + @jakarta.annotation.Nullable AmlRegistrationResultFullPayload amlRegistration) { this.amlRegistration = amlRegistration; } @@ -294,8 +303,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `amlRegistration` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java index d520683e..35ef1de6 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java @@ -20,49 +20,49 @@ public enum ComplianceResultStatusesEnum { STARTED("Started"), - NETWORKCONNECTIONADDRESSRESOLVE("NetworkConnectionAddressResolve"), + NETWORK_CONNECTION_ADDRESS_RESOLVE("NetworkConnectionAddressResolve"), - SCREENINGPREPARE("ScreeningPrepare"), + SCREENING_PREPARE("ScreeningPrepare"), - AMLSTARTED("AMLStarted"), + AML_STARTED("AMLStarted"), - AMLCOMPLETED("AMLCompleted"), + AML_COMPLETED("AMLCompleted"), - AMLFAILED("AMLFailed"), + AML_FAILED("AMLFailed"), - AMLINBACKGROUND("AMLInBackground"), + AMLIN_BACKGROUND("AMLInBackground"), - TRPRECONDITIONCHECKS("TRPreconditionChecks"), + TR_PRECONDITION_CHECKS("TRPreconditionChecks"), - TRSTARTED("TRStarted"), + TR_STARTED("TRStarted"), - TRCOMPLETED("TRCompleted"), + TR_COMPLETED("TRCompleted"), - TRFAILED("TRFailed"), + TR_FAILED("TRFailed"), COMPLETED("Completed"), - INCOMINGSTARTED("IncomingStarted"), + INCOMING_STARTED("IncomingStarted"), - INCOMINGSCREENINGPREPARE("IncomingScreeningPrepare"), + INCOMING_SCREENING_PREPARE("IncomingScreeningPrepare"), - INCOMINGWAITFORFIRSTCONFIRMATION("IncomingWaitForFirstConfirmation"), + INCOMING_WAIT_FOR_FIRST_CONFIRMATION("IncomingWaitForFirstConfirmation"), - AMLINCOMINGSTARTED("AMLIncomingStarted"), + AML_INCOMING_STARTED("AMLIncomingStarted"), - AMLINCOMINGCOMPLETED("AMLIncomingCompleted"), + AML_INCOMING_COMPLETED("AMLIncomingCompleted"), - AMLINCOMINGFAILED("AMLIncomingFailed"), + AML_INCOMING_FAILED("AMLIncomingFailed"), - AMLINCOMINGINBACKGROUND("AMLIncomingInBackground"), + AML_INCOMING_IN_BACKGROUND("AMLIncomingInBackground"), - TRINCOMINGSTARTED("TRIncomingStarted"), + TR_INCOMING_STARTED("TRIncomingStarted"), - TRINCOMINGCOMPLETED("TRIncomingCompleted"), + TR_INCOMING_COMPLETED("TRIncomingCompleted"), - TRINCOMINGFAILED("TRIncomingFailed"), + TR_INCOMING_FAILED("TRIncomingFailed"), - INCOMINGCOMPLETED("IncomingCompleted"); + INCOMING_COMPLETED("IncomingCompleted"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java index e33149bb..ef3fd0c3 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,26 +30,30 @@ ComplianceResults.JSON_PROPERTY_STATUS, ComplianceResults.JSON_PROPERTY_AML_REGISTRATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private ComplianceScreeningResult aml; + @jakarta.annotation.Nullable private ComplianceScreeningResult aml; public static final String JSON_PROPERTY_TR = "tr"; - private ComplianceScreeningResult tr; + @jakarta.annotation.Nullable private ComplianceScreeningResult tr; public static final String JSON_PROPERTY_AML_LIST = "amlList"; - private List amlList; + + @jakarta.annotation.Nullable + private List amlList = new ArrayList<>(); public static final String JSON_PROPERTY_STATUS = "status"; - private ComplianceResultStatusesEnum status; + @jakarta.annotation.Nullable private ComplianceResultStatusesEnum status; public static final String JSON_PROPERTY_AML_REGISTRATION = "amlRegistration"; - private AmlRegistrationResult amlRegistration; + @jakarta.annotation.Nullable private AmlRegistrationResult amlRegistration; public ComplianceResults() {} - public ComplianceResults aml(ComplianceScreeningResult aml) { + public ComplianceResults aml(@jakarta.annotation.Nullable ComplianceScreeningResult aml) { this.aml = aml; return this; } @@ -69,11 +72,11 @@ public ComplianceScreeningResult getAml() { @JsonProperty(JSON_PROPERTY_AML) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAml(ComplianceScreeningResult aml) { + public void setAml(@jakarta.annotation.Nullable ComplianceScreeningResult aml) { this.aml = aml; } - public ComplianceResults tr(ComplianceScreeningResult tr) { + public ComplianceResults tr(@jakarta.annotation.Nullable ComplianceScreeningResult tr) { this.tr = tr; return this; } @@ -92,11 +95,12 @@ public ComplianceScreeningResult getTr() { @JsonProperty(JSON_PROPERTY_TR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTr(ComplianceScreeningResult tr) { + public void setTr(@jakarta.annotation.Nullable ComplianceScreeningResult tr) { this.tr = tr; } - public ComplianceResults amlList(List amlList) { + public ComplianceResults amlList( + @jakarta.annotation.Nullable List amlList) { this.amlList = amlList; return this; } @@ -123,11 +127,12 @@ public List getAmlList() { @JsonProperty(JSON_PROPERTY_AML_LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlList(List amlList) { + public void setAmlList(@jakarta.annotation.Nullable List amlList) { this.amlList = amlList; } - public ComplianceResults status(ComplianceResultStatusesEnum status) { + public ComplianceResults status( + @jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { this.status = status; return this; } @@ -146,11 +151,12 @@ public ComplianceResultStatusesEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(ComplianceResultStatusesEnum status) { + public void setStatus(@jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { this.status = status; } - public ComplianceResults amlRegistration(AmlRegistrationResult amlRegistration) { + public ComplianceResults amlRegistration( + @jakarta.annotation.Nullable AmlRegistrationResult amlRegistration) { this.amlRegistration = amlRegistration; return this; } @@ -169,7 +175,8 @@ public AmlRegistrationResult getAmlRegistration() { @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlRegistration(AmlRegistrationResult amlRegistration) { + public void setAmlRegistration( + @jakarta.annotation.Nullable AmlRegistrationResult amlRegistration) { this.amlRegistration = amlRegistration; } @@ -291,8 +298,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `amlRegistration` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResult.java b/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResult.java index ffb1b962..a9ba2fa5 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResult.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResult.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -32,28 +31,30 @@ ComplianceScreeningResult.JSON_PROPERTY_SCREENING_STATUS, ComplianceScreeningResult.JSON_PROPERTY_TIMESTAMP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ComplianceScreeningResult { public static final String JSON_PROPERTY_PROVIDER = "provider"; - private String provider; + @jakarta.annotation.Nullable private String provider; public static final String JSON_PROPERTY_PAYLOAD = "payload"; - private Object payload; + @jakarta.annotation.Nullable private Object payload; public static final String JSON_PROPERTY_BYPASS_REASON = "bypassReason"; - private String bypassReason; + @jakarta.annotation.Nullable private String bypassReason; /** Gets or Sets screeningStatus */ public enum ScreeningStatusEnum { - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - PENDING("PENDING"), + PENDING(String.valueOf("PENDING")), - BYPASSED("BYPASSED"), + BYPASSED(String.valueOf("BYPASSED")), - FAILED("FAILED"), + FAILED(String.valueOf("FAILED")), - FROZEN("FROZEN"); + FROZEN(String.valueOf("FROZEN")); private String value; @@ -83,14 +84,14 @@ public static ScreeningStatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCREENING_STATUS = "screeningStatus"; - private ScreeningStatusEnum screeningStatus; + @jakarta.annotation.Nullable private ScreeningStatusEnum screeningStatus; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private BigDecimal timestamp; + @jakarta.annotation.Nullable private BigDecimal timestamp; public ComplianceScreeningResult() {} - public ComplianceScreeningResult provider(String provider) { + public ComplianceScreeningResult provider(@jakarta.annotation.Nullable String provider) { this.provider = provider; return this; } @@ -109,11 +110,11 @@ public String getProvider() { @JsonProperty(JSON_PROPERTY_PROVIDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(String provider) { + public void setProvider(@jakarta.annotation.Nullable String provider) { this.provider = provider; } - public ComplianceScreeningResult payload(Object payload) { + public ComplianceScreeningResult payload(@jakarta.annotation.Nullable Object payload) { this.payload = payload; return this; } @@ -133,11 +134,12 @@ public Object getPayload() { @JsonProperty(JSON_PROPERTY_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPayload(Object payload) { + public void setPayload(@jakarta.annotation.Nullable Object payload) { this.payload = payload; } - public ComplianceScreeningResult bypassReason(String bypassReason) { + public ComplianceScreeningResult bypassReason( + @jakarta.annotation.Nullable String bypassReason) { this.bypassReason = bypassReason; return this; } @@ -156,11 +158,12 @@ public String getBypassReason() { @JsonProperty(JSON_PROPERTY_BYPASS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBypassReason(String bypassReason) { + public void setBypassReason(@jakarta.annotation.Nullable String bypassReason) { this.bypassReason = bypassReason; } - public ComplianceScreeningResult screeningStatus(ScreeningStatusEnum screeningStatus) { + public ComplianceScreeningResult screeningStatus( + @jakarta.annotation.Nullable ScreeningStatusEnum screeningStatus) { this.screeningStatus = screeningStatus; return this; } @@ -179,11 +182,12 @@ public ScreeningStatusEnum getScreeningStatus() { @JsonProperty(JSON_PROPERTY_SCREENING_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScreeningStatus(ScreeningStatusEnum screeningStatus) { + public void setScreeningStatus( + @jakarta.annotation.Nullable ScreeningStatusEnum screeningStatus) { this.screeningStatus = screeningStatus; } - public ComplianceScreeningResult timestamp(BigDecimal timestamp) { + public ComplianceScreeningResult timestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; return this; } @@ -202,7 +206,7 @@ public BigDecimal getTimestamp() { @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; } @@ -291,8 +295,7 @@ public String toUrlQueryString(String prefix) { "%sprovider%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProvider()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); } // add `payload` to the URL query string @@ -302,8 +305,7 @@ public String toUrlQueryString(String prefix) { "%spayload%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPayload()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPayload())))); } // add `bypassReason` to the URL query string @@ -313,10 +315,7 @@ public String toUrlQueryString(String prefix) { "%sbypassReason%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBypassReason()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBypassReason())))); } // add `screeningStatus` to the URL query string @@ -326,10 +325,7 @@ public String toUrlQueryString(String prefix) { "%sscreeningStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getScreeningStatus()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScreeningStatus())))); } // add `timestamp` to the URL query string @@ -339,9 +335,7 @@ public String toUrlQueryString(String prefix) { "%stimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimestamp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); } 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 index 477f77d5..f7c2ff2f 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -32,28 +31,30 @@ ComplianceScreeningResultFullPayload.JSON_PROPERTY_SCREENING_STATUS, ComplianceScreeningResultFullPayload.JSON_PROPERTY_TIMESTAMP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String provider; + @jakarta.annotation.Nullable private String provider; public static final String JSON_PROPERTY_PAYLOAD = "payload"; - private Object payload; + @jakarta.annotation.Nullable private Object payload; public static final String JSON_PROPERTY_BYPASS_REASON = "bypassReason"; - private String bypassReason; + @jakarta.annotation.Nullable private String bypassReason; /** Gets or Sets screeningStatus */ public enum ScreeningStatusEnum { - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - PENDING("PENDING"), + PENDING(String.valueOf("PENDING")), - BYPASSED("BYPASSED"), + BYPASSED(String.valueOf("BYPASSED")), - FAILED("FAILED"), + FAILED(String.valueOf("FAILED")), - FROZEN("FROZEN"); + FROZEN(String.valueOf("FROZEN")); private String value; @@ -83,14 +84,15 @@ public static ScreeningStatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCREENING_STATUS = "screeningStatus"; - private ScreeningStatusEnum screeningStatus; + @jakarta.annotation.Nullable private ScreeningStatusEnum screeningStatus; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private BigDecimal timestamp; + @jakarta.annotation.Nullable private BigDecimal timestamp; public ComplianceScreeningResultFullPayload() {} - public ComplianceScreeningResultFullPayload provider(String provider) { + public ComplianceScreeningResultFullPayload provider( + @jakarta.annotation.Nullable String provider) { this.provider = provider; return this; } @@ -109,11 +111,12 @@ public String getProvider() { @JsonProperty(JSON_PROPERTY_PROVIDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(String provider) { + public void setProvider(@jakarta.annotation.Nullable String provider) { this.provider = provider; } - public ComplianceScreeningResultFullPayload payload(Object payload) { + public ComplianceScreeningResultFullPayload payload( + @jakarta.annotation.Nullable Object payload) { this.payload = payload; return this; } @@ -133,11 +136,12 @@ public Object getPayload() { @JsonProperty(JSON_PROPERTY_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPayload(Object payload) { + public void setPayload(@jakarta.annotation.Nullable Object payload) { this.payload = payload; } - public ComplianceScreeningResultFullPayload bypassReason(String bypassReason) { + public ComplianceScreeningResultFullPayload bypassReason( + @jakarta.annotation.Nullable String bypassReason) { this.bypassReason = bypassReason; return this; } @@ -156,12 +160,12 @@ public String getBypassReason() { @JsonProperty(JSON_PROPERTY_BYPASS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBypassReason(String bypassReason) { + public void setBypassReason(@jakarta.annotation.Nullable String bypassReason) { this.bypassReason = bypassReason; } public ComplianceScreeningResultFullPayload screeningStatus( - ScreeningStatusEnum screeningStatus) { + @jakarta.annotation.Nullable ScreeningStatusEnum screeningStatus) { this.screeningStatus = screeningStatus; return this; } @@ -180,11 +184,13 @@ public ScreeningStatusEnum getScreeningStatus() { @JsonProperty(JSON_PROPERTY_SCREENING_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScreeningStatus(ScreeningStatusEnum screeningStatus) { + public void setScreeningStatus( + @jakarta.annotation.Nullable ScreeningStatusEnum screeningStatus) { this.screeningStatus = screeningStatus; } - public ComplianceScreeningResultFullPayload timestamp(BigDecimal timestamp) { + public ComplianceScreeningResultFullPayload timestamp( + @jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; return this; } @@ -203,7 +209,7 @@ public BigDecimal getTimestamp() { @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; } @@ -295,8 +301,7 @@ public String toUrlQueryString(String prefix) { "%sprovider%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProvider()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); } // add `payload` to the URL query string @@ -306,8 +311,7 @@ public String toUrlQueryString(String prefix) { "%spayload%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPayload()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPayload())))); } // add `bypassReason` to the URL query string @@ -317,10 +321,7 @@ public String toUrlQueryString(String prefix) { "%sbypassReason%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBypassReason()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBypassReason())))); } // add `screeningStatus` to the URL query string @@ -330,10 +331,7 @@ public String toUrlQueryString(String prefix) { "%sscreeningStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getScreeningStatus()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScreeningStatus())))); } // add `timestamp` to the URL query string @@ -343,9 +341,7 @@ public String toUrlQueryString(String prefix) { "%stimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimestamp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshot.java b/src/main/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshot.java index 78ec0720..93b38ab7 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshot.java +++ b/src/main/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshot.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,34 @@ ConfigConversionOperationSnapshot.JSON_PROPERTY_TYPE, ConfigConversionOperationSnapshot.JSON_PROPERTY_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConfigConversionOperationSnapshot { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_TYPE = "type"; - private ConversionOperationType type; + @jakarta.annotation.Nonnull private ConversionOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private ConversionOperationConfigParams params; + @jakarta.annotation.Nonnull private ConversionOperationConfigParams params; public ConfigConversionOperationSnapshot() {} - public ConfigConversionOperationSnapshot operationId(String operationId) { + @JsonCreator + public ConfigConversionOperationSnapshot( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) ConversionOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + ConversionOperationConfigParams params) { + this.operationId = operationId; + this.type = type; + this.params = params; + } + + public ConfigConversionOperationSnapshot operationId( + @jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -59,11 +73,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ConfigConversionOperationSnapshot type(ConversionOperationType type) { + public ConfigConversionOperationSnapshot type( + @jakarta.annotation.Nonnull ConversionOperationType type) { this.type = type; return this; } @@ -82,11 +97,12 @@ public ConversionOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(ConversionOperationType type) { + public void setType(@jakarta.annotation.Nonnull ConversionOperationType type) { this.type = type; } - public ConfigConversionOperationSnapshot params(ConversionOperationConfigParams params) { + public ConfigConversionOperationSnapshot params( + @jakarta.annotation.Nonnull ConversionOperationConfigParams params) { this.params = params; return this; } @@ -105,7 +121,7 @@ public ConversionOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(ConversionOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull ConversionOperationConfigParams params) { this.params = params; } @@ -191,10 +207,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `type` to the URL query string @@ -204,8 +217,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshot.java b/src/main/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshot.java index 7a0fd5fc..67729704 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshot.java +++ b/src/main/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshot.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,35 @@ ConfigDisbursementOperationSnapshot.JSON_PROPERTY_TYPE, ConfigDisbursementOperationSnapshot.JSON_PROPERTY_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConfigDisbursementOperationSnapshot { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_TYPE = "type"; - private DisbursementOperationType type; + @jakarta.annotation.Nonnull private DisbursementOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private DisbursementOperationConfigParams params; + @jakarta.annotation.Nonnull private DisbursementOperationConfigParams params; public ConfigDisbursementOperationSnapshot() {} - public ConfigDisbursementOperationSnapshot operationId(String operationId) { + @JsonCreator + public ConfigDisbursementOperationSnapshot( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) + DisbursementOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + DisbursementOperationConfigParams params) { + this.operationId = operationId; + this.type = type; + this.params = params; + } + + public ConfigDisbursementOperationSnapshot operationId( + @jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -59,11 +74,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ConfigDisbursementOperationSnapshot type(DisbursementOperationType type) { + public ConfigDisbursementOperationSnapshot type( + @jakarta.annotation.Nonnull DisbursementOperationType type) { this.type = type; return this; } @@ -82,11 +98,12 @@ public DisbursementOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(DisbursementOperationType type) { + public void setType(@jakarta.annotation.Nonnull DisbursementOperationType type) { this.type = type; } - public ConfigDisbursementOperationSnapshot params(DisbursementOperationConfigParams params) { + public ConfigDisbursementOperationSnapshot params( + @jakarta.annotation.Nonnull DisbursementOperationConfigParams params) { this.params = params; return this; } @@ -105,7 +122,7 @@ public DisbursementOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(DisbursementOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull DisbursementOperationConfigParams params) { this.params = params; } @@ -191,10 +208,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `type` to the URL query string @@ -204,8 +218,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ConfigOperation.java b/src/main/java/com/fireblocks/sdk/model/ConfigOperation.java index 5c1cad7a..ab7b68b1 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConfigOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/ConfigOperation.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = ConfigOperation.ConfigOperationDeserializer.class) @JsonSerialize(using = ConfigOperation.ConfigOperationSerializer.class) public class ConfigOperation extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/ConfigOperationSnapshot.java b/src/main/java/com/fireblocks/sdk/model/ConfigOperationSnapshot.java index e439da44..119c4fba 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConfigOperationSnapshot.java +++ b/src/main/java/com/fireblocks/sdk/model/ConfigOperationSnapshot.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = ConfigOperationSnapshot.ConfigOperationSnapshotDeserializer.class) @JsonSerialize(using = ConfigOperationSnapshot.ConfigOperationSnapshotSerializer.class) public class ConfigOperationSnapshot extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshot.java b/src/main/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshot.java index 6c3fcb29..cf62869b 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshot.java +++ b/src/main/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshot.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,34 @@ ConfigTransferOperationSnapshot.JSON_PROPERTY_TYPE, ConfigTransferOperationSnapshot.JSON_PROPERTY_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConfigTransferOperationSnapshot { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_TYPE = "type"; - private TransferOperationType type; + @jakarta.annotation.Nonnull private TransferOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private TransferOperationConfigParams params; + @jakarta.annotation.Nonnull private TransferOperationConfigParams params; public ConfigTransferOperationSnapshot() {} - public ConfigTransferOperationSnapshot operationId(String operationId) { + @JsonCreator + public ConfigTransferOperationSnapshot( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + TransferOperationConfigParams params) { + this.operationId = operationId; + this.type = type; + this.params = params; + } + + public ConfigTransferOperationSnapshot operationId( + @jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -59,11 +73,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ConfigTransferOperationSnapshot type(TransferOperationType type) { + public ConfigTransferOperationSnapshot type( + @jakarta.annotation.Nonnull TransferOperationType type) { this.type = type; return this; } @@ -82,11 +97,12 @@ public TransferOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferOperationType type) { + public void setType(@jakarta.annotation.Nonnull TransferOperationType type) { this.type = type; } - public ConfigTransferOperationSnapshot params(TransferOperationConfigParams params) { + public ConfigTransferOperationSnapshot params( + @jakarta.annotation.Nonnull TransferOperationConfigParams params) { this.params = params; return this; } @@ -105,7 +121,7 @@ public TransferOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(TransferOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull TransferOperationConfigParams params) { this.params = params; } @@ -191,10 +207,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `type` to the URL query string @@ -204,8 +217,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ConsoleUser.java b/src/main/java/com/fireblocks/sdk/model/ConsoleUser.java index 7eab1eb2..f55bc9a9 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConsoleUser.java +++ b/src/main/java/com/fireblocks/sdk/model/ConsoleUser.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,35 +31,37 @@ ConsoleUser.JSON_PROPERTY_STATUS, ConsoleUser.JSON_PROPERTY_USER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConsoleUser { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_ROLE = "role"; - private UserRole role; + @jakarta.annotation.Nullable private UserRole role; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nullable private Boolean enabled; public static final String JSON_PROPERTY_STATUS = "status"; - private UserStatus status; + @jakarta.annotation.Nullable private UserStatus status; public static final String JSON_PROPERTY_USER_TYPE = "userType"; - private UserType userType; + @jakarta.annotation.Nullable private UserType userType; public ConsoleUser() {} - public ConsoleUser id(String id) { + public ConsoleUser id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -79,11 +80,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public ConsoleUser firstName(String firstName) { + public ConsoleUser firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -102,11 +103,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public ConsoleUser lastName(String lastName) { + public ConsoleUser lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -125,11 +126,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public ConsoleUser email(String email) { + public ConsoleUser email(@jakarta.annotation.Nullable String email) { this.email = email; return this; } @@ -148,11 +149,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public ConsoleUser role(UserRole role) { + public ConsoleUser role(@jakarta.annotation.Nullable UserRole role) { this.role = role; return this; } @@ -171,11 +172,11 @@ public UserRole getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRole(UserRole role) { + public void setRole(@jakarta.annotation.Nullable UserRole role) { this.role = role; } - public ConsoleUser enabled(Boolean enabled) { + public ConsoleUser enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -194,11 +195,11 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } - public ConsoleUser status(UserStatus status) { + public ConsoleUser status(@jakarta.annotation.Nullable UserStatus status) { this.status = status; return this; } @@ -217,11 +218,11 @@ public UserStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(UserStatus status) { + public void setStatus(@jakarta.annotation.Nullable UserStatus status) { this.status = status; } - public ConsoleUser userType(UserType userType) { + public ConsoleUser userType(@jakarta.annotation.Nullable UserType userType) { this.userType = userType; return this; } @@ -240,7 +241,7 @@ public UserType getUserType() { @JsonProperty(JSON_PROPERTY_USER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserType(UserType userType) { + public void setUserType(@jakarta.annotation.Nullable UserType userType) { this.userType = userType; } @@ -333,10 +334,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `firstName` to the URL query string @@ -346,9 +344,7 @@ public String toUrlQueryString(String prefix) { "%sfirstName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFirstName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFirstName())))); } // add `lastName` to the URL query string @@ -358,8 +354,7 @@ public String toUrlQueryString(String prefix) { "%slastName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLastName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastName())))); } // add `email` to the URL query string @@ -369,8 +364,7 @@ public String toUrlQueryString(String prefix) { "%semail%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEmail())))); } // add `role` to the URL query string @@ -380,8 +374,7 @@ public String toUrlQueryString(String prefix) { "%srole%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRole()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRole())))); } // add `enabled` to the URL query string @@ -391,8 +384,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } // add `status` to the URL query string @@ -402,8 +394,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `userType` to the URL query string @@ -413,8 +404,7 @@ public String toUrlQueryString(String prefix) { "%suserType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserType())))); } 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 e014c319..d76c460e 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.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; @@ -26,17 +27,29 @@ ContractAbiResponseDto.JSON_PROPERTY_ABI, ContractAbiResponseDto.JSON_PROPERTY_IMPLEMENTATION_ABI }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + 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<>(); public static final String JSON_PROPERTY_IMPLEMENTATION_ABI = "implementationAbi"; - private List implementationAbi; + @jakarta.annotation.Nullable private List implementationAbi = new ArrayList<>(); public ContractAbiResponseDto() {} - public ContractAbiResponseDto abi(List abi) { + @JsonCreator + public ContractAbiResponseDto( + @JsonProperty(value = JSON_PROPERTY_ABI, required = true) + List abi) { + this.abi = abi; + } + + public ContractAbiResponseDto abi( + @jakarta.annotation.Nonnull List abi) { this.abi = abi; return this; } @@ -63,11 +76,12 @@ public List getAbi() { @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(List abi) { + public void setAbi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; } - public ContractAbiResponseDto implementationAbi(List implementationAbi) { + public ContractAbiResponseDto implementationAbi( + @jakarta.annotation.Nullable List implementationAbi) { this.implementationAbi = implementationAbi; return this; } @@ -94,7 +108,8 @@ public List getImplementationAbi() { @JsonProperty(JSON_PROPERTY_IMPLEMENTATION_ABI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setImplementationAbi(List implementationAbi) { + public void setImplementationAbi( + @jakarta.annotation.Nullable List implementationAbi) { this.implementationAbi = implementationAbi; } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java b/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java index 97fe8774..64af9163 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = ContractAbiResponseDtoAbiInner.ContractAbiResponseDtoAbiInnerDeserializer.class) @JsonSerialize( diff --git a/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java b/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java index 78f4d0b8..6a092fdc 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,32 @@ ContractAttributes.JSON_PROPERTY_STANDARDS, ContractAttributes.JSON_PROPERTY_AUDITOR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractAttributes { public static final String JSON_PROPERTY_USE_CASES = "useCases"; - private List useCases = new ArrayList<>(); + @jakarta.annotation.Nonnull private List useCases = new ArrayList<>(); public static final String JSON_PROPERTY_STANDARDS = "standards"; - private List standards = new ArrayList<>(); + @jakarta.annotation.Nonnull private List standards = new ArrayList<>(); public static final String JSON_PROPERTY_AUDITOR = "auditor"; - private AuditorData auditor; + @jakarta.annotation.Nonnull private AuditorData auditor; public ContractAttributes() {} - public ContractAttributes useCases(List useCases) { + @JsonCreator + public ContractAttributes( + @JsonProperty(value = JSON_PROPERTY_USE_CASES, required = true) List useCases, + @JsonProperty(value = JSON_PROPERTY_STANDARDS, required = true) List standards, + @JsonProperty(value = JSON_PROPERTY_AUDITOR, required = true) AuditorData auditor) { + this.useCases = useCases; + this.standards = standards; + this.auditor = auditor; + } + + public ContractAttributes useCases(@jakarta.annotation.Nonnull List useCases) { this.useCases = useCases; return this; } @@ -69,11 +81,11 @@ public List getUseCases() { @JsonProperty(JSON_PROPERTY_USE_CASES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUseCases(List useCases) { + public void setUseCases(@jakarta.annotation.Nonnull List useCases) { this.useCases = useCases; } - public ContractAttributes standards(List standards) { + public ContractAttributes standards(@jakarta.annotation.Nonnull List standards) { this.standards = standards; return this; } @@ -100,11 +112,11 @@ public List getStandards() { @JsonProperty(JSON_PROPERTY_STANDARDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStandards(List standards) { + public void setStandards(@jakarta.annotation.Nonnull List standards) { this.standards = standards; } - public ContractAttributes auditor(AuditorData auditor) { + public ContractAttributes auditor(@jakarta.annotation.Nonnull AuditorData auditor) { this.auditor = auditor; return this; } @@ -123,7 +135,7 @@ public AuditorData getAuditor() { @JsonProperty(JSON_PROPERTY_AUDITOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAuditor(AuditorData auditor) { + public void setAuditor(@jakarta.annotation.Nonnull AuditorData auditor) { this.auditor = auditor; } @@ -213,10 +225,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUseCases().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUseCases().get(i))))); } } @@ -232,10 +242,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getStandards().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getStandards().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java index 25bd1f79..d27edb2d 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ ContractDataDecodeError.JSON_PROPERTY_MESSAGE, ContractDataDecodeError.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public ContractDataDecodeError() {} - public ContractDataDecodeError message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public ContractDataDecodeError code(BigDecimal code) { + public ContractDataDecodeError code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index c0a55b40..aaa4df54 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,33 @@ ContractDataDecodeRequest.JSON_PROPERTY_DATA_TYPE, ContractDataDecodeRequest.JSON_PROPERTY_ABI }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private ContractDataDecodeRequestData data; + @jakarta.annotation.Nonnull private ContractDataDecodeRequestData data; public static final String JSON_PROPERTY_DATA_TYPE = "dataType"; - private ContractDataDecodeDataType dataType; + @jakarta.annotation.Nonnull private ContractDataDecodeDataType dataType; public static final String JSON_PROPERTY_ABI = "abi"; - private List abi; + @jakarta.annotation.Nullable private List abi = new ArrayList<>(); public ContractDataDecodeRequest() {} - public ContractDataDecodeRequest data(ContractDataDecodeRequestData data) { + @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; } @@ -61,11 +74,12 @@ public ContractDataDecodeRequestData getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(ContractDataDecodeRequestData data) { + public void setData(@jakarta.annotation.Nonnull ContractDataDecodeRequestData data) { this.data = data; } - public ContractDataDecodeRequest dataType(ContractDataDecodeDataType dataType) { + public ContractDataDecodeRequest dataType( + @jakarta.annotation.Nonnull ContractDataDecodeDataType dataType) { this.dataType = dataType; return this; } @@ -84,11 +98,11 @@ public ContractDataDecodeDataType getDataType() { @JsonProperty(JSON_PROPERTY_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDataType(ContractDataDecodeDataType dataType) { + public void setDataType(@jakarta.annotation.Nonnull ContractDataDecodeDataType dataType) { this.dataType = dataType; } - public ContractDataDecodeRequest abi(List abi) { + public ContractDataDecodeRequest abi(@jakarta.annotation.Nullable List abi) { this.abi = abi; return this; } @@ -115,7 +129,7 @@ public List getAbi() { @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAbi(List abi) { + public void setAbi(@jakarta.annotation.Nullable List abi) { this.abi = abi; } @@ -205,8 +219,7 @@ public String toUrlQueryString(String prefix) { "%sdataType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDataType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDataType())))); } // add `abi` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java index ec72327a..16089f40 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java @@ -26,10 +26,9 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -38,7 +37,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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) @@ -319,10 +320,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java index d38c7820..77d47a33 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,33 @@ ContractDataDecodeResponseParams.JSON_PROPERTY_SIGNATURE, ContractDataDecodeResponseParams.JSON_PROPERTY_ARGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_SIGNATURE = "signature"; - private String signature; + @jakarta.annotation.Nonnull private String signature; public static final String JSON_PROPERTY_ARGS = "args"; - private List args = new ArrayList<>(); + @jakarta.annotation.Nonnull private List args = new ArrayList<>(); public ContractDataDecodeResponseParams() {} - public ContractDataDecodeResponseParams name(String name) { + @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; } @@ -61,11 +74,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ContractDataDecodeResponseParams signature(String signature) { + public ContractDataDecodeResponseParams signature( + @jakarta.annotation.Nonnull String signature) { this.signature = signature; return this; } @@ -84,11 +98,12 @@ public String getSignature() { @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignature(String signature) { + public void setSignature(@jakarta.annotation.Nonnull String signature) { this.signature = signature; } - public ContractDataDecodeResponseParams args(List args) { + public ContractDataDecodeResponseParams args( + @jakarta.annotation.Nonnull List args) { this.args = args; return this; } @@ -115,7 +130,7 @@ public List getArgs() { @JsonProperty(JSON_PROPERTY_ARGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArgs(List args) { + public void setArgs(@jakarta.annotation.Nonnull List args) { this.args = args; } @@ -201,8 +216,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `signature` to the URL query string @@ -212,9 +226,7 @@ public String toUrlQueryString(String prefix) { "%ssignature%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSignature()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSignature())))); } // add `args` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java index 6d1ef626..f67e78e7 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,32 @@ ContractDataDecodedResponse.JSON_PROPERTY_RESULT, ContractDataDecodedResponse.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private ContractDataDecodeDataType type; + @jakarta.annotation.Nonnull private ContractDataDecodeDataType type; public ContractDataDecodedResponse() {} - public ContractDataDecodedResponse result(List result) { + @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; } @@ -65,11 +80,13 @@ public List getResult() { @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult(List result) { + public void setResult( + @jakarta.annotation.Nonnull List result) { this.result = result; } - public ContractDataDecodedResponse type(ContractDataDecodeDataType type) { + public ContractDataDecodedResponse type( + @jakarta.annotation.Nonnull ContractDataDecodeDataType type) { this.type = type; return this; } @@ -88,7 +105,7 @@ public ContractDataDecodeDataType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(ContractDataDecodeDataType type) { + public void setType(@jakarta.annotation.Nonnull ContractDataDecodeDataType type) { this.type = type; } @@ -194,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index b0a3c68e..2a8e2394 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ ContractDataLogDataParam.JSON_PROPERTY_DATA, ContractDataLogDataParam.JSON_PROPERTY_TOPICS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String data; + @jakarta.annotation.Nonnull private String data; public static final String JSON_PROPERTY_TOPICS = "topics"; - private List topics = new ArrayList<>(); + @jakarta.annotation.Nonnull private List topics = new ArrayList<>(); public ContractDataLogDataParam() {} - public ContractDataLogDataParam data(String data) { + @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; } @@ -57,11 +67,11 @@ public String getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(String data) { + public void setData(@jakarta.annotation.Nonnull String data) { this.data = data; } - public ContractDataLogDataParam topics(List topics) { + public ContractDataLogDataParam topics(@jakarta.annotation.Nonnull List topics) { this.topics = topics; return this; } @@ -88,7 +98,7 @@ public List getTopics() { @JsonProperty(JSON_PROPERTY_TOPICS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTopics(List topics) { + public void setTopics(@jakarta.annotation.Nonnull List topics) { this.topics = topics; } @@ -171,8 +181,7 @@ public String toUrlQueryString(String prefix) { "%sdata%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getData()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData())))); } // add `topics` to the URL query string @@ -187,10 +196,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTopics().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTopics().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java b/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java index 1987b71a..7bb988af 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,32 +33,36 @@ ContractDeployRequest.JSON_PROPERTY_FEE, ContractDeployRequest.JSON_PROPERTY_FEE_LEVEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractDeployRequest { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_CONSTRUCTOR_PARAMETERS = "constructorParameters"; - private List constructorParameters; + + @jakarta.annotation.Nullable + private List constructorParameters = new ArrayList<>(); public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; /** * Fee level for the write function transaction. interchangeable with the 'fee' field */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -89,11 +92,20 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public ContractDeployRequest() {} - public ContractDeployRequest assetId(String assetId) { + @JsonCreator + public ContractDeployRequest( + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + String vaultAccountId) { + this.assetId = assetId; + this.vaultAccountId = vaultAccountId; + } + + public ContractDeployRequest assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -112,11 +124,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public ContractDeployRequest vaultAccountId(String vaultAccountId) { + public ContractDeployRequest vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -135,12 +147,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } public ContractDeployRequest constructorParameters( - List constructorParameters) { + @jakarta.annotation.Nullable List constructorParameters) { this.constructorParameters = constructorParameters; return this; } @@ -168,11 +180,12 @@ public List getConstructorParameters() { @JsonProperty(JSON_PROPERTY_CONSTRUCTOR_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConstructorParameters(List constructorParameters) { + public void setConstructorParameters( + @jakarta.annotation.Nullable List constructorParameters) { this.constructorParameters = constructorParameters; } - public ContractDeployRequest useGasless(Boolean useGasless) { + public ContractDeployRequest useGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -193,11 +206,11 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } - public ContractDeployRequest fee(String fee) { + public ContractDeployRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -217,11 +230,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public ContractDeployRequest feeLevel(FeeLevelEnum feeLevel) { + public ContractDeployRequest feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -240,7 +253,7 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } @@ -335,8 +348,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `vaultAccountId` to the URL query string @@ -346,10 +358,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `constructorParameters` to the URL query string @@ -382,9 +391,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } // add `fee` to the URL query string @@ -394,8 +401,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -405,8 +411,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDeployResponse.java b/src/main/java/com/fireblocks/sdk/model/ContractDeployResponse.java index d60ad61b..caf766c0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDeployResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDeployResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** ContractDeployResponse */ @JsonPropertyOrder({ContractDeployResponse.JSON_PROPERTY_TX_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractDeployResponse { public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nonnull private String txId; public ContractDeployResponse() {} - public ContractDeployResponse txId(String txId) { + @JsonCreator + public ContractDeployResponse( + @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId) { + this.txId = txId; + } + + public ContractDeployResponse txId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; return this; } @@ -49,7 +57,7 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } 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 61627d83..2016d86f 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDoc.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDoc.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -32,26 +32,39 @@ ContractDoc.JSON_PROPERTY_METHODS, ContractDoc.JSON_PROPERTY_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractDoc { public static final String JSON_PROPERTY_DETAILS = "details"; - private String details; + @jakarta.annotation.Nullable private String details; public static final String JSON_PROPERTY_EVENTS = "events"; - private String events; + @jakarta.annotation.Nullable private String events; public static final String JSON_PROPERTY_KIND = "kind"; - private String kind; + @jakarta.annotation.Nonnull private String kind; public static final String JSON_PROPERTY_METHODS = "methods"; - private Map methods = new HashMap<>(); + @jakarta.annotation.Nonnull private Map methods = new HashMap<>(); public static final String JSON_PROPERTY_VERSION = "version"; - private BigDecimal version; + @jakarta.annotation.Nonnull private BigDecimal version; public ContractDoc() {} - public ContractDoc details(String details) { + @JsonCreator + 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) { + this.kind = kind; + this.methods = methods; + this.version = version; + } + + public ContractDoc details(@jakarta.annotation.Nullable String details) { this.details = details; return this; } @@ -70,11 +83,11 @@ public String getDetails() { @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetails(String details) { + public void setDetails(@jakarta.annotation.Nullable String details) { this.details = details; } - public ContractDoc events(String events) { + public ContractDoc events(@jakarta.annotation.Nullable String events) { this.events = events; return this; } @@ -93,11 +106,11 @@ public String getEvents() { @JsonProperty(JSON_PROPERTY_EVENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEvents(String events) { + public void setEvents(@jakarta.annotation.Nullable String events) { this.events = events; } - public ContractDoc kind(String kind) { + public ContractDoc kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } @@ -116,11 +129,11 @@ public String getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKind(String kind) { + public void setKind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; } - public ContractDoc methods(Map methods) { + public ContractDoc methods(@jakarta.annotation.Nonnull Map methods) { this.methods = methods; return this; } @@ -147,11 +160,11 @@ public Map getMethods() { @JsonProperty(JSON_PROPERTY_METHODS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMethods(Map methods) { + public void setMethods(@jakarta.annotation.Nonnull Map methods) { this.methods = methods; } - public ContractDoc version(BigDecimal version) { + public ContractDoc version(@jakarta.annotation.Nonnull BigDecimal version) { this.version = version; return this; } @@ -170,7 +183,7 @@ public BigDecimal getVersion() { @JsonProperty(JSON_PROPERTY_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVersion(BigDecimal version) { + public void setVersion(@jakarta.annotation.Nonnull BigDecimal version) { this.version = version; } @@ -259,8 +272,7 @@ public String toUrlQueryString(String prefix) { "%sdetails%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDetails()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDetails())))); } // add `events` to the URL query string @@ -270,8 +282,7 @@ public String toUrlQueryString(String prefix) { "%sevents%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEvents()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEvents())))); } // add `kind` to the URL query string @@ -281,8 +292,7 @@ public String toUrlQueryString(String prefix) { "%skind%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getKind()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getKind())))); } // add `methods` to the URL query string @@ -315,8 +325,7 @@ public String toUrlQueryString(String prefix) { "%sversion%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getVersion()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVersion())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ContractMetadataDto.java b/src/main/java/com/fireblocks/sdk/model/ContractMetadataDto.java index d89f1e75..59596030 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractMetadataDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractMetadataDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,42 @@ ContractMetadataDto.JSON_PROPERTY_CONTRACT_TEMPLATE_ID, ContractMetadataDto.JSON_PROPERTY_VAULT_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractMetadataDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - private String blockchainId; + @jakarta.annotation.Nonnull private String blockchainId; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nonnull private String contractAddress; public static final String JSON_PROPERTY_CONTRACT_TEMPLATE_ID = "contractTemplateId"; - private String contractTemplateId; + @jakarta.annotation.Nonnull private String contractTemplateId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nullable private String vaultAccountId; public ContractMetadataDto() {} - public ContractMetadataDto id(String id) { + @JsonCreator + public ContractMetadataDto( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_ID, required = true) String blockchainId, + @JsonProperty(value = JSON_PROPERTY_CONTRACT_ADDRESS, required = true) + String contractAddress, + @JsonProperty(value = JSON_PROPERTY_CONTRACT_TEMPLATE_ID, required = true) + String contractTemplateId) { + this.id = id; + this.blockchainId = blockchainId; + this.contractAddress = contractAddress; + this.contractTemplateId = contractTemplateId; + } + + public ContractMetadataDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -67,11 +83,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public ContractMetadataDto blockchainId(String blockchainId) { + public ContractMetadataDto blockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; return this; } @@ -90,11 +106,11 @@ public String getBlockchainId() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainId(String blockchainId) { + public void setBlockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; } - public ContractMetadataDto contractAddress(String contractAddress) { + public ContractMetadataDto contractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -113,11 +129,12 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; } - public ContractMetadataDto contractTemplateId(String contractTemplateId) { + public ContractMetadataDto contractTemplateId( + @jakarta.annotation.Nonnull String contractTemplateId) { this.contractTemplateId = contractTemplateId; return this; } @@ -136,11 +153,11 @@ public String getContractTemplateId() { @JsonProperty(JSON_PROPERTY_CONTRACT_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractTemplateId(String contractTemplateId) { + public void setContractTemplateId(@jakarta.annotation.Nonnull String contractTemplateId) { this.contractTemplateId = contractTemplateId; } - public ContractMetadataDto vaultAccountId(String vaultAccountId) { + public ContractMetadataDto vaultAccountId(@jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -159,7 +176,7 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; } @@ -248,10 +265,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `blockchainId` to the URL query string @@ -261,10 +275,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } // add `contractAddress` to the URL query string @@ -274,10 +285,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `contractTemplateId` to the URL query string @@ -287,10 +295,7 @@ public String toUrlQueryString(String prefix) { "%scontractTemplateId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractTemplateId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractTemplateId())))); } // add `vaultAccountId` to the URL query string @@ -300,10 +305,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java b/src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java new file mode 100644 index 00000000..2258ed86 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java @@ -0,0 +1,280 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..5ae7df13 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java @@ -0,0 +1,325 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI 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 f438893b..98a04866 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -42,52 +41,54 @@ ContractTemplateDto.JSON_PROPERTY_IMPLEMENTATION_CONTRACT_ID, ContractTemplateDto.JSON_PROPERTY_INITIALIZATION_PHASE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractTemplateDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nonnull private String description; public static final String JSON_PROPERTY_LONG_DESCRIPTION = "longDescription"; - private String longDescription; + @jakarta.annotation.Nullable private String longDescription; public static final String JSON_PROPERTY_ABI = "abi"; - private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private ContractAttributes attributes; + @jakarta.annotation.Nullable private ContractAttributes attributes; public static final String JSON_PROPERTY_DOCS = "docs"; - private ContractDoc docs; + @jakarta.annotation.Nullable private ContractDoc docs; public static final String JSON_PROPERTY_OWNER = "owner"; - private String owner; + @jakarta.annotation.Nullable private String owner; public static final String JSON_PROPERTY_VENDOR = "vendor"; - private VendorDto vendor; + @jakarta.annotation.Nullable private VendorDto vendor; public static final String JSON_PROPERTY_IS_PUBLIC = "isPublic"; - private Boolean isPublic; + @jakarta.annotation.Nonnull private Boolean isPublic; public static final String JSON_PROPERTY_CAN_DEPLOY = "canDeploy"; - private Boolean canDeploy; + @jakarta.annotation.Nullable private Boolean canDeploy; /** The type of the contract template */ public enum TypeEnum { - FUNGIBLE_TOKEN("FUNGIBLE_TOKEN"), + FUNGIBLE_TOKEN(String.valueOf("FUNGIBLE_TOKEN")), - NON_FUNGIBLE_TOKEN("NON_FUNGIBLE_TOKEN"), + NON_FUNGIBLE_TOKEN(String.valueOf("NON_FUNGIBLE_TOKEN")), - NON_TOKEN("NON_TOKEN"), + NON_TOKEN(String.valueOf("NON_TOKEN")), - TOKEN_EXTENSION("TOKEN_EXTENSION"), + TOKEN_EXTENSION(String.valueOf("TOKEN_EXTENSION")), - TOKEN_UTILITY("TOKEN_UTILITY"); + TOKEN_UTILITY(String.valueOf("TOKEN_UTILITY")); private String value; @@ -117,17 +118,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_IMPLEMENTATION_CONTRACT_ID = "implementationContractId"; - private String implementationContractId; + @jakarta.annotation.Nullable private String implementationContractId; /** Gets or Sets initializationPhase */ public enum InitializationPhaseEnum { - ON_DEPLOYMENT("ON_DEPLOYMENT"), + ON_DEPLOYMENT(String.valueOf("ON_DEPLOYMENT")), - POST_DEPLOYMENT("POST_DEPLOYMENT"); + POST_DEPLOYMENT(String.valueOf("POST_DEPLOYMENT")); private String value; @@ -157,11 +158,28 @@ public static InitializationPhaseEnum fromValue(String value) { } public static final String JSON_PROPERTY_INITIALIZATION_PHASE = "initializationPhase"; - private InitializationPhaseEnum initializationPhase; + @jakarta.annotation.Nonnull private InitializationPhaseEnum initializationPhase; public ContractTemplateDto() {} - public ContractTemplateDto id(String id) { + @JsonCreator + 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_IS_PUBLIC, required = true) Boolean isPublic, + @JsonProperty(value = JSON_PROPERTY_INITIALIZATION_PHASE, required = true) + InitializationPhaseEnum initializationPhase) { + this.id = id; + this.name = name; + this.description = description; + this.abi = abi; + this.isPublic = isPublic; + this.initializationPhase = initializationPhase; + } + + public ContractTemplateDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -180,11 +198,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public ContractTemplateDto name(String name) { + public ContractTemplateDto name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -203,11 +221,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ContractTemplateDto description(String description) { + public ContractTemplateDto description(@jakarta.annotation.Nonnull String description) { this.description = description; return this; } @@ -226,11 +244,12 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nonnull String description) { this.description = description; } - public ContractTemplateDto longDescription(String longDescription) { + public ContractTemplateDto longDescription( + @jakarta.annotation.Nullable String longDescription) { this.longDescription = longDescription; return this; } @@ -249,11 +268,11 @@ public String getLongDescription() { @JsonProperty(JSON_PROPERTY_LONG_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLongDescription(String longDescription) { + public void setLongDescription(@jakarta.annotation.Nullable String longDescription) { this.longDescription = longDescription; } - public ContractTemplateDto abi(List abi) { + public ContractTemplateDto abi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; return this; } @@ -280,11 +299,12 @@ public List getAbi() { @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(List abi) { + public void setAbi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; } - public ContractTemplateDto attributes(ContractAttributes attributes) { + public ContractTemplateDto attributes( + @jakarta.annotation.Nullable ContractAttributes attributes) { this.attributes = attributes; return this; } @@ -304,11 +324,11 @@ public ContractAttributes getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(ContractAttributes attributes) { + public void setAttributes(@jakarta.annotation.Nullable ContractAttributes attributes) { this.attributes = attributes; } - public ContractTemplateDto docs(ContractDoc docs) { + public ContractTemplateDto docs(@jakarta.annotation.Nullable ContractDoc docs) { this.docs = docs; return this; } @@ -328,11 +348,11 @@ public ContractDoc getDocs() { @JsonProperty(JSON_PROPERTY_DOCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocs(ContractDoc docs) { + public void setDocs(@jakarta.annotation.Nullable ContractDoc docs) { this.docs = docs; } - public ContractTemplateDto owner(String owner) { + public ContractTemplateDto owner(@jakarta.annotation.Nullable String owner) { this.owner = owner; return this; } @@ -352,11 +372,11 @@ public String getOwner() { @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOwner(String owner) { + public void setOwner(@jakarta.annotation.Nullable String owner) { this.owner = owner; } - public ContractTemplateDto vendor(VendorDto vendor) { + public ContractTemplateDto vendor(@jakarta.annotation.Nullable VendorDto vendor) { this.vendor = vendor; return this; } @@ -376,11 +396,11 @@ public VendorDto getVendor() { @JsonProperty(JSON_PROPERTY_VENDOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVendor(VendorDto vendor) { + public void setVendor(@jakarta.annotation.Nullable VendorDto vendor) { this.vendor = vendor; } - public ContractTemplateDto isPublic(Boolean isPublic) { + public ContractTemplateDto isPublic(@jakarta.annotation.Nonnull Boolean isPublic) { this.isPublic = isPublic; return this; } @@ -400,11 +420,11 @@ public Boolean getIsPublic() { @JsonProperty(JSON_PROPERTY_IS_PUBLIC) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsPublic(Boolean isPublic) { + public void setIsPublic(@jakarta.annotation.Nonnull Boolean isPublic) { this.isPublic = isPublic; } - public ContractTemplateDto canDeploy(Boolean canDeploy) { + public ContractTemplateDto canDeploy(@jakarta.annotation.Nullable Boolean canDeploy) { this.canDeploy = canDeploy; return this; } @@ -423,11 +443,11 @@ public Boolean getCanDeploy() { @JsonProperty(JSON_PROPERTY_CAN_DEPLOY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanDeploy(Boolean canDeploy) { + public void setCanDeploy(@jakarta.annotation.Nullable Boolean canDeploy) { this.canDeploy = canDeploy; } - public ContractTemplateDto type(TypeEnum type) { + public ContractTemplateDto type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -446,11 +466,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public ContractTemplateDto implementationContractId(String implementationContractId) { + public ContractTemplateDto implementationContractId( + @jakarta.annotation.Nullable String implementationContractId) { this.implementationContractId = implementationContractId; return this; } @@ -469,11 +490,13 @@ public String getImplementationContractId() { @JsonProperty(JSON_PROPERTY_IMPLEMENTATION_CONTRACT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setImplementationContractId(String implementationContractId) { + public void setImplementationContractId( + @jakarta.annotation.Nullable String implementationContractId) { this.implementationContractId = implementationContractId; } - public ContractTemplateDto initializationPhase(InitializationPhaseEnum initializationPhase) { + public ContractTemplateDto initializationPhase( + @jakarta.annotation.Nonnull InitializationPhaseEnum initializationPhase) { this.initializationPhase = initializationPhase; return this; } @@ -492,7 +515,8 @@ public InitializationPhaseEnum getInitializationPhase() { @JsonProperty(JSON_PROPERTY_INITIALIZATION_PHASE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInitializationPhase(InitializationPhaseEnum initializationPhase) { + public void setInitializationPhase( + @jakarta.annotation.Nonnull InitializationPhaseEnum initializationPhase) { this.initializationPhase = initializationPhase; } @@ -617,10 +641,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -630,8 +651,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `description` to the URL query string @@ -641,10 +661,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `longDescription` to the URL query string @@ -654,10 +671,7 @@ public String toUrlQueryString(String prefix) { "%slongDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLongDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLongDescription())))); } // add `abi` to the URL query string @@ -699,8 +713,7 @@ public String toUrlQueryString(String prefix) { "%sowner%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getOwner()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOwner())))); } // add `vendor` to the URL query string @@ -715,8 +728,7 @@ public String toUrlQueryString(String prefix) { "%sisPublic%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsPublic()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsPublic())))); } // add `canDeploy` to the URL query string @@ -726,9 +738,7 @@ public String toUrlQueryString(String prefix) { "%scanDeploy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCanDeploy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCanDeploy())))); } // add `type` to the URL query string @@ -738,8 +748,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `implementationContractId` to the URL query string @@ -749,10 +758,8 @@ public String toUrlQueryString(String prefix) { "%simplementationContractId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getImplementationContractId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getImplementationContractId())))); } // add `initializationPhase` to the URL query string @@ -762,10 +769,8 @@ public String toUrlQueryString(String prefix) { "%sinitializationPhase%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInitializationPhase()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getInitializationPhase())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java b/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java index fbfd53eb..bf999925 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -38,34 +37,36 @@ ContractUploadRequest.JSON_PROPERTY_ATTRIBUTES, ContractUploadRequest.JSON_PROPERTY_PROTOCOL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ContractUploadRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nonnull private String description; public static final String JSON_PROPERTY_LONG_DESCRIPTION = "longDescription"; - private String longDescription; + @jakarta.annotation.Nullable private String longDescription; public static final String JSON_PROPERTY_BYTECODE = "bytecode"; - private String bytecode; + @jakarta.annotation.Nonnull private String bytecode; public static final String JSON_PROPERTY_SOURCECODE = "sourcecode"; - private String sourcecode; + @jakarta.annotation.Nullable private String sourcecode; /** The type of the contract template */ public enum TypeEnum { - FUNGIBLE_TOKEN("FUNGIBLE_TOKEN"), + FUNGIBLE_TOKEN(String.valueOf("FUNGIBLE_TOKEN")), - NON_FUNGIBLE_TOKEN("NON_FUNGIBLE_TOKEN"), + NON_FUNGIBLE_TOKEN(String.valueOf("NON_FUNGIBLE_TOKEN")), - NON_TOKEN("NON_TOKEN"), + NON_TOKEN(String.valueOf("NON_TOKEN")), - TOKEN_EXTENSION("TOKEN_EXTENSION"), + TOKEN_EXTENSION(String.valueOf("TOKEN_EXTENSION")), - TOKEN_UTILITY("TOKEN_UTILITY"); + TOKEN_UTILITY(String.valueOf("TOKEN_UTILITY")); private String value; @@ -95,22 +96,22 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_DOCS = "docs"; - private ContractDoc docs; + @jakarta.annotation.Nullable private ContractDoc docs; public static final String JSON_PROPERTY_ABI = "abi"; - private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private ContractAttributes attributes; + @jakarta.annotation.Nullable private ContractAttributes attributes; /** The protocol that the template will be used for */ public enum ProtocolEnum { - ETH("ETH"), + ETH(String.valueOf("ETH")), - SOL("SOL"); + SOL(String.valueOf("SOL")); private String value; @@ -140,11 +141,25 @@ public static ProtocolEnum fromValue(String value) { } public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private ProtocolEnum protocol; + @jakarta.annotation.Nullable private ProtocolEnum protocol; public ContractUploadRequest() {} - public ContractUploadRequest name(String name) { + @JsonCreator + 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) { + this.name = name; + this.description = description; + this.bytecode = bytecode; + this.type = type; + this.abi = abi; + } + + public ContractUploadRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -163,11 +178,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ContractUploadRequest description(String description) { + public ContractUploadRequest description(@jakarta.annotation.Nonnull String description) { this.description = description; return this; } @@ -186,11 +201,12 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nonnull String description) { this.description = description; } - public ContractUploadRequest longDescription(String longDescription) { + public ContractUploadRequest longDescription( + @jakarta.annotation.Nullable String longDescription) { this.longDescription = longDescription; return this; } @@ -209,11 +225,11 @@ public String getLongDescription() { @JsonProperty(JSON_PROPERTY_LONG_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLongDescription(String longDescription) { + public void setLongDescription(@jakarta.annotation.Nullable String longDescription) { this.longDescription = longDescription; } - public ContractUploadRequest bytecode(String bytecode) { + public ContractUploadRequest bytecode(@jakarta.annotation.Nonnull String bytecode) { this.bytecode = bytecode; return this; } @@ -232,11 +248,11 @@ public String getBytecode() { @JsonProperty(JSON_PROPERTY_BYTECODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBytecode(String bytecode) { + public void setBytecode(@jakarta.annotation.Nonnull String bytecode) { this.bytecode = bytecode; } - public ContractUploadRequest sourcecode(String sourcecode) { + public ContractUploadRequest sourcecode(@jakarta.annotation.Nullable String sourcecode) { this.sourcecode = sourcecode; return this; } @@ -255,11 +271,11 @@ public String getSourcecode() { @JsonProperty(JSON_PROPERTY_SOURCECODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourcecode(String sourcecode) { + public void setSourcecode(@jakarta.annotation.Nullable String sourcecode) { this.sourcecode = sourcecode; } - public ContractUploadRequest type(TypeEnum type) { + public ContractUploadRequest type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -278,11 +294,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public ContractUploadRequest docs(ContractDoc docs) { + public ContractUploadRequest docs(@jakarta.annotation.Nullable ContractDoc docs) { this.docs = docs; return this; } @@ -302,11 +318,11 @@ public ContractDoc getDocs() { @JsonProperty(JSON_PROPERTY_DOCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocs(ContractDoc docs) { + public void setDocs(@jakarta.annotation.Nullable ContractDoc docs) { this.docs = docs; } - public ContractUploadRequest abi(List abi) { + public ContractUploadRequest abi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; return this; } @@ -333,11 +349,12 @@ public List getAbi() { @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(List abi) { + public void setAbi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; } - public ContractUploadRequest attributes(ContractAttributes attributes) { + public ContractUploadRequest attributes( + @jakarta.annotation.Nullable ContractAttributes attributes) { this.attributes = attributes; return this; } @@ -357,11 +374,11 @@ public ContractAttributes getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(ContractAttributes attributes) { + public void setAttributes(@jakarta.annotation.Nullable ContractAttributes attributes) { this.attributes = attributes; } - public ContractUploadRequest protocol(ProtocolEnum protocol) { + public ContractUploadRequest protocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { this.protocol = protocol; return this; } @@ -380,7 +397,7 @@ public ProtocolEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProtocol(ProtocolEnum protocol) { + public void setProtocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { this.protocol = protocol; } @@ -489,8 +506,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `description` to the URL query string @@ -500,10 +516,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `longDescription` to the URL query string @@ -513,10 +526,7 @@ public String toUrlQueryString(String prefix) { "%slongDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLongDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLongDescription())))); } // add `bytecode` to the URL query string @@ -526,8 +536,7 @@ public String toUrlQueryString(String prefix) { "%sbytecode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBytecode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBytecode())))); } // add `sourcecode` to the URL query string @@ -537,9 +546,7 @@ public String toUrlQueryString(String prefix) { "%ssourcecode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourcecode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourcecode())))); } // add `type` to the URL query string @@ -549,8 +556,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `docs` to the URL query string @@ -592,8 +598,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 20fbca0e..5f00bf63 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,32 +33,49 @@ ContractWithAbiDto.JSON_PROPERTY_IMPLEMENTATION, ContractWithAbiDto.JSON_PROPERTY_IS_PUBLIC }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String contractAddress; + @jakarta.annotation.Nonnull private String contractAddress; public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - private String baseAssetId; + @jakarta.annotation.Nonnull private String baseAssetId; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ABI = "abi"; - private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); public static final String JSON_PROPERTY_IS_PROXY = "isProxy"; - private Boolean isProxy; + @jakarta.annotation.Nullable private Boolean isProxy; public static final String JSON_PROPERTY_IMPLEMENTATION = "implementation"; - private String implementation; + @jakarta.annotation.Nullable private String implementation; public static final String JSON_PROPERTY_IS_PUBLIC = "isPublic"; - private Boolean isPublic; + @jakarta.annotation.Nonnull private Boolean isPublic; public ContractWithAbiDto() {} - public ContractWithAbiDto contractAddress(String contractAddress) { + @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; } @@ -77,11 +94,11 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; } - public ContractWithAbiDto baseAssetId(String baseAssetId) { + public ContractWithAbiDto baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; return this; } @@ -100,11 +117,11 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; } - public ContractWithAbiDto name(String name) { + public ContractWithAbiDto name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -123,11 +140,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ContractWithAbiDto abi(List abi) { + public ContractWithAbiDto abi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; return this; } @@ -154,11 +171,11 @@ public List getAbi() { @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(List abi) { + public void setAbi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; } - public ContractWithAbiDto isProxy(Boolean isProxy) { + public ContractWithAbiDto isProxy(@jakarta.annotation.Nullable Boolean isProxy) { this.isProxy = isProxy; return this; } @@ -177,11 +194,11 @@ public Boolean getIsProxy() { @JsonProperty(JSON_PROPERTY_IS_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsProxy(Boolean isProxy) { + public void setIsProxy(@jakarta.annotation.Nullable Boolean isProxy) { this.isProxy = isProxy; } - public ContractWithAbiDto implementation(String implementation) { + public ContractWithAbiDto implementation(@jakarta.annotation.Nullable String implementation) { this.implementation = implementation; return this; } @@ -200,11 +217,11 @@ public String getImplementation() { @JsonProperty(JSON_PROPERTY_IMPLEMENTATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setImplementation(String implementation) { + public void setImplementation(@jakarta.annotation.Nullable String implementation) { this.implementation = implementation; } - public ContractWithAbiDto isPublic(Boolean isPublic) { + public ContractWithAbiDto isPublic(@jakarta.annotation.Nonnull Boolean isPublic) { this.isPublic = isPublic; return this; } @@ -223,7 +240,7 @@ public Boolean getIsPublic() { @JsonProperty(JSON_PROPERTY_IS_PUBLIC) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsPublic(Boolean isPublic) { + public void setIsPublic(@jakarta.annotation.Nonnull Boolean isPublic) { this.isPublic = isPublic; } @@ -317,10 +334,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `baseAssetId` to the URL query string @@ -330,10 +344,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } // add `name` to the URL query string @@ -343,8 +354,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `abi` to the URL query string @@ -376,8 +386,7 @@ public String toUrlQueryString(String prefix) { "%sisProxy%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsProxy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsProxy())))); } // add `implementation` to the URL query string @@ -387,10 +396,7 @@ public String toUrlQueryString(String prefix) { "%simplementation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getImplementation()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getImplementation())))); } // add `isPublic` to the URL query string @@ -400,8 +406,7 @@ public String toUrlQueryString(String prefix) { "%sisPublic%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsPublic()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsPublic())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionConfigOperation.java b/src/main/java/com/fireblocks/sdk/model/ConversionConfigOperation.java index ec4d43e0..95fa38dc 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionConfigOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionConfigOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,42 @@ ConversionConfigOperation.JSON_PROPERTY_STATUS, ConversionConfigOperation.JSON_PROPERTY_VALIDATION_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionConfigOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_TYPE = "type"; - private ConversionOperationType type; + @jakarta.annotation.Nonnull private ConversionOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private ConversionOperationConfigParams params; + @jakarta.annotation.Nonnull private ConversionOperationConfigParams params; public static final String JSON_PROPERTY_STATUS = "status"; - private ConfigOperationStatus status; + @jakarta.annotation.Nonnull private ConfigOperationStatus status; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private ConversionValidationFailure validationFailure; + @jakarta.annotation.Nullable private ConversionValidationFailure validationFailure; public ConversionConfigOperation() {} - public ConversionConfigOperation operationId(String operationId) { + @JsonCreator + public ConversionConfigOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) ConversionOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + ConversionOperationConfigParams params, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ConfigOperationStatus status) { + this.operationId = operationId; + this.type = type; + this.params = params; + this.status = status; + } + + public ConversionConfigOperation operationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -67,11 +83,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ConversionConfigOperation type(ConversionOperationType type) { + public ConversionConfigOperation type( + @jakarta.annotation.Nonnull ConversionOperationType type) { this.type = type; return this; } @@ -90,11 +107,12 @@ public ConversionOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(ConversionOperationType type) { + public void setType(@jakarta.annotation.Nonnull ConversionOperationType type) { this.type = type; } - public ConversionConfigOperation params(ConversionOperationConfigParams params) { + public ConversionConfigOperation params( + @jakarta.annotation.Nonnull ConversionOperationConfigParams params) { this.params = params; return this; } @@ -113,11 +131,12 @@ public ConversionOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(ConversionOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull ConversionOperationConfigParams params) { this.params = params; } - public ConversionConfigOperation status(ConfigOperationStatus status) { + public ConversionConfigOperation status( + @jakarta.annotation.Nonnull ConfigOperationStatus status) { this.status = status; return this; } @@ -136,12 +155,12 @@ public ConfigOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ConfigOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ConfigOperationStatus status) { this.status = status; } public ConversionConfigOperation validationFailure( - ConversionValidationFailure validationFailure) { + @jakarta.annotation.Nullable ConversionValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -160,7 +179,8 @@ public ConversionValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(ConversionValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable ConversionValidationFailure validationFailure) { this.validationFailure = validationFailure; } @@ -252,10 +272,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `type` to the URL query string @@ -265,8 +282,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string @@ -281,8 +297,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `validationFailure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationConfigParams.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationConfigParams.java index 44c1882b..2cd14adf 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationConfigParams.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationConfigParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,35 @@ ConversionOperationConfigParams.JSON_PROPERTY_DEST_ASSET_ID, ConversionOperationConfigParams.JSON_PROPERTY_SLIPPAGE_BASIS_POINTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationConfigParams { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - private String accountId; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_SRC_ASSET_ID = "srcAssetId"; - private String srcAssetId; + @jakarta.annotation.Nullable private String srcAssetId; public static final String JSON_PROPERTY_DEST_ASSET_ID = "destAssetId"; - private String destAssetId; + @jakarta.annotation.Nonnull private String destAssetId; public static final String JSON_PROPERTY_SLIPPAGE_BASIS_POINTS = "slippageBasisPoints"; - private Integer slippageBasisPoints; + @jakarta.annotation.Nullable private Integer slippageBasisPoints; public ConversionOperationConfigParams() {} - public ConversionOperationConfigParams amount(String amount) { + @JsonCreator + public ConversionOperationConfigParams( + @JsonProperty(value = JSON_PROPERTY_DEST_ASSET_ID, required = true) + String destAssetId) { + this.destAssetId = destAssetId; + } + + public ConversionOperationConfigParams amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -67,11 +76,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public ConversionOperationConfigParams accountId(String accountId) { + public ConversionOperationConfigParams accountId( + @jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -90,11 +100,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public ConversionOperationConfigParams srcAssetId(String srcAssetId) { + public ConversionOperationConfigParams srcAssetId( + @jakarta.annotation.Nullable String srcAssetId) { this.srcAssetId = srcAssetId; return this; } @@ -113,11 +124,12 @@ public String getSrcAssetId() { @JsonProperty(JSON_PROPERTY_SRC_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcAssetId(String srcAssetId) { + public void setSrcAssetId(@jakarta.annotation.Nullable String srcAssetId) { this.srcAssetId = srcAssetId; } - public ConversionOperationConfigParams destAssetId(String destAssetId) { + public ConversionOperationConfigParams destAssetId( + @jakarta.annotation.Nonnull String destAssetId) { this.destAssetId = destAssetId; return this; } @@ -136,11 +148,12 @@ public String getDestAssetId() { @JsonProperty(JSON_PROPERTY_DEST_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestAssetId(String destAssetId) { + public void setDestAssetId(@jakarta.annotation.Nonnull String destAssetId) { this.destAssetId = destAssetId; } - public ConversionOperationConfigParams slippageBasisPoints(Integer slippageBasisPoints) { + public ConversionOperationConfigParams slippageBasisPoints( + @jakarta.annotation.Nullable Integer slippageBasisPoints) { this.slippageBasisPoints = slippageBasisPoints; return this; } @@ -159,7 +172,7 @@ public Integer getSlippageBasisPoints() { @JsonProperty(JSON_PROPERTY_SLIPPAGE_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSlippageBasisPoints(Integer slippageBasisPoints) { + public void setSlippageBasisPoints(@jakarta.annotation.Nullable Integer slippageBasisPoints) { this.slippageBasisPoints = slippageBasisPoints; } @@ -253,8 +266,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `accountId` to the URL query string @@ -264,9 +276,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `srcAssetId` to the URL query string @@ -276,9 +286,7 @@ public String toUrlQueryString(String prefix) { "%ssrcAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSrcAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcAssetId())))); } // add `destAssetId` to the URL query string @@ -288,10 +296,7 @@ public String toUrlQueryString(String prefix) { "%sdestAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestAssetId())))); } // add `slippageBasisPoints` to the URL query string @@ -301,10 +306,8 @@ public String toUrlQueryString(String prefix) { "%sslippageBasisPoints%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSlippageBasisPoints()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSlippageBasisPoints())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecution.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecution.java index 08c6eab1..c4d44f13 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecution.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecution.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +30,38 @@ ConversionOperationExecution.JSON_PROPERTY_FINISHED_AT, ConversionOperationExecution.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationExecution { public static final String JSON_PROPERTY_INPUT = "input"; - private ConversionOperationConfigParams input; + @jakarta.annotation.Nonnull private ConversionOperationConfigParams input; public static final String JSON_PROPERTY_OUTPUT = "output"; - private ConversionOperationExecutionOutput output; + @jakarta.annotation.Nullable private ConversionOperationExecutionOutput output; public static final String JSON_PROPERTY_STARTED_AT = "startedAt"; - private BigDecimal startedAt; + @jakarta.annotation.Nonnull private BigDecimal startedAt; public static final String JSON_PROPERTY_FINISHED_AT = "finishedAt"; - private BigDecimal finishedAt; + @jakarta.annotation.Nullable private BigDecimal finishedAt; public static final String JSON_PROPERTY_FAILURE = "failure"; - private ConversionOperationFailure failure; + @jakarta.annotation.Nullable private ConversionOperationFailure failure; public ConversionOperationExecution() {} - public ConversionOperationExecution input(ConversionOperationConfigParams input) { + @JsonCreator + public ConversionOperationExecution( + @JsonProperty(value = JSON_PROPERTY_INPUT, required = true) + ConversionOperationConfigParams input, + @JsonProperty(value = JSON_PROPERTY_STARTED_AT, required = true) BigDecimal startedAt) { + this.input = input; + this.startedAt = startedAt; + } + + public ConversionOperationExecution input( + @jakarta.annotation.Nonnull ConversionOperationConfigParams input) { this.input = input; return this; } @@ -68,11 +80,12 @@ public ConversionOperationConfigParams getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInput(ConversionOperationConfigParams input) { + public void setInput(@jakarta.annotation.Nonnull ConversionOperationConfigParams input) { this.input = input; } - public ConversionOperationExecution output(ConversionOperationExecutionOutput output) { + public ConversionOperationExecution output( + @jakarta.annotation.Nullable ConversionOperationExecutionOutput output) { this.output = output; return this; } @@ -91,11 +104,12 @@ public ConversionOperationExecutionOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(ConversionOperationExecutionOutput output) { + public void setOutput(@jakarta.annotation.Nullable ConversionOperationExecutionOutput output) { this.output = output; } - public ConversionOperationExecution startedAt(BigDecimal startedAt) { + public ConversionOperationExecution startedAt( + @jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; return this; } @@ -114,11 +128,12 @@ public BigDecimal getStartedAt() { @JsonProperty(JSON_PROPERTY_STARTED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStartedAt(BigDecimal startedAt) { + public void setStartedAt(@jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; } - public ConversionOperationExecution finishedAt(BigDecimal finishedAt) { + public ConversionOperationExecution finishedAt( + @jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; return this; } @@ -137,11 +152,12 @@ public BigDecimal getFinishedAt() { @JsonProperty(JSON_PROPERTY_FINISHED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinishedAt(BigDecimal finishedAt) { + public void setFinishedAt(@jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; } - public ConversionOperationExecution failure(ConversionOperationFailure failure) { + public ConversionOperationExecution failure( + @jakarta.annotation.Nullable ConversionOperationFailure failure) { this.failure = failure; return this; } @@ -160,7 +176,7 @@ public ConversionOperationFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(ConversionOperationFailure failure) { + public void setFailure(@jakarta.annotation.Nullable ConversionOperationFailure failure) { this.failure = failure; } @@ -260,9 +276,7 @@ public String toUrlQueryString(String prefix) { "%sstartedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStartedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStartedAt())))); } // add `finishedAt` to the URL query string @@ -272,9 +286,7 @@ public String toUrlQueryString(String prefix) { "%sfinishedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFinishedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFinishedAt())))); } // add `failure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutput.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutput.java index 9b63e6f3..ffdf829c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutput.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,34 @@ ConversionOperationExecutionOutput.JSON_PROPERTY_FEE, ConversionOperationExecutionOutput.JSON_PROPERTY_CONVERSION_RATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationExecutionOutput { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private AssetAmount amount; + @jakarta.annotation.Nonnull private AssetAmount amount; public static final String JSON_PROPERTY_FEE = "fee"; - private AssetAmount fee; + @jakarta.annotation.Nonnull private AssetAmount fee; public static final String JSON_PROPERTY_CONVERSION_RATE = "conversionRate"; - private String conversionRate; + @jakarta.annotation.Nonnull private String conversionRate; public ConversionOperationExecutionOutput() {} - public ConversionOperationExecutionOutput amount(AssetAmount amount) { + @JsonCreator + public ConversionOperationExecutionOutput( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) AssetAmount amount, + @JsonProperty(value = JSON_PROPERTY_FEE, required = true) AssetAmount fee, + @JsonProperty(value = JSON_PROPERTY_CONVERSION_RATE, required = true) + String conversionRate) { + this.amount = amount; + this.fee = fee; + this.conversionRate = conversionRate; + } + + public ConversionOperationExecutionOutput amount( + @jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; return this; } @@ -59,11 +73,11 @@ public AssetAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(AssetAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; } - public ConversionOperationExecutionOutput fee(AssetAmount fee) { + public ConversionOperationExecutionOutput fee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; return this; } @@ -82,11 +96,12 @@ public AssetAmount getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFee(AssetAmount fee) { + public void setFee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; } - public ConversionOperationExecutionOutput conversionRate(String conversionRate) { + public ConversionOperationExecutionOutput conversionRate( + @jakarta.annotation.Nonnull String conversionRate) { this.conversionRate = conversionRate; return this; } @@ -105,7 +120,7 @@ public String getConversionRate() { @JsonProperty(JSON_PROPERTY_CONVERSION_RATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConversionRate(String conversionRate) { + public void setConversionRate(@jakarta.annotation.Nonnull String conversionRate) { this.conversionRate = conversionRate; } @@ -202,10 +217,7 @@ public String toUrlQueryString(String prefix) { "%sconversionRate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConversionRate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConversionRate())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParams.java index 2b348d73..aa84705c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,29 @@ ConversionOperationExecutionParams.JSON_PROPERTY_CONFIG_OPERATION_ID, ConversionOperationExecutionParams.JSON_PROPERTY_EXECUTION_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationExecutionParams { public static final String JSON_PROPERTY_CONFIG_OPERATION_ID = "configOperationId"; - private String configOperationId; + @jakarta.annotation.Nonnull private String configOperationId; public static final String JSON_PROPERTY_EXECUTION_PARAMS = "executionParams"; + + @jakarta.annotation.Nullable private ConversionOperationExecutionParamsExecutionParams executionParams; public ConversionOperationExecutionParams() {} - public ConversionOperationExecutionParams configOperationId(String configOperationId) { + @JsonCreator + public ConversionOperationExecutionParams( + @JsonProperty(value = JSON_PROPERTY_CONFIG_OPERATION_ID, required = true) + String configOperationId) { + this.configOperationId = configOperationId; + } + + public ConversionOperationExecutionParams configOperationId( + @jakarta.annotation.Nonnull String configOperationId) { this.configOperationId = configOperationId; return this; } @@ -55,12 +67,13 @@ public String getConfigOperationId() { @JsonProperty(JSON_PROPERTY_CONFIG_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfigOperationId(String configOperationId) { + public void setConfigOperationId(@jakarta.annotation.Nonnull String configOperationId) { this.configOperationId = configOperationId; } public ConversionOperationExecutionParams executionParams( - ConversionOperationExecutionParamsExecutionParams executionParams) { + @jakarta.annotation.Nullable + ConversionOperationExecutionParamsExecutionParams executionParams) { this.executionParams = executionParams; return this; } @@ -80,7 +93,8 @@ public ConversionOperationExecutionParamsExecutionParams getExecutionParams() { @JsonProperty(JSON_PROPERTY_EXECUTION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExecutionParams( - ConversionOperationExecutionParamsExecutionParams executionParams) { + @jakarta.annotation.Nullable + ConversionOperationExecutionParamsExecutionParams executionParams) { this.executionParams = executionParams; } @@ -169,10 +183,7 @@ public String toUrlQueryString(String prefix) { "%sconfigOperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfigOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConfigOperationId())))); } // add `executionParams` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParams.java index 45b2b82c..56898caa 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParams.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +28,29 @@ ConversionOperationExecutionParamsExecutionParams.JSON_PROPERTY_DEST_ASSET_ID, ConversionOperationExecutionParamsExecutionParams.JSON_PROPERTY_SLIPPAGE_BASIS_POINTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationExecutionParamsExecutionParams { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - private String accountId; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_SRC_ASSET_ID = "srcAssetId"; - private String srcAssetId; + @jakarta.annotation.Nullable private String srcAssetId; public static final String JSON_PROPERTY_DEST_ASSET_ID = "destAssetId"; - private String destAssetId; + @jakarta.annotation.Nullable private String destAssetId; public static final String JSON_PROPERTY_SLIPPAGE_BASIS_POINTS = "slippageBasisPoints"; - private Integer slippageBasisPoints; + @jakarta.annotation.Nullable private Integer slippageBasisPoints; public ConversionOperationExecutionParamsExecutionParams() {} - public ConversionOperationExecutionParamsExecutionParams amount(String amount) { + public ConversionOperationExecutionParamsExecutionParams amount( + @jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -67,11 +69,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public ConversionOperationExecutionParamsExecutionParams accountId(String accountId) { + public ConversionOperationExecutionParamsExecutionParams accountId( + @jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -90,11 +93,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public ConversionOperationExecutionParamsExecutionParams srcAssetId(String srcAssetId) { + public ConversionOperationExecutionParamsExecutionParams srcAssetId( + @jakarta.annotation.Nullable String srcAssetId) { this.srcAssetId = srcAssetId; return this; } @@ -113,11 +117,12 @@ public String getSrcAssetId() { @JsonProperty(JSON_PROPERTY_SRC_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcAssetId(String srcAssetId) { + public void setSrcAssetId(@jakarta.annotation.Nullable String srcAssetId) { this.srcAssetId = srcAssetId; } - public ConversionOperationExecutionParamsExecutionParams destAssetId(String destAssetId) { + public ConversionOperationExecutionParamsExecutionParams destAssetId( + @jakarta.annotation.Nullable String destAssetId) { this.destAssetId = destAssetId; return this; } @@ -136,12 +141,12 @@ public String getDestAssetId() { @JsonProperty(JSON_PROPERTY_DEST_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestAssetId(String destAssetId) { + public void setDestAssetId(@jakarta.annotation.Nullable String destAssetId) { this.destAssetId = destAssetId; } public ConversionOperationExecutionParamsExecutionParams slippageBasisPoints( - Integer slippageBasisPoints) { + @jakarta.annotation.Nullable Integer slippageBasisPoints) { this.slippageBasisPoints = slippageBasisPoints; return this; } @@ -160,7 +165,7 @@ public Integer getSlippageBasisPoints() { @JsonProperty(JSON_PROPERTY_SLIPPAGE_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSlippageBasisPoints(Integer slippageBasisPoints) { + public void setSlippageBasisPoints(@jakarta.annotation.Nullable Integer slippageBasisPoints) { this.slippageBasisPoints = slippageBasisPoints; } @@ -262,8 +267,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `accountId` to the URL query string @@ -273,9 +277,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `srcAssetId` to the URL query string @@ -285,9 +287,7 @@ public String toUrlQueryString(String prefix) { "%ssrcAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSrcAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcAssetId())))); } // add `destAssetId` to the URL query string @@ -297,10 +297,7 @@ public String toUrlQueryString(String prefix) { "%sdestAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestAssetId())))); } // add `slippageBasisPoints` to the URL query string @@ -310,10 +307,8 @@ public String toUrlQueryString(String prefix) { "%sslippageBasisPoints%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSlippageBasisPoints()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSlippageBasisPoints())))); } 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 9ceadf4a..3290dc17 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -30,17 +29,19 @@ ConversionOperationFailure.JSON_PROPERTY_REASON, ConversionOperationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - INVALID_AMOUNT("INVALID_AMOUNT"), + INVALID_AMOUNT(String.valueOf("INVALID_AMOUNT")), - SLIPPAGE_EXCEEDED("SLIPPAGE_EXCEEDED"), + SLIPPAGE_EXCEEDED(String.valueOf("SLIPPAGE_EXCEEDED")), - AMOUNT_TOO_SMALL("AMOUNT_TOO_SMALL"), + AMOUNT_TOO_SMALL(String.valueOf("AMOUNT_TOO_SMALL")), - INSUFFICIENT_FUNDS("INSUFFICIENT_FUNDS"); + INSUFFICIENT_FUNDS(String.valueOf("INSUFFICIENT_FUNDS")); private String value; @@ -70,14 +71,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public ConversionOperationFailure() {} - public ConversionOperationFailure reason(ReasonEnum reason) { + @JsonCreator + public ConversionOperationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public ConversionOperationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -96,11 +103,11 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public ConversionOperationFailure data(Map data) { + public ConversionOperationFailure data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -127,7 +134,7 @@ public Map getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } @@ -210,8 +217,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string @@ -227,10 +233,7 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getData().get(_key), - URLEncoder.encode( - String.valueOf(getData().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreview.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreview.java index 09533d01..0426ceda 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreview.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreview.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; @@ -25,20 +26,30 @@ ConversionOperationPreview.JSON_PROPERTY_OUTPUT, ConversionOperationPreview.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationPreview { public static final String JSON_PROPERTY_INPUT = "input"; - private ConversionOperationConfigParams input; + @jakarta.annotation.Nonnull private ConversionOperationConfigParams input; public static final String JSON_PROPERTY_OUTPUT = "output"; - private ConversionOperationPreviewOutput output; + @jakarta.annotation.Nullable private ConversionOperationPreviewOutput output; public static final String JSON_PROPERTY_FAILURE = "failure"; - private ConversionOperationFailure failure; + @jakarta.annotation.Nullable private ConversionOperationFailure failure; public ConversionOperationPreview() {} - public ConversionOperationPreview input(ConversionOperationConfigParams input) { + @JsonCreator + public ConversionOperationPreview( + @JsonProperty(value = JSON_PROPERTY_INPUT, required = true) + ConversionOperationConfigParams input) { + this.input = input; + } + + public ConversionOperationPreview input( + @jakarta.annotation.Nonnull ConversionOperationConfigParams input) { this.input = input; return this; } @@ -57,11 +68,12 @@ public ConversionOperationConfigParams getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInput(ConversionOperationConfigParams input) { + public void setInput(@jakarta.annotation.Nonnull ConversionOperationConfigParams input) { this.input = input; } - public ConversionOperationPreview output(ConversionOperationPreviewOutput output) { + public ConversionOperationPreview output( + @jakarta.annotation.Nullable ConversionOperationPreviewOutput output) { this.output = output; return this; } @@ -80,11 +92,12 @@ public ConversionOperationPreviewOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(ConversionOperationPreviewOutput output) { + public void setOutput(@jakarta.annotation.Nullable ConversionOperationPreviewOutput output) { this.output = output; } - public ConversionOperationPreview failure(ConversionOperationFailure failure) { + public ConversionOperationPreview failure( + @jakarta.annotation.Nullable ConversionOperationFailure failure) { this.failure = failure; return this; } @@ -103,7 +116,7 @@ public ConversionOperationFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(ConversionOperationFailure failure) { + public void setFailure(@jakarta.annotation.Nullable ConversionOperationFailure failure) { this.failure = failure; } diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutput.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutput.java index 0935532d..b3489a28 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutput.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -29,23 +29,39 @@ ConversionOperationPreviewOutput.JSON_PROPERTY_CONVERSION_RATE, ConversionOperationPreviewOutput.JSON_PROPERTY_TIME_SECONDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionOperationPreviewOutput { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private AssetAmount amount; + @jakarta.annotation.Nonnull private AssetAmount amount; public static final String JSON_PROPERTY_FEE = "fee"; - private AssetAmount fee; + @jakarta.annotation.Nonnull private AssetAmount fee; public static final String JSON_PROPERTY_CONVERSION_RATE = "conversionRate"; - private String conversionRate; + @jakarta.annotation.Nonnull private String conversionRate; public static final String JSON_PROPERTY_TIME_SECONDS = "timeSeconds"; - private BigDecimal timeSeconds; + @jakarta.annotation.Nonnull private BigDecimal timeSeconds; public ConversionOperationPreviewOutput() {} - public ConversionOperationPreviewOutput amount(AssetAmount amount) { + @JsonCreator + public ConversionOperationPreviewOutput( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) AssetAmount amount, + @JsonProperty(value = JSON_PROPERTY_FEE, required = true) AssetAmount fee, + @JsonProperty(value = JSON_PROPERTY_CONVERSION_RATE, required = true) + String conversionRate, + @JsonProperty(value = JSON_PROPERTY_TIME_SECONDS, required = true) + BigDecimal timeSeconds) { + this.amount = amount; + this.fee = fee; + this.conversionRate = conversionRate; + this.timeSeconds = timeSeconds; + } + + public ConversionOperationPreviewOutput amount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; return this; } @@ -64,11 +80,11 @@ public AssetAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(AssetAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; } - public ConversionOperationPreviewOutput fee(AssetAmount fee) { + public ConversionOperationPreviewOutput fee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; return this; } @@ -87,11 +103,12 @@ public AssetAmount getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFee(AssetAmount fee) { + public void setFee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; } - public ConversionOperationPreviewOutput conversionRate(String conversionRate) { + public ConversionOperationPreviewOutput conversionRate( + @jakarta.annotation.Nonnull String conversionRate) { this.conversionRate = conversionRate; return this; } @@ -110,11 +127,12 @@ public String getConversionRate() { @JsonProperty(JSON_PROPERTY_CONVERSION_RATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConversionRate(String conversionRate) { + public void setConversionRate(@jakarta.annotation.Nonnull String conversionRate) { this.conversionRate = conversionRate; } - public ConversionOperationPreviewOutput timeSeconds(BigDecimal timeSeconds) { + public ConversionOperationPreviewOutput timeSeconds( + @jakarta.annotation.Nonnull BigDecimal timeSeconds) { this.timeSeconds = timeSeconds; return this; } @@ -133,7 +151,7 @@ public BigDecimal getTimeSeconds() { @JsonProperty(JSON_PROPERTY_TIME_SECONDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimeSeconds(BigDecimal timeSeconds) { + public void setTimeSeconds(@jakarta.annotation.Nonnull BigDecimal timeSeconds) { this.timeSeconds = timeSeconds; } @@ -232,10 +250,7 @@ public String toUrlQueryString(String prefix) { "%sconversionRate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConversionRate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConversionRate())))); } // add `timeSeconds` to the URL query string @@ -245,10 +260,7 @@ public String toUrlQueryString(String prefix) { "%stimeSeconds%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimeSeconds()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimeSeconds())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java index 93fe2cb9..bc6606f4 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -30,41 +29,46 @@ ConversionValidationFailure.JSON_PROPERTY_REASON, ConversionValidationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConversionValidationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - ACCOUNT_NOT_FOUND("ACCOUNT_NOT_FOUND"), + ACCOUNT_NOT_FOUND(String.valueOf("ACCOUNT_NOT_FOUND")), - ACCOUNT_TYPE_NOT_SUPPORTED("ACCOUNT_TYPE_NOT_SUPPORTED"), + ACCOUNT_TYPE_NOT_SUPPORTED(String.valueOf("ACCOUNT_TYPE_NOT_SUPPORTED")), - INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"), + INSUFFICIENT_BALANCE(String.valueOf("INSUFFICIENT_BALANCE")), - ASSET_NOT_FOUND("ASSET_NOT_FOUND"), + ASSET_NOT_FOUND(String.valueOf("ASSET_NOT_FOUND")), - ASSETS_CONTINUITY_MISMATCH("ASSETS_CONTINUITY_MISMATCH"), + ASSETS_CONTINUITY_MISMATCH(String.valueOf("ASSETS_CONTINUITY_MISMATCH")), - EXCHANGE_BASKETS_MISMATCH("EXCHANGE_BASKETS_MISMATCH"), + EXCHANGE_BASKETS_MISMATCH(String.valueOf("EXCHANGE_BASKETS_MISMATCH")), - ACCOUNTS_CONTINUITY_MISMATCH("ACCOUNTS_CONTINUITY_MISMATCH"), + ACCOUNTS_CONTINUITY_MISMATCH(String.valueOf("ACCOUNTS_CONTINUITY_MISMATCH")), - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED("ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED"), + ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED( + String.valueOf("ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED")), - EQUAL_ACCOUNTS_NOT_ALLOWED("EQUAL_ACCOUNTS_NOT_ALLOWED"), + EQUAL_ACCOUNTS_NOT_ALLOWED(String.valueOf("EQUAL_ACCOUNTS_NOT_ALLOWED")), - EQUAL_ASSETS_NOT_ALLOWED("EQUAL_ASSETS_NOT_ALLOWED"), + EQUAL_ASSETS_NOT_ALLOWED(String.valueOf("EQUAL_ASSETS_NOT_ALLOWED")), - INVALID_AMOUNT("INVALID_AMOUNT"), + INVALID_AMOUNT(String.valueOf("INVALID_AMOUNT")), - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED("UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED"), + UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED( + String.valueOf("UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED")), - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA("MANAGED_OPERATION_PARAMS_INVALID_SCHEMA"), + MANAGED_OPERATION_PARAMS_INVALID_SCHEMA( + String.valueOf("MANAGED_OPERATION_PARAMS_INVALID_SCHEMA")), - ACCOUNT_IS_NOT_EXCHANGE("ACCOUNT_IS_NOT_EXCHANGE"), + ACCOUNT_IS_NOT_EXCHANGE(String.valueOf("ACCOUNT_IS_NOT_EXCHANGE")), - UNSUPPORTED_TRADING_METHOD("UNSUPPORTED_TRADING_METHOD"), + UNSUPPORTED_TRADING_METHOD(String.valueOf("UNSUPPORTED_TRADING_METHOD")), - ASSETS_CAN_NOT_CONVERTED("ASSETS_CAN_NOT_CONVERTED"); + ASSETS_CAN_NOT_CONVERTED(String.valueOf("ASSETS_CAN_NOT_CONVERTED")); private String value; @@ -94,14 +98,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public ConversionValidationFailure() {} - public ConversionValidationFailure reason(ReasonEnum reason) { + @JsonCreator + public ConversionValidationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public ConversionValidationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -120,11 +130,11 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public ConversionValidationFailure data(Map data) { + public ConversionValidationFailure data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -151,7 +161,7 @@ public Map getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } @@ -234,8 +244,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string @@ -251,10 +260,7 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getData().get(_key), - URLEncoder.encode( - String.valueOf(getData().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ConvertAssetsRequest.java b/src/main/java/com/fireblocks/sdk/model/ConvertAssetsRequest.java index 4d9c4c03..f7992601 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConvertAssetsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ConvertAssetsRequest.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -28,20 +28,32 @@ ConvertAssetsRequest.JSON_PROPERTY_DEST_ASSET, ConvertAssetsRequest.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConvertAssetsRequest { public static final String JSON_PROPERTY_SRC_ASSET = "srcAsset"; - private String srcAsset; + @jakarta.annotation.Nonnull private String srcAsset; public static final String JSON_PROPERTY_DEST_ASSET = "destAsset"; - private String destAsset; + @jakarta.annotation.Nonnull private String destAsset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private BigDecimal amount; + @jakarta.annotation.Nonnull private BigDecimal amount; public ConvertAssetsRequest() {} - public ConvertAssetsRequest srcAsset(String srcAsset) { + @JsonCreator + public ConvertAssetsRequest( + @JsonProperty(value = JSON_PROPERTY_SRC_ASSET, required = true) String srcAsset, + @JsonProperty(value = JSON_PROPERTY_DEST_ASSET, required = true) String destAsset, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) BigDecimal amount) { + this.srcAsset = srcAsset; + this.destAsset = destAsset; + this.amount = amount; + } + + public ConvertAssetsRequest srcAsset(@jakarta.annotation.Nonnull String srcAsset) { this.srcAsset = srcAsset; return this; } @@ -61,11 +73,11 @@ public String getSrcAsset() { @JsonProperty(JSON_PROPERTY_SRC_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSrcAsset(String srcAsset) { + public void setSrcAsset(@jakarta.annotation.Nonnull String srcAsset) { this.srcAsset = srcAsset; } - public ConvertAssetsRequest destAsset(String destAsset) { + public ConvertAssetsRequest destAsset(@jakarta.annotation.Nonnull String destAsset) { this.destAsset = destAsset; return this; } @@ -85,11 +97,11 @@ public String getDestAsset() { @JsonProperty(JSON_PROPERTY_DEST_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestAsset(String destAsset) { + public void setDestAsset(@jakarta.annotation.Nonnull String destAsset) { this.destAsset = destAsset; } - public ConvertAssetsRequest amount(BigDecimal amount) { + public ConvertAssetsRequest amount(@jakarta.annotation.Nonnull BigDecimal amount) { this.amount = amount; return this; } @@ -108,7 +120,7 @@ public BigDecimal getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(BigDecimal amount) { + public void setAmount(@jakarta.annotation.Nonnull BigDecimal amount) { this.amount = amount; } @@ -193,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%ssrcAsset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSrcAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcAsset())))); } // add `destAsset` to the URL query string @@ -204,9 +215,7 @@ public String toUrlQueryString(String prefix) { "%sdestAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestAsset())))); } // add `amount` to the URL query string @@ -216,8 +225,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ConvertAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/ConvertAssetsResponse.java index 77db8610..b7929947 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConvertAssetsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ConvertAssetsResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** ConvertAssetsResponse */ @JsonPropertyOrder({ConvertAssetsResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ConvertAssetsResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public ConvertAssetsResponse() {} - public ConvertAssetsResponse success(Boolean success) { + @JsonCreator + public ConvertAssetsResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public ConvertAssetsResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Cosigner.java b/src/main/java/com/fireblocks/sdk/model/Cosigner.java index 7df81be2..a03b64c9 100644 --- a/src/main/java/com/fireblocks/sdk/model/Cosigner.java +++ b/src/main/java/com/fireblocks/sdk/model/Cosigner.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -32,28 +31,30 @@ Cosigner.JSON_PROPERTY_TYPE, Cosigner.JSON_PROPERTY_VERSION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Cosigner { public static final String JSON_PROPERTY_ARCHIVED = "archived"; - private Boolean archived; + @jakarta.annotation.Nonnull private Boolean archived; public static final String JSON_PROPERTY_ID = "id"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; /** The type of the cosigner */ public enum TypeEnum { - SANDBOX("SANDBOX"), + SANDBOX(String.valueOf("SANDBOX")), - SGX("SGX"), + SGX(String.valueOf("SGX")), - GCP_CONFSPACE("GCP-CONFSPACE"), + GCP_CONFSPACE(String.valueOf("GCP-CONFSPACE")), - AWS_NITRO("AWS-NITRO"), + AWS_NITRO(String.valueOf("AWS-NITRO")), - PLAIN("PLAIN"); + PLAIN(String.valueOf("PLAIN")); private String value; @@ -83,14 +84,22 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_VERSION = "version"; - private Version version; + @jakarta.annotation.Nullable private Version version; public Cosigner() {} - public Cosigner archived(Boolean archived) { + @JsonCreator + public Cosigner( + @JsonProperty(value = JSON_PROPERTY_ARCHIVED, required = true) Boolean archived, + @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id) { + this.archived = archived; + this.id = id; + } + + public Cosigner archived(@jakarta.annotation.Nonnull Boolean archived) { this.archived = archived; return this; } @@ -109,11 +118,11 @@ public Boolean getArchived() { @JsonProperty(JSON_PROPERTY_ARCHIVED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArchived(Boolean archived) { + public void setArchived(@jakarta.annotation.Nonnull Boolean archived) { this.archived = archived; } - public Cosigner id(UUID id) { + public Cosigner id(@jakarta.annotation.Nonnull UUID id) { this.id = id; return this; } @@ -132,11 +141,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public Cosigner name(String name) { + public Cosigner name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -155,11 +164,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public Cosigner type(TypeEnum type) { + public Cosigner type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -178,11 +187,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public Cosigner version(Version version) { + public Cosigner version(@jakarta.annotation.Nullable Version version) { this.version = version; return this; } @@ -201,7 +210,7 @@ public Version getVersion() { @JsonProperty(JSON_PROPERTY_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVersion(Version version) { + public void setVersion(@jakarta.annotation.Nullable Version version) { this.version = version; } @@ -290,8 +299,7 @@ public String toUrlQueryString(String prefix) { "%sarchived%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getArchived()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getArchived())))); } // add `id` to the URL query string @@ -299,10 +307,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -312,8 +317,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `type` to the URL query string @@ -323,8 +327,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `version` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java index 2c8e2a70..d42dc7cf 100644 --- a/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,25 @@ CosignersPaginatedResponse.JSON_PROPERTY_DATA, CosignersPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CosignersPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public CosignersPaginatedResponse() {} - public CosignersPaginatedResponse data(List data) { + @JsonCreator + public CosignersPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public CosignersPaginatedResponse data(@jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +73,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public CosignersPaginatedResponse next(String next) { + public CosignersPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +96,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateAPIUser.java b/src/main/java/com/fireblocks/sdk/model/CreateAPIUser.java index c4a6bada..e1ff7ae3 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateAPIUser.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateAPIUser.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,27 +29,39 @@ CreateAPIUser.JSON_PROPERTY_CO_SIGNER_SETUP_TYPE, CreateAPIUser.JSON_PROPERTY_CO_SIGNER_SETUP_IS_FIRST_USER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateAPIUser { public static final String JSON_PROPERTY_ROLE = "role"; - private String role; + @jakarta.annotation.Nonnull private String role; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CSR_PEM = "csrPem"; - private String csrPem; + @jakarta.annotation.Nonnull private String csrPem; public static final String JSON_PROPERTY_CO_SIGNER_SETUP_TYPE = "coSignerSetupType"; - private String coSignerSetupType; + @jakarta.annotation.Nullable private String coSignerSetupType; public static final String JSON_PROPERTY_CO_SIGNER_SETUP_IS_FIRST_USER = "coSignerSetupIsFirstUser"; - private Boolean coSignerSetupIsFirstUser; + @jakarta.annotation.Nullable private Boolean coSignerSetupIsFirstUser; public CreateAPIUser() {} - public CreateAPIUser role(String role) { + @JsonCreator + public CreateAPIUser( + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) String role, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_CSR_PEM, required = true) String csrPem) { + this.role = role; + this.name = name; + this.csrPem = csrPem; + } + + public CreateAPIUser role(@jakarta.annotation.Nonnull String role) { this.role = role; return this; } @@ -68,11 +80,11 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; } - public CreateAPIUser name(String name) { + public CreateAPIUser name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -91,11 +103,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public CreateAPIUser csrPem(String csrPem) { + public CreateAPIUser csrPem(@jakarta.annotation.Nonnull String csrPem) { this.csrPem = csrPem; return this; } @@ -115,11 +127,11 @@ public String getCsrPem() { @JsonProperty(JSON_PROPERTY_CSR_PEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCsrPem(String csrPem) { + public void setCsrPem(@jakarta.annotation.Nonnull String csrPem) { this.csrPem = csrPem; } - public CreateAPIUser coSignerSetupType(String coSignerSetupType) { + public CreateAPIUser coSignerSetupType(@jakarta.annotation.Nullable String coSignerSetupType) { this.coSignerSetupType = coSignerSetupType; return this; } @@ -139,11 +151,12 @@ public String getCoSignerSetupType() { @JsonProperty(JSON_PROPERTY_CO_SIGNER_SETUP_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoSignerSetupType(String coSignerSetupType) { + public void setCoSignerSetupType(@jakarta.annotation.Nullable String coSignerSetupType) { this.coSignerSetupType = coSignerSetupType; } - public CreateAPIUser coSignerSetupIsFirstUser(Boolean coSignerSetupIsFirstUser) { + public CreateAPIUser coSignerSetupIsFirstUser( + @jakarta.annotation.Nullable Boolean coSignerSetupIsFirstUser) { this.coSignerSetupIsFirstUser = coSignerSetupIsFirstUser; return this; } @@ -162,7 +175,8 @@ public Boolean getCoSignerSetupIsFirstUser() { @JsonProperty(JSON_PROPERTY_CO_SIGNER_SETUP_IS_FIRST_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoSignerSetupIsFirstUser(Boolean coSignerSetupIsFirstUser) { + public void setCoSignerSetupIsFirstUser( + @jakarta.annotation.Nullable Boolean coSignerSetupIsFirstUser) { this.coSignerSetupIsFirstUser = coSignerSetupIsFirstUser; } @@ -256,8 +270,7 @@ public String toUrlQueryString(String prefix) { "%srole%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRole()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRole())))); } // add `name` to the URL query string @@ -267,8 +280,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `csrPem` to the URL query string @@ -278,8 +290,7 @@ public String toUrlQueryString(String prefix) { "%scsrPem%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCsrPem()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCsrPem())))); } // add `coSignerSetupType` to the URL query string @@ -289,10 +300,7 @@ public String toUrlQueryString(String prefix) { "%scoSignerSetupType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCoSignerSetupType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCoSignerSetupType())))); } // add `coSignerSetupIsFirstUser` to the URL query string @@ -302,10 +310,8 @@ public String toUrlQueryString(String prefix) { "%scoSignerSetupIsFirstUser%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCoSignerSetupIsFirstUser()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCoSignerSetupIsFirstUser())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateAddressRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateAddressRequest.java index 5a5a0d93..ab6af970 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateAddressRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateAddressRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ CreateAddressRequest.JSON_PROPERTY_DESCRIPTION, CreateAddressRequest.JSON_PROPERTY_CUSTOMER_REF_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateAddressRequest { public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public CreateAddressRequest() {} - public CreateAddressRequest description(String description) { + public CreateAddressRequest description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -55,11 +56,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public CreateAddressRequest customerRefId(String customerRefId) { + public CreateAddressRequest customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -78,7 +79,7 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } @@ -161,10 +162,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `customerRefId` to the URL query string @@ -174,10 +172,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateAddressResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateAddressResponse.java index 2faf1055..ae8bf8a8 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateAddressResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateAddressResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +28,28 @@ CreateAddressResponse.JSON_PROPERTY_TAG, CreateAddressResponse.JSON_PROPERTY_BIP44_ADDRESS_INDEX }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateAddressResponse { public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_LEGACY_ADDRESS = "legacyAddress"; - private String legacyAddress; + @jakarta.annotation.Nullable private String legacyAddress; public static final String JSON_PROPERTY_ENTERPRISE_ADDRESS = "enterpriseAddress"; - private String enterpriseAddress; + @jakarta.annotation.Nullable private String enterpriseAddress; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_BIP44_ADDRESS_INDEX = "bip44AddressIndex"; - private Integer bip44AddressIndex; + @jakarta.annotation.Nullable private Integer bip44AddressIndex; public CreateAddressResponse() {} - public CreateAddressResponse address(String address) { + public CreateAddressResponse address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -67,11 +68,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public CreateAddressResponse legacyAddress(String legacyAddress) { + public CreateAddressResponse legacyAddress(@jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; return this; } @@ -90,11 +91,12 @@ public String getLegacyAddress() { @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegacyAddress(String legacyAddress) { + public void setLegacyAddress(@jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; } - public CreateAddressResponse enterpriseAddress(String enterpriseAddress) { + public CreateAddressResponse enterpriseAddress( + @jakarta.annotation.Nullable String enterpriseAddress) { this.enterpriseAddress = enterpriseAddress; return this; } @@ -113,11 +115,11 @@ public String getEnterpriseAddress() { @JsonProperty(JSON_PROPERTY_ENTERPRISE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnterpriseAddress(String enterpriseAddress) { + public void setEnterpriseAddress(@jakarta.annotation.Nullable String enterpriseAddress) { this.enterpriseAddress = enterpriseAddress; } - public CreateAddressResponse tag(String tag) { + public CreateAddressResponse tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -136,11 +138,12 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - public CreateAddressResponse bip44AddressIndex(Integer bip44AddressIndex) { + public CreateAddressResponse bip44AddressIndex( + @jakarta.annotation.Nullable Integer bip44AddressIndex) { this.bip44AddressIndex = bip44AddressIndex; return this; } @@ -159,7 +162,7 @@ public Integer getBip44AddressIndex() { @JsonProperty(JSON_PROPERTY_BIP44_ADDRESS_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBip44AddressIndex(Integer bip44AddressIndex) { + public void setBip44AddressIndex(@jakarta.annotation.Nullable Integer bip44AddressIndex) { this.bip44AddressIndex = bip44AddressIndex; } @@ -252,8 +255,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `legacyAddress` to the URL query string @@ -263,10 +265,7 @@ public String toUrlQueryString(String prefix) { "%slegacyAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegacyAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyAddress())))); } // add `enterpriseAddress` to the URL query string @@ -276,10 +275,7 @@ public String toUrlQueryString(String prefix) { "%senterpriseAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEnterpriseAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnterpriseAddress())))); } // add `tag` to the URL query string @@ -289,8 +285,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `bip44AddressIndex` to the URL query string @@ -300,10 +295,7 @@ public String toUrlQueryString(String prefix) { "%sbip44AddressIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBip44AddressIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBip44AddressIndex())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateAssetsBulkRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateAssetsBulkRequest.java index e8963211..7c3ac6a4 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateAssetsBulkRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateAssetsBulkRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ CreateAssetsBulkRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID_FROM, CreateAssetsBulkRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID_TO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateAssetsBulkRequest { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID_FROM = "vaultAccountIdFrom"; - private String vaultAccountIdFrom; + @jakarta.annotation.Nullable private String vaultAccountIdFrom; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID_TO = "vaultAccountIdTo"; - private String vaultAccountIdTo; + @jakarta.annotation.Nullable private String vaultAccountIdTo; public CreateAssetsBulkRequest() {} - public CreateAssetsBulkRequest assetId(String assetId) { + public CreateAssetsBulkRequest assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -59,11 +60,12 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public CreateAssetsBulkRequest vaultAccountIdFrom(String vaultAccountIdFrom) { + public CreateAssetsBulkRequest vaultAccountIdFrom( + @jakarta.annotation.Nullable String vaultAccountIdFrom) { this.vaultAccountIdFrom = vaultAccountIdFrom; return this; } @@ -82,11 +84,12 @@ public String getVaultAccountIdFrom() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID_FROM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountIdFrom(String vaultAccountIdFrom) { + public void setVaultAccountIdFrom(@jakarta.annotation.Nullable String vaultAccountIdFrom) { this.vaultAccountIdFrom = vaultAccountIdFrom; } - public CreateAssetsBulkRequest vaultAccountIdTo(String vaultAccountIdTo) { + public CreateAssetsBulkRequest vaultAccountIdTo( + @jakarta.annotation.Nullable String vaultAccountIdTo) { this.vaultAccountIdTo = vaultAccountIdTo; return this; } @@ -105,7 +108,7 @@ public String getVaultAccountIdTo() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountIdTo(String vaultAccountIdTo) { + public void setVaultAccountIdTo(@jakarta.annotation.Nullable String vaultAccountIdTo) { this.vaultAccountIdTo = vaultAccountIdTo; } @@ -193,8 +196,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `vaultAccountIdFrom` to the URL query string @@ -204,10 +206,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountIdFrom%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountIdFrom()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountIdFrom())))); } // add `vaultAccountIdTo` to the URL query string @@ -217,10 +216,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountIdTo%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountIdTo()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountIdTo())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateAssetsRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateAssetsRequest.java index c5668ae2..739060e1 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateAssetsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateAssetsRequest.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** CreateAssetsRequest */ @JsonPropertyOrder({CreateAssetsRequest.JSON_PROPERTY_EOS_ACCOUNT_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateAssetsRequest { public static final String JSON_PROPERTY_EOS_ACCOUNT_NAME = "eosAccountName"; - private String eosAccountName; + @jakarta.annotation.Nullable private String eosAccountName; public CreateAssetsRequest() {} - public CreateAssetsRequest eosAccountName(String eosAccountName) { + public CreateAssetsRequest eosAccountName(@jakarta.annotation.Nullable String eosAccountName) { this.eosAccountName = eosAccountName; return this; } @@ -50,7 +51,7 @@ public String getEosAccountName() { @JsonProperty(JSON_PROPERTY_EOS_ACCOUNT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEosAccountName(String eosAccountName) { + public void setEosAccountName(@jakarta.annotation.Nullable String eosAccountName) { this.eosAccountName = eosAccountName; } @@ -131,10 +132,7 @@ public String toUrlQueryString(String prefix) { "%seosAccountName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEosAccountName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEosAccountName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConfigOperationRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateConfigOperationRequest.java index baabf950..01431811 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConfigOperationRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateConfigOperationRequest.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = CreateConfigOperationRequest.CreateConfigOperationRequestDeserializer.class) @JsonSerialize(using = CreateConfigOperationRequest.CreateConfigOperationRequestSerializer.class) diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConnectionRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateConnectionRequest.java index cb780114..aa8c24fa 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConnectionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateConnectionRequest.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = CreateConnectionRequest.CreateConnectionRequestDeserializer.class) @JsonSerialize(using = CreateConnectionRequest.CreateConnectionRequestSerializer.class) public class CreateConnectionRequest extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConnectionResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateConnectionResponse.java index bcec3a34..6f5acd81 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConnectionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateConnectionResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,28 @@ CreateConnectionResponse.JSON_PROPERTY_ID, CreateConnectionResponse.JSON_PROPERTY_SESSION_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateConnectionResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_SESSION_METADATA = "sessionMetadata"; - private SessionMetadata sessionMetadata; + @jakarta.annotation.Nonnull private SessionMetadata sessionMetadata; public CreateConnectionResponse() {} - public CreateConnectionResponse id(String id) { + @JsonCreator + public CreateConnectionResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_SESSION_METADATA, required = true) + SessionMetadata sessionMetadata) { + this.id = id; + this.sessionMetadata = sessionMetadata; + } + + public CreateConnectionResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -55,11 +66,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public CreateConnectionResponse sessionMetadata(SessionMetadata sessionMetadata) { + public CreateConnectionResponse sessionMetadata( + @jakarta.annotation.Nonnull SessionMetadata sessionMetadata) { this.sessionMetadata = sessionMetadata; return this; } @@ -78,7 +90,7 @@ public SessionMetadata getSessionMetadata() { @JsonProperty(JSON_PROPERTY_SESSION_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSessionMetadata(SessionMetadata sessionMetadata) { + public void setSessionMetadata(@jakarta.annotation.Nonnull SessionMetadata sessionMetadata) { this.sessionMetadata = sessionMetadata; } @@ -159,10 +171,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `sessionMetadata` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConsoleUser.java b/src/main/java/com/fireblocks/sdk/model/CreateConsoleUser.java index cff312a8..df4d57c4 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConsoleUser.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateConsoleUser.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,37 @@ CreateConsoleUser.JSON_PROPERTY_ROLE, CreateConsoleUser.JSON_PROPERTY_EMAIL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateConsoleUser { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - private String firstName; + @jakarta.annotation.Nonnull private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - private String lastName; + @jakarta.annotation.Nonnull private String lastName; public static final String JSON_PROPERTY_ROLE = "role"; - private String role; + @jakarta.annotation.Nonnull private String role; public static final String JSON_PROPERTY_EMAIL = "email"; - private String email; + @jakarta.annotation.Nonnull private String email; public CreateConsoleUser() {} - public CreateConsoleUser firstName(String firstName) { + @JsonCreator + public CreateConsoleUser( + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = true) String firstName, + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = true) String lastName, + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) String role, + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = true) String email) { + this.firstName = firstName; + this.lastName = lastName; + this.role = role; + this.email = email; + } + + public CreateConsoleUser firstName(@jakarta.annotation.Nonnull String firstName) { this.firstName = firstName; return this; } @@ -63,11 +77,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nonnull String firstName) { this.firstName = firstName; } - public CreateConsoleUser lastName(String lastName) { + public CreateConsoleUser lastName(@jakarta.annotation.Nonnull String lastName) { this.lastName = lastName; return this; } @@ -86,11 +100,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nonnull String lastName) { this.lastName = lastName; } - public CreateConsoleUser role(String role) { + public CreateConsoleUser role(@jakarta.annotation.Nonnull String role) { this.role = role; return this; } @@ -109,11 +123,11 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; } - public CreateConsoleUser email(String email) { + public CreateConsoleUser email(@jakarta.annotation.Nonnull String email) { this.email = email; return this; } @@ -132,7 +146,7 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nonnull String email) { this.email = email; } @@ -219,9 +233,7 @@ public String toUrlQueryString(String prefix) { "%sfirstName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFirstName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFirstName())))); } // add `lastName` to the URL query string @@ -231,8 +243,7 @@ public String toUrlQueryString(String prefix) { "%slastName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLastName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastName())))); } // add `role` to the URL query string @@ -242,8 +253,7 @@ public String toUrlQueryString(String prefix) { "%srole%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRole()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRole())))); } // add `email` to the URL query string @@ -253,8 +263,7 @@ public String toUrlQueryString(String prefix) { "%semail%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEmail())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateContractRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateContractRequest.java index 8ade5d2c..5163745d 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateContractRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateContractRequest.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** CreateContractRequest */ @JsonPropertyOrder({CreateContractRequest.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateContractRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public CreateContractRequest() {} - public CreateContractRequest name(String name) { + public CreateContractRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -49,7 +50,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequest.java index 7060a393..84f5ee4b 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,29 @@ CreateConversionConfigOperationRequest.JSON_PROPERTY_TYPE, CreateConversionConfigOperationRequest.JSON_PROPERTY_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateConversionConfigOperationRequest { public static final String JSON_PROPERTY_TYPE = "type"; - private ConversionOperationType type; + @jakarta.annotation.Nonnull private ConversionOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private ConversionOperationConfigParams params; + @jakarta.annotation.Nonnull private ConversionOperationConfigParams params; public CreateConversionConfigOperationRequest() {} - public CreateConversionConfigOperationRequest type(ConversionOperationType type) { + @JsonCreator + public CreateConversionConfigOperationRequest( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) ConversionOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + ConversionOperationConfigParams params) { + this.type = type; + this.params = params; + } + + public CreateConversionConfigOperationRequest type( + @jakarta.annotation.Nonnull ConversionOperationType type) { this.type = type; return this; } @@ -55,11 +67,12 @@ public ConversionOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(ConversionOperationType type) { + public void setType(@jakarta.annotation.Nonnull ConversionOperationType type) { this.type = type; } - public CreateConversionConfigOperationRequest params(ConversionOperationConfigParams params) { + public CreateConversionConfigOperationRequest params( + @jakarta.annotation.Nonnull ConversionOperationConfigParams params) { this.params = params; return this; } @@ -78,7 +91,7 @@ public ConversionOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(ConversionOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull ConversionOperationConfigParams params) { this.params = params; } @@ -162,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequest.java index fe662033..571b9bae 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,30 @@ CreateDisbursementConfigOperationRequest.JSON_PROPERTY_TYPE, CreateDisbursementConfigOperationRequest.JSON_PROPERTY_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateDisbursementConfigOperationRequest { public static final String JSON_PROPERTY_TYPE = "type"; - private DisbursementOperationType type; + @jakarta.annotation.Nonnull private DisbursementOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private DisbursementOperationConfigParams params; + @jakarta.annotation.Nonnull private DisbursementOperationConfigParams params; public CreateDisbursementConfigOperationRequest() {} - public CreateDisbursementConfigOperationRequest type(DisbursementOperationType type) { + @JsonCreator + public CreateDisbursementConfigOperationRequest( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) + DisbursementOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + DisbursementOperationConfigParams params) { + this.type = type; + this.params = params; + } + + public CreateDisbursementConfigOperationRequest type( + @jakarta.annotation.Nonnull DisbursementOperationType type) { this.type = type; return this; } @@ -55,12 +68,12 @@ public DisbursementOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(DisbursementOperationType type) { + public void setType(@jakarta.annotation.Nonnull DisbursementOperationType type) { this.type = type; } public CreateDisbursementConfigOperationRequest params( - DisbursementOperationConfigParams params) { + @jakarta.annotation.Nonnull DisbursementOperationConfigParams params) { this.params = params; return this; } @@ -79,7 +92,7 @@ public DisbursementOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(DisbursementOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull DisbursementOperationConfigParams params) { this.params = params; } @@ -163,8 +176,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java index b759200d..5401abd6 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,39 @@ CreateInternalTransferRequest.JSON_PROPERTY_SOURCE_TYPE, CreateInternalTransferRequest.JSON_PROPERTY_DEST_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateInternalTransferRequest { public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_SOURCE_TYPE = "sourceType"; - private TradingAccountType sourceType; + @jakarta.annotation.Nonnull private TradingAccountType sourceType; public static final String JSON_PROPERTY_DEST_TYPE = "destType"; - private TradingAccountType destType; + @jakarta.annotation.Nonnull private TradingAccountType destType; public CreateInternalTransferRequest() {} - public CreateInternalTransferRequest asset(String asset) { + @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) { this.asset = asset; return this; } @@ -63,11 +79,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public CreateInternalTransferRequest amount(String amount) { + public CreateInternalTransferRequest amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -86,11 +102,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public CreateInternalTransferRequest sourceType(TradingAccountType sourceType) { + public CreateInternalTransferRequest sourceType( + @jakarta.annotation.Nonnull TradingAccountType sourceType) { this.sourceType = sourceType; return this; } @@ -109,11 +126,12 @@ public TradingAccountType getSourceType() { @JsonProperty(JSON_PROPERTY_SOURCE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceType(TradingAccountType sourceType) { + public void setSourceType(@jakarta.annotation.Nonnull TradingAccountType sourceType) { this.sourceType = sourceType; } - public CreateInternalTransferRequest destType(TradingAccountType destType) { + public CreateInternalTransferRequest destType( + @jakarta.annotation.Nonnull TradingAccountType destType) { this.destType = destType; return this; } @@ -132,7 +150,7 @@ public TradingAccountType getDestType() { @JsonProperty(JSON_PROPERTY_DEST_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestType(TradingAccountType destType) { + public void setDestType(@jakarta.annotation.Nonnull TradingAccountType destType) { this.destType = destType; } @@ -220,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -231,8 +248,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `sourceType` to the URL query string @@ -242,9 +258,7 @@ public String toUrlQueryString(String prefix) { "%ssourceType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceType())))); } // add `destType` to the URL query string @@ -254,8 +268,7 @@ public String toUrlQueryString(String prefix) { "%sdestType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDestType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequest.java index dcb100d5..f7ea5e1b 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ CreateInternalWalletAssetRequest.JSON_PROPERTY_ADDRESS, CreateInternalWalletAssetRequest.JSON_PROPERTY_TAG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateInternalWalletAssetRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public CreateInternalWalletAssetRequest() {} - public CreateInternalWalletAssetRequest address(String address) { + @JsonCreator + public CreateInternalWalletAssetRequest( + @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { + this.address = address; + } + + public CreateInternalWalletAssetRequest address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } @@ -55,11 +63,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public CreateInternalWalletAssetRequest tag(String tag) { + public CreateInternalWalletAssetRequest tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -79,7 +87,7 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } @@ -163,8 +171,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `tag` to the URL query string @@ -174,8 +181,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java index e33b90ae..41579b22 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -36,38 +35,40 @@ CreateMultichainTokenRequest.JSON_PROPERTY_FEE, CreateMultichainTokenRequest.JSON_PROPERTY_FEE_LEVEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_CREATE_PARAMS = "createParams"; - private CreateMultichainTokenRequestCreateParams createParams; + @jakarta.annotation.Nonnull private EVMTokenCreateParamsDto createParams; public static final String JSON_PROPERTY_SALT = "salt"; - private String salt; + @jakarta.annotation.Nullable private String salt; public static final String JSON_PROPERTY_CHAINS = "chains"; - private List chains = new ArrayList<>(); + @jakarta.annotation.Nonnull private List chains = new ArrayList<>(); public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; /** * Fee level for the write function transaction. interchangeable with the 'fee' field */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -97,11 +98,24 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public CreateMultichainTokenRequest() {} - public CreateMultichainTokenRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -120,12 +134,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } public CreateMultichainTokenRequest createParams( - CreateMultichainTokenRequestCreateParams createParams) { + @jakarta.annotation.Nonnull EVMTokenCreateParamsDto createParams) { this.createParams = createParams; return this; } @@ -138,17 +152,17 @@ public CreateMultichainTokenRequest createParams( @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateMultichainTokenRequestCreateParams getCreateParams() { + public EVMTokenCreateParamsDto getCreateParams() { return createParams; } @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreateParams(CreateMultichainTokenRequestCreateParams createParams) { + public void setCreateParams(@jakarta.annotation.Nonnull EVMTokenCreateParamsDto createParams) { this.createParams = createParams; } - public CreateMultichainTokenRequest salt(String salt) { + public CreateMultichainTokenRequest salt(@jakarta.annotation.Nullable String salt) { this.salt = salt; return this; } @@ -168,11 +182,11 @@ public String getSalt() { @JsonProperty(JSON_PROPERTY_SALT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSalt(String salt) { + public void setSalt(@jakarta.annotation.Nullable String salt) { this.salt = salt; } - public CreateMultichainTokenRequest chains(List chains) { + public CreateMultichainTokenRequest chains(@jakarta.annotation.Nonnull List chains) { this.chains = chains; return this; } @@ -199,11 +213,12 @@ public List getChains() { @JsonProperty(JSON_PROPERTY_CHAINS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChains(List chains) { + public void setChains(@jakarta.annotation.Nonnull List chains) { this.chains = chains; } - public CreateMultichainTokenRequest displayName(String displayName) { + public CreateMultichainTokenRequest displayName( + @jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -222,11 +237,12 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public CreateMultichainTokenRequest useGasless(Boolean useGasless) { + public CreateMultichainTokenRequest useGasless( + @jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -247,11 +263,11 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } - public CreateMultichainTokenRequest fee(String fee) { + public CreateMultichainTokenRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -271,11 +287,12 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public CreateMultichainTokenRequest feeLevel(FeeLevelEnum feeLevel) { + public CreateMultichainTokenRequest feeLevel( + @jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -294,7 +311,7 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } @@ -391,10 +408,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `createParams` to the URL query string @@ -409,8 +423,7 @@ public String toUrlQueryString(String prefix) { "%ssalt%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSalt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSalt())))); } // add `chains` to the URL query string @@ -425,10 +438,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getChains().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChains().get(i))))); } } @@ -439,10 +449,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `useGasless` to the URL query string @@ -452,9 +459,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } // add `fee` to the URL query string @@ -464,8 +469,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -475,8 +479,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 d0d099ed..fa181dad 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,27 +31,38 @@ CreateMultipleAccountsRequest.JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX, CreateMultipleAccountsRequest.JSON_PROPERTY_PREFIX }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private Integer count; + @jakarta.annotation.Nonnull private Integer count; public static final String JSON_PROPERTY_BASE_ASSET_IDS = "baseAssetIds"; - private List baseAssetIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List baseAssetIds = new ArrayList<>(); public static final String JSON_PROPERTY_NAMES = "names"; - private List names; + @jakarta.annotation.Nullable private List names = new ArrayList<>(); public static final String JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX = "vaultAccountNamesStartingIndex"; - private Integer vaultAccountNamesStartingIndex; + @jakarta.annotation.Nullable private Integer vaultAccountNamesStartingIndex; public static final String JSON_PROPERTY_PREFIX = "prefix"; - private String prefix; + @jakarta.annotation.Nullable private String prefix; public CreateMultipleAccountsRequest() {} - public CreateMultipleAccountsRequest count(Integer count) { + @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) { this.count = count; return this; } @@ -70,11 +81,12 @@ public Integer getCount() { @JsonProperty(JSON_PROPERTY_COUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCount(Integer count) { + public void setCount(@jakarta.annotation.Nonnull Integer count) { this.count = count; } - public CreateMultipleAccountsRequest baseAssetIds(List baseAssetIds) { + public CreateMultipleAccountsRequest baseAssetIds( + @jakarta.annotation.Nonnull List baseAssetIds) { this.baseAssetIds = baseAssetIds; return this; } @@ -101,11 +113,11 @@ public List getBaseAssetIds() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetIds(List baseAssetIds) { + public void setBaseAssetIds(@jakarta.annotation.Nonnull List baseAssetIds) { this.baseAssetIds = baseAssetIds; } - public CreateMultipleAccountsRequest names(List names) { + public CreateMultipleAccountsRequest names(@jakarta.annotation.Nullable List names) { this.names = names; return this; } @@ -133,12 +145,12 @@ public List getNames() { @JsonProperty(JSON_PROPERTY_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNames(List names) { + public void setNames(@jakarta.annotation.Nullable List names) { this.names = names; } public CreateMultipleAccountsRequest vaultAccountNamesStartingIndex( - Integer vaultAccountNamesStartingIndex) { + @jakarta.annotation.Nullable Integer vaultAccountNamesStartingIndex) { this.vaultAccountNamesStartingIndex = vaultAccountNamesStartingIndex; return this; } @@ -157,11 +169,12 @@ public Integer getVaultAccountNamesStartingIndex() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountNamesStartingIndex(Integer vaultAccountNamesStartingIndex) { + public void setVaultAccountNamesStartingIndex( + @jakarta.annotation.Nullable Integer vaultAccountNamesStartingIndex) { this.vaultAccountNamesStartingIndex = vaultAccountNamesStartingIndex; } - public CreateMultipleAccountsRequest prefix(String prefix) { + public CreateMultipleAccountsRequest prefix(@jakarta.annotation.Nullable String prefix) { this.prefix = prefix; return this; } @@ -181,7 +194,7 @@ public String getPrefix() { @JsonProperty(JSON_PROPERTY_PREFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefix(String prefix) { + public void setPrefix(@jakarta.annotation.Nullable String prefix) { this.prefix = prefix; } @@ -275,8 +288,7 @@ public String toUrlQueryString(String prefix) { "%scount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCount())))); } // add `baseAssetIds` to the URL query string @@ -291,10 +303,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getBaseAssetIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBaseAssetIds().get(i))))); } } @@ -310,10 +320,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getNames().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNames().get(i))))); } } @@ -324,10 +331,8 @@ public String toUrlQueryString(String prefix) { "%svaultAccountNamesStartingIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountNamesStartingIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getVaultAccountNamesStartingIndex())))); } // add `prefix` to the URL query string @@ -337,8 +342,7 @@ public String toUrlQueryString(String prefix) { "%sprefix%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPrefix()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 4dbd9f70..e47cc1be 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,29 @@ CreateMultipleDepositAddressesJobStatus.JSON_PROPERTY_ADDRESSES, CreateMultipleDepositAddressesJobStatus.JSON_PROPERTY_ERROR_MESSAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String status; + @jakarta.annotation.Nonnull private String status; public static final String JSON_PROPERTY_ADDRESSES = "addresses"; - private List addresses; + @jakarta.annotation.Nullable private List addresses = new ArrayList<>(); public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; - private String errorMessage; + @jakarta.annotation.Nullable private String errorMessage; public CreateMultipleDepositAddressesJobStatus() {} - public CreateMultipleDepositAddressesJobStatus status(String status) { + @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; } @@ -61,11 +70,12 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public CreateMultipleDepositAddressesJobStatus addresses(List addresses) { + public CreateMultipleDepositAddressesJobStatus addresses( + @jakarta.annotation.Nullable List addresses) { this.addresses = addresses; return this; } @@ -92,11 +102,12 @@ public List getAddresses() { @JsonProperty(JSON_PROPERTY_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddresses(List addresses) { + public void setAddresses(@jakarta.annotation.Nullable List addresses) { this.addresses = addresses; } - public CreateMultipleDepositAddressesJobStatus errorMessage(String errorMessage) { + public CreateMultipleDepositAddressesJobStatus errorMessage( + @jakarta.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -115,7 +126,7 @@ public String getErrorMessage() { @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@jakarta.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } @@ -202,8 +213,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `addresses` to the URL query string @@ -236,10 +246,7 @@ public String toUrlQueryString(String prefix) { "%serrorMessage%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorMessage()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 8b3c192c..3d2142c0 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,31 +32,45 @@ 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") +@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"; - private Integer vaultAccountId; + @jakarta.annotation.Nonnull private Integer vaultAccountId; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_COUNT = "count"; - private Integer count; + @jakarta.annotation.Nonnull private Integer count; public static final String JSON_PROPERTY_DESCRIPTIONS = "descriptions"; - private List descriptions; + @jakarta.annotation.Nullable private List descriptions = new ArrayList<>(); public static final String JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM = "vaultAccountToCopyDescFrom"; - private Integer vaultAccountToCopyDescFrom; + @jakarta.annotation.Nullable private Integer vaultAccountToCopyDescFrom; public static final String JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM_INDEX = "vaultAccountToCopyDescFromIndex"; - private Integer vaultAccountToCopyDescFromIndex; + @jakarta.annotation.Nullable private Integer vaultAccountToCopyDescFromIndex; public CreateMultipleDepositAddressesRequest() {} - public CreateMultipleDepositAddressesRequest vaultAccountId(Integer vaultAccountId) { + @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; } @@ -75,11 +89,12 @@ public Integer getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(Integer vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull Integer vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public CreateMultipleDepositAddressesRequest assetId(String assetId) { + public CreateMultipleDepositAddressesRequest assetId( + @jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -98,11 +113,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public CreateMultipleDepositAddressesRequest count(Integer count) { + public CreateMultipleDepositAddressesRequest count(@jakarta.annotation.Nonnull Integer count) { this.count = count; return this; } @@ -121,11 +136,12 @@ public Integer getCount() { @JsonProperty(JSON_PROPERTY_COUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCount(Integer count) { + public void setCount(@jakarta.annotation.Nonnull Integer count) { this.count = count; } - public CreateMultipleDepositAddressesRequest descriptions(List descriptions) { + public CreateMultipleDepositAddressesRequest descriptions( + @jakarta.annotation.Nullable List descriptions) { this.descriptions = descriptions; return this; } @@ -152,12 +168,12 @@ public List getDescriptions() { @JsonProperty(JSON_PROPERTY_DESCRIPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescriptions(List descriptions) { + public void setDescriptions(@jakarta.annotation.Nullable List descriptions) { this.descriptions = descriptions; } public CreateMultipleDepositAddressesRequest vaultAccountToCopyDescFrom( - Integer vaultAccountToCopyDescFrom) { + @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFrom) { this.vaultAccountToCopyDescFrom = vaultAccountToCopyDescFrom; return this; } @@ -177,12 +193,13 @@ public Integer getVaultAccountToCopyDescFrom() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountToCopyDescFrom(Integer vaultAccountToCopyDescFrom) { + public void setVaultAccountToCopyDescFrom( + @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFrom) { this.vaultAccountToCopyDescFrom = vaultAccountToCopyDescFrom; } public CreateMultipleDepositAddressesRequest vaultAccountToCopyDescFromIndex( - Integer vaultAccountToCopyDescFromIndex) { + @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFromIndex) { this.vaultAccountToCopyDescFromIndex = vaultAccountToCopyDescFromIndex; return this; } @@ -201,7 +218,8 @@ public Integer getVaultAccountToCopyDescFromIndex() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountToCopyDescFromIndex(Integer vaultAccountToCopyDescFromIndex) { + public void setVaultAccountToCopyDescFromIndex( + @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFromIndex) { this.vaultAccountToCopyDescFromIndex = vaultAccountToCopyDescFromIndex; } @@ -309,10 +327,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `assetId` to the URL query string @@ -322,8 +337,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `count` to the URL query string @@ -333,8 +347,7 @@ public String toUrlQueryString(String prefix) { "%scount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCount())))); } // add `descriptions` to the URL query string @@ -349,10 +362,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDescriptions().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDescriptions().get(i))))); } } @@ -363,10 +374,8 @@ public String toUrlQueryString(String prefix) { "%svaultAccountToCopyDescFrom%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountToCopyDescFrom()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getVaultAccountToCopyDescFrom())))); } // add `vaultAccountToCopyDescFromIndex` to the URL query string @@ -376,10 +385,9 @@ public String toUrlQueryString(String prefix) { "%svaultAccountToCopyDescFromIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountToCopyDescFromIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index f14e27d4..749aa00d 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -29,20 +29,30 @@ CreateMultipleVaultAccountsJobStatus.JSON_PROPERTY_VAULT_ACCOUNTS, CreateMultipleVaultAccountsJobStatus.JSON_PROPERTY_ERROR_MESSAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String 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"; - private String errorMessage; + @jakarta.annotation.Nullable private String errorMessage; public CreateMultipleVaultAccountsJobStatus() {} - public CreateMultipleVaultAccountsJobStatus status(String status) { + @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; } @@ -61,12 +71,12 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } public CreateMultipleVaultAccountsJobStatus vaultAccounts( - Map> vaultAccounts) { + @jakarta.annotation.Nullable Map> vaultAccounts) { this.vaultAccounts = vaultAccounts; return this; } @@ -94,11 +104,13 @@ public Map> getVaultAccounts() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccounts(Map> vaultAccounts) { + public void setVaultAccounts( + @jakarta.annotation.Nullable Map> vaultAccounts) { this.vaultAccounts = vaultAccounts; } - public CreateMultipleVaultAccountsJobStatus errorMessage(String errorMessage) { + public CreateMultipleVaultAccountsJobStatus errorMessage( + @jakarta.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -117,7 +129,7 @@ public String getErrorMessage() { @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@jakarta.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } @@ -205,8 +217,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `vaultAccounts` to the URL query string @@ -222,10 +233,8 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getVaultAccounts().get(_key), - URLEncoder.encode( - String.valueOf(getVaultAccounts().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getVaultAccounts().get(_key))))); } } @@ -236,10 +245,7 @@ public String toUrlQueryString(String prefix) { "%serrorMessage%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorMessage()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 4d276312..7c89ab59 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,19 +33,21 @@ CreateNcwConnectionRequest.JSON_PROPERTY_URI, CreateNcwConnectionRequest.JSON_PROPERTY_CHAIN_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateNcwConnectionRequest { public static final String JSON_PROPERTY_NCW_ID = "ncwId"; - private String ncwId; + @jakarta.annotation.Nonnull private String ncwId; public static final String JSON_PROPERTY_NCW_ACCOUNT_ID = "ncwAccountId"; - private BigDecimal ncwAccountId; + @jakarta.annotation.Nonnull private BigDecimal ncwAccountId; /** The default fee level. Valid values are `MEDIUM` and `HIGH`. */ public enum FeeLevelEnum { - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -76,17 +77,30 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nonnull private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_URI = "uri"; - private String uri; + @jakarta.annotation.Nonnull private String uri; public static final String JSON_PROPERTY_CHAIN_IDS = "chainIds"; - private List chainIds; + @jakarta.annotation.Nullable private List chainIds = new ArrayList<>(); public CreateNcwConnectionRequest() {} - public CreateNcwConnectionRequest ncwId(String ncwId) { + @JsonCreator + public CreateNcwConnectionRequest( + @JsonProperty(value = JSON_PROPERTY_NCW_ID, required = true) String ncwId, + @JsonProperty(value = JSON_PROPERTY_NCW_ACCOUNT_ID, required = true) + BigDecimal ncwAccountId, + @JsonProperty(value = JSON_PROPERTY_FEE_LEVEL, required = true) FeeLevelEnum feeLevel, + @JsonProperty(value = JSON_PROPERTY_URI, required = true) String uri) { + this.ncwId = ncwId; + this.ncwAccountId = ncwAccountId; + this.feeLevel = feeLevel; + this.uri = uri; + } + + public CreateNcwConnectionRequest ncwId(@jakarta.annotation.Nonnull String ncwId) { this.ncwId = ncwId; return this; } @@ -105,11 +119,12 @@ public String getNcwId() { @JsonProperty(JSON_PROPERTY_NCW_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNcwId(String ncwId) { + public void setNcwId(@jakarta.annotation.Nonnull String ncwId) { this.ncwId = ncwId; } - public CreateNcwConnectionRequest ncwAccountId(BigDecimal ncwAccountId) { + public CreateNcwConnectionRequest ncwAccountId( + @jakarta.annotation.Nonnull BigDecimal ncwAccountId) { this.ncwAccountId = ncwAccountId; return this; } @@ -128,11 +143,11 @@ public BigDecimal getNcwAccountId() { @JsonProperty(JSON_PROPERTY_NCW_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNcwAccountId(BigDecimal ncwAccountId) { + public void setNcwAccountId(@jakarta.annotation.Nonnull BigDecimal ncwAccountId) { this.ncwAccountId = ncwAccountId; } - public CreateNcwConnectionRequest feeLevel(FeeLevelEnum feeLevel) { + public CreateNcwConnectionRequest feeLevel(@jakarta.annotation.Nonnull FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -151,11 +166,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nonnull FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public CreateNcwConnectionRequest uri(String uri) { + public CreateNcwConnectionRequest uri(@jakarta.annotation.Nonnull String uri) { this.uri = uri; return this; } @@ -174,11 +189,11 @@ public String getUri() { @JsonProperty(JSON_PROPERTY_URI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUri(String uri) { + public void setUri(@jakarta.annotation.Nonnull String uri) { this.uri = uri; } - public CreateNcwConnectionRequest chainIds(List chainIds) { + public CreateNcwConnectionRequest chainIds(@jakarta.annotation.Nullable List chainIds) { this.chainIds = chainIds; return this; } @@ -206,7 +221,7 @@ public List getChainIds() { @JsonProperty(JSON_PROPERTY_CHAIN_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChainIds(List chainIds) { + public void setChainIds(@jakarta.annotation.Nullable List chainIds) { this.chainIds = chainIds; } @@ -295,8 +310,7 @@ public String toUrlQueryString(String prefix) { "%sncwId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNcwId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNcwId())))); } // add `ncwAccountId` to the URL query string @@ -306,10 +320,7 @@ public String toUrlQueryString(String prefix) { "%sncwAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNcwAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNcwAccountId())))); } // add `feeLevel` to the URL query string @@ -319,8 +330,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `uri` to the URL query string @@ -330,8 +340,7 @@ public String toUrlQueryString(String prefix) { "%suri%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUri()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUri())))); } // add `chainIds` to the URL query string @@ -346,10 +355,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getChainIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getChainIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java index 4eee9cb3..9b86c6dd 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -28,17 +28,27 @@ CreateNetworkIdRequest.JSON_PROPERTY_NAME, CreateNetworkIdRequest.JSON_PROPERTY_ROUTING_POLICY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateNetworkIdRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; + + @jakarta.annotation.Nullable private Map routingPolicy = new HashMap<>(); public CreateNetworkIdRequest() {} - public CreateNetworkIdRequest name(String name) { + @JsonCreator + public CreateNetworkIdRequest( + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { + this.name = name; + } + + public CreateNetworkIdRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -57,12 +67,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } public CreateNetworkIdRequest routingPolicy( - Map routingPolicy) { + @jakarta.annotation.Nullable Map routingPolicy) { this.routingPolicy = routingPolicy; return this; } @@ -90,7 +100,8 @@ public Map getRoutingPolicy() { @JsonProperty(JSON_PROPERTY_ROUTING_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoutingPolicy(Map routingPolicy) { + public void setRoutingPolicy( + @jakarta.annotation.Nullable Map routingPolicy) { this.routingPolicy = routingPolicy; } @@ -173,8 +184,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `routingPolicy` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java b/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java index d6229f1a..7b81b148 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.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; @@ -26,17 +27,30 @@ CreatePayoutRequest.JSON_PROPERTY_PAYMENT_ACCOUNT, CreatePayoutRequest.JSON_PROPERTY_INSTRUCTION_SET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreatePayoutRequest { public static final String JSON_PROPERTY_PAYMENT_ACCOUNT = "paymentAccount"; - private PaymentAccount paymentAccount; + @jakarta.annotation.Nonnull private PaymentAccount paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nonnull private List instructionSet = new ArrayList<>(); public CreatePayoutRequest() {} - public CreatePayoutRequest paymentAccount(PaymentAccount paymentAccount) { + @JsonCreator + public CreatePayoutRequest( + @JsonProperty(value = JSON_PROPERTY_PAYMENT_ACCOUNT, required = true) + PaymentAccount paymentAccount, + @JsonProperty(value = JSON_PROPERTY_INSTRUCTION_SET, required = true) + List instructionSet) { + this.paymentAccount = paymentAccount; + this.instructionSet = instructionSet; + } + + public CreatePayoutRequest paymentAccount( + @jakarta.annotation.Nonnull PaymentAccount paymentAccount) { this.paymentAccount = paymentAccount; return this; } @@ -55,11 +69,12 @@ public PaymentAccount getPaymentAccount() { @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPaymentAccount(PaymentAccount paymentAccount) { + public void setPaymentAccount(@jakarta.annotation.Nonnull PaymentAccount paymentAccount) { this.paymentAccount = paymentAccount; } - public CreatePayoutRequest instructionSet(List instructionSet) { + public CreatePayoutRequest instructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -86,7 +101,8 @@ public List getInstructionSet() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInstructionSet(List instructionSet) { + public void setInstructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java index 8bb850f8..b0b84cbb 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,39 @@ CreateSigningKeyDto.JSON_PROPERTY_AGENT_USER_ID, CreateSigningKeyDto.JSON_PROPERTY_PROOF_OF_OWNERSHIP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateSigningKeyDto { public static final String JSON_PROPERTY_SIGNING_DEVICE_KEY_ID = "signingDeviceKeyId"; - private String signingDeviceKeyId; + @jakarta.annotation.Nonnull private String signingDeviceKeyId; public static final String JSON_PROPERTY_SIGNED_CERT_PEM = "signedCertPem"; - private String signedCertPem; + @jakarta.annotation.Nonnull private String signedCertPem; public static final String JSON_PROPERTY_AGENT_USER_ID = "agentUserId"; - private String agentUserId; + @jakarta.annotation.Nonnull private String agentUserId; public static final String JSON_PROPERTY_PROOF_OF_OWNERSHIP = "proofOfOwnership"; - private CreateSigningKeyDtoProofOfOwnership proofOfOwnership; + @jakarta.annotation.Nullable private CreateSigningKeyDtoProofOfOwnership proofOfOwnership; public CreateSigningKeyDto() {} - public CreateSigningKeyDto signingDeviceKeyId(String signingDeviceKeyId) { + @JsonCreator + public CreateSigningKeyDto( + @JsonProperty(value = JSON_PROPERTY_SIGNING_DEVICE_KEY_ID, required = true) + String signingDeviceKeyId, + @JsonProperty(value = JSON_PROPERTY_SIGNED_CERT_PEM, required = true) + String signedCertPem, + @JsonProperty(value = JSON_PROPERTY_AGENT_USER_ID, required = true) + String agentUserId) { + this.signingDeviceKeyId = signingDeviceKeyId; + this.signedCertPem = signedCertPem; + this.agentUserId = agentUserId; + } + + public CreateSigningKeyDto signingDeviceKeyId( + @jakarta.annotation.Nonnull String signingDeviceKeyId) { this.signingDeviceKeyId = signingDeviceKeyId; return this; } @@ -63,11 +79,11 @@ public String getSigningDeviceKeyId() { @JsonProperty(JSON_PROPERTY_SIGNING_DEVICE_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigningDeviceKeyId(String signingDeviceKeyId) { + public void setSigningDeviceKeyId(@jakarta.annotation.Nonnull String signingDeviceKeyId) { this.signingDeviceKeyId = signingDeviceKeyId; } - public CreateSigningKeyDto signedCertPem(String signedCertPem) { + public CreateSigningKeyDto signedCertPem(@jakarta.annotation.Nonnull String signedCertPem) { this.signedCertPem = signedCertPem; return this; } @@ -87,11 +103,11 @@ public String getSignedCertPem() { @JsonProperty(JSON_PROPERTY_SIGNED_CERT_PEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignedCertPem(String signedCertPem) { + public void setSignedCertPem(@jakarta.annotation.Nonnull String signedCertPem) { this.signedCertPem = signedCertPem; } - public CreateSigningKeyDto agentUserId(String agentUserId) { + public CreateSigningKeyDto agentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; return this; } @@ -110,12 +126,12 @@ public String getAgentUserId() { @JsonProperty(JSON_PROPERTY_AGENT_USER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAgentUserId(String agentUserId) { + public void setAgentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; } public CreateSigningKeyDto proofOfOwnership( - CreateSigningKeyDtoProofOfOwnership proofOfOwnership) { + @jakarta.annotation.Nullable CreateSigningKeyDtoProofOfOwnership proofOfOwnership) { this.proofOfOwnership = proofOfOwnership; return this; } @@ -134,7 +150,8 @@ public CreateSigningKeyDtoProofOfOwnership getProofOfOwnership() { @JsonProperty(JSON_PROPERTY_PROOF_OF_OWNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProofOfOwnership(CreateSigningKeyDtoProofOfOwnership proofOfOwnership) { + public void setProofOfOwnership( + @jakarta.annotation.Nullable CreateSigningKeyDtoProofOfOwnership proofOfOwnership) { this.proofOfOwnership = proofOfOwnership; } @@ -223,10 +240,7 @@ public String toUrlQueryString(String prefix) { "%ssigningDeviceKeyId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSigningDeviceKeyId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSigningDeviceKeyId())))); } // add `signedCertPem` to the URL query string @@ -236,10 +250,7 @@ public String toUrlQueryString(String prefix) { "%ssignedCertPem%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSignedCertPem()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSignedCertPem())))); } // add `agentUserId` to the URL query string @@ -249,10 +260,7 @@ public String toUrlQueryString(String prefix) { "%sagentUserId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAgentUserId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAgentUserId())))); } // add `proofOfOwnership` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java index ec418866..75b1c6d5 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ CreateSigningKeyDtoProofOfOwnership.JSON_PROPERTY_MESSAGE, CreateSigningKeyDtoProofOfOwnership.JSON_PROPERTY_SIGNATURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_SIGNATURE = "signature"; - private String signature; + @jakarta.annotation.Nonnull private String signature; public CreateSigningKeyDtoProofOfOwnership() {} - public CreateSigningKeyDtoProofOfOwnership message(String message) { + @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; } @@ -56,11 +66,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public CreateSigningKeyDtoProofOfOwnership signature(String signature) { + public CreateSigningKeyDtoProofOfOwnership signature( + @jakarta.annotation.Nonnull String signature) { this.signature = signature; return this; } @@ -79,7 +90,7 @@ public String getSignature() { @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignature(String signature) { + public void setSignature(@jakarta.annotation.Nonnull String signature) { this.signature = signature; } @@ -163,8 +174,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `signature` to the URL query string @@ -174,9 +184,7 @@ public String toUrlQueryString(String prefix) { "%ssignature%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSignature()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 99f463f6..ba144520 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ CreateTagRequest.JSON_PROPERTY_LABEL, CreateTagRequest.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String label; + @jakarta.annotation.Nonnull private String label; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public CreateTagRequest() {} - public CreateTagRequest label(String label) { + @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; } @@ -55,11 +63,11 @@ public String getLabel() { @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLabel(String label) { + public void setLabel(@jakarta.annotation.Nonnull String label) { this.label = label; } - public CreateTagRequest description(String description) { + public CreateTagRequest description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -78,7 +86,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -161,8 +169,7 @@ public String toUrlQueryString(String prefix) { "%slabel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLabel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); } // add `description` to the URL query string @@ -172,10 +179,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 ae5f5868..4a66f604 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -34,38 +33,40 @@ CreateTokenRequestDto.JSON_PROPERTY_FEE, CreateTokenRequestDto.JSON_PROPERTY_FEE_LEVEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateTokenRequestDto { public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - private String blockchainId; + @jakarta.annotation.Nullable private String blockchainId; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_CREATE_PARAMS = "createParams"; - private CreateTokenRequestDtoCreateParams createParams; + @jakarta.annotation.Nonnull private CreateTokenRequestDtoCreateParams createParams; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; /** * Fee level for the write function transaction. interchangeable with the 'fee' field */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -95,11 +96,21 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public CreateTokenRequestDto() {} - public CreateTokenRequestDto blockchainId(String blockchainId) { + @JsonCreator + public CreateTokenRequestDto( + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + String vaultAccountId, + @JsonProperty(value = JSON_PROPERTY_CREATE_PARAMS, required = true) + CreateTokenRequestDtoCreateParams createParams) { + this.vaultAccountId = vaultAccountId; + this.createParams = createParams; + } + + public CreateTokenRequestDto blockchainId(@jakarta.annotation.Nullable String blockchainId) { this.blockchainId = blockchainId; return this; } @@ -118,11 +129,11 @@ public String getBlockchainId() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainId(String blockchainId) { + public void setBlockchainId(@jakarta.annotation.Nullable String blockchainId) { this.blockchainId = blockchainId; } - public CreateTokenRequestDto assetId(String assetId) { + public CreateTokenRequestDto assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -141,11 +152,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public CreateTokenRequestDto vaultAccountId(String vaultAccountId) { + public CreateTokenRequestDto vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -164,11 +175,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public CreateTokenRequestDto createParams(CreateTokenRequestDtoCreateParams createParams) { + public CreateTokenRequestDto createParams( + @jakarta.annotation.Nonnull CreateTokenRequestDtoCreateParams createParams) { this.createParams = createParams; return this; } @@ -187,11 +199,12 @@ public CreateTokenRequestDtoCreateParams getCreateParams() { @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreateParams(CreateTokenRequestDtoCreateParams createParams) { + public void setCreateParams( + @jakarta.annotation.Nonnull CreateTokenRequestDtoCreateParams createParams) { this.createParams = createParams; } - public CreateTokenRequestDto displayName(String displayName) { + public CreateTokenRequestDto displayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -210,11 +223,11 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public CreateTokenRequestDto useGasless(Boolean useGasless) { + public CreateTokenRequestDto useGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -235,11 +248,11 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } - public CreateTokenRequestDto fee(String fee) { + public CreateTokenRequestDto fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -259,11 +272,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public CreateTokenRequestDto feeLevel(FeeLevelEnum feeLevel) { + public CreateTokenRequestDto feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -282,7 +295,7 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } @@ -385,10 +398,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } // add `assetId` to the URL query string @@ -398,8 +408,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `vaultAccountId` to the URL query string @@ -409,10 +418,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `createParams` to the URL query string @@ -427,10 +433,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `useGasless` to the URL query string @@ -440,9 +443,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } // add `fee` to the URL query string @@ -452,8 +453,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -463,8 +463,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 93643e07..4e54e1e7 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = CreateTokenRequestDtoCreateParams.CreateTokenRequestDtoCreateParamsDeserializer diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateTransactionResponse.java index d45e524d..0284de9c 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTransactionResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ CreateTransactionResponse.JSON_PROPERTY_STATUS, CreateTransactionResponse.JSON_PROPERTY_SYSTEM_MESSAGES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateTransactionResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_SYSTEM_MESSAGES = "systemMessages"; - private SystemMessageInfo systemMessages; + @jakarta.annotation.Nullable private SystemMessageInfo systemMessages; public CreateTransactionResponse() {} - public CreateTransactionResponse id(String id) { + public CreateTransactionResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -59,11 +60,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public CreateTransactionResponse status(String status) { + public CreateTransactionResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -83,11 +84,12 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public CreateTransactionResponse systemMessages(SystemMessageInfo systemMessages) { + public CreateTransactionResponse systemMessages( + @jakarta.annotation.Nullable SystemMessageInfo systemMessages) { this.systemMessages = systemMessages; return this; } @@ -106,7 +108,7 @@ public SystemMessageInfo getSystemMessages() { @JsonProperty(JSON_PROPERTY_SYSTEM_MESSAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSystemMessages(SystemMessageInfo systemMessages) { + public void setSystemMessages(@jakarta.annotation.Nullable SystemMessageInfo systemMessages) { this.systemMessages = systemMessages; } @@ -189,10 +191,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `status` to the URL query string @@ -202,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `systemMessages` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequest.java index 92dae200..9619d678 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,29 @@ CreateTransferConfigOperationRequest.JSON_PROPERTY_TYPE, CreateTransferConfigOperationRequest.JSON_PROPERTY_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateTransferConfigOperationRequest { public static final String JSON_PROPERTY_TYPE = "type"; - private TransferOperationType type; + @jakarta.annotation.Nonnull private TransferOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private TransferOperationConfigParams params; + @jakarta.annotation.Nonnull private TransferOperationConfigParams params; public CreateTransferConfigOperationRequest() {} - public CreateTransferConfigOperationRequest type(TransferOperationType type) { + @JsonCreator + public CreateTransferConfigOperationRequest( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + TransferOperationConfigParams params) { + this.type = type; + this.params = params; + } + + public CreateTransferConfigOperationRequest type( + @jakarta.annotation.Nonnull TransferOperationType type) { this.type = type; return this; } @@ -55,11 +67,12 @@ public TransferOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferOperationType type) { + public void setType(@jakarta.annotation.Nonnull TransferOperationType type) { this.type = type; } - public CreateTransferConfigOperationRequest params(TransferOperationConfigParams params) { + public CreateTransferConfigOperationRequest params( + @jakarta.annotation.Nonnull TransferOperationConfigParams params) { this.params = params; return this; } @@ -78,7 +91,7 @@ public TransferOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(TransferOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull TransferOperationConfigParams params) { this.params = params; } @@ -162,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java index 5eec7101..874e7633 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +29,25 @@ CreateUserGroupResponse.JSON_PROPERTY_MEMBER_IDS, CreateUserGroupResponse.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateUserGroupResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - private List memberIds; + @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public CreateUserGroupResponse() {} - public CreateUserGroupResponse id(String id) { + public CreateUserGroupResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -65,11 +66,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public CreateUserGroupResponse name(String name) { + public CreateUserGroupResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -88,11 +89,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public CreateUserGroupResponse memberIds(List memberIds) { + public CreateUserGroupResponse memberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; return this; } @@ -119,11 +120,11 @@ public List getMemberIds() { @JsonProperty(JSON_PROPERTY_MEMBER_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMemberIds(List memberIds) { + public void setMemberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; } - public CreateUserGroupResponse status(String status) { + public CreateUserGroupResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -142,7 +143,7 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } @@ -227,10 +228,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -240,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `memberIds` to the URL query string @@ -256,10 +253,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getMemberIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getMemberIds().get(i))))); } } @@ -270,8 +265,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyDto.java b/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyDto.java index 5608c089..998e5d52 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyDto.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,29 @@ CreateValidationKeyDto.JSON_PROPERTY_PUBLIC_KEY_PEM, CreateValidationKeyDto.JSON_PROPERTY_DAYS_TILL_EXPIRED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateValidationKeyDto { public static final String JSON_PROPERTY_PUBLIC_KEY_PEM = "publicKeyPem"; - private String publicKeyPem; + @jakarta.annotation.Nonnull private String publicKeyPem; public static final String JSON_PROPERTY_DAYS_TILL_EXPIRED = "daysTillExpired"; - private BigDecimal daysTillExpired; + @jakarta.annotation.Nonnull private BigDecimal daysTillExpired; public CreateValidationKeyDto() {} - public CreateValidationKeyDto publicKeyPem(String publicKeyPem) { + @JsonCreator + public CreateValidationKeyDto( + @JsonProperty(value = JSON_PROPERTY_PUBLIC_KEY_PEM, required = true) + String publicKeyPem, + @JsonProperty(value = JSON_PROPERTY_DAYS_TILL_EXPIRED, required = true) + BigDecimal daysTillExpired) { + this.publicKeyPem = publicKeyPem; + this.daysTillExpired = daysTillExpired; + } + + public CreateValidationKeyDto publicKeyPem(@jakarta.annotation.Nonnull String publicKeyPem) { this.publicKeyPem = publicKeyPem; return this; } @@ -56,11 +68,12 @@ public String getPublicKeyPem() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_PEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKeyPem(String publicKeyPem) { + public void setPublicKeyPem(@jakarta.annotation.Nonnull String publicKeyPem) { this.publicKeyPem = publicKeyPem; } - public CreateValidationKeyDto daysTillExpired(BigDecimal daysTillExpired) { + public CreateValidationKeyDto daysTillExpired( + @jakarta.annotation.Nonnull BigDecimal daysTillExpired) { this.daysTillExpired = daysTillExpired; return this; } @@ -79,7 +92,7 @@ public BigDecimal getDaysTillExpired() { @JsonProperty(JSON_PROPERTY_DAYS_TILL_EXPIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDaysTillExpired(BigDecimal daysTillExpired) { + public void setDaysTillExpired(@jakarta.annotation.Nonnull BigDecimal daysTillExpired) { this.daysTillExpired = daysTillExpired; } @@ -162,10 +175,7 @@ public String toUrlQueryString(String prefix) { "%spublicKeyPem%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKeyPem()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKeyPem())))); } // add `daysTillExpired` to the URL query string @@ -175,10 +185,7 @@ public String toUrlQueryString(String prefix) { "%sdaysTillExpired%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDaysTillExpired()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDaysTillExpired())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java b/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java index 79b17d9f..21b15770 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,23 +31,40 @@ CreateValidationKeyResponseDto.JSON_PROPERTY_APPROVAL_THRESHOLD, CreateValidationKeyResponseDto.JSON_PROPERTY_REQUEST_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateValidationKeyResponseDto { public static final String JSON_PROPERTY_VALIDATION_KEY = "validationKey"; - private ValidationKeyDto validationKey; + @jakarta.annotation.Nonnull private ValidationKeyDto validationKey; public static final String JSON_PROPERTY_ADMINS = "admins"; - private List admins = new ArrayList<>(); + @jakarta.annotation.Nonnull private List admins = new ArrayList<>(); public static final String JSON_PROPERTY_APPROVAL_THRESHOLD = "approvalThreshold"; - private BigDecimal approvalThreshold; + @jakarta.annotation.Nonnull private BigDecimal approvalThreshold; public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; - private BigDecimal requestId; + @jakarta.annotation.Nonnull private BigDecimal requestId; public CreateValidationKeyResponseDto() {} - public CreateValidationKeyResponseDto validationKey(ValidationKeyDto validationKey) { + @JsonCreator + public CreateValidationKeyResponseDto( + @JsonProperty(value = JSON_PROPERTY_VALIDATION_KEY, required = true) + ValidationKeyDto validationKey, + @JsonProperty(value = JSON_PROPERTY_ADMINS, required = true) List admins, + @JsonProperty(value = JSON_PROPERTY_APPROVAL_THRESHOLD, required = true) + BigDecimal approvalThreshold, + @JsonProperty(value = JSON_PROPERTY_REQUEST_ID, required = true) BigDecimal requestId) { + this.validationKey = validationKey; + this.admins = admins; + this.approvalThreshold = approvalThreshold; + this.requestId = requestId; + } + + public CreateValidationKeyResponseDto validationKey( + @jakarta.annotation.Nonnull ValidationKeyDto validationKey) { this.validationKey = validationKey; return this; } @@ -66,11 +83,11 @@ public ValidationKeyDto getValidationKey() { @JsonProperty(JSON_PROPERTY_VALIDATION_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidationKey(ValidationKeyDto validationKey) { + public void setValidationKey(@jakarta.annotation.Nonnull ValidationKeyDto validationKey) { this.validationKey = validationKey; } - public CreateValidationKeyResponseDto admins(List admins) { + public CreateValidationKeyResponseDto admins(@jakarta.annotation.Nonnull List admins) { this.admins = admins; return this; } @@ -97,11 +114,12 @@ public List getAdmins() { @JsonProperty(JSON_PROPERTY_ADMINS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdmins(List admins) { + public void setAdmins(@jakarta.annotation.Nonnull List admins) { this.admins = admins; } - public CreateValidationKeyResponseDto approvalThreshold(BigDecimal approvalThreshold) { + public CreateValidationKeyResponseDto approvalThreshold( + @jakarta.annotation.Nonnull BigDecimal approvalThreshold) { this.approvalThreshold = approvalThreshold; return this; } @@ -120,11 +138,12 @@ public BigDecimal getApprovalThreshold() { @JsonProperty(JSON_PROPERTY_APPROVAL_THRESHOLD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApprovalThreshold(BigDecimal approvalThreshold) { + public void setApprovalThreshold(@jakarta.annotation.Nonnull BigDecimal approvalThreshold) { this.approvalThreshold = approvalThreshold; } - public CreateValidationKeyResponseDto requestId(BigDecimal requestId) { + public CreateValidationKeyResponseDto requestId( + @jakarta.annotation.Nonnull BigDecimal requestId) { this.requestId = requestId; return this; } @@ -143,7 +162,7 @@ public BigDecimal getRequestId() { @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequestId(BigDecimal requestId) { + public void setRequestId(@jakarta.annotation.Nonnull BigDecimal requestId) { this.requestId = requestId; } @@ -244,10 +263,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAdmins().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAdmins().get(i))))); } } @@ -258,10 +274,7 @@ public String toUrlQueryString(String prefix) { "%sapprovalThreshold%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getApprovalThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getApprovalThreshold())))); } // add `requestId` to the URL query string @@ -271,9 +284,7 @@ public String toUrlQueryString(String prefix) { "%srequestId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRequestId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRequestId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java index 2b87a8ad..b7f1c6ea 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,16 +32,18 @@ CreateVaultAccountConnectionRequest.JSON_PROPERTY_URI, CreateVaultAccountConnectionRequest.JSON_PROPERTY_CHAIN_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateVaultAccountConnectionRequest { public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private BigDecimal vaultAccountId; + @jakarta.annotation.Nonnull private BigDecimal vaultAccountId; /** The default fee level. Valid values are `MEDIUM` and `HIGH`. */ public enum FeeLevelEnum { - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -72,17 +73,29 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nonnull private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_URI = "uri"; - private String uri; + @jakarta.annotation.Nonnull private String uri; public static final String JSON_PROPERTY_CHAIN_IDS = "chainIds"; - private List chainIds; + @jakarta.annotation.Nullable private List chainIds = new ArrayList<>(); public CreateVaultAccountConnectionRequest() {} - public CreateVaultAccountConnectionRequest vaultAccountId(BigDecimal vaultAccountId) { + @JsonCreator + public CreateVaultAccountConnectionRequest( + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + BigDecimal vaultAccountId, + @JsonProperty(value = JSON_PROPERTY_FEE_LEVEL, required = true) FeeLevelEnum feeLevel, + @JsonProperty(value = JSON_PROPERTY_URI, required = true) String uri) { + this.vaultAccountId = vaultAccountId; + this.feeLevel = feeLevel; + this.uri = uri; + } + + public CreateVaultAccountConnectionRequest vaultAccountId( + @jakarta.annotation.Nonnull BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -101,11 +114,12 @@ public BigDecimal getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(BigDecimal vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public CreateVaultAccountConnectionRequest feeLevel(FeeLevelEnum feeLevel) { + public CreateVaultAccountConnectionRequest feeLevel( + @jakarta.annotation.Nonnull FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -124,11 +138,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nonnull FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public CreateVaultAccountConnectionRequest uri(String uri) { + public CreateVaultAccountConnectionRequest uri(@jakarta.annotation.Nonnull String uri) { this.uri = uri; return this; } @@ -147,11 +161,12 @@ public String getUri() { @JsonProperty(JSON_PROPERTY_URI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUri(String uri) { + public void setUri(@jakarta.annotation.Nonnull String uri) { this.uri = uri; } - public CreateVaultAccountConnectionRequest chainIds(List chainIds) { + public CreateVaultAccountConnectionRequest chainIds( + @jakarta.annotation.Nullable List chainIds) { this.chainIds = chainIds; return this; } @@ -179,7 +194,7 @@ public List getChainIds() { @JsonProperty(JSON_PROPERTY_CHAIN_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChainIds(List chainIds) { + public void setChainIds(@jakarta.annotation.Nullable List chainIds) { this.chainIds = chainIds; } @@ -268,10 +283,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `feeLevel` to the URL query string @@ -281,8 +293,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `uri` to the URL query string @@ -292,8 +303,7 @@ public String toUrlQueryString(String prefix) { "%suri%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUri()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUri())))); } // add `chainIds` to the URL query string @@ -308,10 +318,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getChainIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getChainIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java index 7d66f762..95710c03 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,28 +31,30 @@ CreateVaultAccountRequest.JSON_PROPERTY_VAULT_TYPE, CreateVaultAccountRequest.JSON_PROPERTY_AUTO_ASSIGN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateVaultAccountRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_HIDDEN_ON_U_I = "hiddenOnUI"; - private Boolean hiddenOnUI; + @jakarta.annotation.Nullable private Boolean hiddenOnUI; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_AUTO_FUEL = "autoFuel"; - private Boolean 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("MPC"), + MPC(String.valueOf("MPC")), - KEY_LINK("KEY_LINK"); + KEY_LINK(String.valueOf("KEY_LINK")); private String value; @@ -83,14 +84,14 @@ public static VaultTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_VAULT_TYPE = "vaultType"; - private VaultTypeEnum vaultType = VaultTypeEnum.MPC; + @jakarta.annotation.Nullable private VaultTypeEnum vaultType = VaultTypeEnum.MPC; public static final String JSON_PROPERTY_AUTO_ASSIGN = "autoAssign"; - private Boolean autoAssign = false; + @jakarta.annotation.Nullable private Boolean autoAssign = false; public CreateVaultAccountRequest() {} - public CreateVaultAccountRequest name(String name) { + public CreateVaultAccountRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -109,11 +110,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public CreateVaultAccountRequest hiddenOnUI(Boolean hiddenOnUI) { + public CreateVaultAccountRequest hiddenOnUI(@jakarta.annotation.Nullable Boolean hiddenOnUI) { this.hiddenOnUI = hiddenOnUI; return this; } @@ -133,11 +134,12 @@ public Boolean getHiddenOnUI() { @JsonProperty(JSON_PROPERTY_HIDDEN_ON_U_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHiddenOnUI(Boolean hiddenOnUI) { + public void setHiddenOnUI(@jakarta.annotation.Nullable Boolean hiddenOnUI) { this.hiddenOnUI = hiddenOnUI; } - public CreateVaultAccountRequest customerRefId(String customerRefId) { + public CreateVaultAccountRequest customerRefId( + @jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -156,11 +158,11 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } - public CreateVaultAccountRequest autoFuel(Boolean autoFuel) { + public CreateVaultAccountRequest autoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; return this; } @@ -179,11 +181,12 @@ public Boolean getAutoFuel() { @JsonProperty(JSON_PROPERTY_AUTO_FUEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoFuel(Boolean autoFuel) { + public void setAutoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; } - public CreateVaultAccountRequest vaultType(VaultTypeEnum vaultType) { + public CreateVaultAccountRequest vaultType( + @jakarta.annotation.Nullable VaultTypeEnum vaultType) { this.vaultType = vaultType; return this; } @@ -203,11 +206,11 @@ public VaultTypeEnum getVaultType() { @JsonProperty(JSON_PROPERTY_VAULT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultType(VaultTypeEnum vaultType) { + public void setVaultType(@jakarta.annotation.Nullable VaultTypeEnum vaultType) { this.vaultType = vaultType; } - public CreateVaultAccountRequest autoAssign(Boolean autoAssign) { + public CreateVaultAccountRequest autoAssign(@jakarta.annotation.Nullable Boolean autoAssign) { this.autoAssign = autoAssign; return this; } @@ -230,7 +233,7 @@ public Boolean getAutoAssign() { @JsonProperty(JSON_PROPERTY_AUTO_ASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoAssign(Boolean autoAssign) { + public void setAutoAssign(@jakarta.annotation.Nullable Boolean autoAssign) { this.autoAssign = autoAssign; } @@ -321,8 +324,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `hiddenOnUI` to the URL query string @@ -332,9 +334,7 @@ public String toUrlQueryString(String prefix) { "%shiddenOnUI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getHiddenOnUI()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getHiddenOnUI())))); } // add `customerRefId` to the URL query string @@ -344,10 +344,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `autoFuel` to the URL query string @@ -357,8 +354,7 @@ public String toUrlQueryString(String prefix) { "%sautoFuel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAutoFuel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAutoFuel())))); } // add `vaultType` to the URL query string @@ -368,9 +364,7 @@ public String toUrlQueryString(String prefix) { "%svaultType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultType())))); } // add `autoAssign` to the URL query string @@ -380,9 +374,7 @@ public String toUrlQueryString(String prefix) { "%sautoAssign%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAutoAssign()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAutoAssign())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java index cdc4d379..fc6a1b98 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,35 +31,37 @@ CreateVaultAssetResponse.JSON_PROPERTY_STATUS, CreateVaultAssetResponse.JSON_PROPERTY_ACTIVATION_TX_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateVaultAssetResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_LEGACY_ADDRESS = "legacyAddress"; - private String legacyAddress; + @jakarta.annotation.Nullable private String legacyAddress; public static final String JSON_PROPERTY_ENTERPRISE_ADDRESS = "enterpriseAddress"; - private String enterpriseAddress; + @jakarta.annotation.Nullable private String enterpriseAddress; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_EOS_ACCOUNT_NAME = "eosAccountName"; - private String eosAccountName; + @jakarta.annotation.Nullable private String eosAccountName; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_ACTIVATION_TX_ID = "activationTxId"; - private String activationTxId; + @jakarta.annotation.Nullable private String activationTxId; public CreateVaultAssetResponse() {} - public CreateVaultAssetResponse id(String id) { + public CreateVaultAssetResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -79,11 +80,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public CreateVaultAssetResponse address(String address) { + public CreateVaultAssetResponse address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -102,11 +103,12 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public CreateVaultAssetResponse legacyAddress(String legacyAddress) { + public CreateVaultAssetResponse legacyAddress( + @jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; return this; } @@ -125,11 +127,12 @@ public String getLegacyAddress() { @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegacyAddress(String legacyAddress) { + public void setLegacyAddress(@jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; } - public CreateVaultAssetResponse enterpriseAddress(String enterpriseAddress) { + public CreateVaultAssetResponse enterpriseAddress( + @jakarta.annotation.Nullable String enterpriseAddress) { this.enterpriseAddress = enterpriseAddress; return this; } @@ -148,11 +151,11 @@ public String getEnterpriseAddress() { @JsonProperty(JSON_PROPERTY_ENTERPRISE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnterpriseAddress(String enterpriseAddress) { + public void setEnterpriseAddress(@jakarta.annotation.Nullable String enterpriseAddress) { this.enterpriseAddress = enterpriseAddress; } - public CreateVaultAssetResponse tag(String tag) { + public CreateVaultAssetResponse tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -171,11 +174,12 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - public CreateVaultAssetResponse eosAccountName(String eosAccountName) { + public CreateVaultAssetResponse eosAccountName( + @jakarta.annotation.Nullable String eosAccountName) { this.eosAccountName = eosAccountName; return this; } @@ -194,11 +198,11 @@ public String getEosAccountName() { @JsonProperty(JSON_PROPERTY_EOS_ACCOUNT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEosAccountName(String eosAccountName) { + public void setEosAccountName(@jakarta.annotation.Nullable String eosAccountName) { this.eosAccountName = eosAccountName; } - public CreateVaultAssetResponse status(String status) { + public CreateVaultAssetResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -217,11 +221,12 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public CreateVaultAssetResponse activationTxId(String activationTxId) { + public CreateVaultAssetResponse activationTxId( + @jakarta.annotation.Nullable String activationTxId) { this.activationTxId = activationTxId; return this; } @@ -240,7 +245,7 @@ public String getActivationTxId() { @JsonProperty(JSON_PROPERTY_ACTIVATION_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setActivationTxId(String activationTxId) { + public void setActivationTxId(@jakarta.annotation.Nullable String activationTxId) { this.activationTxId = activationTxId; } @@ -344,10 +349,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `address` to the URL query string @@ -357,8 +359,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `legacyAddress` to the URL query string @@ -368,10 +369,7 @@ public String toUrlQueryString(String prefix) { "%slegacyAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegacyAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyAddress())))); } // add `enterpriseAddress` to the URL query string @@ -381,10 +379,7 @@ public String toUrlQueryString(String prefix) { "%senterpriseAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEnterpriseAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnterpriseAddress())))); } // add `tag` to the URL query string @@ -394,8 +389,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `eosAccountName` to the URL query string @@ -405,10 +399,7 @@ public String toUrlQueryString(String prefix) { "%seosAccountName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEosAccountName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEosAccountName())))); } // add `status` to the URL query string @@ -418,8 +409,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `activationTxId` to the URL query string @@ -429,10 +419,7 @@ public String toUrlQueryString(String prefix) { "%sactivationTxId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActivationTxId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getActivationTxId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java index 73b8c36a..b6a63f18 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ CreateWalletRequest.JSON_PROPERTY_NAME, CreateWalletRequest.JSON_PROPERTY_CUSTOMER_REF_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CreateWalletRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public CreateWalletRequest() {} - public CreateWalletRequest name(String name) { + public CreateWalletRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -55,11 +56,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public CreateWalletRequest customerRefId(String customerRefId) { + public CreateWalletRequest customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -78,7 +79,7 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `customerRefId` to the URL query string @@ -172,10 +172,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } 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 index df392d86..bcc5568b 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +30,34 @@ CreateWebhookRequest.JSON_PROPERTY_EVENTS, CreateWebhookRequest.JSON_PROPERTY_ENABLED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String url; + @jakarta.annotation.Nonnull private String url; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_EVENTS = "events"; - private List events = new ArrayList<>(); + @jakarta.annotation.Nonnull private List events = new ArrayList<>(); public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled = true; + @jakarta.annotation.Nullable private Boolean enabled = true; public CreateWebhookRequest() {} - public CreateWebhookRequest url(String url) { + @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; } @@ -65,11 +76,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public CreateWebhookRequest description(String description) { + public CreateWebhookRequest description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -88,11 +99,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public CreateWebhookRequest events(List events) { + public CreateWebhookRequest events(@jakarta.annotation.Nonnull List events) { this.events = events; return this; } @@ -119,11 +130,11 @@ public List getEvents() { @JsonProperty(JSON_PROPERTY_EVENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEvents(List events) { + public void setEvents(@jakarta.annotation.Nonnull List events) { this.events = events; } - public CreateWebhookRequest enabled(Boolean enabled) { + public CreateWebhookRequest enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -142,7 +153,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } @@ -229,8 +240,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `description` to the URL query string @@ -240,10 +250,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `events` to the URL query string @@ -259,10 +266,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getEvents().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getEvents().get(i))))); } } } @@ -274,8 +279,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInner.java b/src/main/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInner.java index 56f55508..9ba7676d 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInner.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInner.java @@ -34,7 +34,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = CreateWorkflowExecutionRequestParamsInner diff --git a/src/main/java/com/fireblocks/sdk/model/CustomRoutingDest.java b/src/main/java/com/fireblocks/sdk/model/CustomRoutingDest.java index 88a2ca12..ffafb1f2 100644 --- a/src/main/java/com/fireblocks/sdk/model/CustomRoutingDest.java +++ b/src/main/java/com/fireblocks/sdk/model/CustomRoutingDest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,11 +28,13 @@ CustomRoutingDest.JSON_PROPERTY_DST_TYPE, CustomRoutingDest.JSON_PROPERTY_DST_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class CustomRoutingDest { /** The network routing logic. */ public enum SchemeEnum { - CUSTOM("CUSTOM"); + CUSTOM(String.valueOf("CUSTOM")); private String value; @@ -63,15 +64,15 @@ public static SchemeEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCHEME = "scheme"; - private SchemeEnum scheme; + @jakarta.annotation.Nonnull private SchemeEnum scheme; /** The account the funds are being sent to. */ public enum DstTypeEnum { - FIAT_ACCOUNT("FIAT_ACCOUNT"), + FIAT_ACCOUNT(String.valueOf("FIAT_ACCOUNT")), - VAULT("VAULT"), + VAULT(String.valueOf("VAULT")), - EXCHANGE("EXCHANGE"); + EXCHANGE(String.valueOf("EXCHANGE")); private String value; @@ -101,14 +102,24 @@ public static DstTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_DST_TYPE = "dstType"; - private DstTypeEnum dstType; + @jakarta.annotation.Nonnull private DstTypeEnum dstType; public static final String JSON_PROPERTY_DST_ID = "dstId"; - private String dstId; + @jakarta.annotation.Nonnull private String dstId; public CustomRoutingDest() {} - public CustomRoutingDest scheme(SchemeEnum scheme) { + @JsonCreator + public CustomRoutingDest( + @JsonProperty(value = JSON_PROPERTY_SCHEME, required = true) SchemeEnum scheme, + @JsonProperty(value = JSON_PROPERTY_DST_TYPE, required = true) DstTypeEnum dstType, + @JsonProperty(value = JSON_PROPERTY_DST_ID, required = true) String dstId) { + this.scheme = scheme; + this.dstType = dstType; + this.dstId = dstId; + } + + public CustomRoutingDest scheme(@jakarta.annotation.Nonnull SchemeEnum scheme) { this.scheme = scheme; return this; } @@ -127,11 +138,11 @@ public SchemeEnum getScheme() { @JsonProperty(JSON_PROPERTY_SCHEME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScheme(SchemeEnum scheme) { + public void setScheme(@jakarta.annotation.Nonnull SchemeEnum scheme) { this.scheme = scheme; } - public CustomRoutingDest dstType(DstTypeEnum dstType) { + public CustomRoutingDest dstType(@jakarta.annotation.Nonnull DstTypeEnum dstType) { this.dstType = dstType; return this; } @@ -150,11 +161,11 @@ public DstTypeEnum getDstType() { @JsonProperty(JSON_PROPERTY_DST_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDstType(DstTypeEnum dstType) { + public void setDstType(@jakarta.annotation.Nonnull DstTypeEnum dstType) { this.dstType = dstType; } - public CustomRoutingDest dstId(String dstId) { + public CustomRoutingDest dstId(@jakarta.annotation.Nonnull String dstId) { this.dstId = dstId; return this; } @@ -173,7 +184,7 @@ public String getDstId() { @JsonProperty(JSON_PROPERTY_DST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDstId(String dstId) { + public void setDstId(@jakarta.annotation.Nonnull String dstId) { this.dstId = dstId; } @@ -258,8 +269,7 @@ public String toUrlQueryString(String prefix) { "%sscheme%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getScheme()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScheme())))); } // add `dstType` to the URL query string @@ -269,8 +279,7 @@ public String toUrlQueryString(String prefix) { "%sdstType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDstType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDstType())))); } // add `dstId` to the URL query string @@ -280,8 +289,7 @@ public String toUrlQueryString(String prefix) { "%sdstId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDstId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDstId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDest.java b/src/main/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDest.java index f74e8669..e870a27f 100644 --- a/src/main/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDest.java +++ b/src/main/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDest.java @@ -18,18 +18,19 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** DefaultNetworkRoutingDest */ @JsonPropertyOrder({DefaultNetworkRoutingDest.JSON_PROPERTY_SCHEME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DefaultNetworkRoutingDest { /** The network routing logic. */ public enum SchemeEnum { - DEFAULT("DEFAULT"); + DEFAULT(String.valueOf("DEFAULT")); private String value; @@ -59,11 +60,17 @@ public static SchemeEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCHEME = "scheme"; - private SchemeEnum scheme; + @jakarta.annotation.Nonnull private SchemeEnum scheme; public DefaultNetworkRoutingDest() {} - public DefaultNetworkRoutingDest scheme(SchemeEnum scheme) { + @JsonCreator + public DefaultNetworkRoutingDest( + @JsonProperty(value = JSON_PROPERTY_SCHEME, required = true) SchemeEnum scheme) { + this.scheme = scheme; + } + + public DefaultNetworkRoutingDest scheme(@jakarta.annotation.Nonnull SchemeEnum scheme) { this.scheme = scheme; return this; } @@ -82,7 +89,7 @@ public SchemeEnum getScheme() { @JsonProperty(JSON_PROPERTY_SCHEME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScheme(SchemeEnum scheme) { + public void setScheme(@jakarta.annotation.Nonnull SchemeEnum scheme) { this.scheme = scheme; } @@ -163,8 +170,7 @@ public String toUrlQueryString(String prefix) { "%sscheme%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getScheme()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScheme())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Delegation.java b/src/main/java/com/fireblocks/sdk/model/Delegation.java index 87825e4d..577d985e 100644 --- a/src/main/java/com/fireblocks/sdk/model/Delegation.java +++ b/src/main/java/com/fireblocks/sdk/model/Delegation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -45,65 +45,116 @@ Delegation.JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO, Delegation.JSON_PROPERTY_RELATED_REQUESTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Delegation { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_VALIDATOR_NAME = "validatorName"; - private String validatorName; + @jakarta.annotation.Nonnull private String validatorName; public static final String JSON_PROPERTY_PROVIDER_NAME = "providerName"; - private String providerName; + @jakarta.annotation.Nonnull private String providerName; public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; - private String chainDescriptor; + @jakarta.annotation.Nonnull private String chainDescriptor; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_REWARDS_AMOUNT = "rewardsAmount"; - private String rewardsAmount; + @jakarta.annotation.Nonnull private String rewardsAmount; public static final String JSON_PROPERTY_DATE_CREATED = "dateCreated"; - private OffsetDateTime dateCreated; + @jakarta.annotation.Nonnull private OffsetDateTime dateCreated; public static final String JSON_PROPERTY_DATE_UPDATED = "dateUpdated"; - private OffsetDateTime dateUpdated; + @jakarta.annotation.Nonnull private OffsetDateTime dateUpdated; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nonnull private String status; public static final String JSON_PROPERTY_RELATED_TRANSACTIONS = "relatedTransactions"; + + @jakarta.annotation.Nonnull private List relatedTransactions = new ArrayList<>(); public static final String JSON_PROPERTY_VALIDATOR_ADDRESS = "validatorAddress"; - private String validatorAddress; + @jakarta.annotation.Nonnull private String validatorAddress; public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - private StakingProvider providerId; + @jakarta.annotation.Nonnull private StakingProvider providerId; public static final String JSON_PROPERTY_AVAILABLE_ACTIONS = "availableActions"; - private List availableActions = new ArrayList<>(); + @jakarta.annotation.Nonnull private List availableActions = new ArrayList<>(); public static final String JSON_PROPERTY_IN_PROGRESS = "inProgress"; - private Boolean inProgress; + @jakarta.annotation.Nonnull private Boolean inProgress; public static final String JSON_PROPERTY_IN_PROGRESS_TX_ID = "inProgressTxId"; - private String inProgressTxId; + @jakarta.annotation.Nullable private String inProgressTxId; public static final String JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO = "blockchainPositionInfo"; - private SolanaBlockchainData blockchainPositionInfo; + @jakarta.annotation.Nonnull private SolanaBlockchainData blockchainPositionInfo; public static final String JSON_PROPERTY_RELATED_REQUESTS = "relatedRequests"; - private List relatedRequests; + @jakarta.annotation.Nullable private List relatedRequests = new ArrayList<>(); public Delegation() {} - public Delegation id(String id) { + @JsonCreator + public Delegation( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + String vaultAccountId, + @JsonProperty(value = JSON_PROPERTY_VALIDATOR_NAME, required = true) + String validatorName, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_NAME, required = true) String providerName, + @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) + String chainDescriptor, + @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_STATUS, required = true) String status, + @JsonProperty(value = JSON_PROPERTY_RELATED_TRANSACTIONS, required = true) + 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_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) { + this.id = id; + this.vaultAccountId = vaultAccountId; + this.validatorName = validatorName; + this.providerName = providerName; + this.chainDescriptor = chainDescriptor; + this.amount = amount; + this.rewardsAmount = rewardsAmount; + this.dateCreated = dateCreated; + this.dateUpdated = dateUpdated; + this.status = status; + this.relatedTransactions = relatedTransactions; + this.validatorAddress = validatorAddress; + this.providerId = providerId; + this.availableActions = availableActions; + this.inProgress = inProgress; + this.blockchainPositionInfo = blockchainPositionInfo; + } + + public Delegation id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -122,11 +173,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Delegation vaultAccountId(String vaultAccountId) { + public Delegation vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -145,11 +196,11 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public Delegation validatorName(String validatorName) { + public Delegation validatorName(@jakarta.annotation.Nonnull String validatorName) { this.validatorName = validatorName; return this; } @@ -168,11 +219,11 @@ public String getValidatorName() { @JsonProperty(JSON_PROPERTY_VALIDATOR_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidatorName(String validatorName) { + public void setValidatorName(@jakarta.annotation.Nonnull String validatorName) { this.validatorName = validatorName; } - public Delegation providerName(String providerName) { + public Delegation providerName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; return this; } @@ -191,11 +242,11 @@ public String getProviderName() { @JsonProperty(JSON_PROPERTY_PROVIDER_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderName(String providerName) { + public void setProviderName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; } - public Delegation chainDescriptor(String chainDescriptor) { + public Delegation chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -214,11 +265,11 @@ public String getChainDescriptor() { @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainDescriptor(String chainDescriptor) { + public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; } - public Delegation amount(String amount) { + public Delegation amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -237,11 +288,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public Delegation rewardsAmount(String rewardsAmount) { + public Delegation rewardsAmount(@jakarta.annotation.Nonnull String rewardsAmount) { this.rewardsAmount = rewardsAmount; return this; } @@ -260,11 +311,11 @@ public String getRewardsAmount() { @JsonProperty(JSON_PROPERTY_REWARDS_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRewardsAmount(String rewardsAmount) { + public void setRewardsAmount(@jakarta.annotation.Nonnull String rewardsAmount) { this.rewardsAmount = rewardsAmount; } - public Delegation dateCreated(OffsetDateTime dateCreated) { + public Delegation dateCreated(@jakarta.annotation.Nonnull OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; } @@ -283,11 +334,11 @@ public OffsetDateTime getDateCreated() { @JsonProperty(JSON_PROPERTY_DATE_CREATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDateCreated(OffsetDateTime dateCreated) { + public void setDateCreated(@jakarta.annotation.Nonnull OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } - public Delegation dateUpdated(OffsetDateTime dateUpdated) { + public Delegation dateUpdated(@jakarta.annotation.Nonnull OffsetDateTime dateUpdated) { this.dateUpdated = dateUpdated; return this; } @@ -306,11 +357,11 @@ public OffsetDateTime getDateUpdated() { @JsonProperty(JSON_PROPERTY_DATE_UPDATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDateUpdated(OffsetDateTime dateUpdated) { + public void setDateUpdated(@jakarta.annotation.Nonnull OffsetDateTime dateUpdated) { this.dateUpdated = dateUpdated; } - public Delegation status(String status) { + public Delegation status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } @@ -329,11 +380,12 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public Delegation relatedTransactions(List relatedTransactions) { + public Delegation relatedTransactions( + @jakarta.annotation.Nonnull List relatedTransactions) { this.relatedTransactions = relatedTransactions; return this; } @@ -362,11 +414,12 @@ public List getRelatedTransactions() { @JsonProperty(JSON_PROPERTY_RELATED_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRelatedTransactions(List relatedTransactions) { + public void setRelatedTransactions( + @jakarta.annotation.Nonnull List relatedTransactions) { this.relatedTransactions = relatedTransactions; } - public Delegation validatorAddress(String validatorAddress) { + public Delegation validatorAddress(@jakarta.annotation.Nonnull String validatorAddress) { this.validatorAddress = validatorAddress; return this; } @@ -385,11 +438,11 @@ public String getValidatorAddress() { @JsonProperty(JSON_PROPERTY_VALIDATOR_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidatorAddress(String validatorAddress) { + public void setValidatorAddress(@jakarta.annotation.Nonnull String validatorAddress) { this.validatorAddress = validatorAddress; } - public Delegation providerId(StakingProvider providerId) { + public Delegation providerId(@jakarta.annotation.Nonnull StakingProvider providerId) { this.providerId = providerId; return this; } @@ -408,11 +461,11 @@ public StakingProvider getProviderId() { @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(StakingProvider providerId) { + public void setProviderId(@jakarta.annotation.Nonnull StakingProvider providerId) { this.providerId = providerId; } - public Delegation availableActions(List availableActions) { + public Delegation availableActions(@jakarta.annotation.Nonnull List availableActions) { this.availableActions = availableActions; return this; } @@ -440,11 +493,11 @@ public List getAvailableActions() { @JsonProperty(JSON_PROPERTY_AVAILABLE_ACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAvailableActions(List availableActions) { + public void setAvailableActions(@jakarta.annotation.Nonnull List availableActions) { this.availableActions = availableActions; } - public Delegation inProgress(Boolean inProgress) { + public Delegation inProgress(@jakarta.annotation.Nonnull Boolean inProgress) { this.inProgress = inProgress; return this; } @@ -464,11 +517,11 @@ public Boolean getInProgress() { @JsonProperty(JSON_PROPERTY_IN_PROGRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInProgress(Boolean inProgress) { + public void setInProgress(@jakarta.annotation.Nonnull Boolean inProgress) { this.inProgress = inProgress; } - public Delegation inProgressTxId(String inProgressTxId) { + public Delegation inProgressTxId(@jakarta.annotation.Nullable String inProgressTxId) { this.inProgressTxId = inProgressTxId; return this; } @@ -487,11 +540,12 @@ public String getInProgressTxId() { @JsonProperty(JSON_PROPERTY_IN_PROGRESS_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInProgressTxId(String inProgressTxId) { + public void setInProgressTxId(@jakarta.annotation.Nullable String inProgressTxId) { this.inProgressTxId = inProgressTxId; } - public Delegation blockchainPositionInfo(SolanaBlockchainData blockchainPositionInfo) { + public Delegation blockchainPositionInfo( + @jakarta.annotation.Nonnull SolanaBlockchainData blockchainPositionInfo) { this.blockchainPositionInfo = blockchainPositionInfo; return this; } @@ -510,11 +564,13 @@ public SolanaBlockchainData getBlockchainPositionInfo() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainPositionInfo(SolanaBlockchainData blockchainPositionInfo) { + public void setBlockchainPositionInfo( + @jakarta.annotation.Nonnull SolanaBlockchainData blockchainPositionInfo) { this.blockchainPositionInfo = blockchainPositionInfo; } - public Delegation relatedRequests(List relatedRequests) { + public Delegation relatedRequests( + @jakarta.annotation.Nullable List relatedRequests) { this.relatedRequests = relatedRequests; return this; } @@ -545,7 +601,8 @@ public List getRelatedRequests() { @JsonProperty(JSON_PROPERTY_RELATED_REQUESTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelatedRequests(List relatedRequests) { + public void setRelatedRequests( + @jakarta.annotation.Nullable List relatedRequests) { this.relatedRequests = relatedRequests; } @@ -680,10 +737,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `vaultAccountId` to the URL query string @@ -693,10 +747,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `validatorName` to the URL query string @@ -706,10 +757,7 @@ public String toUrlQueryString(String prefix) { "%svalidatorName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getValidatorName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getValidatorName())))); } // add `providerName` to the URL query string @@ -719,10 +767,7 @@ public String toUrlQueryString(String prefix) { "%sproviderName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderName())))); } // add `chainDescriptor` to the URL query string @@ -732,10 +777,7 @@ public String toUrlQueryString(String prefix) { "%schainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getChainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChainDescriptor())))); } // add `amount` to the URL query string @@ -745,8 +787,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `rewardsAmount` to the URL query string @@ -756,10 +797,7 @@ public String toUrlQueryString(String prefix) { "%srewardsAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRewardsAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRewardsAmount())))); } // add `dateCreated` to the URL query string @@ -769,10 +807,7 @@ public String toUrlQueryString(String prefix) { "%sdateCreated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDateCreated()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDateCreated())))); } // add `dateUpdated` to the URL query string @@ -782,10 +817,7 @@ public String toUrlQueryString(String prefix) { "%sdateUpdated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDateUpdated()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDateUpdated())))); } // add `status` to the URL query string @@ -795,8 +827,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `relatedTransactions` to the URL query string @@ -829,10 +860,7 @@ public String toUrlQueryString(String prefix) { "%svalidatorAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getValidatorAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getValidatorAddress())))); } // add `providerId` to the URL query string @@ -842,9 +870,7 @@ public String toUrlQueryString(String prefix) { "%sproviderId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); } // add `availableActions` to the URL query string @@ -859,10 +885,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAvailableActions().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAvailableActions().get(i))))); } } @@ -873,9 +897,7 @@ public String toUrlQueryString(String prefix) { "%sinProgress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInProgress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInProgress())))); } // add `inProgressTxId` to the URL query string @@ -885,10 +907,7 @@ public String toUrlQueryString(String prefix) { "%sinProgressTxId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInProgressTxId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInProgressTxId())))); } // add `blockchainPositionInfo` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DelegationSummary.java b/src/main/java/com/fireblocks/sdk/model/DelegationSummary.java index c4b39081..7a321d7a 100644 --- a/src/main/java/com/fireblocks/sdk/model/DelegationSummary.java +++ b/src/main/java/com/fireblocks/sdk/model/DelegationSummary.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; @@ -28,23 +29,46 @@ DelegationSummary.JSON_PROPERTY_REWARDS_AMOUNT, DelegationSummary.JSON_PROPERTY_TOTAL_STAKED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DelegationSummary { public static final String JSON_PROPERTY_ACTIVE = "active"; - private List active = new ArrayList<>(); + @jakarta.annotation.Nonnull private List active = new ArrayList<>(); public static final String JSON_PROPERTY_INACTIVE = "inactive"; - private List inactive = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inactive = new ArrayList<>(); public static final String JSON_PROPERTY_REWARDS_AMOUNT = "rewardsAmount"; + + @jakarta.annotation.Nonnull private List rewardsAmount = new ArrayList<>(); public static final String JSON_PROPERTY_TOTAL_STAKED = "totalStaked"; + + @jakarta.annotation.Nonnull private List totalStaked = new ArrayList<>(); public DelegationSummary() {} - public DelegationSummary active(List active) { + @JsonCreator + public DelegationSummary( + @JsonProperty(value = JSON_PROPERTY_ACTIVE, required = true) + List active, + @JsonProperty(value = JSON_PROPERTY_INACTIVE, required = true) + List inactive, + @JsonProperty(value = JSON_PROPERTY_REWARDS_AMOUNT, required = true) + List rewardsAmount, + @JsonProperty(value = JSON_PROPERTY_TOTAL_STAKED, required = true) + List totalStaked) { + this.active = active; + this.inactive = inactive; + this.rewardsAmount = rewardsAmount; + this.totalStaked = totalStaked; + } + + public DelegationSummary active( + @jakarta.annotation.Nonnull List active) { this.active = active; return this; } @@ -72,11 +96,12 @@ public List getActive() { @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setActive(List active) { + public void setActive(@jakarta.annotation.Nonnull List active) { this.active = active; } - public DelegationSummary inactive(List inactive) { + public DelegationSummary inactive( + @jakarta.annotation.Nonnull List inactive) { this.inactive = inactive; return this; } @@ -104,11 +129,12 @@ public List getInactive() { @JsonProperty(JSON_PROPERTY_INACTIVE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInactive(List inactive) { + public void setInactive(@jakarta.annotation.Nonnull List inactive) { this.inactive = inactive; } - public DelegationSummary rewardsAmount(List rewardsAmount) { + public DelegationSummary rewardsAmount( + @jakarta.annotation.Nonnull List rewardsAmount) { this.rewardsAmount = rewardsAmount; return this; } @@ -136,11 +162,13 @@ public List getRewardsAmount() { @JsonProperty(JSON_PROPERTY_REWARDS_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRewardsAmount(List rewardsAmount) { + public void setRewardsAmount( + @jakarta.annotation.Nonnull List rewardsAmount) { this.rewardsAmount = rewardsAmount; } - public DelegationSummary totalStaked(List totalStaked) { + public DelegationSummary totalStaked( + @jakarta.annotation.Nonnull List totalStaked) { this.totalStaked = totalStaked; return this; } @@ -168,7 +196,8 @@ public List getTotalStaked() { @JsonProperty(JSON_PROPERTY_TOTAL_STAKED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalStaked(List totalStaked) { + public void setTotalStaked( + @jakarta.annotation.Nonnull List totalStaked) { this.totalStaked = totalStaked; } diff --git a/src/main/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponse.java b/src/main/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponse.java index 7744cd27..a28fc626 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** DeleteNetworkConnectionResponse */ @JsonPropertyOrder({DeleteNetworkConnectionResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DeleteNetworkConnectionResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public DeleteNetworkConnectionResponse() {} - public DeleteNetworkConnectionResponse success(Boolean success) { + @JsonCreator + public DeleteNetworkConnectionResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public DeleteNetworkConnectionResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -131,8 +139,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DeleteNetworkIdResponse.java b/src/main/java/com/fireblocks/sdk/model/DeleteNetworkIdResponse.java index 67ad6894..1d471dd3 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeleteNetworkIdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DeleteNetworkIdResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** DeleteNetworkIdResponse */ @JsonPropertyOrder({DeleteNetworkIdResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DeleteNetworkIdResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public DeleteNetworkIdResponse() {} - public DeleteNetworkIdResponse success(Boolean success) { + @JsonCreator + public DeleteNetworkIdResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public DeleteNetworkIdResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java b/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java index 703b1de5..e9b0faef 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -35,29 +34,33 @@ DeployLayerZeroAdaptersRequest.JSON_PROPERTY_FEE, DeployLayerZeroAdaptersRequest.JSON_PROPERTY_SALT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String 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"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; /** * Fee level for the write function transaction. interchangeable with the 'fee' field */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -87,17 +90,28 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_SALT = "salt"; - private String salt; + @jakarta.annotation.Nullable private String salt; public DeployLayerZeroAdaptersRequest() {} - public DeployLayerZeroAdaptersRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -116,12 +130,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } public DeployLayerZeroAdaptersRequest createParams( - List createParams) { + @jakarta.annotation.Nonnull List createParams) { this.createParams = createParams; return this; } @@ -149,11 +163,13 @@ public List getCreateParams() { @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreateParams(List createParams) { + public void setCreateParams( + @jakarta.annotation.Nonnull List createParams) { this.createParams = createParams; } - public DeployLayerZeroAdaptersRequest displayName(String displayName) { + public DeployLayerZeroAdaptersRequest displayName( + @jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -172,11 +188,12 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public DeployLayerZeroAdaptersRequest useGasless(Boolean useGasless) { + public DeployLayerZeroAdaptersRequest useGasless( + @jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -195,11 +212,12 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } - public DeployLayerZeroAdaptersRequest feeLevel(FeeLevelEnum feeLevel) { + public DeployLayerZeroAdaptersRequest feeLevel( + @jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -218,11 +236,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public DeployLayerZeroAdaptersRequest fee(String fee) { + public DeployLayerZeroAdaptersRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -242,11 +260,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public DeployLayerZeroAdaptersRequest salt(String salt) { + public DeployLayerZeroAdaptersRequest salt(@jakarta.annotation.Nullable String salt) { this.salt = salt; return this; } @@ -266,7 +284,7 @@ public String getSalt() { @JsonProperty(JSON_PROPERTY_SALT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSalt(String salt) { + public void setSalt(@jakarta.annotation.Nullable String salt) { this.salt = salt; } @@ -361,10 +379,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `createParams` to the URL query string @@ -397,10 +412,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `useGasless` to the URL query string @@ -410,9 +422,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } // add `feeLevel` to the URL query string @@ -422,8 +432,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `fee` to the URL query string @@ -433,8 +442,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `salt` to the URL query string @@ -444,8 +452,7 @@ public String toUrlQueryString(String prefix) { "%ssalt%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSalt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 57496ca2..63f90dc7 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String address; + @jakarta.annotation.Nonnull private String address; public DeployableAddressResponse() {} - public DeployableAddressResponse address(String address) { + @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; } @@ -49,7 +57,7 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 9c6967fd..a7bb5670 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ DeployedContractNotFoundError.JSON_PROPERTY_MESSAGE, DeployedContractNotFoundError.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public DeployedContractNotFoundError() {} - public DeployedContractNotFoundError message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public DeployedContractNotFoundError code(BigDecimal code) { + public DeployedContractNotFoundError code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 f4afd66a..b224b7a3 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -33,39 +33,56 @@ DeployedContractResponseDto.JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA, DeployedContractResponseDto.JSON_PROPERTY_SOLANA_CONFIG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DeployedContractResponseDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nonnull private String contractAddress; public static final String JSON_PROPERTY_CONTRACT_TEMPLATE_ID = "contractTemplateId"; - private String contractTemplateId; + @jakarta.annotation.Nonnull private String contractTemplateId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nullable private String vaultAccountId; public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - private String blockchainId; + @jakarta.annotation.Nonnull private String blockchainId; public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - private String baseAssetId; + @jakarta.annotation.Nullable private String baseAssetId; public static final String JSON_PROPERTY_GASLESS_CONFIG = "gaslessConfig"; - private GasslessStandardConfigurations gaslessConfig; + @jakarta.annotation.Nullable private GasslessStandardConfigurations gaslessConfig; public static final String JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA = "multichainDeploymentMetadata"; - private MultichainDeploymentMetadata multichainDeploymentMetadata; + @jakarta.annotation.Nullable private MultichainDeploymentMetadata multichainDeploymentMetadata; public static final String JSON_PROPERTY_SOLANA_CONFIG = "solanaConfig"; - private SolanaConfig solanaConfig; + @jakarta.annotation.Nullable private SolanaConfig solanaConfig; public DeployedContractResponseDto() {} - public DeployedContractResponseDto id(String id) { + @JsonCreator + public DeployedContractResponseDto( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_CONTRACT_ADDRESS, required = true) + String contractAddress, + @JsonProperty(value = JSON_PROPERTY_CONTRACT_TEMPLATE_ID, required = true) + String contractTemplateId, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_ID, required = true) + String blockchainId) { + this.id = id; + this.contractAddress = contractAddress; + this.contractTemplateId = contractTemplateId; + this.blockchainId = blockchainId; + } + + public DeployedContractResponseDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -84,11 +101,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public DeployedContractResponseDto contractAddress(String contractAddress) { + public DeployedContractResponseDto contractAddress( + @jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -107,11 +125,12 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; } - public DeployedContractResponseDto contractTemplateId(String contractTemplateId) { + public DeployedContractResponseDto contractTemplateId( + @jakarta.annotation.Nonnull String contractTemplateId) { this.contractTemplateId = contractTemplateId; return this; } @@ -130,11 +149,12 @@ public String getContractTemplateId() { @JsonProperty(JSON_PROPERTY_CONTRACT_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractTemplateId(String contractTemplateId) { + public void setContractTemplateId(@jakarta.annotation.Nonnull String contractTemplateId) { this.contractTemplateId = contractTemplateId; } - public DeployedContractResponseDto vaultAccountId(String vaultAccountId) { + public DeployedContractResponseDto vaultAccountId( + @jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -153,11 +173,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public DeployedContractResponseDto blockchainId(String blockchainId) { + public DeployedContractResponseDto blockchainId( + @jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; return this; } @@ -176,11 +197,12 @@ public String getBlockchainId() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainId(String blockchainId) { + public void setBlockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; } - public DeployedContractResponseDto baseAssetId(String baseAssetId) { + public DeployedContractResponseDto baseAssetId( + @jakarta.annotation.Nullable String baseAssetId) { this.baseAssetId = baseAssetId; return this; } @@ -199,11 +221,12 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nullable String baseAssetId) { this.baseAssetId = baseAssetId; } - public DeployedContractResponseDto gaslessConfig(GasslessStandardConfigurations gaslessConfig) { + public DeployedContractResponseDto gaslessConfig( + @jakarta.annotation.Nullable GasslessStandardConfigurations gaslessConfig) { this.gaslessConfig = gaslessConfig; return this; } @@ -222,12 +245,14 @@ public GasslessStandardConfigurations getGaslessConfig() { @JsonProperty(JSON_PROPERTY_GASLESS_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGaslessConfig(GasslessStandardConfigurations gaslessConfig) { + public void setGaslessConfig( + @jakarta.annotation.Nullable GasslessStandardConfigurations gaslessConfig) { this.gaslessConfig = gaslessConfig; } public DeployedContractResponseDto multichainDeploymentMetadata( - MultichainDeploymentMetadata multichainDeploymentMetadata) { + @jakarta.annotation.Nullable + MultichainDeploymentMetadata multichainDeploymentMetadata) { this.multichainDeploymentMetadata = multichainDeploymentMetadata; return this; } @@ -247,11 +272,13 @@ public MultichainDeploymentMetadata getMultichainDeploymentMetadata() { @JsonProperty(JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMultichainDeploymentMetadata( - MultichainDeploymentMetadata multichainDeploymentMetadata) { + @jakarta.annotation.Nullable + MultichainDeploymentMetadata multichainDeploymentMetadata) { this.multichainDeploymentMetadata = multichainDeploymentMetadata; } - public DeployedContractResponseDto solanaConfig(SolanaConfig solanaConfig) { + public DeployedContractResponseDto solanaConfig( + @jakarta.annotation.Nullable SolanaConfig solanaConfig) { this.solanaConfig = solanaConfig; return this; } @@ -270,7 +297,7 @@ public SolanaConfig getSolanaConfig() { @JsonProperty(JSON_PROPERTY_SOLANA_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSolanaConfig(SolanaConfig solanaConfig) { + public void setSolanaConfig(@jakarta.annotation.Nullable SolanaConfig solanaConfig) { this.solanaConfig = solanaConfig; } @@ -381,10 +408,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `contractAddress` to the URL query string @@ -394,10 +418,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `contractTemplateId` to the URL query string @@ -407,10 +428,7 @@ public String toUrlQueryString(String prefix) { "%scontractTemplateId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractTemplateId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractTemplateId())))); } // add `vaultAccountId` to the URL query string @@ -420,10 +438,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `blockchainId` to the URL query string @@ -433,10 +448,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } // add `baseAssetId` to the URL query string @@ -446,10 +458,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } // add `gaslessConfig` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java index bf66e7ec..52fb643b 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,29 @@ DeployedContractsPaginatedResponse.JSON_PROPERTY_DATA, DeployedContractsPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + 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<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public DeployedContractsPaginatedResponse() {} - public DeployedContractsPaginatedResponse data(List data) { + @JsonCreator + public DeployedContractsPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) + List data) { + this.data = data; + } + + public DeployedContractsPaginatedResponse data( + @jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -66,11 +78,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public DeployedContractsPaginatedResponse next(String next) { + public DeployedContractsPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -89,7 +101,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -196,8 +208,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponse.java b/src/main/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponse.java index 71bbf8f2..5fce8da5 100644 --- a/src/main/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** DepositFundsFromLinkedDDAResponse */ @JsonPropertyOrder({DepositFundsFromLinkedDDAResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DepositFundsFromLinkedDDAResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public DepositFundsFromLinkedDDAResponse() {} - public DepositFundsFromLinkedDDAResponse success(Boolean success) { + @JsonCreator + public DepositFundsFromLinkedDDAResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public DepositFundsFromLinkedDDAResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -131,8 +139,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java b/src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java new file mode 100644 index 00000000..cd868ae2 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java @@ -0,0 +1,207 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..f5cdecc6 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java @@ -0,0 +1,292 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/Destination.java b/src/main/java/com/fireblocks/sdk/model/Destination.java index ced9da15..2e492b41 100644 --- a/src/main/java/com/fireblocks/sdk/model/Destination.java +++ b/src/main/java/com/fireblocks/sdk/model/Destination.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = Destination.DestinationDeserializer.class) @JsonSerialize(using = Destination.DestinationSerializer.class) public class Destination extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/DestinationConfig.java b/src/main/java/com/fireblocks/sdk/model/DestinationConfig.java new file mode 100644 index 00000000..9e8830f5 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/DestinationConfig.java @@ -0,0 +1,464 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 fd7d46bc..af83c8f2 100644 --- a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java +++ b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -32,32 +32,40 @@ DestinationTransferPeerPath.JSON_PROPERTY_ONE_TIME_ADDRESS, DestinationTransferPeerPath.JSON_PROPERTY_IS_COLLATERAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DestinationTransferPeerPath { public static final String JSON_PROPERTY_TYPE = "type"; - private TransferPeerPathType type; + @jakarta.annotation.Nonnull private TransferPeerPathType type; public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - private TransferPeerPathSubType subType; + @jakarta.annotation.Nullable private TransferPeerPathSubType subType; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - private UUID walletId; + @jakarta.annotation.Nullable private UUID walletId; public static final String JSON_PROPERTY_ONE_TIME_ADDRESS = "oneTimeAddress"; - private OneTimeAddress oneTimeAddress; + @jakarta.annotation.Nullable private OneTimeAddress oneTimeAddress; public static final String JSON_PROPERTY_IS_COLLATERAL = "isCollateral"; - private Boolean isCollateral; + @jakarta.annotation.Nullable private Boolean isCollateral; public DestinationTransferPeerPath() {} - public DestinationTransferPeerPath type(TransferPeerPathType type) { + @JsonCreator + public DestinationTransferPeerPath( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferPeerPathType type) { + this.type = type; + } + + public DestinationTransferPeerPath type(@jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; return this; } @@ -76,11 +84,12 @@ public TransferPeerPathType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferPeerPathType type) { + public void setType(@jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; } - public DestinationTransferPeerPath subType(TransferPeerPathSubType subType) { + public DestinationTransferPeerPath subType( + @jakarta.annotation.Nullable TransferPeerPathSubType subType) { this.subType = subType; return this; } @@ -99,11 +108,11 @@ public TransferPeerPathSubType getSubType() { @JsonProperty(JSON_PROPERTY_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(TransferPeerPathSubType subType) { + public void setSubType(@jakarta.annotation.Nullable TransferPeerPathSubType subType) { this.subType = subType; } - public DestinationTransferPeerPath id(String id) { + public DestinationTransferPeerPath id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -122,11 +131,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public DestinationTransferPeerPath name(String name) { + public DestinationTransferPeerPath name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -145,11 +154,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public DestinationTransferPeerPath walletId(UUID walletId) { + public DestinationTransferPeerPath walletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; return this; } @@ -168,11 +177,12 @@ public UUID getWalletId() { @JsonProperty(JSON_PROPERTY_WALLET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletId(UUID walletId) { + public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public DestinationTransferPeerPath oneTimeAddress(OneTimeAddress oneTimeAddress) { + public DestinationTransferPeerPath oneTimeAddress( + @jakarta.annotation.Nullable OneTimeAddress oneTimeAddress) { this.oneTimeAddress = oneTimeAddress; return this; } @@ -191,11 +201,12 @@ public OneTimeAddress getOneTimeAddress() { @JsonProperty(JSON_PROPERTY_ONE_TIME_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOneTimeAddress(OneTimeAddress oneTimeAddress) { + public void setOneTimeAddress(@jakarta.annotation.Nullable OneTimeAddress oneTimeAddress) { this.oneTimeAddress = oneTimeAddress; } - public DestinationTransferPeerPath isCollateral(Boolean isCollateral) { + public DestinationTransferPeerPath isCollateral( + @jakarta.annotation.Nullable Boolean isCollateral) { this.isCollateral = isCollateral; return this; } @@ -214,7 +225,7 @@ public Boolean getIsCollateral() { @JsonProperty(JSON_PROPERTY_IS_COLLATERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsCollateral(Boolean isCollateral) { + public void setIsCollateral(@jakarta.annotation.Nullable Boolean isCollateral) { this.isCollateral = isCollateral; } @@ -307,8 +318,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `subType` to the URL query string @@ -318,8 +328,7 @@ public String toUrlQueryString(String prefix) { "%ssubType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSubType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); } // add `id` to the URL query string @@ -327,10 +336,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -340,8 +346,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `walletId` to the URL query string @@ -351,8 +356,7 @@ public String toUrlQueryString(String prefix) { "%swalletId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } // add `oneTimeAddress` to the URL query string @@ -367,10 +371,7 @@ public String toUrlQueryString(String prefix) { "%sisCollateral%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsCollateral()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 d8db5c26..1b272d30 100644 --- a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -34,29 +34,38 @@ DestinationTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID, DestinationTransferPeerPathResponse.JSON_PROPERTY_TRADING_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DestinationTransferPeerPathResponse { public static final String JSON_PROPERTY_TYPE = "type"; - private TransferPeerPathType type; + @jakarta.annotation.Nonnull private TransferPeerPathType type; public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - private String subType; + @jakarta.annotation.Nullable private String subType; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - private UUID walletId; + @jakarta.annotation.Nullable private UUID walletId; public static final String JSON_PROPERTY_TRADING_ACCOUNT = "tradingAccount"; - private String tradingAccount; + @jakarta.annotation.Nullable private String tradingAccount; public DestinationTransferPeerPathResponse() {} - public DestinationTransferPeerPathResponse type(TransferPeerPathType type) { + @JsonCreator + public DestinationTransferPeerPathResponse( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferPeerPathType type) { + this.type = type; + } + + public DestinationTransferPeerPathResponse type( + @jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; return this; } @@ -75,11 +84,12 @@ public TransferPeerPathType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferPeerPathType type) { + public void setType(@jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; } - public DestinationTransferPeerPathResponse subType(String subType) { + public DestinationTransferPeerPathResponse subType( + @jakarta.annotation.Nullable String subType) { this.subType = subType; return this; } @@ -101,11 +111,11 @@ public String getSubType() { @JsonProperty(JSON_PROPERTY_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(String subType) { + public void setSubType(@jakarta.annotation.Nullable String subType) { this.subType = subType; } - public DestinationTransferPeerPathResponse id(String id) { + public DestinationTransferPeerPathResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -132,11 +142,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public DestinationTransferPeerPathResponse name(String name) { + public DestinationTransferPeerPathResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -155,11 +165,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public DestinationTransferPeerPathResponse walletId(UUID walletId) { + public DestinationTransferPeerPathResponse walletId( + @jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; return this; } @@ -178,11 +189,12 @@ public UUID getWalletId() { @JsonProperty(JSON_PROPERTY_WALLET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletId(UUID walletId) { + public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public DestinationTransferPeerPathResponse tradingAccount(String tradingAccount) { + public DestinationTransferPeerPathResponse tradingAccount( + @jakarta.annotation.Nullable String tradingAccount) { this.tradingAccount = tradingAccount; return this; } @@ -202,7 +214,7 @@ public String getTradingAccount() { @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTradingAccount(String tradingAccount) { + public void setTradingAccount(@jakarta.annotation.Nullable String tradingAccount) { this.tradingAccount = tradingAccount; } @@ -295,8 +307,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `subType` to the URL query string @@ -306,8 +317,7 @@ public String toUrlQueryString(String prefix) { "%ssubType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSubType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); } // add `id` to the URL query string @@ -315,10 +325,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -328,8 +335,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `walletId` to the URL query string @@ -339,8 +345,7 @@ public String toUrlQueryString(String prefix) { "%swalletId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } // add `tradingAccount` to the URL query string @@ -350,10 +355,7 @@ public String toUrlQueryString(String prefix) { "%stradingAccount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTradingAccount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTradingAccount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementAmountInstruction.java b/src/main/java/com/fireblocks/sdk/model/DisbursementAmountInstruction.java index 67dc6d35..432e43b5 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementAmountInstruction.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementAmountInstruction.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,34 @@ DisbursementAmountInstruction.JSON_PROPERTY_ASSET_ID, DisbursementAmountInstruction.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementAmountInstruction { public static final String JSON_PROPERTY_PAYEE_ACCOUNT = "payeeAccount"; - private Destination payeeAccount; + @jakarta.annotation.Nonnull private Destination payeeAccount; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public DisbursementAmountInstruction() {} - public DisbursementAmountInstruction payeeAccount(Destination payeeAccount) { + @JsonCreator + public DisbursementAmountInstruction( + @JsonProperty(value = JSON_PROPERTY_PAYEE_ACCOUNT, required = true) + Destination payeeAccount, + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { + this.payeeAccount = payeeAccount; + this.assetId = assetId; + this.amount = amount; + } + + public DisbursementAmountInstruction payeeAccount( + @jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; return this; } @@ -59,11 +73,11 @@ public Destination getPayeeAccount() { @JsonProperty(JSON_PROPERTY_PAYEE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayeeAccount(Destination payeeAccount) { + public void setPayeeAccount(@jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; } - public DisbursementAmountInstruction assetId(String assetId) { + public DisbursementAmountInstruction assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -82,11 +96,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public DisbursementAmountInstruction amount(String amount) { + public DisbursementAmountInstruction amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -105,7 +119,7 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } @@ -196,8 +210,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `amount` to the URL query string @@ -207,8 +220,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementConfigOperation.java b/src/main/java/com/fireblocks/sdk/model/DisbursementConfigOperation.java index 8cb78d22..3467f6a3 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementConfigOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementConfigOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,43 @@ DisbursementConfigOperation.JSON_PROPERTY_STATUS, DisbursementConfigOperation.JSON_PROPERTY_VALIDATION_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementConfigOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_TYPE = "type"; - private DisbursementOperationType type; + @jakarta.annotation.Nonnull private DisbursementOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private DisbursementOperationConfigParams params; + @jakarta.annotation.Nonnull private DisbursementOperationConfigParams params; public static final String JSON_PROPERTY_STATUS = "status"; - private ConfigOperationStatus status; + @jakarta.annotation.Nonnull private ConfigOperationStatus status; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private DisbursementValidationFailure validationFailure; + @jakarta.annotation.Nullable private DisbursementValidationFailure validationFailure; public DisbursementConfigOperation() {} - public DisbursementConfigOperation operationId(String operationId) { + @JsonCreator + public DisbursementConfigOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) + DisbursementOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + DisbursementOperationConfigParams params, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ConfigOperationStatus status) { + this.operationId = operationId; + this.type = type; + this.params = params; + this.status = status; + } + + public DisbursementConfigOperation operationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -67,11 +84,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public DisbursementConfigOperation type(DisbursementOperationType type) { + public DisbursementConfigOperation type( + @jakarta.annotation.Nonnull DisbursementOperationType type) { this.type = type; return this; } @@ -90,11 +108,12 @@ public DisbursementOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(DisbursementOperationType type) { + public void setType(@jakarta.annotation.Nonnull DisbursementOperationType type) { this.type = type; } - public DisbursementConfigOperation params(DisbursementOperationConfigParams params) { + public DisbursementConfigOperation params( + @jakarta.annotation.Nonnull DisbursementOperationConfigParams params) { this.params = params; return this; } @@ -113,11 +132,12 @@ public DisbursementOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(DisbursementOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull DisbursementOperationConfigParams params) { this.params = params; } - public DisbursementConfigOperation status(ConfigOperationStatus status) { + public DisbursementConfigOperation status( + @jakarta.annotation.Nonnull ConfigOperationStatus status) { this.status = status; return this; } @@ -136,12 +156,12 @@ public ConfigOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ConfigOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ConfigOperationStatus status) { this.status = status; } public DisbursementConfigOperation validationFailure( - DisbursementValidationFailure validationFailure) { + @jakarta.annotation.Nullable DisbursementValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -160,7 +180,8 @@ public DisbursementValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(DisbursementValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable DisbursementValidationFailure validationFailure) { this.validationFailure = validationFailure; } @@ -252,10 +273,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `type` to the URL query string @@ -265,8 +283,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string @@ -281,8 +298,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `validationFailure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementInstruction.java b/src/main/java/com/fireblocks/sdk/model/DisbursementInstruction.java index 12b7d03f..a68d4217 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementInstruction.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementInstruction.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = DisbursementInstruction.DisbursementInstructionDeserializer.class) @JsonSerialize(using = DisbursementInstruction.DisbursementInstructionSerializer.class) public class DisbursementInstruction extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementInstructionOutput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementInstructionOutput.java index a7d5ac14..ea6a941e 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementInstructionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementInstructionOutput.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; @@ -25,20 +26,33 @@ DisbursementInstructionOutput.JSON_PROPERTY_FEE, DisbursementInstructionOutput.JSON_PROPERTY_PAYEE_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementInstructionOutput { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private AssetAmount amount; + @jakarta.annotation.Nonnull private AssetAmount amount; public static final String JSON_PROPERTY_FEE = "fee"; - private AssetAmount fee; + @jakarta.annotation.Nonnull private AssetAmount fee; public static final String JSON_PROPERTY_PAYEE_ACCOUNT = "payeeAccount"; - private Destination payeeAccount; + @jakarta.annotation.Nonnull private Destination payeeAccount; public DisbursementInstructionOutput() {} - public DisbursementInstructionOutput amount(AssetAmount amount) { + @JsonCreator + public DisbursementInstructionOutput( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) AssetAmount amount, + @JsonProperty(value = JSON_PROPERTY_FEE, required = true) AssetAmount fee, + @JsonProperty(value = JSON_PROPERTY_PAYEE_ACCOUNT, required = true) + Destination payeeAccount) { + this.amount = amount; + this.fee = fee; + this.payeeAccount = payeeAccount; + } + + public DisbursementInstructionOutput amount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; return this; } @@ -57,11 +71,11 @@ public AssetAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(AssetAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; } - public DisbursementInstructionOutput fee(AssetAmount fee) { + public DisbursementInstructionOutput fee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; return this; } @@ -80,11 +94,12 @@ public AssetAmount getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFee(AssetAmount fee) { + public void setFee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; } - public DisbursementInstructionOutput payeeAccount(Destination payeeAccount) { + public DisbursementInstructionOutput payeeAccount( + @jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; return this; } @@ -103,7 +118,7 @@ public Destination getPayeeAccount() { @JsonProperty(JSON_PROPERTY_PAYEE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayeeAccount(Destination payeeAccount) { + public void setPayeeAccount(@jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; } diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java index 35defc80..d4281ba1 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.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; @@ -26,17 +27,29 @@ DisbursementOperationConfigParams.JSON_PROPERTY_PAYMENT_ACCOUNT, DisbursementOperationConfigParams.JSON_PROPERTY_INSTRUCTION_SET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationConfigParams { public static final String JSON_PROPERTY_PAYMENT_ACCOUNT = "paymentAccount"; - private Account paymentAccount; + @jakarta.annotation.Nullable private Account paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; + + @jakarta.annotation.Nonnull private List instructionSet = new ArrayList<>(); public DisbursementOperationConfigParams() {} - public DisbursementOperationConfigParams paymentAccount(Account paymentAccount) { + @JsonCreator + public DisbursementOperationConfigParams( + @JsonProperty(value = JSON_PROPERTY_INSTRUCTION_SET, required = true) + List instructionSet) { + this.instructionSet = instructionSet; + } + + public DisbursementOperationConfigParams paymentAccount( + @jakarta.annotation.Nullable Account paymentAccount) { this.paymentAccount = paymentAccount; return this; } @@ -55,12 +68,12 @@ public Account getPaymentAccount() { @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaymentAccount(Account paymentAccount) { + public void setPaymentAccount(@jakarta.annotation.Nullable Account paymentAccount) { this.paymentAccount = paymentAccount; } public DisbursementOperationConfigParams instructionSet( - List instructionSet) { + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -88,7 +101,8 @@ public List getInstructionSet() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInstructionSet(List instructionSet) { + public void setInstructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; } diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecution.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecution.java index f4afb91a..ed25bf7e 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecution.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecution.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,29 +31,41 @@ DisbursementOperationExecution.JSON_PROPERTY_FINISHED_AT, DisbursementOperationExecution.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationExecution { public static final String JSON_PROPERTY_INPUT = "input"; - private DisbursementOperationInput input; + @jakarta.annotation.Nonnull private DisbursementOperationInput input; public static final String JSON_PROPERTY_OUTPUT = "output"; - private DisbursementOperationExecutionOutput output; + @jakarta.annotation.Nullable private DisbursementOperationExecutionOutput output; public static final String JSON_PROPERTY_PAYOUT_ID = "payoutId"; - private String payoutId; + @jakarta.annotation.Nullable private String payoutId; public static final String JSON_PROPERTY_STARTED_AT = "startedAt"; - private BigDecimal startedAt; + @jakarta.annotation.Nonnull private BigDecimal startedAt; public static final String JSON_PROPERTY_FINISHED_AT = "finishedAt"; - private BigDecimal finishedAt; + @jakarta.annotation.Nullable private BigDecimal finishedAt; public static final String JSON_PROPERTY_FAILURE = "failure"; - private OperationExecutionFailure failure; + @jakarta.annotation.Nullable private OperationExecutionFailure failure; public DisbursementOperationExecution() {} - public DisbursementOperationExecution input(DisbursementOperationInput input) { + @JsonCreator + public DisbursementOperationExecution( + @JsonProperty(value = JSON_PROPERTY_INPUT, required = true) + DisbursementOperationInput input, + @JsonProperty(value = JSON_PROPERTY_STARTED_AT, required = true) BigDecimal startedAt) { + this.input = input; + this.startedAt = startedAt; + } + + public DisbursementOperationExecution input( + @jakarta.annotation.Nonnull DisbursementOperationInput input) { this.input = input; return this; } @@ -72,11 +84,12 @@ public DisbursementOperationInput getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInput(DisbursementOperationInput input) { + public void setInput(@jakarta.annotation.Nonnull DisbursementOperationInput input) { this.input = input; } - public DisbursementOperationExecution output(DisbursementOperationExecutionOutput output) { + public DisbursementOperationExecution output( + @jakarta.annotation.Nullable DisbursementOperationExecutionOutput output) { this.output = output; return this; } @@ -95,11 +108,12 @@ public DisbursementOperationExecutionOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(DisbursementOperationExecutionOutput output) { + public void setOutput( + @jakarta.annotation.Nullable DisbursementOperationExecutionOutput output) { this.output = output; } - public DisbursementOperationExecution payoutId(String payoutId) { + public DisbursementOperationExecution payoutId(@jakarta.annotation.Nullable String payoutId) { this.payoutId = payoutId; return this; } @@ -118,11 +132,12 @@ public String getPayoutId() { @JsonProperty(JSON_PROPERTY_PAYOUT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPayoutId(String payoutId) { + public void setPayoutId(@jakarta.annotation.Nullable String payoutId) { this.payoutId = payoutId; } - public DisbursementOperationExecution startedAt(BigDecimal startedAt) { + public DisbursementOperationExecution startedAt( + @jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; return this; } @@ -141,11 +156,12 @@ public BigDecimal getStartedAt() { @JsonProperty(JSON_PROPERTY_STARTED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStartedAt(BigDecimal startedAt) { + public void setStartedAt(@jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; } - public DisbursementOperationExecution finishedAt(BigDecimal finishedAt) { + public DisbursementOperationExecution finishedAt( + @jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; return this; } @@ -164,11 +180,12 @@ public BigDecimal getFinishedAt() { @JsonProperty(JSON_PROPERTY_FINISHED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinishedAt(BigDecimal finishedAt) { + public void setFinishedAt(@jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; } - public DisbursementOperationExecution failure(OperationExecutionFailure failure) { + public DisbursementOperationExecution failure( + @jakarta.annotation.Nullable OperationExecutionFailure failure) { this.failure = failure; return this; } @@ -187,7 +204,7 @@ public OperationExecutionFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(OperationExecutionFailure failure) { + public void setFailure(@jakarta.annotation.Nullable OperationExecutionFailure failure) { this.failure = failure; } @@ -289,8 +306,7 @@ public String toUrlQueryString(String prefix) { "%spayoutId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPayoutId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPayoutId())))); } // add `startedAt` to the URL query string @@ -300,9 +316,7 @@ public String toUrlQueryString(String prefix) { "%sstartedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStartedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStartedAt())))); } // add `finishedAt` to the URL query string @@ -312,9 +326,7 @@ public String toUrlQueryString(String prefix) { "%sfinishedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFinishedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFinishedAt())))); } // add `failure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java index e05974c1..936af94a 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.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; @@ -23,15 +24,26 @@ /** DisbursementOperationExecutionOutput */ @JsonPropertyOrder({DisbursementOperationExecutionOutput.JSON_PROPERTY_INSTRUCTION_SET}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + 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<>(); public DisbursementOperationExecutionOutput() {} + @JsonCreator + public DisbursementOperationExecutionOutput( + @JsonProperty(value = JSON_PROPERTY_INSTRUCTION_SET, required = true) + List instructionSet) { + this.instructionSet = instructionSet; + } + public DisbursementOperationExecutionOutput instructionSet( - List instructionSet) { + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -59,7 +71,8 @@ public List getInstructionSet() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInstructionSet(List instructionSet) { + public void setInstructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; } diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParams.java index b25c908b..7ed6a4ef 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,29 @@ DisbursementOperationExecutionParams.JSON_PROPERTY_CONFIG_OPERATION_ID, DisbursementOperationExecutionParams.JSON_PROPERTY_EXECUTION_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationExecutionParams { public static final String JSON_PROPERTY_CONFIG_OPERATION_ID = "configOperationId"; - private String configOperationId; + @jakarta.annotation.Nonnull private String configOperationId; public static final String JSON_PROPERTY_EXECUTION_PARAMS = "executionParams"; + + @jakarta.annotation.Nullable private DisbursementOperationExecutionParamsExecutionParams executionParams; public DisbursementOperationExecutionParams() {} - public DisbursementOperationExecutionParams configOperationId(String configOperationId) { + @JsonCreator + public DisbursementOperationExecutionParams( + @JsonProperty(value = JSON_PROPERTY_CONFIG_OPERATION_ID, required = true) + String configOperationId) { + this.configOperationId = configOperationId; + } + + public DisbursementOperationExecutionParams configOperationId( + @jakarta.annotation.Nonnull String configOperationId) { this.configOperationId = configOperationId; return this; } @@ -55,12 +67,13 @@ public String getConfigOperationId() { @JsonProperty(JSON_PROPERTY_CONFIG_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfigOperationId(String configOperationId) { + public void setConfigOperationId(@jakarta.annotation.Nonnull String configOperationId) { this.configOperationId = configOperationId; } public DisbursementOperationExecutionParams executionParams( - DisbursementOperationExecutionParamsExecutionParams executionParams) { + @jakarta.annotation.Nullable + DisbursementOperationExecutionParamsExecutionParams executionParams) { this.executionParams = executionParams; return this; } @@ -80,7 +93,8 @@ public DisbursementOperationExecutionParamsExecutionParams getExecutionParams() @JsonProperty(JSON_PROPERTY_EXECUTION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExecutionParams( - DisbursementOperationExecutionParamsExecutionParams executionParams) { + @jakarta.annotation.Nullable + DisbursementOperationExecutionParamsExecutionParams executionParams) { this.executionParams = executionParams; } @@ -169,10 +183,7 @@ public String toUrlQueryString(String prefix) { "%sconfigOperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfigOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConfigOperationId())))); } // add `executionParams` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java index dc7ca821..12e35f29 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +28,25 @@ DisbursementOperationExecutionParamsExecutionParams.JSON_PROPERTY_PAYMENT_ACCOUNT, DisbursementOperationExecutionParamsExecutionParams.JSON_PROPERTY_INSTRUCTION_SET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationExecutionParamsExecutionParams { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_PAYMENT_ACCOUNT = "paymentAccount"; - private Account paymentAccount; + @jakarta.annotation.Nullable private Account paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - private List instructionSet; + + @jakarta.annotation.Nullable + private List instructionSet = new ArrayList<>(); public DisbursementOperationExecutionParamsExecutionParams() {} - public DisbursementOperationExecutionParamsExecutionParams amount(String amount) { + public DisbursementOperationExecutionParamsExecutionParams amount( + @jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -61,12 +65,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } public DisbursementOperationExecutionParamsExecutionParams paymentAccount( - Account paymentAccount) { + @jakarta.annotation.Nullable Account paymentAccount) { this.paymentAccount = paymentAccount; return this; } @@ -85,12 +89,12 @@ public Account getPaymentAccount() { @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaymentAccount(Account paymentAccount) { + public void setPaymentAccount(@jakarta.annotation.Nullable Account paymentAccount) { this.paymentAccount = paymentAccount; } public DisbursementOperationExecutionParamsExecutionParams instructionSet( - List instructionSet) { + @jakarta.annotation.Nullable List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -118,7 +122,8 @@ public List getInstructionSet() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstructionSet(List instructionSet) { + public void setInstructionSet( + @jakarta.annotation.Nullable List instructionSet) { this.instructionSet = instructionSet; } @@ -213,8 +218,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `paymentAccount` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java index ff0dce0d..0a539bfc 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,34 @@ DisbursementOperationInput.JSON_PROPERTY_PAYMENT_ACCOUNT, DisbursementOperationInput.JSON_PROPERTY_INSTRUCTION_SET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationInput { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_PAYMENT_ACCOUNT = "paymentAccount"; - private Account paymentAccount; + @jakarta.annotation.Nonnull private Account paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; + + @jakarta.annotation.Nonnull private List instructionSet = new ArrayList<>(); public DisbursementOperationInput() {} - public DisbursementOperationInput amount(String amount) { + @JsonCreator + public DisbursementOperationInput( + @JsonProperty(value = JSON_PROPERTY_PAYMENT_ACCOUNT, required = true) + Account paymentAccount, + @JsonProperty(value = JSON_PROPERTY_INSTRUCTION_SET, required = true) + List instructionSet) { + this.paymentAccount = paymentAccount; + this.instructionSet = instructionSet; + } + + public DisbursementOperationInput amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -61,11 +75,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public DisbursementOperationInput paymentAccount(Account paymentAccount) { + public DisbursementOperationInput paymentAccount( + @jakarta.annotation.Nonnull Account paymentAccount) { this.paymentAccount = paymentAccount; return this; } @@ -84,11 +99,12 @@ public Account getPaymentAccount() { @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPaymentAccount(Account paymentAccount) { + public void setPaymentAccount(@jakarta.annotation.Nonnull Account paymentAccount) { this.paymentAccount = paymentAccount; } - public DisbursementOperationInput instructionSet(List instructionSet) { + public DisbursementOperationInput instructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -116,7 +132,8 @@ public List getInstructionSet() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInstructionSet(List instructionSet) { + public void setInstructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; } @@ -201,8 +218,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `paymentAccount` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreview.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreview.java index 662a0d64..fb37d529 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreview.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreview.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; @@ -25,20 +26,30 @@ DisbursementOperationPreview.JSON_PROPERTY_OUTPUT, DisbursementOperationPreview.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationPreview { public static final String JSON_PROPERTY_INPUT = "input"; - private DisbursementOperationInput input; + @jakarta.annotation.Nonnull private DisbursementOperationInput input; public static final String JSON_PROPERTY_OUTPUT = "output"; - private DisbursementOperationPreviewOutput output; + @jakarta.annotation.Nullable private DisbursementOperationPreviewOutput output; public static final String JSON_PROPERTY_FAILURE = "failure"; - private OperationExecutionFailure failure; + @jakarta.annotation.Nullable private OperationExecutionFailure failure; public DisbursementOperationPreview() {} - public DisbursementOperationPreview input(DisbursementOperationInput input) { + @JsonCreator + public DisbursementOperationPreview( + @JsonProperty(value = JSON_PROPERTY_INPUT, required = true) + DisbursementOperationInput input) { + this.input = input; + } + + public DisbursementOperationPreview input( + @jakarta.annotation.Nonnull DisbursementOperationInput input) { this.input = input; return this; } @@ -57,11 +68,12 @@ public DisbursementOperationInput getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInput(DisbursementOperationInput input) { + public void setInput(@jakarta.annotation.Nonnull DisbursementOperationInput input) { this.input = input; } - public DisbursementOperationPreview output(DisbursementOperationPreviewOutput output) { + public DisbursementOperationPreview output( + @jakarta.annotation.Nullable DisbursementOperationPreviewOutput output) { this.output = output; return this; } @@ -80,11 +92,12 @@ public DisbursementOperationPreviewOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(DisbursementOperationPreviewOutput output) { + public void setOutput(@jakarta.annotation.Nullable DisbursementOperationPreviewOutput output) { this.output = output; } - public DisbursementOperationPreview failure(OperationExecutionFailure failure) { + public DisbursementOperationPreview failure( + @jakarta.annotation.Nullable OperationExecutionFailure failure) { this.failure = failure; return this; } @@ -103,7 +116,7 @@ public OperationExecutionFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(OperationExecutionFailure failure) { + public void setFailure(@jakarta.annotation.Nullable OperationExecutionFailure failure) { this.failure = failure; } diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java index 891a7dd9..7ba1d36a 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.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; @@ -23,16 +24,28 @@ /** DisbursementOperationPreviewOutput */ @JsonPropertyOrder({DisbursementOperationPreviewOutput.JSON_PROPERTY_INSTRUCTION_SET}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationPreviewOutput { public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; + + @jakarta.annotation.Nonnull private List instructionSet = new ArrayList<>(); public DisbursementOperationPreviewOutput() {} + @JsonCreator + public DisbursementOperationPreviewOutput( + @JsonProperty(value = JSON_PROPERTY_INSTRUCTION_SET, required = true) + List instructionSet) { + this.instructionSet = instructionSet; + } + public DisbursementOperationPreviewOutput instructionSet( - List instructionSet) { + @jakarta.annotation.Nonnull + List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -61,7 +74,8 @@ public List getInstructio @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setInstructionSet( - List instructionSet) { + @jakarta.annotation.Nonnull + List instructionSet) { this.instructionSet = instructionSet; } diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInner.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInner.java index 67f1a220..aa166cd8 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInner.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInner.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -29,23 +29,40 @@ DisbursementOperationPreviewOutputInstructionSetInner.JSON_PROPERTY_PAYEE_ACCOUNT, DisbursementOperationPreviewOutputInstructionSetInner.JSON_PROPERTY_TIME_SECONDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementOperationPreviewOutputInstructionSetInner { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private AssetAmount amount; + @jakarta.annotation.Nonnull private AssetAmount amount; public static final String JSON_PROPERTY_FEE = "fee"; - private AssetAmount fee; + @jakarta.annotation.Nonnull private AssetAmount fee; public static final String JSON_PROPERTY_PAYEE_ACCOUNT = "payeeAccount"; - private Destination payeeAccount; + @jakarta.annotation.Nonnull private Destination payeeAccount; public static final String JSON_PROPERTY_TIME_SECONDS = "timeSeconds"; - private BigDecimal timeSeconds; + @jakarta.annotation.Nonnull private BigDecimal timeSeconds; public DisbursementOperationPreviewOutputInstructionSetInner() {} - public DisbursementOperationPreviewOutputInstructionSetInner amount(AssetAmount amount) { + @JsonCreator + public DisbursementOperationPreviewOutputInstructionSetInner( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) AssetAmount amount, + @JsonProperty(value = JSON_PROPERTY_FEE, required = true) AssetAmount fee, + @JsonProperty(value = JSON_PROPERTY_PAYEE_ACCOUNT, required = true) + Destination payeeAccount, + @JsonProperty(value = JSON_PROPERTY_TIME_SECONDS, required = true) + BigDecimal timeSeconds) { + this.amount = amount; + this.fee = fee; + this.payeeAccount = payeeAccount; + this.timeSeconds = timeSeconds; + } + + public DisbursementOperationPreviewOutputInstructionSetInner amount( + @jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; return this; } @@ -64,11 +81,12 @@ public AssetAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(AssetAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; } - public DisbursementOperationPreviewOutputInstructionSetInner fee(AssetAmount fee) { + public DisbursementOperationPreviewOutputInstructionSetInner fee( + @jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; return this; } @@ -87,12 +105,12 @@ public AssetAmount getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFee(AssetAmount fee) { + public void setFee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; } public DisbursementOperationPreviewOutputInstructionSetInner payeeAccount( - Destination payeeAccount) { + @jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; return this; } @@ -111,12 +129,12 @@ public Destination getPayeeAccount() { @JsonProperty(JSON_PROPERTY_PAYEE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayeeAccount(Destination payeeAccount) { + public void setPayeeAccount(@jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; } public DisbursementOperationPreviewOutputInstructionSetInner timeSeconds( - BigDecimal timeSeconds) { + @jakarta.annotation.Nonnull BigDecimal timeSeconds) { this.timeSeconds = timeSeconds; return this; } @@ -135,7 +153,7 @@ public BigDecimal getTimeSeconds() { @JsonProperty(JSON_PROPERTY_TIME_SECONDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimeSeconds(BigDecimal timeSeconds) { + public void setTimeSeconds(@jakarta.annotation.Nonnull BigDecimal timeSeconds) { this.timeSeconds = timeSeconds; } @@ -248,10 +266,7 @@ public String toUrlQueryString(String prefix) { "%stimeSeconds%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimeSeconds()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimeSeconds())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementPercentageInstruction.java b/src/main/java/com/fireblocks/sdk/model/DisbursementPercentageInstruction.java index 92e13f63..a2523eaa 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementPercentageInstruction.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementPercentageInstruction.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,34 @@ DisbursementPercentageInstruction.JSON_PROPERTY_ASSET_ID, DisbursementPercentageInstruction.JSON_PROPERTY_PERCENTAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementPercentageInstruction { public static final String JSON_PROPERTY_PAYEE_ACCOUNT = "payeeAccount"; - private Destination payeeAccount; + @jakarta.annotation.Nonnull private Destination payeeAccount; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_PERCENTAGE = "percentage"; - private String percentage; + @jakarta.annotation.Nonnull private String percentage; public DisbursementPercentageInstruction() {} - public DisbursementPercentageInstruction payeeAccount(Destination payeeAccount) { + @JsonCreator + public DisbursementPercentageInstruction( + @JsonProperty(value = JSON_PROPERTY_PAYEE_ACCOUNT, required = true) + Destination payeeAccount, + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, + @JsonProperty(value = JSON_PROPERTY_PERCENTAGE, required = true) String percentage) { + this.payeeAccount = payeeAccount; + this.assetId = assetId; + this.percentage = percentage; + } + + public DisbursementPercentageInstruction payeeAccount( + @jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; return this; } @@ -59,11 +73,11 @@ public Destination getPayeeAccount() { @JsonProperty(JSON_PROPERTY_PAYEE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayeeAccount(Destination payeeAccount) { + public void setPayeeAccount(@jakarta.annotation.Nonnull Destination payeeAccount) { this.payeeAccount = payeeAccount; } - public DisbursementPercentageInstruction assetId(String assetId) { + public DisbursementPercentageInstruction assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -82,11 +96,12 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public DisbursementPercentageInstruction percentage(String percentage) { + public DisbursementPercentageInstruction percentage( + @jakarta.annotation.Nonnull String percentage) { this.percentage = percentage; return this; } @@ -105,7 +120,7 @@ public String getPercentage() { @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPercentage(String percentage) { + public void setPercentage(@jakarta.annotation.Nonnull String percentage) { this.percentage = percentage; } @@ -196,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `percentage` to the URL query string @@ -207,9 +221,7 @@ public String toUrlQueryString(String prefix) { "%spercentage%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPercentage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPercentage())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java index b9130253..c7a8a18d 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -30,39 +29,44 @@ DisbursementValidationFailure.JSON_PROPERTY_REASON, DisbursementValidationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DisbursementValidationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - ACCOUNT_NOT_FOUND("ACCOUNT_NOT_FOUND"), + ACCOUNT_NOT_FOUND(String.valueOf("ACCOUNT_NOT_FOUND")), - ACCOUNT_TYPE_NOT_SUPPORTED("ACCOUNT_TYPE_NOT_SUPPORTED"), + ACCOUNT_TYPE_NOT_SUPPORTED(String.valueOf("ACCOUNT_TYPE_NOT_SUPPORTED")), - INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"), + INSUFFICIENT_BALANCE(String.valueOf("INSUFFICIENT_BALANCE")), - ASSET_NOT_FOUND("ASSET_NOT_FOUND"), + ASSET_NOT_FOUND(String.valueOf("ASSET_NOT_FOUND")), - ASSETS_CONTINUITY_MISMATCH("ASSETS_CONTINUITY_MISMATCH"), + ASSETS_CONTINUITY_MISMATCH(String.valueOf("ASSETS_CONTINUITY_MISMATCH")), - EXCHANGE_BASKETS_MISMATCH("EXCHANGE_BASKETS_MISMATCH"), + EXCHANGE_BASKETS_MISMATCH(String.valueOf("EXCHANGE_BASKETS_MISMATCH")), - ACCOUNTS_CONTINUITY_MISMATCH("ACCOUNTS_CONTINUITY_MISMATCH"), + ACCOUNTS_CONTINUITY_MISMATCH(String.valueOf("ACCOUNTS_CONTINUITY_MISMATCH")), - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED("ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED"), + ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED( + String.valueOf("ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED")), - EQUAL_ACCOUNTS_NOT_ALLOWED("EQUAL_ACCOUNTS_NOT_ALLOWED"), + EQUAL_ACCOUNTS_NOT_ALLOWED(String.valueOf("EQUAL_ACCOUNTS_NOT_ALLOWED")), - EQUAL_ASSETS_NOT_ALLOWED("EQUAL_ASSETS_NOT_ALLOWED"), + EQUAL_ASSETS_NOT_ALLOWED(String.valueOf("EQUAL_ASSETS_NOT_ALLOWED")), - INVALID_AMOUNT("INVALID_AMOUNT"), + INVALID_AMOUNT(String.valueOf("INVALID_AMOUNT")), - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED("UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED"), + UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED( + String.valueOf("UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED")), - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA("MANAGED_OPERATION_PARAMS_INVALID_SCHEMA"), + MANAGED_OPERATION_PARAMS_INVALID_SCHEMA( + String.valueOf("MANAGED_OPERATION_PARAMS_INVALID_SCHEMA")), - INSTRUCTIONS_EXCEED_HUNDRED_PERCENT("INSTRUCTIONS_EXCEED_HUNDRED_PERCENT"), + INSTRUCTIONS_EXCEED_HUNDRED_PERCENT(String.valueOf("INSTRUCTIONS_EXCEED_HUNDRED_PERCENT")), - INSTRUCTIONS_ARRAY_EMPTY("INSTRUCTIONS_ARRAY_EMPTY"); + INSTRUCTIONS_ARRAY_EMPTY(String.valueOf("INSTRUCTIONS_ARRAY_EMPTY")); private String value; @@ -92,14 +96,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public DisbursementValidationFailure() {} - public DisbursementValidationFailure reason(ReasonEnum reason) { + @JsonCreator + public DisbursementValidationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public DisbursementValidationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -118,11 +128,12 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public DisbursementValidationFailure data(Map data) { + public DisbursementValidationFailure data( + @jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -149,7 +160,7 @@ public Map getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } @@ -233,8 +244,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string @@ -250,10 +260,7 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getData().get(_key), - URLEncoder.encode( - String.valueOf(getData().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/DispatchPayoutResponse.java b/src/main/java/com/fireblocks/sdk/model/DispatchPayoutResponse.java index 55fb7149..9355db58 100644 --- a/src/main/java/com/fireblocks/sdk/model/DispatchPayoutResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DispatchPayoutResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** DispatchPayoutResponse */ @JsonPropertyOrder({DispatchPayoutResponse.JSON_PROPERTY_PAYOUT_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DispatchPayoutResponse { public static final String JSON_PROPERTY_PAYOUT_ID = "payoutId"; - private String payoutId; + @jakarta.annotation.Nonnull private String payoutId; public DispatchPayoutResponse() {} - public DispatchPayoutResponse payoutId(String payoutId) { + @JsonCreator + public DispatchPayoutResponse( + @JsonProperty(value = JSON_PROPERTY_PAYOUT_ID, required = true) String payoutId) { + this.payoutId = payoutId; + } + + public DispatchPayoutResponse payoutId(@jakarta.annotation.Nonnull String payoutId) { this.payoutId = payoutId; return this; } @@ -49,7 +57,7 @@ public String getPayoutId() { @JsonProperty(JSON_PROPERTY_PAYOUT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayoutId(String payoutId) { + public void setPayoutId(@jakarta.annotation.Nonnull String payoutId) { this.payoutId = payoutId; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%spayoutId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPayoutId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPayoutId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DraftResponse.java b/src/main/java/com/fireblocks/sdk/model/DraftResponse.java index b1e93efe..a337a159 100644 --- a/src/main/java/com/fireblocks/sdk/model/DraftResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DraftResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +30,38 @@ DraftResponse.JSON_PROPERTY_DRAFT_ID, DraftResponse.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DraftResponse { public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nonnull private String status; public static final String JSON_PROPERTY_RULES = "rules"; - private List rules = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; - private String draftId; + @jakarta.annotation.Nonnull private String draftId; public static final String JSON_PROPERTY_METADATA = "metadata"; - private PolicyMetadata metadata; + @jakarta.annotation.Nonnull private PolicyMetadata metadata; public DraftResponse() {} - public DraftResponse status(String status) { + @JsonCreator + public DraftResponse( + @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) + PolicyMetadata metadata) { + this.status = status; + this.rules = rules; + this.draftId = draftId; + this.metadata = metadata; + } + + public DraftResponse status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } @@ -65,11 +80,11 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public DraftResponse rules(List rules) { + public DraftResponse rules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; return this; } @@ -96,11 +111,11 @@ public List getRules() { @JsonProperty(JSON_PROPERTY_RULES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; } - public DraftResponse draftId(String draftId) { + public DraftResponse draftId(@jakarta.annotation.Nonnull String draftId) { this.draftId = draftId; return this; } @@ -119,11 +134,11 @@ public String getDraftId() { @JsonProperty(JSON_PROPERTY_DRAFT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftId(String draftId) { + public void setDraftId(@jakarta.annotation.Nonnull String draftId) { this.draftId = draftId; } - public DraftResponse metadata(PolicyMetadata metadata) { + public DraftResponse metadata(@jakarta.annotation.Nonnull PolicyMetadata metadata) { this.metadata = metadata; return this; } @@ -142,7 +157,7 @@ public PolicyMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(PolicyMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull PolicyMetadata metadata) { this.metadata = metadata; } @@ -229,8 +244,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `rules` to the URL query string @@ -263,8 +277,7 @@ public String toUrlQueryString(String prefix) { "%sdraftId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDraftId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); } // add `metadata` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponse.java index d18e9619..d5327e41 100644 --- a/src/main/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponse.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,17 +25,30 @@ DraftReviewAndValidationResponse.JSON_PROPERTY_DRAFT_RESPONSE, DraftReviewAndValidationResponse.JSON_PROPERTY_VALIDATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DraftReviewAndValidationResponse { public static final String JSON_PROPERTY_DRAFT_RESPONSE = "draftResponse"; - private DraftResponse draftResponse; + @jakarta.annotation.Nonnull private DraftResponse draftResponse; public static final String JSON_PROPERTY_VALIDATION = "validation"; - private PolicyValidation validation; + @jakarta.annotation.Nonnull private PolicyValidation validation; public DraftReviewAndValidationResponse() {} - public DraftReviewAndValidationResponse draftResponse(DraftResponse draftResponse) { + @JsonCreator + public DraftReviewAndValidationResponse( + @JsonProperty(value = JSON_PROPERTY_DRAFT_RESPONSE, required = true) + DraftResponse draftResponse, + @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) + PolicyValidation validation) { + this.draftResponse = draftResponse; + this.validation = validation; + } + + public DraftReviewAndValidationResponse draftResponse( + @jakarta.annotation.Nonnull DraftResponse draftResponse) { this.draftResponse = draftResponse; return this; } @@ -53,11 +67,12 @@ public DraftResponse getDraftResponse() { @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftResponse(DraftResponse draftResponse) { + public void setDraftResponse(@jakarta.annotation.Nonnull DraftResponse draftResponse) { this.draftResponse = draftResponse; } - public DraftReviewAndValidationResponse validation(PolicyValidation validation) { + public DraftReviewAndValidationResponse validation( + @jakarta.annotation.Nonnull PolicyValidation validation) { this.validation = validation; return this; } @@ -76,7 +91,7 @@ public PolicyValidation getValidation() { @JsonProperty(JSON_PROPERTY_VALIDATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidation(PolicyValidation validation) { + public void setValidation(@jakarta.annotation.Nonnull PolicyValidation validation) { this.validation = validation; } diff --git a/src/main/java/com/fireblocks/sdk/model/DropTransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/DropTransactionRequest.java index a95d2a51..f28fc176 100644 --- a/src/main/java/com/fireblocks/sdk/model/DropTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/DropTransactionRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ DropTransactionRequest.JSON_PROPERTY_FEE_LEVEL, DropTransactionRequest.JSON_PROPERTY_GAS_PRICE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DropTransactionRequest { public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nullable private String txId; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private String feeLevel; + @jakarta.annotation.Nullable private String feeLevel; public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice"; - private String gasPrice; + @jakarta.annotation.Nullable private String gasPrice; public DropTransactionRequest() {} - public DropTransactionRequest txId(String txId) { + public DropTransactionRequest txId(@jakarta.annotation.Nullable String txId) { this.txId = txId; return this; } @@ -59,11 +60,11 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nullable String txId) { this.txId = txId; } - public DropTransactionRequest feeLevel(String feeLevel) { + public DropTransactionRequest feeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; return this; } @@ -82,11 +83,11 @@ public String getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(String feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; } - public DropTransactionRequest gasPrice(String gasPrice) { + public DropTransactionRequest gasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; return this; } @@ -105,7 +106,7 @@ public String getGasPrice() { @JsonProperty(JSON_PROPERTY_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasPrice(String gasPrice) { + public void setGasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; } @@ -190,8 +191,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } // add `feeLevel` to the URL query string @@ -201,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `gasPrice` to the URL query string @@ -212,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%sgasPrice%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasPrice()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasPrice())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DropTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/DropTransactionResponse.java index 7306c2c9..806d8c57 100644 --- a/src/main/java/com/fireblocks/sdk/model/DropTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DropTransactionResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ DropTransactionResponse.JSON_PROPERTY_TX_ID, DropTransactionResponse.JSON_PROPERTY_REPLACED_TX_HASH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class DropTransactionResponse { public static final String JSON_PROPERTY_TX_STATUS = "txStatus"; - private String txStatus; + @jakarta.annotation.Nullable private String txStatus; public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nullable private String txId; public static final String JSON_PROPERTY_REPLACED_TX_HASH = "replacedTxHash"; - private String replacedTxHash; + @jakarta.annotation.Nullable private String replacedTxHash; public DropTransactionResponse() {} - public DropTransactionResponse txStatus(String txStatus) { + public DropTransactionResponse txStatus(@jakarta.annotation.Nullable String txStatus) { this.txStatus = txStatus; return this; } @@ -59,11 +60,11 @@ public String getTxStatus() { @JsonProperty(JSON_PROPERTY_TX_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxStatus(String txStatus) { + public void setTxStatus(@jakarta.annotation.Nullable String txStatus) { this.txStatus = txStatus; } - public DropTransactionResponse txId(String txId) { + public DropTransactionResponse txId(@jakarta.annotation.Nullable String txId) { this.txId = txId; return this; } @@ -82,11 +83,12 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nullable String txId) { this.txId = txId; } - public DropTransactionResponse replacedTxHash(String replacedTxHash) { + public DropTransactionResponse replacedTxHash( + @jakarta.annotation.Nullable String replacedTxHash) { this.replacedTxHash = replacedTxHash; return this; } @@ -105,7 +107,7 @@ public String getReplacedTxHash() { @JsonProperty(JSON_PROPERTY_REPLACED_TX_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReplacedTxHash(String replacedTxHash) { + public void setReplacedTxHash(@jakarta.annotation.Nullable String replacedTxHash) { this.replacedTxHash = replacedTxHash; } @@ -190,8 +192,7 @@ public String toUrlQueryString(String prefix) { "%stxStatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxStatus())))); } // add `txId` to the URL query string @@ -201,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } // add `replacedTxHash` to the URL query string @@ -212,10 +212,7 @@ public String toUrlQueryString(String prefix) { "%sreplacedTxHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getReplacedTxHash()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReplacedTxHash())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/DvnConfig.java b/src/main/java/com/fireblocks/sdk/model/DvnConfig.java index f999f695..3d8ee63c 100644 --- a/src/main/java/com/fireblocks/sdk/model/DvnConfig.java +++ b/src/main/java/com/fireblocks/sdk/model/DvnConfig.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,20 +30,32 @@ DvnConfig.JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES, DvnConfig.JSON_PROPERTY_OPTIONAL_THRESHOLD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List dvnAddresses = new ArrayList<>(); + @jakarta.annotation.Nonnull private List dvnAddresses = new ArrayList<>(); public static final String JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES = "optionalDVNAddresses"; - private List optionalDVNAddresses; + @jakarta.annotation.Nullable private List optionalDVNAddresses = new ArrayList<>(); public static final String JSON_PROPERTY_OPTIONAL_THRESHOLD = "optionalThreshold"; - private BigDecimal optionalThreshold; + @jakarta.annotation.Nonnull private BigDecimal optionalThreshold; public DvnConfig() {} - public DvnConfig dvnAddresses(List dvnAddresses) { + @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; } @@ -70,11 +82,12 @@ public List getDvnAddresses() { @JsonProperty(JSON_PROPERTY_DVN_ADDRESSES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDvnAddresses(List dvnAddresses) { + public void setDvnAddresses(@jakarta.annotation.Nonnull List dvnAddresses) { this.dvnAddresses = dvnAddresses; } - public DvnConfig optionalDVNAddresses(List optionalDVNAddresses) { + public DvnConfig optionalDVNAddresses( + @jakarta.annotation.Nullable List optionalDVNAddresses) { this.optionalDVNAddresses = optionalDVNAddresses; return this; } @@ -101,11 +114,12 @@ public List getOptionalDVNAddresses() { @JsonProperty(JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalDVNAddresses(List optionalDVNAddresses) { + public void setOptionalDVNAddresses( + @jakarta.annotation.Nullable List optionalDVNAddresses) { this.optionalDVNAddresses = optionalDVNAddresses; } - public DvnConfig optionalThreshold(BigDecimal optionalThreshold) { + public DvnConfig optionalThreshold(@jakarta.annotation.Nonnull BigDecimal optionalThreshold) { this.optionalThreshold = optionalThreshold; return this; } @@ -124,7 +138,7 @@ public BigDecimal getOptionalThreshold() { @JsonProperty(JSON_PROPERTY_OPTIONAL_THRESHOLD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOptionalThreshold(BigDecimal optionalThreshold) { + public void setOptionalThreshold(@jakarta.annotation.Nonnull BigDecimal optionalThreshold) { this.optionalThreshold = optionalThreshold; } @@ -218,10 +232,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDvnAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDvnAddresses().get(i))))); } } @@ -237,10 +249,9 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getOptionalDVNAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getOptionalDVNAddresses().get(i))))); } } @@ -251,10 +262,7 @@ public String toUrlQueryString(String prefix) { "%soptionalThreshold%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOptionalThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index b31b0f01..340cd794 100644 --- a/src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java +++ b/src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,23 +31,39 @@ DvnConfigWithConfirmations.JSON_PROPERTY_OPTIONAL_THRESHOLD, DvnConfigWithConfirmations.JSON_PROPERTY_CONFIRMATIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List dvnAddresses = new ArrayList<>(); + @jakarta.annotation.Nonnull private List dvnAddresses = new ArrayList<>(); public static final String JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES = "optionalDVNAddresses"; - private List optionalDVNAddresses; + @jakarta.annotation.Nullable private List optionalDVNAddresses = new ArrayList<>(); public static final String JSON_PROPERTY_OPTIONAL_THRESHOLD = "optionalThreshold"; - private BigDecimal optionalThreshold; + @jakarta.annotation.Nonnull private BigDecimal optionalThreshold; public static final String JSON_PROPERTY_CONFIRMATIONS = "confirmations"; - private BigDecimal confirmations; + @jakarta.annotation.Nonnull private BigDecimal confirmations; public DvnConfigWithConfirmations() {} - public DvnConfigWithConfirmations dvnAddresses(List dvnAddresses) { + @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; } @@ -74,11 +90,12 @@ public List getDvnAddresses() { @JsonProperty(JSON_PROPERTY_DVN_ADDRESSES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDvnAddresses(List dvnAddresses) { + public void setDvnAddresses(@jakarta.annotation.Nonnull List dvnAddresses) { this.dvnAddresses = dvnAddresses; } - public DvnConfigWithConfirmations optionalDVNAddresses(List optionalDVNAddresses) { + public DvnConfigWithConfirmations optionalDVNAddresses( + @jakarta.annotation.Nullable List optionalDVNAddresses) { this.optionalDVNAddresses = optionalDVNAddresses; return this; } @@ -105,11 +122,13 @@ public List getOptionalDVNAddresses() { @JsonProperty(JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalDVNAddresses(List optionalDVNAddresses) { + public void setOptionalDVNAddresses( + @jakarta.annotation.Nullable List optionalDVNAddresses) { this.optionalDVNAddresses = optionalDVNAddresses; } - public DvnConfigWithConfirmations optionalThreshold(BigDecimal optionalThreshold) { + public DvnConfigWithConfirmations optionalThreshold( + @jakarta.annotation.Nonnull BigDecimal optionalThreshold) { this.optionalThreshold = optionalThreshold; return this; } @@ -128,11 +147,12 @@ public BigDecimal getOptionalThreshold() { @JsonProperty(JSON_PROPERTY_OPTIONAL_THRESHOLD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOptionalThreshold(BigDecimal optionalThreshold) { + public void setOptionalThreshold(@jakarta.annotation.Nonnull BigDecimal optionalThreshold) { this.optionalThreshold = optionalThreshold; } - public DvnConfigWithConfirmations confirmations(BigDecimal confirmations) { + public DvnConfigWithConfirmations confirmations( + @jakarta.annotation.Nonnull BigDecimal confirmations) { this.confirmations = confirmations; return this; } @@ -151,7 +171,7 @@ public BigDecimal getConfirmations() { @JsonProperty(JSON_PROPERTY_CONFIRMATIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfirmations(BigDecimal confirmations) { + public void setConfirmations(@jakarta.annotation.Nonnull BigDecimal confirmations) { this.confirmations = confirmations; } @@ -249,10 +269,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDvnAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDvnAddresses().get(i))))); } } @@ -268,10 +286,9 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getOptionalDVNAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getOptionalDVNAddresses().get(i))))); } } @@ -282,10 +299,7 @@ public String toUrlQueryString(String prefix) { "%soptionalThreshold%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOptionalThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOptionalThreshold())))); } // add `confirmations` to the URL query string @@ -295,10 +309,7 @@ public String toUrlQueryString(String prefix) { "%sconfirmations%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfirmations()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 37fd5aa2..721b9c94 100644 --- a/src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java +++ b/src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ EVMTokenCreateParamsDto.JSON_PROPERTY_CONTRACT_ID, EVMTokenCreateParamsDto.JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class EVMTokenCreateParamsDto { public static final String JSON_PROPERTY_CONTRACT_ID = "contractId"; - private String contractId; + @jakarta.annotation.Nonnull private String contractId; public static final String JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS = "deployFunctionParams"; - private List deployFunctionParams; + + @jakarta.annotation.Nullable + private List deployFunctionParams = new ArrayList<>(); public EVMTokenCreateParamsDto() {} - public EVMTokenCreateParamsDto contractId(String contractId) { + @JsonCreator + public EVMTokenCreateParamsDto( + @JsonProperty(value = JSON_PROPERTY_CONTRACT_ID, required = true) String contractId) { + this.contractId = contractId; + } + + public EVMTokenCreateParamsDto contractId(@jakarta.annotation.Nonnull String contractId) { this.contractId = contractId; return this; } @@ -57,12 +67,12 @@ public String getContractId() { @JsonProperty(JSON_PROPERTY_CONTRACT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractId(String contractId) { + public void setContractId(@jakarta.annotation.Nonnull String contractId) { this.contractId = contractId; } public EVMTokenCreateParamsDto deployFunctionParams( - List deployFunctionParams) { + @jakarta.annotation.Nullable List deployFunctionParams) { this.deployFunctionParams = deployFunctionParams; return this; } @@ -90,7 +100,8 @@ public List getDeployFunctionParams() { @JsonProperty(JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeployFunctionParams(List deployFunctionParams) { + public void setDeployFunctionParams( + @jakarta.annotation.Nullable List deployFunctionParams) { this.deployFunctionParams = deployFunctionParams; } @@ -176,9 +187,7 @@ public String toUrlQueryString(String prefix) { "%scontractId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractId())))); } // add `deployFunctionParams` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponse.java b/src/main/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponse.java index 8c2c399c..01d9fd9a 100644 --- a/src/main/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponse.java @@ -13,24 +13,33 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** EditGasStationConfigurationResponse */ @JsonPropertyOrder({EditGasStationConfigurationResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class EditGasStationConfigurationResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public EditGasStationConfigurationResponse() {} - public EditGasStationConfigurationResponse success(Boolean success) { + @JsonCreator + public EditGasStationConfigurationResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public EditGasStationConfigurationResponse success( + @jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +58,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -131,8 +140,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java index a2d8b3a3..d9827e60 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String walletId; + @jakarta.annotation.Nonnull private String walletId; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nonnull private Boolean enabled; public EmbeddedWallet() {} - public EmbeddedWallet walletId(String walletId) { + @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; } @@ -52,11 +62,11 @@ public String getWalletId() { @JsonProperty(JSON_PROPERTY_WALLET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWalletId(String walletId) { + public void setWalletId(@jakarta.annotation.Nonnull String walletId) { this.walletId = walletId; } - public EmbeddedWallet enabled(Boolean enabled) { + public EmbeddedWallet enabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -75,7 +85,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } @@ -158,8 +168,7 @@ public String toUrlQueryString(String prefix) { "%swalletId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } // add `enabled` to the URL query string @@ -169,8 +178,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 6aa686d2..f3edfccd 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ EmbeddedWalletAccount.JSON_PROPERTY_ACCOUNT_ID, EmbeddedWalletAccount.JSON_PROPERTY_WALLET_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String accountId; + @jakarta.annotation.Nonnull private String accountId; public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - private String walletId; + @jakarta.annotation.Nonnull private String walletId; public EmbeddedWalletAccount() {} - public EmbeddedWalletAccount accountId(String accountId) { + @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; } @@ -55,11 +65,11 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; } - public EmbeddedWalletAccount walletId(String walletId) { + public EmbeddedWalletAccount walletId(@jakarta.annotation.Nonnull String walletId) { this.walletId = walletId; return this; } @@ -78,7 +88,7 @@ public String getWalletId() { @JsonProperty(JSON_PROPERTY_WALLET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWalletId(String walletId) { + public void setWalletId(@jakarta.annotation.Nonnull String walletId) { this.walletId = walletId; } @@ -161,9 +171,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `walletId` to the URL query string @@ -173,8 +181,7 @@ public String toUrlQueryString(String prefix) { "%swalletId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 5c8fbe19..2db356f0 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -43,29 +42,31 @@ EmbeddedWalletAddressDetails.JSON_PROPERTY_USER_DEFINED, EmbeddedWalletAddressDetails.JSON_PROPERTY_STATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String accountName; + @jakarta.annotation.Nonnull private String accountName; public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - private String accountId; + @jakarta.annotation.Nonnull private String accountId; public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; /** addressType */ public enum AddressTypeEnum { - PERMANENT("PERMANENT"), + PERMANENT(String.valueOf("PERMANENT")), - CHANGE("CHANGE"), + CHANGE(String.valueOf("CHANGE")), - DEFAULT("DEFAULT"), + DEFAULT(String.valueOf("DEFAULT")), - ADDRESS("ADDRESS"); + ADDRESS(String.valueOf("ADDRESS")); private String value; @@ -95,45 +96,45 @@ public static AddressTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - private AddressTypeEnum addressType; + @jakarta.annotation.Nonnull private AddressTypeEnum addressType; public static final String JSON_PROPERTY_ADDRESS_DESCRIPTION = "addressDescription"; - private String addressDescription; + @jakarta.annotation.Nonnull private String addressDescription; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nonnull private String tag; public static final String JSON_PROPERTY_ADDRESS_INDEX = "addressIndex"; - private BigDecimal addressIndex; + @jakarta.annotation.Nullable private BigDecimal addressIndex; public static final String JSON_PROPERTY_CHANGE = "change"; - private BigDecimal change; + @jakarta.annotation.Nullable private BigDecimal change; public static final String JSON_PROPERTY_COIN_TYPE = "coinType"; - private BigDecimal coinType; + @jakarta.annotation.Nullable private BigDecimal coinType; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_ADDRESS_FORMAT = "addressFormat"; - private String addressFormat; + @jakarta.annotation.Nullable private String addressFormat; public static final String JSON_PROPERTY_LEGACY_ADDRESS = "legacyAddress"; - private String legacyAddress; + @jakarta.annotation.Nullable private String legacyAddress; public static final String JSON_PROPERTY_PAYMENT_ADDRESS = "paymentAddress"; - private String paymentAddress; + @jakarta.annotation.Nullable private String paymentAddress; public static final String JSON_PROPERTY_USER_DEFINED = "userDefined"; - private Boolean userDefined; + @jakarta.annotation.Nullable private Boolean userDefined; /** state */ public enum StateEnum { - PENDING_ACTIVATION("PENDING_ACTIVATION"), + PENDING_ACTIVATION(String.valueOf("PENDING_ACTIVATION")), - ACTIVATION_FAILED("ACTIVATION_FAILED"), + ACTIVATION_FAILED(String.valueOf("ACTIVATION_FAILED")), - READY("READY"); + READY(String.valueOf("READY")); private String value; @@ -163,11 +164,32 @@ public static StateEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATE = "state"; - private StateEnum state; + @jakarta.annotation.Nullable private StateEnum state; public EmbeddedWalletAddressDetails() {} - public EmbeddedWalletAddressDetails accountName(String accountName) { + @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; } @@ -186,11 +208,11 @@ public String getAccountName() { @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountName(String accountName) { + public void setAccountName(@jakarta.annotation.Nonnull String accountName) { this.accountName = accountName; } - public EmbeddedWalletAddressDetails accountId(String accountId) { + public EmbeddedWalletAddressDetails accountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; return this; } @@ -209,11 +231,11 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; } - public EmbeddedWalletAddressDetails asset(String asset) { + public EmbeddedWalletAddressDetails asset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; return this; } @@ -232,11 +254,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public EmbeddedWalletAddressDetails address(String address) { + public EmbeddedWalletAddressDetails address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } @@ -255,11 +277,12 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public EmbeddedWalletAddressDetails addressType(AddressTypeEnum addressType) { + public EmbeddedWalletAddressDetails addressType( + @jakarta.annotation.Nonnull AddressTypeEnum addressType) { this.addressType = addressType; return this; } @@ -278,11 +301,12 @@ public AddressTypeEnum getAddressType() { @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressType(AddressTypeEnum addressType) { + public void setAddressType(@jakarta.annotation.Nonnull AddressTypeEnum addressType) { this.addressType = addressType; } - public EmbeddedWalletAddressDetails addressDescription(String addressDescription) { + public EmbeddedWalletAddressDetails addressDescription( + @jakarta.annotation.Nonnull String addressDescription) { this.addressDescription = addressDescription; return this; } @@ -301,11 +325,11 @@ public String getAddressDescription() { @JsonProperty(JSON_PROPERTY_ADDRESS_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressDescription(String addressDescription) { + public void setAddressDescription(@jakarta.annotation.Nonnull String addressDescription) { this.addressDescription = addressDescription; } - public EmbeddedWalletAddressDetails tag(String tag) { + public EmbeddedWalletAddressDetails tag(@jakarta.annotation.Nonnull String tag) { this.tag = tag; return this; } @@ -324,11 +348,12 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nonnull String tag) { this.tag = tag; } - public EmbeddedWalletAddressDetails addressIndex(BigDecimal addressIndex) { + public EmbeddedWalletAddressDetails addressIndex( + @jakarta.annotation.Nullable BigDecimal addressIndex) { this.addressIndex = addressIndex; return this; } @@ -347,11 +372,11 @@ public BigDecimal getAddressIndex() { @JsonProperty(JSON_PROPERTY_ADDRESS_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressIndex(BigDecimal addressIndex) { + public void setAddressIndex(@jakarta.annotation.Nullable BigDecimal addressIndex) { this.addressIndex = addressIndex; } - public EmbeddedWalletAddressDetails change(BigDecimal change) { + public EmbeddedWalletAddressDetails change(@jakarta.annotation.Nullable BigDecimal change) { this.change = change; return this; } @@ -370,11 +395,11 @@ public BigDecimal getChange() { @JsonProperty(JSON_PROPERTY_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChange(BigDecimal change) { + public void setChange(@jakarta.annotation.Nullable BigDecimal change) { this.change = change; } - public EmbeddedWalletAddressDetails coinType(BigDecimal coinType) { + public EmbeddedWalletAddressDetails coinType(@jakarta.annotation.Nullable BigDecimal coinType) { this.coinType = coinType; return this; } @@ -393,11 +418,12 @@ public BigDecimal getCoinType() { @JsonProperty(JSON_PROPERTY_COIN_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoinType(BigDecimal coinType) { + public void setCoinType(@jakarta.annotation.Nullable BigDecimal coinType) { this.coinType = coinType; } - public EmbeddedWalletAddressDetails customerRefId(String customerRefId) { + public EmbeddedWalletAddressDetails customerRefId( + @jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -416,11 +442,12 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } - public EmbeddedWalletAddressDetails addressFormat(String addressFormat) { + public EmbeddedWalletAddressDetails addressFormat( + @jakarta.annotation.Nullable String addressFormat) { this.addressFormat = addressFormat; return this; } @@ -439,11 +466,12 @@ public String getAddressFormat() { @JsonProperty(JSON_PROPERTY_ADDRESS_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressFormat(String addressFormat) { + public void setAddressFormat(@jakarta.annotation.Nullable String addressFormat) { this.addressFormat = addressFormat; } - public EmbeddedWalletAddressDetails legacyAddress(String legacyAddress) { + public EmbeddedWalletAddressDetails legacyAddress( + @jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; return this; } @@ -462,11 +490,12 @@ public String getLegacyAddress() { @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegacyAddress(String legacyAddress) { + public void setLegacyAddress(@jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; } - public EmbeddedWalletAddressDetails paymentAddress(String paymentAddress) { + public EmbeddedWalletAddressDetails paymentAddress( + @jakarta.annotation.Nullable String paymentAddress) { this.paymentAddress = paymentAddress; return this; } @@ -485,11 +514,12 @@ public String getPaymentAddress() { @JsonProperty(JSON_PROPERTY_PAYMENT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaymentAddress(String paymentAddress) { + public void setPaymentAddress(@jakarta.annotation.Nullable String paymentAddress) { this.paymentAddress = paymentAddress; } - public EmbeddedWalletAddressDetails userDefined(Boolean userDefined) { + public EmbeddedWalletAddressDetails userDefined( + @jakarta.annotation.Nullable Boolean userDefined) { this.userDefined = userDefined; return this; } @@ -508,11 +538,11 @@ public Boolean getUserDefined() { @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserDefined(Boolean userDefined) { + public void setUserDefined(@jakarta.annotation.Nullable Boolean userDefined) { this.userDefined = userDefined; } - public EmbeddedWalletAddressDetails state(StateEnum state) { + public EmbeddedWalletAddressDetails state(@jakarta.annotation.Nullable StateEnum state) { this.state = state; return this; } @@ -531,7 +561,7 @@ public StateEnum getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(StateEnum state) { + public void setState(@jakarta.annotation.Nullable StateEnum state) { this.state = state; } @@ -662,10 +692,7 @@ public String toUrlQueryString(String prefix) { "%saccountName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountName())))); } // add `accountId` to the URL query string @@ -675,9 +702,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `asset` to the URL query string @@ -687,8 +712,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `address` to the URL query string @@ -698,8 +722,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `addressType` to the URL query string @@ -709,10 +732,7 @@ public String toUrlQueryString(String prefix) { "%saddressType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); } // add `addressDescription` to the URL query string @@ -722,10 +742,7 @@ public String toUrlQueryString(String prefix) { "%saddressDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressDescription())))); } // add `tag` to the URL query string @@ -735,8 +752,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `addressIndex` to the URL query string @@ -746,10 +762,7 @@ public String toUrlQueryString(String prefix) { "%saddressIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressIndex())))); } // add `change` to the URL query string @@ -759,8 +772,7 @@ public String toUrlQueryString(String prefix) { "%schange%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getChange()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChange())))); } // add `coinType` to the URL query string @@ -770,8 +782,7 @@ public String toUrlQueryString(String prefix) { "%scoinType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCoinType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCoinType())))); } // add `customerRefId` to the URL query string @@ -781,10 +792,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `addressFormat` to the URL query string @@ -794,10 +802,7 @@ public String toUrlQueryString(String prefix) { "%saddressFormat%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressFormat()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressFormat())))); } // add `legacyAddress` to the URL query string @@ -807,10 +812,7 @@ public String toUrlQueryString(String prefix) { "%slegacyAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegacyAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyAddress())))); } // add `paymentAddress` to the URL query string @@ -820,10 +822,7 @@ public String toUrlQueryString(String prefix) { "%spaymentAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPaymentAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPaymentAddress())))); } // add `userDefined` to the URL query string @@ -833,10 +832,7 @@ public String toUrlQueryString(String prefix) { "%suserDefined%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUserDefined()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserDefined())))); } // add `state` to the URL query string @@ -846,8 +842,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index ef8b1ad2..68889b1d 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java @@ -18,20 +18,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class EmbeddedWalletAlgoritm { /** algorithm */ public enum AlgorithmEnum { - ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"), + MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - EDDSA_ED25519("MPC_EDDSA_ED25519"); + MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); private String value; @@ -61,11 +62,18 @@ public static AlgorithmEnum fromValue(String value) { } public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private AlgorithmEnum algorithm; + @jakarta.annotation.Nonnull private AlgorithmEnum algorithm; public EmbeddedWalletAlgoritm() {} - public EmbeddedWalletAlgoritm algorithm(AlgorithmEnum algorithm) { + @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; } @@ -84,7 +92,7 @@ public AlgorithmEnum getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(AlgorithmEnum algorithm) { + public void setAlgorithm(@jakarta.annotation.Nonnull AlgorithmEnum algorithm) { this.algorithm = algorithm; } @@ -165,9 +173,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 9d769158..c9b2a450 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -33,38 +33,57 @@ EmbeddedWalletAssetBalance.JSON_PROPERTY_BLOCK_HASH, EmbeddedWalletAssetBalance.JSON_PROPERTY_REWARD_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TOTAL = "total"; - private String total; + @jakarta.annotation.Nonnull private String total; public static final String JSON_PROPERTY_AVAILABLE = "available"; - private String available; + @jakarta.annotation.Nonnull private String available; public static final String JSON_PROPERTY_PENDING = "pending"; - private String pending; + @jakarta.annotation.Nonnull private String pending; public static final String JSON_PROPERTY_FROZEN = "frozen"; - private String frozen; + @jakarta.annotation.Nonnull private String frozen; public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - private String lockedAmount; + @jakarta.annotation.Nonnull private String lockedAmount; public static final String JSON_PROPERTY_BLOCK_HEIGHT = "blockHeight"; - private String blockHeight; + @jakarta.annotation.Nullable private String blockHeight; public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - private String blockHash; + @jakarta.annotation.Nullable private String blockHash; public static final String JSON_PROPERTY_REWARD_INFO = "rewardInfo"; - private EmbeddedWalletAssetRewardInfo rewardInfo; + @jakarta.annotation.Nullable private EmbeddedWalletAssetRewardInfo rewardInfo; public EmbeddedWalletAssetBalance() {} - public EmbeddedWalletAssetBalance id(String id) { + @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; } @@ -83,11 +102,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public EmbeddedWalletAssetBalance total(String total) { + public EmbeddedWalletAssetBalance total(@jakarta.annotation.Nonnull String total) { this.total = total; return this; } @@ -106,11 +125,11 @@ public String getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(String total) { + public void setTotal(@jakarta.annotation.Nonnull String total) { this.total = total; } - public EmbeddedWalletAssetBalance available(String available) { + public EmbeddedWalletAssetBalance available(@jakarta.annotation.Nonnull String available) { this.available = available; return this; } @@ -129,11 +148,11 @@ public String getAvailable() { @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAvailable(String available) { + public void setAvailable(@jakarta.annotation.Nonnull String available) { this.available = available; } - public EmbeddedWalletAssetBalance pending(String pending) { + public EmbeddedWalletAssetBalance pending(@jakarta.annotation.Nonnull String pending) { this.pending = pending; return this; } @@ -152,11 +171,11 @@ public String getPending() { @JsonProperty(JSON_PROPERTY_PENDING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPending(String pending) { + public void setPending(@jakarta.annotation.Nonnull String pending) { this.pending = pending; } - public EmbeddedWalletAssetBalance frozen(String frozen) { + public EmbeddedWalletAssetBalance frozen(@jakarta.annotation.Nonnull String frozen) { this.frozen = frozen; return this; } @@ -175,11 +194,12 @@ public String getFrozen() { @JsonProperty(JSON_PROPERTY_FROZEN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFrozen(String frozen) { + public void setFrozen(@jakarta.annotation.Nonnull String frozen) { this.frozen = frozen; } - public EmbeddedWalletAssetBalance lockedAmount(String lockedAmount) { + public EmbeddedWalletAssetBalance lockedAmount( + @jakarta.annotation.Nonnull String lockedAmount) { this.lockedAmount = lockedAmount; return this; } @@ -198,11 +218,11 @@ public String getLockedAmount() { @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLockedAmount(String lockedAmount) { + public void setLockedAmount(@jakarta.annotation.Nonnull String lockedAmount) { this.lockedAmount = lockedAmount; } - public EmbeddedWalletAssetBalance blockHeight(String blockHeight) { + public EmbeddedWalletAssetBalance blockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; return this; } @@ -221,11 +241,11 @@ public String getBlockHeight() { @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHeight(String blockHeight) { + public void setBlockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; } - public EmbeddedWalletAssetBalance blockHash(String blockHash) { + public EmbeddedWalletAssetBalance blockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; return this; } @@ -244,11 +264,12 @@ public String getBlockHash() { @JsonProperty(JSON_PROPERTY_BLOCK_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHash(String blockHash) { + public void setBlockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; } - public EmbeddedWalletAssetBalance rewardInfo(EmbeddedWalletAssetRewardInfo rewardInfo) { + public EmbeddedWalletAssetBalance rewardInfo( + @jakarta.annotation.Nullable EmbeddedWalletAssetRewardInfo rewardInfo) { this.rewardInfo = rewardInfo; return this; } @@ -267,7 +288,8 @@ public EmbeddedWalletAssetRewardInfo getRewardInfo() { @JsonProperty(JSON_PROPERTY_REWARD_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewardInfo(EmbeddedWalletAssetRewardInfo rewardInfo) { + public void setRewardInfo( + @jakarta.annotation.Nullable EmbeddedWalletAssetRewardInfo rewardInfo) { this.rewardInfo = rewardInfo; } @@ -371,10 +393,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `total` to the URL query string @@ -384,8 +403,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } // add `available` to the URL query string @@ -395,9 +413,7 @@ public String toUrlQueryString(String prefix) { "%savailable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAvailable()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAvailable())))); } // add `pending` to the URL query string @@ -407,8 +423,7 @@ public String toUrlQueryString(String prefix) { "%spending%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPending()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPending())))); } // add `frozen` to the URL query string @@ -418,8 +433,7 @@ public String toUrlQueryString(String prefix) { "%sfrozen%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFrozen()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFrozen())))); } // add `lockedAmount` to the URL query string @@ -429,10 +443,7 @@ public String toUrlQueryString(String prefix) { "%slockedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); } // add `blockHeight` to the URL query string @@ -442,10 +453,7 @@ public String toUrlQueryString(String prefix) { "%sblockHeight%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHeight()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHeight())))); } // add `blockHash` to the URL query string @@ -455,9 +463,7 @@ public String toUrlQueryString(String prefix) { "%sblockHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); } // add `rewardInfo` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java index 490cb586..547942fd 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -44,61 +43,63 @@ EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME, EmbeddedWalletAssetResponse.JSON_PROPERTY_ALGORITHM }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nonnull private String symbol; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DECIMALS = "decimals"; - private BigDecimal decimals; + @jakarta.annotation.Nonnull private BigDecimal decimals; public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; - private String networkProtocol; + @jakarta.annotation.Nonnull private String networkProtocol; public static final String JSON_PROPERTY_TESTNET = "testnet"; - private Boolean testnet; + @jakarta.annotation.Nonnull private Boolean testnet; public static final String JSON_PROPERTY_HAS_FEE = "hasFee"; - private Boolean hasFee; + @jakarta.annotation.Nonnull private Boolean hasFee; public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; - private String baseAsset; + @jakarta.annotation.Nonnull private String baseAsset; public static final String JSON_PROPERTY_ETH_NETWORK = "ethNetwork"; - private String ethNetwork; + @jakarta.annotation.Nullable private String ethNetwork; public static final String JSON_PROPERTY_ETH_CONTRACT_ADDRESS = "ethContractAddress"; - private String ethContractAddress; + @jakarta.annotation.Nullable private String ethContractAddress; public static final String JSON_PROPERTY_ISSUER_ADDRESS = "issuerAddress"; - private String issuerAddress; + @jakarta.annotation.Nullable private String issuerAddress; public static final String JSON_PROPERTY_BLOCKCHAIN_SYMBOL = "blockchainSymbol"; - private String blockchainSymbol; + @jakarta.annotation.Nullable private String blockchainSymbol; public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - private Boolean deprecated; + @jakarta.annotation.Nullable private Boolean deprecated; public static final String JSON_PROPERTY_COIN_TYPE = "coinType"; - private BigDecimal coinType; + @jakarta.annotation.Nonnull private BigDecimal coinType; public static final String JSON_PROPERTY_BLOCKCHAIN = "blockchain"; - private String blockchain; + @jakarta.annotation.Nonnull private String blockchain; public static final String JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME = "blockchainDisplayName"; - private String blockchainDisplayName; + @jakarta.annotation.Nullable private String blockchainDisplayName; /** Gets or Sets algorithm */ public enum AlgorithmEnum { - ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"), + MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - EDDSA_ED25519("MPC_EDDSA_ED25519"); + MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); private String value; @@ -128,11 +129,36 @@ public static AlgorithmEnum fromValue(String value) { } public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private AlgorithmEnum algorithm; + @jakarta.annotation.Nullable private AlgorithmEnum algorithm; public EmbeddedWalletAssetResponse() {} - public EmbeddedWalletAssetResponse id(String id) { + @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; } @@ -151,11 +177,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public EmbeddedWalletAssetResponse symbol(String symbol) { + public EmbeddedWalletAssetResponse symbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; return this; } @@ -174,11 +200,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public EmbeddedWalletAssetResponse name(String name) { + public EmbeddedWalletAssetResponse name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -197,11 +223,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public EmbeddedWalletAssetResponse decimals(BigDecimal decimals) { + public EmbeddedWalletAssetResponse decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; return this; } @@ -220,11 +246,12 @@ public BigDecimal getDecimals() { @JsonProperty(JSON_PROPERTY_DECIMALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(BigDecimal decimals) { + public void setDecimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; } - public EmbeddedWalletAssetResponse networkProtocol(String networkProtocol) { + public EmbeddedWalletAssetResponse networkProtocol( + @jakarta.annotation.Nonnull String networkProtocol) { this.networkProtocol = networkProtocol; return this; } @@ -243,11 +270,11 @@ public String getNetworkProtocol() { @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkProtocol(String networkProtocol) { + public void setNetworkProtocol(@jakarta.annotation.Nonnull String networkProtocol) { this.networkProtocol = networkProtocol; } - public EmbeddedWalletAssetResponse testnet(Boolean testnet) { + public EmbeddedWalletAssetResponse testnet(@jakarta.annotation.Nonnull Boolean testnet) { this.testnet = testnet; return this; } @@ -266,11 +293,11 @@ public Boolean getTestnet() { @JsonProperty(JSON_PROPERTY_TESTNET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTestnet(Boolean testnet) { + public void setTestnet(@jakarta.annotation.Nonnull Boolean testnet) { this.testnet = testnet; } - public EmbeddedWalletAssetResponse hasFee(Boolean hasFee) { + public EmbeddedWalletAssetResponse hasFee(@jakarta.annotation.Nonnull Boolean hasFee) { this.hasFee = hasFee; return this; } @@ -289,11 +316,11 @@ public Boolean getHasFee() { @JsonProperty(JSON_PROPERTY_HAS_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHasFee(Boolean hasFee) { + public void setHasFee(@jakarta.annotation.Nonnull Boolean hasFee) { this.hasFee = hasFee; } - public EmbeddedWalletAssetResponse baseAsset(String baseAsset) { + public EmbeddedWalletAssetResponse baseAsset(@jakarta.annotation.Nonnull String baseAsset) { this.baseAsset = baseAsset; return this; } @@ -312,11 +339,11 @@ public String getBaseAsset() { @JsonProperty(JSON_PROPERTY_BASE_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAsset(String baseAsset) { + public void setBaseAsset(@jakarta.annotation.Nonnull String baseAsset) { this.baseAsset = baseAsset; } - public EmbeddedWalletAssetResponse ethNetwork(String ethNetwork) { + public EmbeddedWalletAssetResponse ethNetwork(@jakarta.annotation.Nullable String ethNetwork) { this.ethNetwork = ethNetwork; return this; } @@ -335,11 +362,12 @@ public String getEthNetwork() { @JsonProperty(JSON_PROPERTY_ETH_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEthNetwork(String ethNetwork) { + public void setEthNetwork(@jakarta.annotation.Nullable String ethNetwork) { this.ethNetwork = ethNetwork; } - public EmbeddedWalletAssetResponse ethContractAddress(String ethContractAddress) { + public EmbeddedWalletAssetResponse ethContractAddress( + @jakarta.annotation.Nullable String ethContractAddress) { this.ethContractAddress = ethContractAddress; return this; } @@ -358,11 +386,12 @@ public String getEthContractAddress() { @JsonProperty(JSON_PROPERTY_ETH_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEthContractAddress(String ethContractAddress) { + public void setEthContractAddress(@jakarta.annotation.Nullable String ethContractAddress) { this.ethContractAddress = ethContractAddress; } - public EmbeddedWalletAssetResponse issuerAddress(String issuerAddress) { + public EmbeddedWalletAssetResponse issuerAddress( + @jakarta.annotation.Nullable String issuerAddress) { this.issuerAddress = issuerAddress; return this; } @@ -382,11 +411,12 @@ public String getIssuerAddress() { @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIssuerAddress(String issuerAddress) { + public void setIssuerAddress(@jakarta.annotation.Nullable String issuerAddress) { this.issuerAddress = issuerAddress; } - public EmbeddedWalletAssetResponse blockchainSymbol(String blockchainSymbol) { + public EmbeddedWalletAssetResponse blockchainSymbol( + @jakarta.annotation.Nullable String blockchainSymbol) { this.blockchainSymbol = blockchainSymbol; return this; } @@ -405,11 +435,11 @@ public String getBlockchainSymbol() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainSymbol(String blockchainSymbol) { + public void setBlockchainSymbol(@jakarta.annotation.Nullable String blockchainSymbol) { this.blockchainSymbol = blockchainSymbol; } - public EmbeddedWalletAssetResponse deprecated(Boolean deprecated) { + public EmbeddedWalletAssetResponse deprecated(@jakarta.annotation.Nullable Boolean deprecated) { this.deprecated = deprecated; return this; } @@ -428,11 +458,11 @@ public Boolean getDeprecated() { @JsonProperty(JSON_PROPERTY_DEPRECATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecated(Boolean deprecated) { + public void setDeprecated(@jakarta.annotation.Nullable Boolean deprecated) { this.deprecated = deprecated; } - public EmbeddedWalletAssetResponse coinType(BigDecimal coinType) { + public EmbeddedWalletAssetResponse coinType(@jakarta.annotation.Nonnull BigDecimal coinType) { this.coinType = coinType; return this; } @@ -451,11 +481,11 @@ public BigDecimal getCoinType() { @JsonProperty(JSON_PROPERTY_COIN_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCoinType(BigDecimal coinType) { + public void setCoinType(@jakarta.annotation.Nonnull BigDecimal coinType) { this.coinType = coinType; } - public EmbeddedWalletAssetResponse blockchain(String blockchain) { + public EmbeddedWalletAssetResponse blockchain(@jakarta.annotation.Nonnull String blockchain) { this.blockchain = blockchain; return this; } @@ -474,11 +504,12 @@ public String getBlockchain() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchain(String blockchain) { + public void setBlockchain(@jakarta.annotation.Nonnull String blockchain) { this.blockchain = blockchain; } - public EmbeddedWalletAssetResponse blockchainDisplayName(String blockchainDisplayName) { + public EmbeddedWalletAssetResponse blockchainDisplayName( + @jakarta.annotation.Nullable String blockchainDisplayName) { this.blockchainDisplayName = blockchainDisplayName; return this; } @@ -497,11 +528,13 @@ public String getBlockchainDisplayName() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainDisplayName(String blockchainDisplayName) { + public void setBlockchainDisplayName( + @jakarta.annotation.Nullable String blockchainDisplayName) { this.blockchainDisplayName = blockchainDisplayName; } - public EmbeddedWalletAssetResponse algorithm(AlgorithmEnum algorithm) { + public EmbeddedWalletAssetResponse algorithm( + @jakarta.annotation.Nullable AlgorithmEnum algorithm) { this.algorithm = algorithm; return this; } @@ -520,7 +553,7 @@ public AlgorithmEnum getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(AlgorithmEnum algorithm) { + public void setAlgorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { this.algorithm = algorithm; } @@ -656,10 +689,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `symbol` to the URL query string @@ -669,8 +699,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `name` to the URL query string @@ -680,8 +709,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `decimals` to the URL query string @@ -691,8 +719,7 @@ public String toUrlQueryString(String prefix) { "%sdecimals%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); } // add `networkProtocol` to the URL query string @@ -702,10 +729,7 @@ public String toUrlQueryString(String prefix) { "%snetworkProtocol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkProtocol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkProtocol())))); } // add `testnet` to the URL query string @@ -715,8 +739,7 @@ public String toUrlQueryString(String prefix) { "%stestnet%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTestnet()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTestnet())))); } // add `hasFee` to the URL query string @@ -726,8 +749,7 @@ public String toUrlQueryString(String prefix) { "%shasFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getHasFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getHasFee())))); } // add `baseAsset` to the URL query string @@ -737,9 +759,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAsset())))); } // add `ethNetwork` to the URL query string @@ -749,9 +769,7 @@ public String toUrlQueryString(String prefix) { "%sethNetwork%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEthNetwork()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEthNetwork())))); } // add `ethContractAddress` to the URL query string @@ -761,10 +779,7 @@ public String toUrlQueryString(String prefix) { "%sethContractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEthContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEthContractAddress())))); } // add `issuerAddress` to the URL query string @@ -774,10 +789,7 @@ public String toUrlQueryString(String prefix) { "%sissuerAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIssuerAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIssuerAddress())))); } // add `blockchainSymbol` to the URL query string @@ -787,10 +799,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainSymbol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainSymbol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainSymbol())))); } // add `deprecated` to the URL query string @@ -800,9 +809,7 @@ public String toUrlQueryString(String prefix) { "%sdeprecated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDeprecated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); } // add `coinType` to the URL query string @@ -812,8 +819,7 @@ public String toUrlQueryString(String prefix) { "%scoinType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCoinType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCoinType())))); } // add `blockchain` to the URL query string @@ -823,9 +829,7 @@ public String toUrlQueryString(String prefix) { "%sblockchain%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchain()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchain())))); } // add `blockchainDisplayName` to the URL query string @@ -835,10 +839,8 @@ public String toUrlQueryString(String prefix) { "%sblockchainDisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBlockchainDisplayName())))); } // add `algorithm` to the URL query string @@ -848,9 +850,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 0b123ce3..8655ec3b 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java @@ -13,24 +13,34 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String pendingRewards; + @jakarta.annotation.Nonnull private String pendingRewards; public EmbeddedWalletAssetRewardInfo() {} - public EmbeddedWalletAssetRewardInfo pendingRewards(String pendingRewards) { + @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; } @@ -49,7 +59,7 @@ public String getPendingRewards() { @JsonProperty(JSON_PROPERTY_PENDING_REWARDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPendingRewards(String pendingRewards) { + public void setPendingRewards(@jakarta.annotation.Nonnull String pendingRewards) { this.pendingRewards = pendingRewards; } @@ -131,10 +141,7 @@ public String toUrlQueryString(String prefix) { "%spendingRewards%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPendingRewards()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 399b65bc..2d94422f 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,33 @@ EmbeddedWalletDevice.JSON_PROPERTY_ENABLED, EmbeddedWalletDevice.JSON_PROPERTY_PHYSICAL_DEVICE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String deviceId; + @jakarta.annotation.Nonnull private String deviceId; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nonnull private Boolean enabled; public static final String JSON_PROPERTY_PHYSICAL_DEVICE_ID = "physicalDeviceId"; - private String physicalDeviceId; + @jakarta.annotation.Nonnull private String physicalDeviceId; public EmbeddedWalletDevice() {} - public EmbeddedWalletDevice deviceId(String deviceId) { + @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; } @@ -59,11 +72,11 @@ public String getDeviceId() { @JsonProperty(JSON_PROPERTY_DEVICE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeviceId(String deviceId) { + public void setDeviceId(@jakarta.annotation.Nonnull String deviceId) { this.deviceId = deviceId; } - public EmbeddedWalletDevice enabled(Boolean enabled) { + public EmbeddedWalletDevice enabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -82,11 +95,12 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } - public EmbeddedWalletDevice physicalDeviceId(String physicalDeviceId) { + public EmbeddedWalletDevice physicalDeviceId( + @jakarta.annotation.Nonnull String physicalDeviceId) { this.physicalDeviceId = physicalDeviceId; return this; } @@ -105,7 +119,7 @@ public String getPhysicalDeviceId() { @JsonProperty(JSON_PROPERTY_PHYSICAL_DEVICE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhysicalDeviceId(String physicalDeviceId) { + public void setPhysicalDeviceId(@jakarta.annotation.Nonnull String physicalDeviceId) { this.physicalDeviceId = physicalDeviceId; } @@ -190,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%sdeviceId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDeviceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeviceId())))); } // add `enabled` to the URL query string @@ -201,8 +214,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } // add `physicalDeviceId` to the URL query string @@ -212,10 +224,7 @@ public String toUrlQueryString(String prefix) { "%sphysicalDeviceId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPhysicalDeviceId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 80e016f6..8dd8e540 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,24 +30,43 @@ EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_ENABLED, EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_SETUP_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private EmbeddedWalletSetUpStatus status; + @jakarta.annotation.Nonnull private EmbeddedWalletSetUpStatus status; public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; - private String deviceId; + @jakarta.annotation.Nonnull private String deviceId; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean 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() {} - public EmbeddedWalletDeviceKeySetupResponse status(EmbeddedWalletSetUpStatus status) { + @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; } @@ -66,11 +85,12 @@ public EmbeddedWalletSetUpStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(EmbeddedWalletSetUpStatus status) { + public void setStatus(@jakarta.annotation.Nonnull EmbeddedWalletSetUpStatus status) { this.status = status; } - public EmbeddedWalletDeviceKeySetupResponse deviceId(String deviceId) { + public EmbeddedWalletDeviceKeySetupResponse deviceId( + @jakarta.annotation.Nonnull String deviceId) { this.deviceId = deviceId; return this; } @@ -89,11 +109,12 @@ public String getDeviceId() { @JsonProperty(JSON_PROPERTY_DEVICE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeviceId(String deviceId) { + public void setDeviceId(@jakarta.annotation.Nonnull String deviceId) { this.deviceId = deviceId; } - public EmbeddedWalletDeviceKeySetupResponse enabled(Boolean enabled) { + public EmbeddedWalletDeviceKeySetupResponse enabled( + @jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -112,12 +133,13 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } public EmbeddedWalletDeviceKeySetupResponse setupStatus( - List setupStatus) { + @jakarta.annotation.Nonnull + List setupStatus) { this.setupStatus = setupStatus; return this; } @@ -146,7 +168,8 @@ public List getSetupStatus @JsonProperty(JSON_PROPERTY_SETUP_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSetupStatus( - List setupStatus) { + @jakarta.annotation.Nonnull + List setupStatus) { this.setupStatus = setupStatus; } @@ -240,8 +263,7 @@ public String toUrlQueryString(String prefix) { "%sdeviceId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDeviceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeviceId())))); } // add `enabled` to the URL query string @@ -251,8 +273,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } // add `setupStatus` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java index e7f51e71..58c785c9 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,21 +27,34 @@ EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_CONFIRMED, EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_BACKED_UP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private EmbeddedWalletAlgoritm algorithmName; + @jakarta.annotation.Nonnull private EmbeddedWalletAlgoritm algorithmName; public static final String JSON_PROPERTY_CONFIRMED = "confirmed"; - private Boolean confirmed; + @jakarta.annotation.Nonnull private Boolean confirmed; public static final String JSON_PROPERTY_BACKED_UP = "backedUp"; - private Boolean 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( - EmbeddedWalletAlgoritm algorithmName) { + @jakarta.annotation.Nonnull EmbeddedWalletAlgoritm algorithmName) { this.algorithmName = algorithmName; return this; } @@ -60,11 +73,12 @@ public EmbeddedWalletAlgoritm getAlgorithmName() { @JsonProperty(JSON_PROPERTY_ALGORITHM_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithmName(EmbeddedWalletAlgoritm algorithmName) { + public void setAlgorithmName(@jakarta.annotation.Nonnull EmbeddedWalletAlgoritm algorithmName) { this.algorithmName = algorithmName; } - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner confirmed(Boolean confirmed) { + public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner confirmed( + @jakarta.annotation.Nonnull Boolean confirmed) { this.confirmed = confirmed; return this; } @@ -83,11 +97,12 @@ public Boolean getConfirmed() { @JsonProperty(JSON_PROPERTY_CONFIRMED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfirmed(Boolean confirmed) { + public void setConfirmed(@jakarta.annotation.Nonnull Boolean confirmed) { this.confirmed = confirmed; } - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner backedUp(Boolean backedUp) { + public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner backedUp( + @jakarta.annotation.Nonnull Boolean backedUp) { this.backedUp = backedUp; return this; } @@ -106,7 +121,7 @@ public Boolean getBackedUp() { @JsonProperty(JSON_PROPERTY_BACKED_UP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBackedUp(Boolean backedUp) { + public void setBackedUp(@jakarta.annotation.Nonnull Boolean backedUp) { this.backedUp = backedUp; } @@ -207,9 +222,7 @@ public String toUrlQueryString(String prefix) { "%sconfirmed%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfirmed()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConfirmed())))); } // add `backedUp` to the URL query string @@ -219,8 +232,7 @@ public String toUrlQueryString(String prefix) { "%sbackedUp%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBackedUp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index f2e2a3bd..e4ad9349 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,24 +29,26 @@ EmbeddedWalletLatestBackupKey.JSON_PROPERTY_KEY_ID, EmbeddedWalletLatestBackupKey.JSON_PROPERTY_ALGORITHM }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String deviceId; + @jakarta.annotation.Nonnull private String deviceId; public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - private String publicKey; + @jakarta.annotation.Nonnull private String publicKey; public static final String JSON_PROPERTY_KEY_ID = "keyId"; - private String keyId; + @jakarta.annotation.Nonnull private String keyId; /** algorithm */ public enum AlgorithmEnum { - CMP_ECDSA_SECP256K1("MPC_CMP_ECDSA_SECP256K1"), + MPC_CMP_ECDSA_SECP256_K1(String.valueOf("MPC_CMP_ECDSA_SECP256K1")), - CMP_EDDSA_ED25519("MPC_CMP_EDDSA_ED25519"), + MPC_CMP_EDDSA_ED25519(String.valueOf("MPC_CMP_EDDSA_ED25519")), - ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"); + MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")); private String value; @@ -77,11 +78,24 @@ public static AlgorithmEnum fromValue(String value) { } public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private AlgorithmEnum algorithm; + @jakarta.annotation.Nonnull private AlgorithmEnum algorithm; public EmbeddedWalletLatestBackupKey() {} - public EmbeddedWalletLatestBackupKey deviceId(String deviceId) { + @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; } @@ -100,11 +114,11 @@ public String getDeviceId() { @JsonProperty(JSON_PROPERTY_DEVICE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeviceId(String deviceId) { + public void setDeviceId(@jakarta.annotation.Nonnull String deviceId) { this.deviceId = deviceId; } - public EmbeddedWalletLatestBackupKey publicKey(String publicKey) { + public EmbeddedWalletLatestBackupKey publicKey(@jakarta.annotation.Nonnull String publicKey) { this.publicKey = publicKey; return this; } @@ -123,11 +137,11 @@ public String getPublicKey() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKey(String publicKey) { + public void setPublicKey(@jakarta.annotation.Nonnull String publicKey) { this.publicKey = publicKey; } - public EmbeddedWalletLatestBackupKey keyId(String keyId) { + public EmbeddedWalletLatestBackupKey keyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; return this; } @@ -146,11 +160,12 @@ public String getKeyId() { @JsonProperty(JSON_PROPERTY_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyId(String keyId) { + public void setKeyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; } - public EmbeddedWalletLatestBackupKey algorithm(AlgorithmEnum algorithm) { + public EmbeddedWalletLatestBackupKey algorithm( + @jakarta.annotation.Nonnull AlgorithmEnum algorithm) { this.algorithm = algorithm; return this; } @@ -169,7 +184,7 @@ public AlgorithmEnum getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(AlgorithmEnum algorithm) { + public void setAlgorithm(@jakarta.annotation.Nonnull AlgorithmEnum algorithm) { this.algorithm = algorithm; } @@ -257,8 +272,7 @@ public String toUrlQueryString(String prefix) { "%sdeviceId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDeviceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeviceId())))); } // add `publicKey` to the URL query string @@ -268,9 +282,7 @@ public String toUrlQueryString(String prefix) { "%spublicKey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); } // add `keyId` to the URL query string @@ -280,8 +292,7 @@ public String toUrlQueryString(String prefix) { "%skeyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getKeyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getKeyId())))); } // add `algorithm` to the URL query string @@ -291,9 +302,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 7cfbacc1..a24c26c1 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,20 +30,36 @@ EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_CREATED_AT, EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_KEYS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String passphraseId; + @jakarta.annotation.Nonnull private String passphraseId; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private BigDecimal 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() {} - public EmbeddedWalletLatestBackupResponse passphraseId(String passphraseId) { + @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; } @@ -62,11 +78,12 @@ public String getPassphraseId() { @JsonProperty(JSON_PROPERTY_PASSPHRASE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassphraseId(String passphraseId) { + public void setPassphraseId(@jakarta.annotation.Nonnull String passphraseId) { this.passphraseId = passphraseId; } - public EmbeddedWalletLatestBackupResponse createdAt(BigDecimal createdAt) { + public EmbeddedWalletLatestBackupResponse createdAt( + @jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; return this; } @@ -85,11 +102,12 @@ public BigDecimal getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; } - public EmbeddedWalletLatestBackupResponse keys(List keys) { + public EmbeddedWalletLatestBackupResponse keys( + @jakarta.annotation.Nonnull List keys) { this.keys = keys; return this; } @@ -116,7 +134,7 @@ public List getKeys() { @JsonProperty(JSON_PROPERTY_KEYS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeys(List keys) { + public void setKeys(@jakarta.annotation.Nonnull List keys) { this.keys = keys; } @@ -202,10 +220,7 @@ public String toUrlQueryString(String prefix) { "%spassphraseId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPassphraseId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPassphraseId())))); } // add `createdAt` to the URL query string @@ -215,9 +230,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `keys` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java index cdcc8dee..28eb5222 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ EmbeddedWalletPaginatedAddressesResponse.JSON_PROPERTY_DATA, EmbeddedWalletPaginatedAddressesResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public EmbeddedWalletPaginatedAddressesResponse() {} - public EmbeddedWalletPaginatedAddressesResponse data(List data) { + @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; } @@ -66,11 +76,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public EmbeddedWalletPaginatedAddressesResponse next(String next) { + public EmbeddedWalletPaginatedAddressesResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -89,7 +99,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -196,8 +206,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 6b872a04..8ff0baf3 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ EmbeddedWalletPaginatedAssetsResponse.JSON_PROPERTY_DATA, EmbeddedWalletPaginatedAssetsResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public EmbeddedWalletPaginatedAssetsResponse() {} - public EmbeddedWalletPaginatedAssetsResponse data(List data) { + @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; } @@ -65,11 +75,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public EmbeddedWalletPaginatedAssetsResponse next(String next) { + public EmbeddedWalletPaginatedAssetsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +98,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -195,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index b1b49931..4ec272a8 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,26 @@ EmbeddedWalletPaginatedWalletsResponse.JSON_PROPERTY_DATA, EmbeddedWalletPaginatedWalletsResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public EmbeddedWalletPaginatedWalletsResponse() {} - public EmbeddedWalletPaginatedWalletsResponse data(List data) { + @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; } @@ -65,11 +74,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public EmbeddedWalletPaginatedWalletsResponse next(String next) { + public EmbeddedWalletPaginatedWalletsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +97,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -195,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 41d0d426..1f1b6884 100644 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java @@ -18,20 +18,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class EmbeddedWalletSetUpStatus { /** status */ public enum StatusEnum { - COMPLETE("COMPLETE"), + COMPLETE(String.valueOf("COMPLETE")), - INCOMPLETE("INCOMPLETE"); + INCOMPLETE(String.valueOf("INCOMPLETE")); private String value; @@ -61,11 +62,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public EmbeddedWalletSetUpStatus() {} - public EmbeddedWalletSetUpStatus status(StatusEnum status) { + @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; } @@ -84,7 +91,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } @@ -165,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/ErrorResponse.java index 93f70d21..395762f0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ErrorResponse.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; @@ -21,14 +22,22 @@ /** ErrorResponse */ @JsonPropertyOrder({ErrorResponse.JSON_PROPERTY_ERROR}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ErrorResponse { public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorResponseError error; + @jakarta.annotation.Nonnull private ErrorResponseError error; public ErrorResponse() {} - public ErrorResponse error(ErrorResponseError error) { + @JsonCreator + public ErrorResponse( + @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) ErrorResponseError error) { + this.error = error; + } + + public ErrorResponse error(@jakarta.annotation.Nonnull ErrorResponseError error) { this.error = error; return this; } @@ -47,7 +56,7 @@ public ErrorResponseError getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setError(ErrorResponseError error) { + public void setError(@jakarta.annotation.Nonnull ErrorResponseError error) { this.error = error; } diff --git a/src/main/java/com/fireblocks/sdk/model/ErrorResponseError.java b/src/main/java/com/fireblocks/sdk/model/ErrorResponseError.java index 29544c56..345eb034 100644 --- a/src/main/java/com/fireblocks/sdk/model/ErrorResponseError.java +++ b/src/main/java/com/fireblocks/sdk/model/ErrorResponseError.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ ErrorResponseError.JSON_PROPERTY_TYPE, ErrorResponseError.JSON_PROPERTY_MESSAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ErrorResponseError { /** Gets or Sets type */ public enum TypeEnum { - INTERNAL("INTERNAL"), + INTERNAL(String.valueOf("INTERNAL")), - AUTHENTICATION("AUTHENTICATION"), + AUTHENTICATION(String.valueOf("AUTHENTICATION")), - AUTHORIZATION("AUTHORIZATION"), + AUTHORIZATION(String.valueOf("AUTHORIZATION")), - VALIDATION("VALIDATION"), + VALIDATION(String.valueOf("VALIDATION")), - NOT_FOUND("NOT_FOUND"), + NOT_FOUND(String.valueOf("NOT_FOUND")), - UNPROCESSABLE_ENTITY("UNPROCESSABLE_ENTITY"), + UNPROCESSABLE_ENTITY(String.valueOf("UNPROCESSABLE_ENTITY")), - FORBIDDEN("FORBIDDEN"); + FORBIDDEN(String.valueOf("FORBIDDEN")); private String value; @@ -74,14 +75,22 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public ErrorResponseError() {} - public ErrorResponseError type(TypeEnum type) { + @JsonCreator + public ErrorResponseError( + @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 ErrorResponseError type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -100,11 +109,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public ErrorResponseError message(String message) { + public ErrorResponseError message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -123,7 +132,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } @@ -206,8 +215,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `message` to the URL query string @@ -217,8 +225,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ErrorSchema.java b/src/main/java/com/fireblocks/sdk/model/ErrorSchema.java index 8e54c754..d14dfd0e 100644 --- a/src/main/java/com/fireblocks/sdk/model/ErrorSchema.java +++ b/src/main/java/com/fireblocks/sdk/model/ErrorSchema.java @@ -16,25 +16,26 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** ErrorSchema */ @JsonPropertyOrder({ErrorSchema.JSON_PROPERTY_MESSAGE, ErrorSchema.JSON_PROPERTY_CODE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ErrorSchema { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nullable private BigDecimal code; public ErrorSchema() {} - public ErrorSchema message(String message) { + public ErrorSchema message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -53,11 +54,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public ErrorSchema code(BigDecimal code) { + public ErrorSchema code(@jakarta.annotation.Nullable BigDecimal code) { this.code = code; return this; } @@ -76,7 +77,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nullable BigDecimal code) { this.code = code; } @@ -159,8 +160,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -170,8 +170,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java b/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java index 1cd9dd0e..2aac8a91 100644 --- a/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java +++ b/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java @@ -25,20 +25,22 @@ EstimatedFeeDetails.JSON_PROPERTY_MEDIUM, EstimatedFeeDetails.JSON_PROPERTY_HIGH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private FeeBreakdown low; + @jakarta.annotation.Nullable private FeeBreakdown low; public static final String JSON_PROPERTY_MEDIUM = "medium"; - private FeeBreakdown medium; + @jakarta.annotation.Nullable private FeeBreakdown medium; public static final String JSON_PROPERTY_HIGH = "high"; - private FeeBreakdown high; + @jakarta.annotation.Nullable private FeeBreakdown high; public EstimatedFeeDetails() {} - public EstimatedFeeDetails low(FeeBreakdown low) { + public EstimatedFeeDetails low(@jakarta.annotation.Nullable FeeBreakdown low) { this.low = low; return this; } @@ -57,11 +59,11 @@ public FeeBreakdown getLow() { @JsonProperty(JSON_PROPERTY_LOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLow(FeeBreakdown low) { + public void setLow(@jakarta.annotation.Nullable FeeBreakdown low) { this.low = low; } - public EstimatedFeeDetails medium(FeeBreakdown medium) { + public EstimatedFeeDetails medium(@jakarta.annotation.Nullable FeeBreakdown medium) { this.medium = medium; return this; } @@ -80,11 +82,11 @@ public FeeBreakdown getMedium() { @JsonProperty(JSON_PROPERTY_MEDIUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedium(FeeBreakdown medium) { + public void setMedium(@jakarta.annotation.Nullable FeeBreakdown medium) { this.medium = medium; } - public EstimatedFeeDetails high(FeeBreakdown high) { + public EstimatedFeeDetails high(@jakarta.annotation.Nullable FeeBreakdown high) { this.high = high; return this; } @@ -103,7 +105,7 @@ public FeeBreakdown getHigh() { @JsonProperty(JSON_PROPERTY_HIGH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHigh(FeeBreakdown high) { + public void setHigh(@jakarta.annotation.Nullable FeeBreakdown high) { this.high = high; } diff --git a/src/main/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponse.java b/src/main/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponse.java index 9763ce2a..512c56bb 100644 --- a/src/main/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponse.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; @@ -25,20 +26,32 @@ EstimatedNetworkFeeResponse.JSON_PROPERTY_MEDIUM, EstimatedNetworkFeeResponse.JSON_PROPERTY_HIGH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class EstimatedNetworkFeeResponse { public static final String JSON_PROPERTY_LOW = "low"; - private NetworkFee low; + @jakarta.annotation.Nonnull private NetworkFee low; public static final String JSON_PROPERTY_MEDIUM = "medium"; - private NetworkFee medium; + @jakarta.annotation.Nonnull private NetworkFee medium; public static final String JSON_PROPERTY_HIGH = "high"; - private NetworkFee high; + @jakarta.annotation.Nonnull private NetworkFee high; public EstimatedNetworkFeeResponse() {} - public EstimatedNetworkFeeResponse low(NetworkFee low) { + @JsonCreator + public EstimatedNetworkFeeResponse( + @JsonProperty(value = JSON_PROPERTY_LOW, required = true) NetworkFee low, + @JsonProperty(value = JSON_PROPERTY_MEDIUM, required = true) NetworkFee medium, + @JsonProperty(value = JSON_PROPERTY_HIGH, required = true) NetworkFee high) { + this.low = low; + this.medium = medium; + this.high = high; + } + + public EstimatedNetworkFeeResponse low(@jakarta.annotation.Nonnull NetworkFee low) { this.low = low; return this; } @@ -57,11 +70,11 @@ public NetworkFee getLow() { @JsonProperty(JSON_PROPERTY_LOW) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLow(NetworkFee low) { + public void setLow(@jakarta.annotation.Nonnull NetworkFee low) { this.low = low; } - public EstimatedNetworkFeeResponse medium(NetworkFee medium) { + public EstimatedNetworkFeeResponse medium(@jakarta.annotation.Nonnull NetworkFee medium) { this.medium = medium; return this; } @@ -80,11 +93,11 @@ public NetworkFee getMedium() { @JsonProperty(JSON_PROPERTY_MEDIUM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMedium(NetworkFee medium) { + public void setMedium(@jakarta.annotation.Nonnull NetworkFee medium) { this.medium = medium; } - public EstimatedNetworkFeeResponse high(NetworkFee high) { + public EstimatedNetworkFeeResponse high(@jakarta.annotation.Nonnull NetworkFee high) { this.high = high; return this; } @@ -103,7 +116,7 @@ public NetworkFee getHigh() { @JsonProperty(JSON_PROPERTY_HIGH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHigh(NetworkFee high) { + public void setHigh(@jakarta.annotation.Nonnull NetworkFee high) { this.high = high; } diff --git a/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java b/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java index c184aa06..15cf6f70 100644 --- a/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.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; @@ -26,23 +27,35 @@ EstimatedTransactionFeeResponse.JSON_PROPERTY_HIGH, EstimatedTransactionFeeResponse.JSON_PROPERTY_FEE_DETAILS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class EstimatedTransactionFeeResponse { public static final String JSON_PROPERTY_LOW = "low"; - private TransactionFee low; + @jakarta.annotation.Nonnull private TransactionFee low; public static final String JSON_PROPERTY_MEDIUM = "medium"; - private TransactionFee medium; + @jakarta.annotation.Nonnull private TransactionFee medium; public static final String JSON_PROPERTY_HIGH = "high"; - private TransactionFee high; + @jakarta.annotation.Nonnull private TransactionFee high; public static final String JSON_PROPERTY_FEE_DETAILS = "feeDetails"; - private EstimatedFeeDetails feeDetails; + @jakarta.annotation.Nullable private EstimatedFeeDetails feeDetails; public EstimatedTransactionFeeResponse() {} - public EstimatedTransactionFeeResponse low(TransactionFee low) { + @JsonCreator + public EstimatedTransactionFeeResponse( + @JsonProperty(value = JSON_PROPERTY_LOW, required = true) TransactionFee low, + @JsonProperty(value = JSON_PROPERTY_MEDIUM, required = true) TransactionFee medium, + @JsonProperty(value = JSON_PROPERTY_HIGH, required = true) TransactionFee high) { + this.low = low; + this.medium = medium; + this.high = high; + } + + public EstimatedTransactionFeeResponse low(@jakarta.annotation.Nonnull TransactionFee low) { this.low = low; return this; } @@ -61,11 +74,12 @@ public TransactionFee getLow() { @JsonProperty(JSON_PROPERTY_LOW) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLow(TransactionFee low) { + public void setLow(@jakarta.annotation.Nonnull TransactionFee low) { this.low = low; } - public EstimatedTransactionFeeResponse medium(TransactionFee medium) { + public EstimatedTransactionFeeResponse medium( + @jakarta.annotation.Nonnull TransactionFee medium) { this.medium = medium; return this; } @@ -84,11 +98,11 @@ public TransactionFee getMedium() { @JsonProperty(JSON_PROPERTY_MEDIUM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMedium(TransactionFee medium) { + public void setMedium(@jakarta.annotation.Nonnull TransactionFee medium) { this.medium = medium; } - public EstimatedTransactionFeeResponse high(TransactionFee high) { + public EstimatedTransactionFeeResponse high(@jakarta.annotation.Nonnull TransactionFee high) { this.high = high; return this; } @@ -107,11 +121,12 @@ public TransactionFee getHigh() { @JsonProperty(JSON_PROPERTY_HIGH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHigh(TransactionFee high) { + public void setHigh(@jakarta.annotation.Nonnull TransactionFee high) { this.high = high; } - public EstimatedTransactionFeeResponse feeDetails(EstimatedFeeDetails feeDetails) { + public EstimatedTransactionFeeResponse feeDetails( + @jakarta.annotation.Nullable EstimatedFeeDetails feeDetails) { this.feeDetails = feeDetails; return this; } @@ -130,7 +145,7 @@ public EstimatedFeeDetails getFeeDetails() { @JsonProperty(JSON_PROPERTY_FEE_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeDetails(EstimatedFeeDetails feeDetails) { + public void setFeeDetails(@jakarta.annotation.Nullable EstimatedFeeDetails feeDetails) { this.feeDetails = feeDetails; } diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java index e89bd1a4..0579df69 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -35,38 +34,42 @@ ExchangeAccount.JSON_PROPERTY_IS_SUBACCOUNT, ExchangeAccount.JSON_PROPERTY_MAIN_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeAccount { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private ExchangeType type; + @jakarta.annotation.Nullable private ExchangeType type; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_ASSETS = "assets"; - private List assets; + @jakarta.annotation.Nullable private List assets = new ArrayList<>(); public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public static final String JSON_PROPERTY_TRADING_ACCOUNTS = "tradingAccounts"; - private List tradingAccounts; + + @jakarta.annotation.Nullable + private List tradingAccounts = new ArrayList<>(); public static final String JSON_PROPERTY_IS_SUBACCOUNT = "isSubaccount"; - private Boolean isSubaccount; + @jakarta.annotation.Nullable private Boolean isSubaccount; public static final String JSON_PROPERTY_MAIN_ACCOUNT_ID = "mainAccountId"; - private String mainAccountId; + @jakarta.annotation.Nullable private String mainAccountId; public ExchangeAccount() {} - public ExchangeAccount id(String id) { + public ExchangeAccount id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -85,11 +88,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public ExchangeAccount type(ExchangeType type) { + public ExchangeAccount type(@jakarta.annotation.Nullable ExchangeType type) { this.type = type; return this; } @@ -108,11 +111,11 @@ public ExchangeType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(ExchangeType type) { + public void setType(@jakarta.annotation.Nullable ExchangeType type) { this.type = type; } - public ExchangeAccount name(String name) { + public ExchangeAccount name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -131,11 +134,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public ExchangeAccount status(String status) { + public ExchangeAccount status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -154,11 +157,11 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public ExchangeAccount assets(List assets) { + public ExchangeAccount assets(@jakarta.annotation.Nullable List assets) { this.assets = assets; return this; } @@ -185,11 +188,11 @@ public List getAssets() { @JsonProperty(JSON_PROPERTY_ASSETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssets(List assets) { + public void setAssets(@jakarta.annotation.Nullable List assets) { this.assets = assets; } - public ExchangeAccount success(Boolean success) { + public ExchangeAccount success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -208,11 +211,12 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } - public ExchangeAccount tradingAccounts(List tradingAccounts) { + public ExchangeAccount tradingAccounts( + @jakarta.annotation.Nullable List tradingAccounts) { this.tradingAccounts = tradingAccounts; return this; } @@ -239,11 +243,12 @@ public List getTradingAccounts() { @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTradingAccounts(List tradingAccounts) { + public void setTradingAccounts( + @jakarta.annotation.Nullable List tradingAccounts) { this.tradingAccounts = tradingAccounts; } - public ExchangeAccount isSubaccount(Boolean isSubaccount) { + public ExchangeAccount isSubaccount(@jakarta.annotation.Nullable Boolean isSubaccount) { this.isSubaccount = isSubaccount; return this; } @@ -262,11 +267,11 @@ public Boolean getIsSubaccount() { @JsonProperty(JSON_PROPERTY_IS_SUBACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsSubaccount(Boolean isSubaccount) { + public void setIsSubaccount(@jakarta.annotation.Nullable Boolean isSubaccount) { this.isSubaccount = isSubaccount; } - public ExchangeAccount mainAccountId(String mainAccountId) { + public ExchangeAccount mainAccountId(@jakarta.annotation.Nullable String mainAccountId) { this.mainAccountId = mainAccountId; return this; } @@ -285,7 +290,7 @@ public String getMainAccountId() { @JsonProperty(JSON_PROPERTY_MAIN_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainAccountId(String mainAccountId) { + public void setMainAccountId(@jakarta.annotation.Nullable String mainAccountId) { this.mainAccountId = mainAccountId; } @@ -389,10 +394,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -402,8 +404,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `name` to the URL query string @@ -413,8 +414,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `status` to the URL query string @@ -424,8 +424,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `assets` to the URL query string @@ -458,8 +457,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } // add `tradingAccounts` to the URL query string @@ -492,10 +490,7 @@ public String toUrlQueryString(String prefix) { "%sisSubaccount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsSubaccount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsSubaccount())))); } // add `mainAccountId` to the URL query string @@ -505,10 +500,7 @@ public String toUrlQueryString(String prefix) { "%smainAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMainAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMainAccountId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java index 88d50b3c..bfc7b351 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +29,26 @@ ExchangeAccountsPaged.JSON_PROPERTY_PREV_URL, ExchangeAccountsPaged.JSON_PROPERTY_NEXT_URL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeAccountsPaged { public static final String JSON_PROPERTY_EXCHANGE_ACCOUNT = "ExchangeAccount"; - private List exchangeAccount; + @jakarta.annotation.Nullable private List exchangeAccount = new ArrayList<>(); public static final String JSON_PROPERTY_PAGING = "paging"; - private ExchangeAccountsPagedPaging paging; + @jakarta.annotation.Nullable private ExchangeAccountsPagedPaging paging; public static final String JSON_PROPERTY_PREV_URL = "prevUrl"; - private String prevUrl; + @jakarta.annotation.Nullable private String prevUrl; public static final String JSON_PROPERTY_NEXT_URL = "nextUrl"; - private String nextUrl; + @jakarta.annotation.Nullable private String nextUrl; public ExchangeAccountsPaged() {} - public ExchangeAccountsPaged exchangeAccount(List exchangeAccount) { + public ExchangeAccountsPaged exchangeAccount( + @jakarta.annotation.Nullable List exchangeAccount) { this.exchangeAccount = exchangeAccount; return this; } @@ -73,11 +75,13 @@ public List getExchangeAccount() { @JsonProperty(JSON_PROPERTY_EXCHANGE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExchangeAccount(List exchangeAccount) { + public void setExchangeAccount( + @jakarta.annotation.Nullable List exchangeAccount) { this.exchangeAccount = exchangeAccount; } - public ExchangeAccountsPaged paging(ExchangeAccountsPagedPaging paging) { + public ExchangeAccountsPaged paging( + @jakarta.annotation.Nullable ExchangeAccountsPagedPaging paging) { this.paging = paging; return this; } @@ -96,11 +100,11 @@ public ExchangeAccountsPagedPaging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(ExchangeAccountsPagedPaging paging) { + public void setPaging(@jakarta.annotation.Nullable ExchangeAccountsPagedPaging paging) { this.paging = paging; } - public ExchangeAccountsPaged prevUrl(String prevUrl) { + public ExchangeAccountsPaged prevUrl(@jakarta.annotation.Nullable String prevUrl) { this.prevUrl = prevUrl; return this; } @@ -119,11 +123,11 @@ public String getPrevUrl() { @JsonProperty(JSON_PROPERTY_PREV_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrevUrl(String prevUrl) { + public void setPrevUrl(@jakarta.annotation.Nullable String prevUrl) { this.prevUrl = prevUrl; } - public ExchangeAccountsPaged nextUrl(String nextUrl) { + public ExchangeAccountsPaged nextUrl(@jakarta.annotation.Nullable String nextUrl) { this.nextUrl = nextUrl; return this; } @@ -142,7 +146,7 @@ public String getNextUrl() { @JsonProperty(JSON_PROPERTY_NEXT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNextUrl(String nextUrl) { + public void setNextUrl(@jakarta.annotation.Nullable String nextUrl) { this.nextUrl = nextUrl; } @@ -257,8 +261,7 @@ public String toUrlQueryString(String prefix) { "%sprevUrl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPrevUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPrevUrl())))); } // add `nextUrl` to the URL query string @@ -268,8 +271,7 @@ public String toUrlQueryString(String prefix) { "%snextUrl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNextUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNextUrl())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPaging.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPaging.java index b22c39c1..224991f2 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPaging.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPaging.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ ExchangeAccountsPagedPaging.JSON_PROPERTY_AFTER, ExchangeAccountsPagedPaging.JSON_PROPERTY_BEFORE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeAccountsPagedPaging { public static final String JSON_PROPERTY_AFTER = "after"; - private String after; + @jakarta.annotation.Nullable private String after; public static final String JSON_PROPERTY_BEFORE = "before"; - private String before; + @jakarta.annotation.Nullable private String before; public ExchangeAccountsPagedPaging() {} - public ExchangeAccountsPagedPaging after(String after) { + public ExchangeAccountsPagedPaging after(@jakarta.annotation.Nullable String after) { this.after = after; return this; } @@ -55,11 +56,11 @@ public String getAfter() { @JsonProperty(JSON_PROPERTY_AFTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAfter(String after) { + public void setAfter(@jakarta.annotation.Nullable String after) { this.after = after; } - public ExchangeAccountsPagedPaging before(String before) { + public ExchangeAccountsPagedPaging before(@jakarta.annotation.Nullable String before) { this.before = before; return this; } @@ -78,7 +79,7 @@ public String getBefore() { @JsonProperty(JSON_PROPERTY_BEFORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBefore(String before) { + public void setBefore(@jakarta.annotation.Nullable String before) { this.before = before; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%safter%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAfter()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAfter())))); } // add `before` to the URL query string @@ -172,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%sbefore%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBefore()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBefore())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java index 4be5887c..6fd0e542 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +29,31 @@ ExchangeAsset.JSON_PROPERTY_AVAILABLE, ExchangeAsset.JSON_PROPERTY_CREDIT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeAsset { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_BALANCE = "balance"; - private String balance; + @jakarta.annotation.Nullable private String balance; public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - private String lockedAmount; + @jakarta.annotation.Nullable private String lockedAmount; public static final String JSON_PROPERTY_TOTAL = "total"; - private String total; + @jakarta.annotation.Nullable private String total; public static final String JSON_PROPERTY_AVAILABLE = "available"; - private String available; + @jakarta.annotation.Nullable private String available; public static final String JSON_PROPERTY_CREDIT = "credit"; - private String credit; + @jakarta.annotation.Nullable private String credit; public ExchangeAsset() {} - public ExchangeAsset id(String id) { + public ExchangeAsset id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -71,11 +72,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public ExchangeAsset balance(String balance) { + public ExchangeAsset balance(@jakarta.annotation.Nullable String balance) { this.balance = balance; return this; } @@ -94,11 +95,11 @@ public String getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalance(String balance) { + public void setBalance(@jakarta.annotation.Nullable String balance) { this.balance = balance; } - public ExchangeAsset lockedAmount(String lockedAmount) { + public ExchangeAsset lockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; return this; } @@ -117,11 +118,11 @@ public String getLockedAmount() { @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLockedAmount(String lockedAmount) { + public void setLockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; } - public ExchangeAsset total(String total) { + public ExchangeAsset total(@jakarta.annotation.Nullable String total) { this.total = total; return this; } @@ -140,11 +141,11 @@ public String getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(String total) { + public void setTotal(@jakarta.annotation.Nullable String total) { this.total = total; } - public ExchangeAsset available(String available) { + public ExchangeAsset available(@jakarta.annotation.Nullable String available) { this.available = available; return this; } @@ -163,11 +164,11 @@ public String getAvailable() { @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAvailable(String available) { + public void setAvailable(@jakarta.annotation.Nullable String available) { this.available = available; } - public ExchangeAsset credit(String credit) { + public ExchangeAsset credit(@jakarta.annotation.Nullable String credit) { this.credit = credit; return this; } @@ -186,7 +187,7 @@ public String getCredit() { @JsonProperty(JSON_PROPERTY_CREDIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCredit(String credit) { + public void setCredit(@jakarta.annotation.Nullable String credit) { this.credit = credit; } @@ -275,10 +276,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `balance` to the URL query string @@ -288,8 +286,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } // add `lockedAmount` to the URL query string @@ -299,10 +296,7 @@ public String toUrlQueryString(String prefix) { "%slockedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); } // add `total` to the URL query string @@ -312,8 +306,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } // add `available` to the URL query string @@ -323,9 +316,7 @@ public String toUrlQueryString(String prefix) { "%savailable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAvailable()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAvailable())))); } // add `credit` to the URL query string @@ -335,8 +326,7 @@ public String toUrlQueryString(String prefix) { "%scredit%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCredit()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCredit())))); } 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 a695d8e7..3bbd5aa3 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java @@ -26,18 +26,22 @@ ExchangeSettlementTransactionsResponse.JSON_PROPERTY_TO_EXCHANGE, ExchangeSettlementTransactionsResponse.JSON_PROPERTY_TO_COLLATERAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeSettlementTransactionsResponse { public static final String JSON_PROPERTY_TO_EXCHANGE = "toExchange"; - private List toExchange; + @jakarta.annotation.Nullable private List toExchange = new ArrayList<>(); public static final String JSON_PROPERTY_TO_COLLATERAL = "toCollateral"; - private List toCollateral; + + @jakarta.annotation.Nullable + private List toCollateral = new ArrayList<>(); public ExchangeSettlementTransactionsResponse() {} public ExchangeSettlementTransactionsResponse toExchange( - List toExchange) { + @jakarta.annotation.Nullable List toExchange) { this.toExchange = toExchange; return this; } @@ -65,12 +69,12 @@ public List getToExchange() { @JsonProperty(JSON_PROPERTY_TO_EXCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setToExchange(List toExchange) { + public void setToExchange(@jakarta.annotation.Nullable List toExchange) { this.toExchange = toExchange; } public ExchangeSettlementTransactionsResponse toCollateral( - List toCollateral) { + @jakarta.annotation.Nullable List toCollateral) { this.toCollateral = toCollateral; return this; } @@ -98,7 +102,8 @@ public List getToCollateral() { @JsonProperty(JSON_PROPERTY_TO_COLLATERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setToCollateral(List toCollateral) { + public void setToCollateral( + @jakarta.annotation.Nullable List toCollateral) { this.toCollateral = toCollateral; } diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java b/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java index 1448f5d3..b03f414c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +28,22 @@ ExchangeTradingAccount.JSON_PROPERTY_NAME, ExchangeTradingAccount.JSON_PROPERTY_ASSETS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExchangeTradingAccount { public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ASSETS = "assets"; - private List assets; + @jakarta.annotation.Nullable private List assets = new ArrayList<>(); public ExchangeTradingAccount() {} - public ExchangeTradingAccount type(String type) { + public ExchangeTradingAccount type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -61,11 +62,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ExchangeTradingAccount name(String name) { + public ExchangeTradingAccount name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -84,11 +85,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public ExchangeTradingAccount assets(List assets) { + public ExchangeTradingAccount assets(@jakarta.annotation.Nullable List assets) { this.assets = assets; return this; } @@ -115,7 +116,7 @@ public List getAssets() { @JsonProperty(JSON_PROPERTY_ASSETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssets(List assets) { + public void setAssets(@jakarta.annotation.Nullable List assets) { this.assets = assets; } @@ -200,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `name` to the URL query string @@ -211,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `assets` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionConversionOperation.java b/src/main/java/com/fireblocks/sdk/model/ExecutionConversionOperation.java index 13ea4f8c..42b0269c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionConversionOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/ExecutionConversionOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,44 @@ ExecutionConversionOperation.JSON_PROPERTY_PREVIEW, ExecutionConversionOperation.JSON_PROPERTY_EXECUTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExecutionConversionOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_STATUS = "status"; - private ExecutionOperationStatus status; + @jakarta.annotation.Nonnull private ExecutionOperationStatus status; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private ConversionValidationFailure validationFailure; + @jakarta.annotation.Nullable private ConversionValidationFailure validationFailure; public static final String JSON_PROPERTY_OPERATION_TYPE = "operationType"; - private ConversionOperationType operationType; + @jakarta.annotation.Nonnull private ConversionOperationType operationType; public static final String JSON_PROPERTY_PREVIEW = "preview"; - private ConversionOperationPreview preview; + @jakarta.annotation.Nullable private ConversionOperationPreview preview; public static final String JSON_PROPERTY_EXECUTION = "execution"; - private ConversionOperationExecution execution; + @jakarta.annotation.Nullable private ConversionOperationExecution execution; public ExecutionConversionOperation() {} - public ExecutionConversionOperation operationId(String operationId) { + @JsonCreator + public ExecutionConversionOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ExecutionOperationStatus status, + @JsonProperty(value = JSON_PROPERTY_OPERATION_TYPE, required = true) + ConversionOperationType operationType) { + this.operationId = operationId; + this.status = status; + this.operationType = operationType; + } + + public ExecutionConversionOperation operationId( + @jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -71,11 +86,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ExecutionConversionOperation status(ExecutionOperationStatus status) { + public ExecutionConversionOperation status( + @jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; return this; } @@ -94,12 +110,12 @@ public ExecutionOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ExecutionOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; } public ExecutionConversionOperation validationFailure( - ConversionValidationFailure validationFailure) { + @jakarta.annotation.Nullable ConversionValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -118,11 +134,13 @@ public ConversionValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(ConversionValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable ConversionValidationFailure validationFailure) { this.validationFailure = validationFailure; } - public ExecutionConversionOperation operationType(ConversionOperationType operationType) { + public ExecutionConversionOperation operationType( + @jakarta.annotation.Nonnull ConversionOperationType operationType) { this.operationType = operationType; return this; } @@ -141,11 +159,13 @@ public ConversionOperationType getOperationType() { @JsonProperty(JSON_PROPERTY_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationType(ConversionOperationType operationType) { + public void setOperationType( + @jakarta.annotation.Nonnull ConversionOperationType operationType) { this.operationType = operationType; } - public ExecutionConversionOperation preview(ConversionOperationPreview preview) { + public ExecutionConversionOperation preview( + @jakarta.annotation.Nullable ConversionOperationPreview preview) { this.preview = preview; return this; } @@ -164,11 +184,12 @@ public ConversionOperationPreview getPreview() { @JsonProperty(JSON_PROPERTY_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreview(ConversionOperationPreview preview) { + public void setPreview(@jakarta.annotation.Nullable ConversionOperationPreview preview) { this.preview = preview; } - public ExecutionConversionOperation execution(ConversionOperationExecution execution) { + public ExecutionConversionOperation execution( + @jakarta.annotation.Nullable ConversionOperationExecution execution) { this.execution = execution; return this; } @@ -187,7 +208,7 @@ public ConversionOperationExecution getExecution() { @JsonProperty(JSON_PROPERTY_EXECUTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExecution(ConversionOperationExecution execution) { + public void setExecution(@jakarta.annotation.Nullable ConversionOperationExecution execution) { this.execution = execution; } @@ -283,10 +304,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `status` to the URL query string @@ -296,8 +314,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `validationFailure` to the URL query string @@ -313,10 +330,7 @@ public String toUrlQueryString(String prefix) { "%soperationType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationType())))); } // add `preview` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionDisbursementOperation.java b/src/main/java/com/fireblocks/sdk/model/ExecutionDisbursementOperation.java index 8ce86dc1..c684a23f 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionDisbursementOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/ExecutionDisbursementOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,44 @@ ExecutionDisbursementOperation.JSON_PROPERTY_PREVIEW, ExecutionDisbursementOperation.JSON_PROPERTY_EXECUTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExecutionDisbursementOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_STATUS = "status"; - private ExecutionOperationStatus status; + @jakarta.annotation.Nonnull private ExecutionOperationStatus status; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private DisbursementValidationFailure validationFailure; + @jakarta.annotation.Nullable private DisbursementValidationFailure validationFailure; public static final String JSON_PROPERTY_OPERATION_TYPE = "operationType"; - private DisbursementOperationType operationType; + @jakarta.annotation.Nonnull private DisbursementOperationType operationType; public static final String JSON_PROPERTY_PREVIEW = "preview"; - private DisbursementOperationPreview preview; + @jakarta.annotation.Nullable private DisbursementOperationPreview preview; public static final String JSON_PROPERTY_EXECUTION = "execution"; - private DisbursementOperationExecution execution; + @jakarta.annotation.Nullable private DisbursementOperationExecution execution; public ExecutionDisbursementOperation() {} - public ExecutionDisbursementOperation operationId(String operationId) { + @JsonCreator + public ExecutionDisbursementOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ExecutionOperationStatus status, + @JsonProperty(value = JSON_PROPERTY_OPERATION_TYPE, required = true) + DisbursementOperationType operationType) { + this.operationId = operationId; + this.status = status; + this.operationType = operationType; + } + + public ExecutionDisbursementOperation operationId( + @jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -71,11 +86,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ExecutionDisbursementOperation status(ExecutionOperationStatus status) { + public ExecutionDisbursementOperation status( + @jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; return this; } @@ -94,12 +110,12 @@ public ExecutionOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ExecutionOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; } public ExecutionDisbursementOperation validationFailure( - DisbursementValidationFailure validationFailure) { + @jakarta.annotation.Nullable DisbursementValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -118,11 +134,13 @@ public DisbursementValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(DisbursementValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable DisbursementValidationFailure validationFailure) { this.validationFailure = validationFailure; } - public ExecutionDisbursementOperation operationType(DisbursementOperationType operationType) { + public ExecutionDisbursementOperation operationType( + @jakarta.annotation.Nonnull DisbursementOperationType operationType) { this.operationType = operationType; return this; } @@ -141,11 +159,13 @@ public DisbursementOperationType getOperationType() { @JsonProperty(JSON_PROPERTY_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationType(DisbursementOperationType operationType) { + public void setOperationType( + @jakarta.annotation.Nonnull DisbursementOperationType operationType) { this.operationType = operationType; } - public ExecutionDisbursementOperation preview(DisbursementOperationPreview preview) { + public ExecutionDisbursementOperation preview( + @jakarta.annotation.Nullable DisbursementOperationPreview preview) { this.preview = preview; return this; } @@ -164,11 +184,12 @@ public DisbursementOperationPreview getPreview() { @JsonProperty(JSON_PROPERTY_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreview(DisbursementOperationPreview preview) { + public void setPreview(@jakarta.annotation.Nullable DisbursementOperationPreview preview) { this.preview = preview; } - public ExecutionDisbursementOperation execution(DisbursementOperationExecution execution) { + public ExecutionDisbursementOperation execution( + @jakarta.annotation.Nullable DisbursementOperationExecution execution) { this.execution = execution; return this; } @@ -187,7 +208,8 @@ public DisbursementOperationExecution getExecution() { @JsonProperty(JSON_PROPERTY_EXECUTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExecution(DisbursementOperationExecution execution) { + public void setExecution( + @jakarta.annotation.Nullable DisbursementOperationExecution execution) { this.execution = execution; } @@ -283,10 +305,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `status` to the URL query string @@ -296,8 +315,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `validationFailure` to the URL query string @@ -313,10 +331,7 @@ public String toUrlQueryString(String prefix) { "%soperationType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationType())))); } // add `preview` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionScreeningOperation.java b/src/main/java/com/fireblocks/sdk/model/ExecutionScreeningOperation.java index 7323094e..ac240626 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionScreeningOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/ExecutionScreeningOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,40 @@ ExecutionScreeningOperation.JSON_PROPERTY_VALIDATION_FAILURE, ExecutionScreeningOperation.JSON_PROPERTY_EXECUTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExecutionScreeningOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_STATUS = "status"; - private ExecutionOperationStatus status; + @jakarta.annotation.Nonnull private ExecutionOperationStatus status; public static final String JSON_PROPERTY_OPERATION_TYPE = "operationType"; - private ScreeningOperationType operationType; + @jakarta.annotation.Nonnull private ScreeningOperationType operationType; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private ScreeningValidationFailure validationFailure; + @jakarta.annotation.Nullable private ScreeningValidationFailure validationFailure; public static final String JSON_PROPERTY_EXECUTION = "execution"; - private ScreeningOperationExecution execution; + @jakarta.annotation.Nullable private ScreeningOperationExecution execution; public ExecutionScreeningOperation() {} - public ExecutionScreeningOperation operationId(String operationId) { + @JsonCreator + public ExecutionScreeningOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ExecutionOperationStatus status, + @JsonProperty(value = JSON_PROPERTY_OPERATION_TYPE, required = true) + ScreeningOperationType operationType) { + this.operationId = operationId; + this.status = status; + this.operationType = operationType; + } + + public ExecutionScreeningOperation operationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -67,11 +81,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ExecutionScreeningOperation status(ExecutionOperationStatus status) { + public ExecutionScreeningOperation status( + @jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; return this; } @@ -90,11 +105,12 @@ public ExecutionOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ExecutionOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; } - public ExecutionScreeningOperation operationType(ScreeningOperationType operationType) { + public ExecutionScreeningOperation operationType( + @jakarta.annotation.Nonnull ScreeningOperationType operationType) { this.operationType = operationType; return this; } @@ -113,12 +129,12 @@ public ScreeningOperationType getOperationType() { @JsonProperty(JSON_PROPERTY_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationType(ScreeningOperationType operationType) { + public void setOperationType(@jakarta.annotation.Nonnull ScreeningOperationType operationType) { this.operationType = operationType; } public ExecutionScreeningOperation validationFailure( - ScreeningValidationFailure validationFailure) { + @jakarta.annotation.Nullable ScreeningValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -137,11 +153,13 @@ public ScreeningValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(ScreeningValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable ScreeningValidationFailure validationFailure) { this.validationFailure = validationFailure; } - public ExecutionScreeningOperation execution(ScreeningOperationExecution execution) { + public ExecutionScreeningOperation execution( + @jakarta.annotation.Nullable ScreeningOperationExecution execution) { this.execution = execution; return this; } @@ -160,7 +178,7 @@ public ScreeningOperationExecution getExecution() { @JsonProperty(JSON_PROPERTY_EXECUTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExecution(ScreeningOperationExecution execution) { + public void setExecution(@jakarta.annotation.Nullable ScreeningOperationExecution execution) { this.execution = execution; } @@ -252,10 +270,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `status` to the URL query string @@ -265,8 +280,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `operationType` to the URL query string @@ -276,10 +290,7 @@ public String toUrlQueryString(String prefix) { "%soperationType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationType())))); } // add `validationFailure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionTransferOperation.java b/src/main/java/com/fireblocks/sdk/model/ExecutionTransferOperation.java index deca3987..488ec746 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionTransferOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/ExecutionTransferOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,43 @@ ExecutionTransferOperation.JSON_PROPERTY_PREVIEW, ExecutionTransferOperation.JSON_PROPERTY_EXECUTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExecutionTransferOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_STATUS = "status"; - private ExecutionOperationStatus status; + @jakarta.annotation.Nonnull private ExecutionOperationStatus status; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private TransferValidationFailure validationFailure; + @jakarta.annotation.Nullable private TransferValidationFailure validationFailure; public static final String JSON_PROPERTY_OPERATION_TYPE = "operationType"; - private TransferOperationType operationType; + @jakarta.annotation.Nonnull private TransferOperationType operationType; public static final String JSON_PROPERTY_PREVIEW = "preview"; - private TransferOperationPreview preview; + @jakarta.annotation.Nullable private TransferOperationPreview preview; public static final String JSON_PROPERTY_EXECUTION = "execution"; - private TransferOperationExecution execution; + @jakarta.annotation.Nullable private TransferOperationExecution execution; public ExecutionTransferOperation() {} - public ExecutionTransferOperation operationId(String operationId) { + @JsonCreator + public ExecutionTransferOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ExecutionOperationStatus status, + @JsonProperty(value = JSON_PROPERTY_OPERATION_TYPE, required = true) + TransferOperationType operationType) { + this.operationId = operationId; + this.status = status; + this.operationType = operationType; + } + + public ExecutionTransferOperation operationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -71,11 +85,12 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public ExecutionTransferOperation status(ExecutionOperationStatus status) { + public ExecutionTransferOperation status( + @jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; return this; } @@ -94,12 +109,12 @@ public ExecutionOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ExecutionOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ExecutionOperationStatus status) { this.status = status; } public ExecutionTransferOperation validationFailure( - TransferValidationFailure validationFailure) { + @jakarta.annotation.Nullable TransferValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -118,11 +133,13 @@ public TransferValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(TransferValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable TransferValidationFailure validationFailure) { this.validationFailure = validationFailure; } - public ExecutionTransferOperation operationType(TransferOperationType operationType) { + public ExecutionTransferOperation operationType( + @jakarta.annotation.Nonnull TransferOperationType operationType) { this.operationType = operationType; return this; } @@ -141,11 +158,12 @@ public TransferOperationType getOperationType() { @JsonProperty(JSON_PROPERTY_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationType(TransferOperationType operationType) { + public void setOperationType(@jakarta.annotation.Nonnull TransferOperationType operationType) { this.operationType = operationType; } - public ExecutionTransferOperation preview(TransferOperationPreview preview) { + public ExecutionTransferOperation preview( + @jakarta.annotation.Nullable TransferOperationPreview preview) { this.preview = preview; return this; } @@ -164,11 +182,12 @@ public TransferOperationPreview getPreview() { @JsonProperty(JSON_PROPERTY_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreview(TransferOperationPreview preview) { + public void setPreview(@jakarta.annotation.Nullable TransferOperationPreview preview) { this.preview = preview; } - public ExecutionTransferOperation execution(TransferOperationExecution execution) { + public ExecutionTransferOperation execution( + @jakarta.annotation.Nullable TransferOperationExecution execution) { this.execution = execution; return this; } @@ -187,7 +206,7 @@ public TransferOperationExecution getExecution() { @JsonProperty(JSON_PROPERTY_EXECUTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExecution(TransferOperationExecution execution) { + public void setExecution(@jakarta.annotation.Nullable TransferOperationExecution execution) { this.execution = execution; } @@ -282,10 +301,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `status` to the URL query string @@ -295,8 +311,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `validationFailure` to the URL query string @@ -312,10 +327,7 @@ public String toUrlQueryString(String prefix) { "%soperationType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationType())))); } // add `preview` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java b/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java index 96be5107..239cfc3b 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,35 +33,39 @@ ExternalWalletAsset.JSON_PROPERTY_ACTIVATION_TIME, ExternalWalletAsset.JSON_PROPERTY_ADDITIONAL_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ExternalWalletAsset { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_STATUS = "status"; - private ConfigChangeRequestStatus status; + @jakarta.annotation.Nullable private ConfigChangeRequestStatus status; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_BALANCE = "balance"; - private String balance; + @jakarta.annotation.Nullable private String balance; public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - private String lockedAmount; + @jakarta.annotation.Nullable private String lockedAmount; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_ACTIVATION_TIME = "activationTime"; - private String activationTime; + @jakarta.annotation.Nullable private String activationTime; public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; - private List additionalInfo; + + @jakarta.annotation.Nullable + private List additionalInfo = new ArrayList<>(); public ExternalWalletAsset() {} - public ExternalWalletAsset id(String id) { + public ExternalWalletAsset id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -81,11 +84,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public ExternalWalletAsset status(ConfigChangeRequestStatus status) { + public ExternalWalletAsset status( + @jakarta.annotation.Nullable ConfigChangeRequestStatus status) { this.status = status; return this; } @@ -104,11 +108,11 @@ public ConfigChangeRequestStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(ConfigChangeRequestStatus status) { + public void setStatus(@jakarta.annotation.Nullable ConfigChangeRequestStatus status) { this.status = status; } - public ExternalWalletAsset address(String address) { + public ExternalWalletAsset address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -127,11 +131,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public ExternalWalletAsset balance(String balance) { + public ExternalWalletAsset balance(@jakarta.annotation.Nullable String balance) { this.balance = balance; return this; } @@ -150,11 +154,11 @@ public String getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalance(String balance) { + public void setBalance(@jakarta.annotation.Nullable String balance) { this.balance = balance; } - public ExternalWalletAsset lockedAmount(String lockedAmount) { + public ExternalWalletAsset lockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; return this; } @@ -173,11 +177,11 @@ public String getLockedAmount() { @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLockedAmount(String lockedAmount) { + public void setLockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; } - public ExternalWalletAsset tag(String tag) { + public ExternalWalletAsset tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -196,11 +200,11 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - public ExternalWalletAsset activationTime(String activationTime) { + public ExternalWalletAsset activationTime(@jakarta.annotation.Nullable String activationTime) { this.activationTime = activationTime; return this; } @@ -219,11 +223,12 @@ public String getActivationTime() { @JsonProperty(JSON_PROPERTY_ACTIVATION_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setActivationTime(String activationTime) { + public void setActivationTime(@jakarta.annotation.Nullable String activationTime) { this.activationTime = activationTime; } - public ExternalWalletAsset additionalInfo(List additionalInfo) { + public ExternalWalletAsset additionalInfo( + @jakarta.annotation.Nullable List additionalInfo) { this.additionalInfo = additionalInfo; return this; } @@ -250,7 +255,8 @@ public List getAdditionalInfo() { @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalInfo(List additionalInfo) { + public void setAdditionalInfo( + @jakarta.annotation.Nullable List additionalInfo) { this.additionalInfo = additionalInfo; } @@ -344,10 +350,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `status` to the URL query string @@ -357,8 +360,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `address` to the URL query string @@ -368,8 +370,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `balance` to the URL query string @@ -379,8 +380,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } // add `lockedAmount` to the URL query string @@ -390,10 +390,7 @@ public String toUrlQueryString(String prefix) { "%slockedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); } // add `tag` to the URL query string @@ -403,8 +400,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `activationTime` to the URL query string @@ -414,10 +410,7 @@ public String toUrlQueryString(String prefix) { "%sactivationTime%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActivationTime()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getActivationTime())))); } // add `additionalInfo` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java index 1c280a2f..60e9d459 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java +++ b/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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 { diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java index 6569852f..c8069cd1 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java +++ b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ FeeBreakdownOneOf.JSON_PROPERTY_RENT, FeeBreakdownOneOf.JSON_PROPERTY_TOTAL_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String baseFee; + @jakarta.annotation.Nullable private String baseFee; public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - private String priorityFee; + @jakarta.annotation.Nullable private String priorityFee; public static final String JSON_PROPERTY_RENT = "rent"; - private String rent; + @jakarta.annotation.Nullable private String rent; public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; - private String totalFee; + @jakarta.annotation.Nullable private String totalFee; public FeeBreakdownOneOf() {} - public FeeBreakdownOneOf baseFee(String baseFee) { + public FeeBreakdownOneOf baseFee(@jakarta.annotation.Nullable String baseFee) { this.baseFee = baseFee; return this; } @@ -63,11 +64,11 @@ public String getBaseFee() { @JsonProperty(JSON_PROPERTY_BASE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(String baseFee) { + public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { this.baseFee = baseFee; } - public FeeBreakdownOneOf priorityFee(String priorityFee) { + public FeeBreakdownOneOf priorityFee(@jakarta.annotation.Nullable String priorityFee) { this.priorityFee = priorityFee; return this; } @@ -86,11 +87,11 @@ public String getPriorityFee() { @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(String priorityFee) { + public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { this.priorityFee = priorityFee; } - public FeeBreakdownOneOf rent(String rent) { + public FeeBreakdownOneOf rent(@jakarta.annotation.Nullable String rent) { this.rent = rent; return this; } @@ -109,11 +110,11 @@ public String getRent() { @JsonProperty(JSON_PROPERTY_RENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRent(String rent) { + public void setRent(@jakarta.annotation.Nullable String rent) { this.rent = rent; } - public FeeBreakdownOneOf totalFee(String totalFee) { + public FeeBreakdownOneOf totalFee(@jakarta.annotation.Nullable String totalFee) { this.totalFee = totalFee; return this; } @@ -132,7 +133,7 @@ public String getTotalFee() { @JsonProperty(JSON_PROPERTY_TOTAL_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalFee(String totalFee) { + public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { this.totalFee = totalFee; } @@ -219,8 +220,7 @@ public String toUrlQueryString(String prefix) { "%sbaseFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBaseFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); } // add `priorityFee` to the URL query string @@ -230,10 +230,7 @@ public String toUrlQueryString(String prefix) { "%spriorityFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPriorityFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); } // add `rent` to the URL query string @@ -243,8 +240,7 @@ public String toUrlQueryString(String prefix) { "%srent%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRent()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRent())))); } // add `totalFee` to the URL query string @@ -254,8 +250,7 @@ public String toUrlQueryString(String prefix) { "%stotalFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotalFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotalFee())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java index 7950d697..4c1c4702 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java +++ b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ FeeBreakdownOneOf1.JSON_PROPERTY_PRIORITY_FEE, FeeBreakdownOneOf1.JSON_PROPERTY_TOTAL_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String baseFee; + @jakarta.annotation.Nullable private String baseFee; public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - private String priorityFee; + @jakarta.annotation.Nullable private String priorityFee; public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; - private String totalFee; + @jakarta.annotation.Nullable private String totalFee; public FeeBreakdownOneOf1() {} - public FeeBreakdownOneOf1 baseFee(String baseFee) { + public FeeBreakdownOneOf1 baseFee(@jakarta.annotation.Nullable String baseFee) { this.baseFee = baseFee; return this; } @@ -59,11 +60,11 @@ public String getBaseFee() { @JsonProperty(JSON_PROPERTY_BASE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(String baseFee) { + public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { this.baseFee = baseFee; } - public FeeBreakdownOneOf1 priorityFee(String priorityFee) { + public FeeBreakdownOneOf1 priorityFee(@jakarta.annotation.Nullable String priorityFee) { this.priorityFee = priorityFee; return this; } @@ -82,11 +83,11 @@ public String getPriorityFee() { @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(String priorityFee) { + public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { this.priorityFee = priorityFee; } - public FeeBreakdownOneOf1 totalFee(String totalFee) { + public FeeBreakdownOneOf1 totalFee(@jakarta.annotation.Nullable String totalFee) { this.totalFee = totalFee; return this; } @@ -105,7 +106,7 @@ public String getTotalFee() { @JsonProperty(JSON_PROPERTY_TOTAL_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalFee(String totalFee) { + public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { this.totalFee = totalFee; } @@ -190,8 +191,7 @@ public String toUrlQueryString(String prefix) { "%sbaseFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBaseFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); } // add `priorityFee` to the URL query string @@ -201,10 +201,7 @@ public String toUrlQueryString(String prefix) { "%spriorityFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPriorityFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); } // add `totalFee` to the URL query string @@ -214,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%stotalFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotalFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 77026175..d017fd4d 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/FeeInfo.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -34,25 +33,27 @@ FeeInfo.JSON_PROPERTY_RELAY_NAME, FeeInfo.JSON_PROPERTY_FEE_U_S_D }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class FeeInfo { public static final String JSON_PROPERTY_NETWORK_FEE = "networkFee"; - private String networkFee; + @jakarta.annotation.Nullable private String networkFee; public static final String JSON_PROPERTY_SERVICE_FEE = "serviceFee"; - private String serviceFee; + @jakarta.annotation.Nullable private String serviceFee; public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice"; - private String gasPrice; + @jakarta.annotation.Nullable private String gasPrice; public static final String JSON_PROPERTY_PAID_BY_RELAY = "paidByRelay"; - private Boolean paidByRelay; + @jakarta.annotation.Nullable private Boolean paidByRelay; /** Wether the relay is the same tenant (LOCAL) or another tenant (THIRD_PARTY) */ public enum RelayTypeEnum { - LOCAL("LOCAL"), + LOCAL(String.valueOf("LOCAL")), - THIRD_PARTY("THIRD_PARTY"); + THIRD_PARTY(String.valueOf("THIRD_PARTY")); private String value; @@ -82,20 +83,20 @@ public static RelayTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_RELAY_TYPE = "relayType"; - private RelayTypeEnum relayType; + @jakarta.annotation.Nullable private RelayTypeEnum relayType; public static final String JSON_PROPERTY_RELAY_ID = "relayId"; - private String relayId; + @jakarta.annotation.Nullable private String relayId; public static final String JSON_PROPERTY_RELAY_NAME = "relayName"; - private String relayName; + @jakarta.annotation.Nullable private String relayName; public static final String JSON_PROPERTY_FEE_U_S_D = "feeUSD"; - private String feeUSD; + @jakarta.annotation.Nullable private String feeUSD; public FeeInfo() {} - public FeeInfo networkFee(String networkFee) { + public FeeInfo networkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; return this; } @@ -114,11 +115,11 @@ public String getNetworkFee() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkFee(String networkFee) { + public void setNetworkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; } - public FeeInfo serviceFee(String serviceFee) { + public FeeInfo serviceFee(@jakarta.annotation.Nullable String serviceFee) { this.serviceFee = serviceFee; return this; } @@ -138,11 +139,11 @@ public String getServiceFee() { @JsonProperty(JSON_PROPERTY_SERVICE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setServiceFee(String serviceFee) { + public void setServiceFee(@jakarta.annotation.Nullable String serviceFee) { this.serviceFee = serviceFee; } - public FeeInfo gasPrice(String gasPrice) { + public FeeInfo gasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; return this; } @@ -161,11 +162,11 @@ public String getGasPrice() { @JsonProperty(JSON_PROPERTY_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasPrice(String gasPrice) { + public void setGasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; } - public FeeInfo paidByRelay(Boolean paidByRelay) { + public FeeInfo paidByRelay(@jakarta.annotation.Nullable Boolean paidByRelay) { this.paidByRelay = paidByRelay; return this; } @@ -184,11 +185,11 @@ public Boolean getPaidByRelay() { @JsonProperty(JSON_PROPERTY_PAID_BY_RELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaidByRelay(Boolean paidByRelay) { + public void setPaidByRelay(@jakarta.annotation.Nullable Boolean paidByRelay) { this.paidByRelay = paidByRelay; } - public FeeInfo relayType(RelayTypeEnum relayType) { + public FeeInfo relayType(@jakarta.annotation.Nullable RelayTypeEnum relayType) { this.relayType = relayType; return this; } @@ -207,11 +208,11 @@ public RelayTypeEnum getRelayType() { @JsonProperty(JSON_PROPERTY_RELAY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelayType(RelayTypeEnum relayType) { + public void setRelayType(@jakarta.annotation.Nullable RelayTypeEnum relayType) { this.relayType = relayType; } - public FeeInfo relayId(String relayId) { + public FeeInfo relayId(@jakarta.annotation.Nullable String relayId) { this.relayId = relayId; return this; } @@ -230,11 +231,11 @@ public String getRelayId() { @JsonProperty(JSON_PROPERTY_RELAY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelayId(String relayId) { + public void setRelayId(@jakarta.annotation.Nullable String relayId) { this.relayId = relayId; } - public FeeInfo relayName(String relayName) { + public FeeInfo relayName(@jakarta.annotation.Nullable String relayName) { this.relayName = relayName; return this; } @@ -253,11 +254,11 @@ public String getRelayName() { @JsonProperty(JSON_PROPERTY_RELAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelayName(String relayName) { + public void setRelayName(@jakarta.annotation.Nullable String relayName) { this.relayName = relayName; } - public FeeInfo feeUSD(String feeUSD) { + public FeeInfo feeUSD(@jakarta.annotation.Nullable String feeUSD) { this.feeUSD = feeUSD; return this; } @@ -276,7 +277,7 @@ public String getFeeUSD() { @JsonProperty(JSON_PROPERTY_FEE_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeUSD(String feeUSD) { + public void setFeeUSD(@jakarta.annotation.Nullable String feeUSD) { this.feeUSD = feeUSD; } @@ -379,9 +380,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFee())))); } // add `serviceFee` to the URL query string @@ -391,9 +390,7 @@ public String toUrlQueryString(String prefix) { "%sserviceFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getServiceFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getServiceFee())))); } // add `gasPrice` to the URL query string @@ -403,8 +400,7 @@ public String toUrlQueryString(String prefix) { "%sgasPrice%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasPrice()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasPrice())))); } // add `paidByRelay` to the URL query string @@ -414,10 +410,7 @@ public String toUrlQueryString(String prefix) { "%spaidByRelay%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPaidByRelay()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPaidByRelay())))); } // add `relayType` to the URL query string @@ -427,9 +420,7 @@ public String toUrlQueryString(String prefix) { "%srelayType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRelayType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRelayType())))); } // add `relayId` to the URL query string @@ -439,8 +430,7 @@ public String toUrlQueryString(String prefix) { "%srelayId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRelayId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRelayId())))); } // add `relayName` to the URL query string @@ -450,9 +440,7 @@ public String toUrlQueryString(String prefix) { "%srelayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRelayName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRelayName())))); } // add `feeUSD` to the URL query string @@ -462,8 +450,7 @@ public String toUrlQueryString(String prefix) { "%sfeeUSD%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeUSD())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java b/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java index 25303f3f..d0fa559f 100644 --- a/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,28 @@ FetchAbiRequestDto.JSON_PROPERTY_BASE_ASSET_ID, FetchAbiRequestDto.JSON_PROPERTY_CONTRACT_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String baseAssetId; + @jakarta.annotation.Nonnull private String baseAssetId; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nonnull private String contractAddress; public FetchAbiRequestDto() {} - public FetchAbiRequestDto baseAssetId(String baseAssetId) { + @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; } @@ -55,11 +66,11 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; } - public FetchAbiRequestDto contractAddress(String contractAddress) { + public FetchAbiRequestDto contractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -78,7 +89,7 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; } @@ -161,10 +172,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } // add `contractAddress` to the URL query string @@ -174,10 +182,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 924049b1..7ff7ddfc 100644 --- a/src/main/java/com/fireblocks/sdk/model/FiatAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/FiatAccount.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,26 +30,28 @@ FiatAccount.JSON_PROPERTY_ADDRESS, FiatAccount.JSON_PROPERTY_ASSETS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class FiatAccount { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private FiatAccountType type; + @jakarta.annotation.Nullable private FiatAccountType type; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_ASSETS = "assets"; - private List assets; + @jakarta.annotation.Nullable private List assets = new ArrayList<>(); public FiatAccount() {} - public FiatAccount id(String id) { + public FiatAccount id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -69,11 +70,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public FiatAccount type(FiatAccountType type) { + public FiatAccount type(@jakarta.annotation.Nullable FiatAccountType type) { this.type = type; return this; } @@ -92,11 +93,11 @@ public FiatAccountType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(FiatAccountType type) { + public void setType(@jakarta.annotation.Nullable FiatAccountType type) { this.type = type; } - public FiatAccount name(String name) { + public FiatAccount name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -115,11 +116,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public FiatAccount address(String address) { + public FiatAccount address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -138,11 +139,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public FiatAccount assets(List assets) { + public FiatAccount assets(@jakarta.annotation.Nullable List assets) { this.assets = assets; return this; } @@ -169,7 +170,7 @@ public List getAssets() { @JsonProperty(JSON_PROPERTY_ASSETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssets(List assets) { + public void setAssets(@jakarta.annotation.Nullable List assets) { this.assets = assets; } @@ -256,10 +257,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -269,8 +267,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `name` to the URL query string @@ -280,8 +277,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `address` to the URL query string @@ -291,8 +287,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `assets` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/FiatAsset.java b/src/main/java/com/fireblocks/sdk/model/FiatAsset.java index 861da9dc..fd3145c1 100644 --- a/src/main/java/com/fireblocks/sdk/model/FiatAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/FiatAsset.java @@ -16,24 +16,25 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** FiatAsset */ @JsonPropertyOrder({FiatAsset.JSON_PROPERTY_ID, FiatAsset.JSON_PROPERTY_BALANCE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class FiatAsset { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_BALANCE = "balance"; - private String balance; + @jakarta.annotation.Nullable private String balance; public FiatAsset() {} - public FiatAsset id(String id) { + public FiatAsset id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -52,11 +53,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public FiatAsset balance(String balance) { + public FiatAsset balance(@jakarta.annotation.Nullable String balance) { this.balance = balance; return this; } @@ -75,7 +76,7 @@ public String getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalance(String balance) { + public void setBalance(@jakarta.annotation.Nullable String balance) { this.balance = balance; } @@ -156,10 +157,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `balance` to the URL query string @@ -169,8 +167,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/FreezeTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/FreezeTransactionResponse.java index 8623bb2a..656a585f 100644 --- a/src/main/java/com/fireblocks/sdk/model/FreezeTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/FreezeTransactionResponse.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** FreezeTransactionResponse */ @JsonPropertyOrder({FreezeTransactionResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class FreezeTransactionResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public FreezeTransactionResponse() {} - public FreezeTransactionResponse success(Boolean success) { + public FreezeTransactionResponse success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -49,7 +50,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } 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 a1de2275..cca76e1e 100644 --- a/src/main/java/com/fireblocks/sdk/model/FunctionDoc.java +++ b/src/main/java/com/fireblocks/sdk/model/FunctionDoc.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -29,20 +28,22 @@ FunctionDoc.JSON_PROPERTY_PARAMS, FunctionDoc.JSON_PROPERTY_RETURNS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class FunctionDoc { public static final String JSON_PROPERTY_DETAILS = "details"; - private String details; + @jakarta.annotation.Nullable private String details; public static final String JSON_PROPERTY_PARAMS = "params"; - private Map params = new HashMap<>(); + @jakarta.annotation.Nullable private Map params = new HashMap<>(); public static final String JSON_PROPERTY_RETURNS = "returns"; - private Map returns = new HashMap<>(); + @jakarta.annotation.Nullable private Map returns = new HashMap<>(); public FunctionDoc() {} - public FunctionDoc details(String details) { + public FunctionDoc details(@jakarta.annotation.Nullable String details) { this.details = details; return this; } @@ -61,11 +62,11 @@ public String getDetails() { @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetails(String details) { + public void setDetails(@jakarta.annotation.Nullable String details) { this.details = details; } - public FunctionDoc params(Map params) { + public FunctionDoc params(@jakarta.annotation.Nullable Map params) { this.params = params; return this; } @@ -92,11 +93,11 @@ public Map getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParams(Map params) { + public void setParams(@jakarta.annotation.Nullable Map params) { this.params = params; } - public FunctionDoc returns(Map returns) { + public FunctionDoc returns(@jakarta.annotation.Nullable Map returns) { this.returns = returns; return this; } @@ -123,7 +124,7 @@ public Map getReturns() { @JsonProperty(JSON_PROPERTY_RETURNS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturns(Map returns) { + public void setReturns(@jakarta.annotation.Nullable Map returns) { this.returns = returns; } @@ -208,8 +209,7 @@ public String toUrlQueryString(String prefix) { "%sdetails%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDetails()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDetails())))); } // add `params` to the URL query string @@ -225,10 +225,8 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getParams().get(_key), - URLEncoder.encode( - String.valueOf(getParams().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getParams().get(_key))))); } } @@ -245,10 +243,8 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getReturns().get(_key), - URLEncoder.encode( - String.valueOf(getReturns().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getReturns().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/Funds.java b/src/main/java/com/fireblocks/sdk/model/Funds.java index 6a1490f2..4317be9f 100644 --- a/src/main/java/com/fireblocks/sdk/model/Funds.java +++ b/src/main/java/com/fireblocks/sdk/model/Funds.java @@ -16,22 +16,23 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** Funds */ @JsonPropertyOrder({Funds.JSON_PROPERTY_AMOUNT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Funds { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private BigDecimal amount; + @jakarta.annotation.Nullable private BigDecimal amount; public Funds() {} - public Funds amount(BigDecimal amount) { + public Funds amount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; return this; } @@ -50,7 +51,7 @@ public BigDecimal getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(BigDecimal amount) { + public void setAmount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; } @@ -131,8 +132,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GasStationConfiguration.java b/src/main/java/com/fireblocks/sdk/model/GasStationConfiguration.java index b7b8b843..3f04cffa 100644 --- a/src/main/java/com/fireblocks/sdk/model/GasStationConfiguration.java +++ b/src/main/java/com/fireblocks/sdk/model/GasStationConfiguration.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ GasStationConfiguration.JSON_PROPERTY_GAS_CAP, GasStationConfiguration.JSON_PROPERTY_MAX_GAS_PRICE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GasStationConfiguration { public static final String JSON_PROPERTY_GAS_THRESHOLD = "gasThreshold"; - private String gasThreshold; + @jakarta.annotation.Nullable private String gasThreshold; public static final String JSON_PROPERTY_GAS_CAP = "gasCap"; - private String gasCap; + @jakarta.annotation.Nullable private String gasCap; public static final String JSON_PROPERTY_MAX_GAS_PRICE = "maxGasPrice"; - private String maxGasPrice; + @jakarta.annotation.Nullable private String maxGasPrice; public GasStationConfiguration() {} - public GasStationConfiguration gasThreshold(String gasThreshold) { + public GasStationConfiguration gasThreshold(@jakarta.annotation.Nullable String gasThreshold) { this.gasThreshold = gasThreshold; return this; } @@ -59,11 +60,11 @@ public String getGasThreshold() { @JsonProperty(JSON_PROPERTY_GAS_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasThreshold(String gasThreshold) { + public void setGasThreshold(@jakarta.annotation.Nullable String gasThreshold) { this.gasThreshold = gasThreshold; } - public GasStationConfiguration gasCap(String gasCap) { + public GasStationConfiguration gasCap(@jakarta.annotation.Nullable String gasCap) { this.gasCap = gasCap; return this; } @@ -82,11 +83,11 @@ public String getGasCap() { @JsonProperty(JSON_PROPERTY_GAS_CAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasCap(String gasCap) { + public void setGasCap(@jakarta.annotation.Nullable String gasCap) { this.gasCap = gasCap; } - public GasStationConfiguration maxGasPrice(String maxGasPrice) { + public GasStationConfiguration maxGasPrice(@jakarta.annotation.Nullable String maxGasPrice) { this.maxGasPrice = maxGasPrice; return this; } @@ -105,7 +106,7 @@ public String getMaxGasPrice() { @JsonProperty(JSON_PROPERTY_MAX_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxGasPrice(String maxGasPrice) { + public void setMaxGasPrice(@jakarta.annotation.Nullable String maxGasPrice) { this.maxGasPrice = maxGasPrice; } @@ -190,10 +191,7 @@ public String toUrlQueryString(String prefix) { "%sgasThreshold%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getGasThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasThreshold())))); } // add `gasCap` to the URL query string @@ -203,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%sgasCap%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasCap()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasCap())))); } // add `maxGasPrice` to the URL query string @@ -214,10 +211,7 @@ public String toUrlQueryString(String prefix) { "%smaxGasPrice%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMaxGasPrice()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMaxGasPrice())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GasStationConfigurationResponse.java b/src/main/java/com/fireblocks/sdk/model/GasStationConfigurationResponse.java index 62d74598..4014dead 100644 --- a/src/main/java/com/fireblocks/sdk/model/GasStationConfigurationResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GasStationConfigurationResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,23 @@ GasStationConfigurationResponse.JSON_PROPERTY_GAS_CAP, GasStationConfigurationResponse.JSON_PROPERTY_MAX_GAS_PRICE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GasStationConfigurationResponse { public static final String JSON_PROPERTY_GAS_THRESHOLD = "gasThreshold"; - private String gasThreshold; + @jakarta.annotation.Nullable private String gasThreshold; public static final String JSON_PROPERTY_GAS_CAP = "gasCap"; - private String gasCap; + @jakarta.annotation.Nullable private String gasCap; public static final String JSON_PROPERTY_MAX_GAS_PRICE = "maxGasPrice"; - private String maxGasPrice; + @jakarta.annotation.Nullable private String maxGasPrice; public GasStationConfigurationResponse() {} - public GasStationConfigurationResponse gasThreshold(String gasThreshold) { + public GasStationConfigurationResponse gasThreshold( + @jakarta.annotation.Nullable String gasThreshold) { this.gasThreshold = gasThreshold; return this; } @@ -59,11 +61,11 @@ public String getGasThreshold() { @JsonProperty(JSON_PROPERTY_GAS_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasThreshold(String gasThreshold) { + public void setGasThreshold(@jakarta.annotation.Nullable String gasThreshold) { this.gasThreshold = gasThreshold; } - public GasStationConfigurationResponse gasCap(String gasCap) { + public GasStationConfigurationResponse gasCap(@jakarta.annotation.Nullable String gasCap) { this.gasCap = gasCap; return this; } @@ -82,11 +84,12 @@ public String getGasCap() { @JsonProperty(JSON_PROPERTY_GAS_CAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasCap(String gasCap) { + public void setGasCap(@jakarta.annotation.Nullable String gasCap) { this.gasCap = gasCap; } - public GasStationConfigurationResponse maxGasPrice(String maxGasPrice) { + public GasStationConfigurationResponse maxGasPrice( + @jakarta.annotation.Nullable String maxGasPrice) { this.maxGasPrice = maxGasPrice; return this; } @@ -105,7 +108,7 @@ public String getMaxGasPrice() { @JsonProperty(JSON_PROPERTY_MAX_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxGasPrice(String maxGasPrice) { + public void setMaxGasPrice(@jakarta.annotation.Nullable String maxGasPrice) { this.maxGasPrice = maxGasPrice; } @@ -191,10 +194,7 @@ public String toUrlQueryString(String prefix) { "%sgasThreshold%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getGasThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasThreshold())))); } // add `gasCap` to the URL query string @@ -204,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%sgasCap%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasCap()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasCap())))); } // add `maxGasPrice` to the URL query string @@ -215,10 +214,7 @@ public String toUrlQueryString(String prefix) { "%smaxGasPrice%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMaxGasPrice()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMaxGasPrice())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GasStationPropertiesResponse.java b/src/main/java/com/fireblocks/sdk/model/GasStationPropertiesResponse.java index 7bbc0f0a..ff8a105e 100644 --- a/src/main/java/com/fireblocks/sdk/model/GasStationPropertiesResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GasStationPropertiesResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ GasStationPropertiesResponse.JSON_PROPERTY_BALANCE, GasStationPropertiesResponse.JSON_PROPERTY_CONFIGURATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GasStationPropertiesResponse { public static final String JSON_PROPERTY_BALANCE = "balance"; - private Object balance; + @jakarta.annotation.Nullable private Object balance; public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; - private GasStationConfigurationResponse _configuration; + @jakarta.annotation.Nullable private GasStationConfigurationResponse _configuration; public GasStationPropertiesResponse() {} - public GasStationPropertiesResponse balance(Object balance) { + public GasStationPropertiesResponse balance(@jakarta.annotation.Nullable Object balance) { this.balance = balance; return this; } @@ -55,12 +56,12 @@ public Object getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalance(Object balance) { + public void setBalance(@jakarta.annotation.Nullable Object balance) { this.balance = balance; } public GasStationPropertiesResponse _configuration( - GasStationConfigurationResponse _configuration) { + @jakarta.annotation.Nullable GasStationConfigurationResponse _configuration) { this._configuration = _configuration; return this; } @@ -79,7 +80,8 @@ public GasStationConfigurationResponse getConfiguration() { @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfiguration(GasStationConfigurationResponse _configuration) { + public void setConfiguration( + @jakarta.annotation.Nullable GasStationConfigurationResponse _configuration) { this._configuration = _configuration; } @@ -163,8 +165,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } // add `configuration` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java b/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java index 3b6514e3..0a20521d 100644 --- a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java +++ b/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java @@ -23,18 +23,23 @@ /** The gasless configuration of the contract */ @JsonPropertyOrder({GasslessStandardConfigurations.JSON_PROPERTY_GASLESS_STANDARD_CONFIGURATIONS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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( - Map - gaslessStandardConfigurations) { + @jakarta.annotation.Nullable + Map + gaslessStandardConfigurations) { this.gaslessStandardConfigurations = gaslessStandardConfigurations; return this; } @@ -66,8 +71,9 @@ public GasslessStandardConfigurations putGaslessStandardConfigurationsItem( @JsonProperty(JSON_PROPERTY_GASLESS_STANDARD_CONFIGURATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGaslessStandardConfigurations( - Map - gaslessStandardConfigurations) { + @jakarta.annotation.Nullable + Map + gaslessStandardConfigurations) { this.gaslessStandardConfigurations = gaslessStandardConfigurations; } diff --git a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java b/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java index 2b7518c7..dc03ad7e 100644 --- a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java +++ b/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -31,18 +30,20 @@ GasslessStandardConfigurationsGaslessStandardConfigurationsValue .JSON_PROPERTY_FORWARDER_ADDRESSES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private OffsetDateTime lastOnChainCheck; + @jakarta.annotation.Nullable private OffsetDateTime lastOnChainCheck; public static final String JSON_PROPERTY_FORWARDER_ADDRESSES = "forwarderAddresses"; - private List forwarderAddresses; + @jakarta.annotation.Nullable private List forwarderAddresses = new ArrayList<>(); public GasslessStandardConfigurationsGaslessStandardConfigurationsValue() {} public GasslessStandardConfigurationsGaslessStandardConfigurationsValue lastOnChainCheck( - OffsetDateTime lastOnChainCheck) { + @jakarta.annotation.Nullable OffsetDateTime lastOnChainCheck) { this.lastOnChainCheck = lastOnChainCheck; return this; } @@ -61,12 +62,12 @@ public OffsetDateTime getLastOnChainCheck() { @JsonProperty(JSON_PROPERTY_LAST_ON_CHAIN_CHECK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastOnChainCheck(OffsetDateTime lastOnChainCheck) { + public void setLastOnChainCheck(@jakarta.annotation.Nullable OffsetDateTime lastOnChainCheck) { this.lastOnChainCheck = lastOnChainCheck; } public GasslessStandardConfigurationsGaslessStandardConfigurationsValue forwarderAddresses( - List forwarderAddresses) { + @jakarta.annotation.Nullable List forwarderAddresses) { this.forwarderAddresses = forwarderAddresses; return this; } @@ -94,7 +95,8 @@ public List getForwarderAddresses() { @JsonProperty(JSON_PROPERTY_FORWARDER_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForwarderAddresses(List forwarderAddresses) { + public void setForwarderAddresses( + @jakarta.annotation.Nullable List forwarderAddresses) { this.forwarderAddresses = forwarderAddresses; } @@ -190,10 +192,7 @@ public String toUrlQueryString(String prefix) { "%slastOnChainCheck%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastOnChainCheck()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastOnChainCheck())))); } // add `forwarderAddresses` to the URL query string @@ -208,10 +207,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getForwarderAddresses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getForwarderAddresses().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java b/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java index 1751fdd8..f1edf844 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.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; @@ -23,14 +24,22 @@ /** GetAPIUsersResponse */ @JsonPropertyOrder({GetAPIUsersResponse.JSON_PROPERTY_USERS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetAPIUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; - private List users = new ArrayList<>(); + @jakarta.annotation.Nonnull private List users = new ArrayList<>(); public GetAPIUsersResponse() {} - public GetAPIUsersResponse users(List users) { + @JsonCreator + public GetAPIUsersResponse( + @JsonProperty(value = JSON_PROPERTY_USERS, required = true) List users) { + this.users = users; + } + + public GetAPIUsersResponse users(@jakarta.annotation.Nonnull List users) { this.users = users; return this; } @@ -57,7 +66,7 @@ public List getUsers() { @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUsers(List users) { + public void setUsers(@jakarta.annotation.Nonnull List users) { this.users = users; } diff --git a/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java b/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java index 1612ca44..dc1f4970 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,20 +29,22 @@ GetAuditLogsResponse.JSON_PROPERTY_CURSOR, GetAuditLogsResponse.JSON_PROPERTY_TOTAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetAuditLogsResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public static final String JSON_PROPERTY_CURSOR = "cursor"; - private String cursor; + @jakarta.annotation.Nullable private String cursor; public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; + @jakarta.annotation.Nullable private BigDecimal total; public GetAuditLogsResponse() {} - public GetAuditLogsResponse data(List data) { + public GetAuditLogsResponse data(@jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -70,11 +71,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } - public GetAuditLogsResponse cursor(String cursor) { + public GetAuditLogsResponse cursor(@jakarta.annotation.Nullable String cursor) { this.cursor = cursor; return this; } @@ -93,11 +94,11 @@ public String getCursor() { @JsonProperty(JSON_PROPERTY_CURSOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCursor(String cursor) { + public void setCursor(@jakarta.annotation.Nullable String cursor) { this.cursor = cursor; } - public GetAuditLogsResponse total(BigDecimal total) { + public GetAuditLogsResponse total(@jakarta.annotation.Nullable BigDecimal total) { this.total = total; return this; } @@ -116,7 +117,7 @@ public BigDecimal getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(BigDecimal total) { + public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { this.total = total; } @@ -224,8 +225,7 @@ public String toUrlQueryString(String prefix) { "%scursor%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCursor()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCursor())))); } // add `total` to the URL query string @@ -235,8 +235,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } 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 91384bca..30455917 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.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; @@ -26,17 +27,25 @@ GetConnectionsResponse.JSON_PROPERTY_DATA, GetConnectionsResponse.JSON_PROPERTY_PAGING }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetConnectionsResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_PAGING = "paging"; - private Paging paging; + @jakarta.annotation.Nullable private Paging paging; public GetConnectionsResponse() {} - public GetConnectionsResponse data(List data) { + @JsonCreator + public GetConnectionsResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public GetConnectionsResponse data(@jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -63,11 +72,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public GetConnectionsResponse paging(Paging paging) { + public GetConnectionsResponse paging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; return this; } @@ -86,7 +95,7 @@ public Paging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(Paging paging) { + public void setPaging(@jakarta.annotation.Nullable Paging paging) { this.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 fc2792c4..ec55ec22 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.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; @@ -23,14 +24,22 @@ /** GetConsoleUsersResponse */ @JsonPropertyOrder({GetConsoleUsersResponse.JSON_PROPERTY_USERS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetConsoleUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; - private List users = new ArrayList<>(); + @jakarta.annotation.Nonnull private List users = new ArrayList<>(); public GetConsoleUsersResponse() {} - public GetConsoleUsersResponse users(List users) { + @JsonCreator + public GetConsoleUsersResponse( + @JsonProperty(value = JSON_PROPERTY_USERS, required = true) List users) { + this.users = users; + } + + public GetConsoleUsersResponse users(@jakarta.annotation.Nonnull List users) { this.users = users; return this; } @@ -57,7 +66,7 @@ public List getUsers() { @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUsers(List users) { + public void setUsers(@jakarta.annotation.Nonnull List users) { this.users = users; } diff --git a/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java b/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java index c5d341b6..877594c9 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,23 +31,40 @@ GetDeployableAddressRequest.JSON_PROPERTY_INIT_PARAMS, GetDeployableAddressRequest.JSON_PROPERTY_SALT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String chainDescriptor; + @jakarta.annotation.Nonnull private String chainDescriptor; public static final String JSON_PROPERTY_TEMPLATE_ID = "templateId"; - private UUID templateId; + @jakarta.annotation.Nonnull private UUID templateId; public static final String JSON_PROPERTY_INIT_PARAMS = "initParams"; - private List initParams = new ArrayList<>(); + @jakarta.annotation.Nonnull private List initParams = new ArrayList<>(); public static final String JSON_PROPERTY_SALT = "salt"; - private String salt; + @jakarta.annotation.Nonnull private String salt; public GetDeployableAddressRequest() {} - public GetDeployableAddressRequest chainDescriptor(String chainDescriptor) { + @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; } @@ -66,11 +83,11 @@ public String getChainDescriptor() { @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainDescriptor(String chainDescriptor) { + public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; } - public GetDeployableAddressRequest templateId(UUID templateId) { + public GetDeployableAddressRequest templateId(@jakarta.annotation.Nonnull UUID templateId) { this.templateId = templateId; return this; } @@ -89,11 +106,12 @@ public UUID getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateId(UUID templateId) { + public void setTemplateId(@jakarta.annotation.Nonnull UUID templateId) { this.templateId = templateId; } - public GetDeployableAddressRequest initParams(List initParams) { + public GetDeployableAddressRequest initParams( + @jakarta.annotation.Nonnull List initParams) { this.initParams = initParams; return this; } @@ -120,11 +138,11 @@ public List getInitParams() { @JsonProperty(JSON_PROPERTY_INIT_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInitParams(List initParams) { + public void setInitParams(@jakarta.annotation.Nonnull List initParams) { this.initParams = initParams; } - public GetDeployableAddressRequest salt(String salt) { + public GetDeployableAddressRequest salt(@jakarta.annotation.Nonnull String salt) { this.salt = salt; return this; } @@ -144,7 +162,7 @@ public String getSalt() { @JsonProperty(JSON_PROPERTY_SALT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSalt(String salt) { + public void setSalt(@jakarta.annotation.Nonnull String salt) { this.salt = salt; } @@ -231,10 +249,7 @@ public String toUrlQueryString(String prefix) { "%schainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getChainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChainDescriptor())))); } // add `templateId` to the URL query string @@ -244,9 +259,7 @@ public String toUrlQueryString(String prefix) { "%stemplateId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTemplateId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTemplateId())))); } // add `initParams` to the URL query string @@ -279,8 +292,7 @@ public String toUrlQueryString(String prefix) { "%ssalt%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSalt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index d39c43fc..d61d1c42 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,28 @@ GetExchangeAccountsCredentialsPublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY, GetExchangeAccountsCredentialsPublicKeyResponse.JSON_PROPERTY_TENANT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String publicKey; + @jakarta.annotation.Nonnull private String publicKey; public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; - private String tenantId; + @jakarta.annotation.Nonnull private String tenantId; public GetExchangeAccountsCredentialsPublicKeyResponse() {} - public GetExchangeAccountsCredentialsPublicKeyResponse publicKey(String publicKey) { + @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; } @@ -55,11 +66,12 @@ public String getPublicKey() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKey(String publicKey) { + public void setPublicKey(@jakarta.annotation.Nonnull String publicKey) { this.publicKey = publicKey; } - public GetExchangeAccountsCredentialsPublicKeyResponse tenantId(String tenantId) { + public GetExchangeAccountsCredentialsPublicKeyResponse tenantId( + @jakarta.annotation.Nonnull String tenantId) { this.tenantId = tenantId; return this; } @@ -78,7 +90,7 @@ public String getTenantId() { @JsonProperty(JSON_PROPERTY_TENANT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTenantId(String tenantId) { + public void setTenantId(@jakarta.annotation.Nonnull String tenantId) { this.tenantId = tenantId; } @@ -165,9 +177,7 @@ public String toUrlQueryString(String prefix) { "%spublicKey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); } // add `tenantId` to the URL query string @@ -177,8 +187,7 @@ public String toUrlQueryString(String prefix) { "%stenantId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTenantId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GetFilterParameter.java b/src/main/java/com/fireblocks/sdk/model/GetFilterParameter.java index 8b003a3a..02635d92 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetFilterParameter.java +++ b/src/main/java/com/fireblocks/sdk/model/GetFilterParameter.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -32,32 +31,34 @@ GetFilterParameter.JSON_PROPERTY_APP_URL, GetFilterParameter.JSON_PROPERTY_APP_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetFilterParameter { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_USER_ID = "userId"; - private String userId; + @jakarta.annotation.Nullable private String userId; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private BigDecimal vaultAccountId; + @jakarta.annotation.Nullable private BigDecimal vaultAccountId; public static final String JSON_PROPERTY_CONNECTION_METHOD = "connectionMethod"; - private String connectionMethod; + @jakarta.annotation.Nullable private String connectionMethod; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private String feeLevel; + @jakarta.annotation.Nullable private String feeLevel; public static final String JSON_PROPERTY_APP_URL = "appUrl"; - private String appUrl; + @jakarta.annotation.Nullable private String appUrl; public static final String JSON_PROPERTY_APP_NAME = "appName"; - private String appName; + @jakarta.annotation.Nullable private String appName; public GetFilterParameter() {} - public GetFilterParameter id(String id) { + public GetFilterParameter id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -76,11 +77,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public GetFilterParameter userId(String userId) { + public GetFilterParameter userId(@jakarta.annotation.Nullable String userId) { this.userId = userId; return this; } @@ -99,11 +100,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserId(String userId) { + public void setUserId(@jakarta.annotation.Nullable String userId) { this.userId = userId; } - public GetFilterParameter vaultAccountId(BigDecimal vaultAccountId) { + public GetFilterParameter vaultAccountId( + @jakarta.annotation.Nullable BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -122,11 +124,12 @@ public BigDecimal getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountId(BigDecimal vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nullable BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public GetFilterParameter connectionMethod(String connectionMethod) { + public GetFilterParameter connectionMethod( + @jakarta.annotation.Nullable String connectionMethod) { this.connectionMethod = connectionMethod; return this; } @@ -145,11 +148,11 @@ public String getConnectionMethod() { @JsonProperty(JSON_PROPERTY_CONNECTION_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConnectionMethod(String connectionMethod) { + public void setConnectionMethod(@jakarta.annotation.Nullable String connectionMethod) { this.connectionMethod = connectionMethod; } - public GetFilterParameter feeLevel(String feeLevel) { + public GetFilterParameter feeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; return this; } @@ -168,11 +171,11 @@ public String getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(String feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; } - public GetFilterParameter appUrl(String appUrl) { + public GetFilterParameter appUrl(@jakarta.annotation.Nullable String appUrl) { this.appUrl = appUrl; return this; } @@ -191,11 +194,11 @@ public String getAppUrl() { @JsonProperty(JSON_PROPERTY_APP_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAppUrl(String appUrl) { + public void setAppUrl(@jakarta.annotation.Nullable String appUrl) { this.appUrl = appUrl; } - public GetFilterParameter appName(String appName) { + public GetFilterParameter appName(@jakarta.annotation.Nullable String appName) { this.appName = appName; return this; } @@ -214,7 +217,7 @@ public String getAppName() { @JsonProperty(JSON_PROPERTY_APP_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAppName(String appName) { + public void setAppName(@jakarta.annotation.Nullable String appName) { this.appName = appName; } @@ -306,10 +309,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `userId` to the URL query string @@ -319,8 +319,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } // add `vaultAccountId` to the URL query string @@ -330,10 +329,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `connectionMethod` to the URL query string @@ -343,10 +339,7 @@ public String toUrlQueryString(String prefix) { "%sconnectionMethod%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConnectionMethod()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConnectionMethod())))); } // add `feeLevel` to the URL query string @@ -356,8 +349,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `appUrl` to the URL query string @@ -367,8 +359,7 @@ public String toUrlQueryString(String prefix) { "%sappUrl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAppUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAppUrl())))); } // add `appName` to the URL query string @@ -378,8 +369,7 @@ public String toUrlQueryString(String prefix) { "%sappName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAppName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAppName())))); } 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 index 91b3b5be..160d09e3 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,18 +29,33 @@ GetLayerZeroDvnConfigResponse.JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, GetLayerZeroDvnConfigResponse.JSON_PROPERTY_CHANNEL_CONFIGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID 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() {} - public GetLayerZeroDvnConfigResponse sourceAdapterTokenLinkId(UUID sourceAdapterTokenLinkId) { + @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; } @@ -59,12 +74,13 @@ public UUID getSourceAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId(UUID sourceAdapterTokenLinkId) { + public void setSourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; } public GetLayerZeroDvnConfigResponse channelConfigs( - List channelConfigs) { + @jakarta.annotation.Nonnull List channelConfigs) { this.channelConfigs = channelConfigs; return this; } @@ -93,7 +109,8 @@ public List getChannelConfigs() { @JsonProperty(JSON_PROPERTY_CHANNEL_CONFIGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChannelConfigs(List channelConfigs) { + public void setChannelConfigs( + @jakarta.annotation.Nonnull List channelConfigs) { this.channelConfigs = channelConfigs; } @@ -182,10 +199,8 @@ public String toUrlQueryString(String prefix) { "%ssourceAdapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSourceAdapterTokenLinkId())))); } // add `channelConfigs` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java b/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java index 5fc2ddd1..aabe3a6d 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,20 +30,36 @@ GetLayerZeroPeersResponse.JSON_PROPERTY_ADAPTER_ADDRESS, GetLayerZeroPeersResponse.JSON_PROPERTY_PEERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID adapterTokenLinkId; + @jakarta.annotation.Nonnull private UUID adapterTokenLinkId; public static final String JSON_PROPERTY_ADAPTER_ADDRESS = "adapterAddress"; - private String adapterAddress; + @jakarta.annotation.Nonnull private String adapterAddress; public static final String JSON_PROPERTY_PEERS = "peers"; - private List peers = new ArrayList<>(); + @jakarta.annotation.Nonnull private List peers = new ArrayList<>(); public GetLayerZeroPeersResponse() {} - public GetLayerZeroPeersResponse adapterTokenLinkId(UUID adapterTokenLinkId) { + @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; } @@ -62,11 +78,12 @@ public UUID getAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkId(UUID adapterTokenLinkId) { + public void setAdapterTokenLinkId(@jakarta.annotation.Nonnull UUID adapterTokenLinkId) { this.adapterTokenLinkId = adapterTokenLinkId; } - public GetLayerZeroPeersResponse adapterAddress(String adapterAddress) { + public GetLayerZeroPeersResponse adapterAddress( + @jakarta.annotation.Nonnull String adapterAddress) { this.adapterAddress = adapterAddress; return this; } @@ -85,11 +102,12 @@ public String getAdapterAddress() { @JsonProperty(JSON_PROPERTY_ADAPTER_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterAddress(String adapterAddress) { + public void setAdapterAddress(@jakarta.annotation.Nonnull String adapterAddress) { this.adapterAddress = adapterAddress; } - public GetLayerZeroPeersResponse peers(List peers) { + public GetLayerZeroPeersResponse peers( + @jakarta.annotation.Nonnull List peers) { this.peers = peers; return this; } @@ -116,7 +134,7 @@ public List getPeers() { @JsonProperty(JSON_PROPERTY_PEERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPeers(List peers) { + public void setPeers(@jakarta.annotation.Nonnull List peers) { this.peers = peers; } @@ -203,10 +221,7 @@ public String toUrlQueryString(String prefix) { "%sadapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAdapterTokenLinkId())))); } // add `adapterAddress` to the URL query string @@ -216,10 +231,7 @@ public String toUrlQueryString(String prefix) { "%sadapterAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdapterAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAdapterAddress())))); } // add `peers` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java index 103826b7..96b848b6 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,20 @@ GetLinkedCollectionsPaginatedResponse.JSON_PROPERTY_DATA, GetLinkedCollectionsPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public GetLinkedCollectionsPaginatedResponse() {} - public GetLinkedCollectionsPaginatedResponse data(List data) { + public GetLinkedCollectionsPaginatedResponse data( + @jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -65,11 +67,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } - public GetLinkedCollectionsPaginatedResponse next(String next) { + public GetLinkedCollectionsPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +90,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -195,8 +197,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponse.java b/src/main/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponse.java index 1404a218..6e3d6bbe 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponse.java @@ -16,21 +16,23 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** GetMaxSpendableAmountResponse */ @JsonPropertyOrder({GetMaxSpendableAmountResponse.JSON_PROPERTY_MAX_SPENDABLE_AMOUNT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetMaxSpendableAmountResponse { public static final String JSON_PROPERTY_MAX_SPENDABLE_AMOUNT = "maxSpendableAmount"; - private String maxSpendableAmount; + @jakarta.annotation.Nullable private String maxSpendableAmount; public GetMaxSpendableAmountResponse() {} - public GetMaxSpendableAmountResponse maxSpendableAmount(String maxSpendableAmount) { + public GetMaxSpendableAmountResponse maxSpendableAmount( + @jakarta.annotation.Nullable String maxSpendableAmount) { this.maxSpendableAmount = maxSpendableAmount; return this; } @@ -49,7 +51,7 @@ public String getMaxSpendableAmount() { @JsonProperty(JSON_PROPERTY_MAX_SPENDABLE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxSpendableAmount(String maxSpendableAmount) { + public void setMaxSpendableAmount(@jakarta.annotation.Nullable String maxSpendableAmount) { this.maxSpendableAmount = maxSpendableAmount; } @@ -134,10 +136,7 @@ public String toUrlQueryString(String prefix) { "%smaxSpendableAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMaxSpendableAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMaxSpendableAmount())))); } 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 index 71b2e408..c8a55296 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ GetMpcKeysResponse.JSON_PROPERTY_TENANT_ID, GetMpcKeysResponse.JSON_PROPERTY_KEYS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String tenantId; + @jakarta.annotation.Nonnull private String tenantId; public static final String JSON_PROPERTY_KEYS = "keys"; - private List keys = new ArrayList<>(); + @jakarta.annotation.Nonnull private List keys = new ArrayList<>(); public GetMpcKeysResponse() {} - public GetMpcKeysResponse tenantId(String tenantId) { + @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; } @@ -57,11 +67,11 @@ public String getTenantId() { @JsonProperty(JSON_PROPERTY_TENANT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTenantId(String tenantId) { + public void setTenantId(@jakarta.annotation.Nonnull String tenantId) { this.tenantId = tenantId; } - public GetMpcKeysResponse keys(List keys) { + public GetMpcKeysResponse keys(@jakarta.annotation.Nonnull List keys) { this.keys = keys; return this; } @@ -88,7 +98,7 @@ public List getKeys() { @JsonProperty(JSON_PROPERTY_KEYS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeys(List keys) { + public void setKeys(@jakarta.annotation.Nonnull List keys) { this.keys = keys; } @@ -171,8 +181,7 @@ public String toUrlQueryString(String prefix) { "%stenantId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTenantId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); } // add `keys` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java b/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java index f604f482..c2c16ced 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java @@ -23,17 +23,19 @@ /** GetNFTsResponse */ @JsonPropertyOrder({GetNFTsResponse.JSON_PROPERTY_PAGING, GetNFTsResponse.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetNFTsResponse { public static final String JSON_PROPERTY_PAGING = "paging"; - private Paging paging; + @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public GetNFTsResponse() {} - public GetNFTsResponse paging(Paging paging) { + public GetNFTsResponse paging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; return this; } @@ -52,11 +54,11 @@ public Paging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(Paging paging) { + public void setPaging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; } - public GetNFTsResponse data(List data) { + public GetNFTsResponse data(@jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -83,7 +85,7 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } diff --git a/src/main/java/com/fireblocks/sdk/model/GetOtaStatusResponse.java b/src/main/java/com/fireblocks/sdk/model/GetOtaStatusResponse.java index b2abd92c..0af4a2a9 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetOtaStatusResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetOtaStatusResponse.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** GetOtaStatusResponse */ @JsonPropertyOrder({GetOtaStatusResponse.JSON_PROPERTY_ENABLED}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetOtaStatusResponse { public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nullable private Boolean enabled; public GetOtaStatusResponse() {} - public GetOtaStatusResponse enabled(Boolean enabled) { + public GetOtaStatusResponse enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -49,7 +50,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } 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 0da7fac2..dd19bb2f 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java @@ -26,17 +26,19 @@ GetOwnershipTokensResponse.JSON_PROPERTY_PAGING, GetOwnershipTokensResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetOwnershipTokensResponse { public static final String JSON_PROPERTY_PAGING = "paging"; - private Paging paging; + @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public GetOwnershipTokensResponse() {} - public GetOwnershipTokensResponse paging(Paging paging) { + public GetOwnershipTokensResponse paging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; return this; } @@ -55,11 +57,12 @@ public Paging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(Paging paging) { + public void setPaging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; } - public GetOwnershipTokensResponse data(List data) { + public GetOwnershipTokensResponse data( + @jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -86,7 +89,7 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } diff --git a/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java b/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java index 5daf019a..62d926fd 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,25 @@ GetSigningKeyResponseDto.JSON_PROPERTY_DATA, GetSigningKeyResponseDto.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetSigningKeyResponseDto { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public GetSigningKeyResponseDto() {} - public GetSigningKeyResponseDto data(List data) { + @JsonCreator + public GetSigningKeyResponseDto( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public GetSigningKeyResponseDto data(@jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +73,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public GetSigningKeyResponseDto next(String next) { + public GetSigningKeyResponseDto next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +96,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java b/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java index df1ccf68..6f41c1f7 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ GetValidationKeyResponseDto.JSON_PROPERTY_DATA, GetValidationKeyResponseDto.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetValidationKeyResponseDto { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public GetValidationKeyResponseDto() {} - public GetValidationKeyResponseDto data(List data) { + @JsonCreator + public GetValidationKeyResponseDto( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) + List data) { + this.data = data; + } + + public GetValidationKeyResponseDto data( + @jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +75,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public GetValidationKeyResponseDto next(String next) { + public GetValidationKeyResponseDto next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +98,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java index 1019e5db..77090b1c 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,19 @@ GetWhitelistIpAddressesResponse.JSON_PROPERTY_USER_ID, GetWhitelistIpAddressesResponse.JSON_PROPERTY_WHITELISTED_IPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetWhitelistIpAddressesResponse { public static final String JSON_PROPERTY_USER_ID = "userId"; - private String userId; + @jakarta.annotation.Nullable private String userId; public static final String JSON_PROPERTY_WHITELISTED_IPS = "whitelistedIps"; - private List whitelistedIps; + @jakarta.annotation.Nullable private List whitelistedIps; public GetWhitelistIpAddressesResponse() {} - public GetWhitelistIpAddressesResponse userId(String userId) { + public GetWhitelistIpAddressesResponse userId(@jakarta.annotation.Nullable String userId) { this.userId = userId; return this; } @@ -57,11 +58,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserId(String userId) { + public void setUserId(@jakarta.annotation.Nullable String userId) { this.userId = userId; } - public GetWhitelistIpAddressesResponse whitelistedIps(List whitelistedIps) { + public GetWhitelistIpAddressesResponse whitelistedIps( + @jakarta.annotation.Nullable List whitelistedIps) { this.whitelistedIps = whitelistedIps; return this; } @@ -88,7 +90,7 @@ public List getWhitelistedIps() { @JsonProperty(JSON_PROPERTY_WHITELISTED_IPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWhitelistedIps(List whitelistedIps) { + public void setWhitelistedIps(@jakarta.annotation.Nullable List whitelistedIps) { this.whitelistedIps = whitelistedIps; } @@ -173,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } // add `whitelistedIps` to the URL query string @@ -189,10 +190,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getWhitelistedIps().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getWhitelistedIps().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponse.java b/src/main/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponse.java index c1ee3b0b..ba698b3f 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponse.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** GetWorkspaceStatusResponse */ @JsonPropertyOrder({GetWorkspaceStatusResponse.JSON_PROPERTY_STATUS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class GetWorkspaceStatusResponse { public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public GetWorkspaceStatusResponse() {} - public GetWorkspaceStatusResponse status(String status) { + public GetWorkspaceStatusResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -49,7 +50,7 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/HttpContractDoesNotExistError.java b/src/main/java/com/fireblocks/sdk/model/HttpContractDoesNotExistError.java index e42ad837..da00547b 100644 --- a/src/main/java/com/fireblocks/sdk/model/HttpContractDoesNotExistError.java +++ b/src/main/java/com/fireblocks/sdk/model/HttpContractDoesNotExistError.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ HttpContractDoesNotExistError.JSON_PROPERTY_MESSAGE, HttpContractDoesNotExistError.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class HttpContractDoesNotExistError { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_CODE = "code"; - private String code; + @jakarta.annotation.Nullable private String code; public HttpContractDoesNotExistError() {} - public HttpContractDoesNotExistError message(String message) { + public HttpContractDoesNotExistError message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -55,11 +56,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public HttpContractDoesNotExistError code(String code) { + public HttpContractDoesNotExistError code(@jakarta.annotation.Nullable String code) { this.code = code; return this; } @@ -78,7 +79,7 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(String code) { + public void setCode(@jakarta.annotation.Nullable String code) { this.code = code; } @@ -162,8 +163,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java b/src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java similarity index 59% rename from src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java rename to src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java index 2476b6b6..7d30e189 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java +++ b/src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java @@ -13,75 +13,100 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; -/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf */ +/** IBAN payment information for European bank transfers */ @JsonPropertyOrder({ - 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 + 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 }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class IbanPaymentInfo { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - private String accountHolderGivenName; + @jakarta.annotation.Nonnull private String accountHolderGivenName; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - private String accountHolderSurname; + @jakarta.annotation.Nullable private String accountHolderSurname; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CITY = "accountHolderCity"; - private String accountHolderCity; + @jakarta.annotation.Nonnull private String accountHolderCity; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY = "accountHolderCountry"; - private String accountHolderCountry; + @jakarta.annotation.Nonnull private String accountHolderCountry; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1 = "accountHolderAddress1"; - private String accountHolderAddress1; + @jakarta.annotation.Nonnull private String accountHolderAddress1; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2 = "accountHolderAddress2"; - private String accountHolderAddress2; + @jakarta.annotation.Nullable private String accountHolderAddress2; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT = "accountHolderDistrict"; - private String accountHolderDistrict; + @jakarta.annotation.Nullable private String accountHolderDistrict; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE = "accountHolderPostalCode"; - private String accountHolderPostalCode; + @jakarta.annotation.Nonnull private String accountHolderPostalCode; public static final String JSON_PROPERTY_IBAN = "iban"; - private String iban; + @jakarta.annotation.Nonnull private String iban; public static final String JSON_PROPERTY_IBAN_CITY = "ibanCity"; - private String ibanCity; + @jakarta.annotation.Nonnull private String ibanCity; public static final String JSON_PROPERTY_IBAN_COUNTRY = "ibanCountry"; - private String ibanCountry; - - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf() {} + @jakarta.annotation.Nonnull private String ibanCountry; + + public IbanPaymentInfo() {} + + @JsonCreator + public IbanPaymentInfo( + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) + String accountHolderGivenName, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_CITY, required = true) + String accountHolderCity, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, required = true) + String accountHolderCountry, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, required = true) + String accountHolderAddress1, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, required = true) + String accountHolderPostalCode, + @JsonProperty(value = JSON_PROPERTY_IBAN, required = true) String iban, + @JsonProperty(value = JSON_PROPERTY_IBAN_CITY, required = true) String ibanCity, + @JsonProperty(value = JSON_PROPERTY_IBAN_COUNTRY, required = true) String ibanCountry) { + this.accountHolderGivenName = accountHolderGivenName; + this.accountHolderCity = accountHolderCity; + this.accountHolderCountry = accountHolderCountry; + this.accountHolderAddress1 = accountHolderAddress1; + this.accountHolderPostalCode = accountHolderPostalCode; + this.iban = iban; + this.ibanCity = ibanCity; + this.ibanCountry = ibanCountry; + } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderGivenName( - String accountHolderGivenName) { + public IbanPaymentInfo accountHolderGivenName( + @jakarta.annotation.Nonnull String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; return this; } /** - * Get accountHolderGivenName + * The given name (first name) of the account holder * * @return accountHolderGivenName */ @@ -94,18 +119,19 @@ public String getAccountHolderGivenName() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName(String accountHolderGivenName) { + public void setAccountHolderGivenName( + @jakarta.annotation.Nonnull String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderSurname( - String accountHolderSurname) { + public IbanPaymentInfo accountHolderSurname( + @jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; return this; } /** - * Get accountHolderSurname + * The surname (last name) of the account holder * * @return accountHolderSurname */ @@ -118,18 +144,17 @@ public String getAccountHolderSurname() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderSurname(String accountHolderSurname) { + public void setAccountHolderSurname(@jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderCity( - String accountHolderCity) { + public IbanPaymentInfo accountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) { this.accountHolderCity = accountHolderCity; return this; } /** - * Get accountHolderCity + * The city where the account holder resides * * @return accountHolderCity */ @@ -142,18 +167,18 @@ public String getAccountHolderCity() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderCity(String accountHolderCity) { + public void setAccountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) { this.accountHolderCity = accountHolderCity; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderCountry( - String accountHolderCountry) { + public IbanPaymentInfo accountHolderCountry( + @jakarta.annotation.Nonnull String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; return this; } /** - * Get accountHolderCountry + * The country where the account holder resides (ISO 3166-1 alpha-2 code) * * @return accountHolderCountry */ @@ -166,18 +191,18 @@ public String getAccountHolderCountry() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderCountry(String accountHolderCountry) { + public void setAccountHolderCountry(@jakarta.annotation.Nonnull String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderAddress1( - String accountHolderAddress1) { + public IbanPaymentInfo accountHolderAddress1( + @jakarta.annotation.Nonnull String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; return this; } /** - * Get accountHolderAddress1 + * The primary address line of the account holder * * @return accountHolderAddress1 */ @@ -190,18 +215,18 @@ public String getAccountHolderAddress1() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderAddress1(String accountHolderAddress1) { + public void setAccountHolderAddress1(@jakarta.annotation.Nonnull String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderAddress2( - String accountHolderAddress2) { + public IbanPaymentInfo accountHolderAddress2( + @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; return this; } /** - * Get accountHolderAddress2 + * The secondary address line of the account holder (optional) * * @return accountHolderAddress2 */ @@ -214,18 +239,19 @@ public String getAccountHolderAddress2() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderAddress2(String accountHolderAddress2) { + public void setAccountHolderAddress2( + @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderDistrict( - String accountHolderDistrict) { + public IbanPaymentInfo accountHolderDistrict( + @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; return this; } /** - * Get accountHolderDistrict + * The district or region where the account holder resides * * @return accountHolderDistrict */ @@ -238,18 +264,19 @@ public String getAccountHolderDistrict() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderDistrict(String accountHolderDistrict) { + public void setAccountHolderDistrict( + @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderPostalCode( - String accountHolderPostalCode) { + public IbanPaymentInfo accountHolderPostalCode( + @jakarta.annotation.Nonnull String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; return this; } /** - * Get accountHolderPostalCode + * The postal code of the account holder's address * * @return accountHolderPostalCode */ @@ -262,17 +289,18 @@ public String getAccountHolderPostalCode() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderPostalCode(String accountHolderPostalCode) { + public void setAccountHolderPostalCode( + @jakarta.annotation.Nonnull String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf iban(String iban) { + public IbanPaymentInfo iban(@jakarta.annotation.Nonnull String iban) { this.iban = iban; return this; } /** - * Get iban + * The International Bank Account Number (IBAN) * * @return iban */ @@ -285,17 +313,17 @@ public String getIban() { @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIban(String iban) { + public void setIban(@jakarta.annotation.Nonnull String iban) { this.iban = iban; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf ibanCity(String ibanCity) { + public IbanPaymentInfo ibanCity(@jakarta.annotation.Nonnull String ibanCity) { this.ibanCity = ibanCity; return this; } /** - * Get ibanCity + * The city associated with the IBAN * * @return ibanCity */ @@ -308,18 +336,17 @@ public String getIbanCity() { @JsonProperty(JSON_PROPERTY_IBAN_CITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIbanCity(String ibanCity) { + public void setIbanCity(@jakarta.annotation.Nonnull String ibanCity) { this.ibanCity = ibanCity; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf ibanCountry( - String ibanCountry) { + public IbanPaymentInfo ibanCountry(@jakarta.annotation.Nonnull String ibanCountry) { this.ibanCountry = ibanCountry; return this; } /** - * Get ibanCountry + * The country associated with the IBAN (ISO 3166-1 alpha-2 code) * * @return ibanCountry */ @@ -332,14 +359,11 @@ public String getIbanCountry() { @JsonProperty(JSON_PROPERTY_IBAN_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIbanCountry(String ibanCountry) { + public void setIbanCountry(@jakarta.annotation.Nonnull String ibanCountry) { this.ibanCountry = ibanCountry; } - /** - * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf object is - * equal to o. - */ + /** Return true if this IbanPaymentInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -348,48 +372,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - 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) + 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) && Objects.equals( - this.ibanCountry, - addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.ibanCountry); + this.accountHolderPostalCode, ibanPaymentInfo.accountHolderPostalCode) + && Objects.equals(this.iban, ibanPaymentInfo.iban) + && Objects.equals(this.ibanCity, ibanPaymentInfo.ibanCity) + && Objects.equals(this.ibanCountry, ibanPaymentInfo.ibanCountry); } @Override @@ -411,7 +406,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf {\n"); + sb.append("class IbanPaymentInfo {\n"); sb.append(" accountHolderGivenName: ") .append(toIndentedString(accountHolderGivenName)) .append("\n"); @@ -493,10 +488,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderGivenName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderGivenName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderGivenName())))); } // add `accountHolderSurname` to the URL query string @@ -506,10 +499,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderSurname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderSurname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderSurname())))); } // add `accountHolderCity` to the URL query string @@ -519,10 +510,7 @@ public String toUrlQueryString(String prefix) { "%saccountHolderCity%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderCity()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountHolderCity())))); } // add `accountHolderCountry` to the URL query string @@ -532,10 +520,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderCountry())))); } // add `accountHolderAddress1` to the URL query string @@ -545,10 +531,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderAddress1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderAddress1()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderAddress1())))); } // add `accountHolderAddress2` to the URL query string @@ -558,10 +542,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderAddress2%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderAddress2()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderAddress2())))); } // add `accountHolderDistrict` to the URL query string @@ -571,10 +553,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderDistrict%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderDistrict()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderDistrict())))); } // add `accountHolderPostalCode` to the URL query string @@ -584,10 +564,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderPostalCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderPostalCode()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderPostalCode())))); } // add `iban` to the URL query string @@ -597,8 +575,7 @@ public String toUrlQueryString(String prefix) { "%siban%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIban()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIban())))); } // add `ibanCity` to the URL query string @@ -608,8 +585,7 @@ public String toUrlQueryString(String prefix) { "%sibanCity%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIbanCity()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIbanCity())))); } // add `ibanCountry` to the URL query string @@ -619,10 +595,7 @@ public String toUrlQueryString(String prefix) { "%sibanCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIbanCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIbanCountry())))); } 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 new file mode 100644 index 00000000..e0c3ab61 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java @@ -0,0 +1,419 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/InitiatorConfigPattern.java b/src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java new file mode 100644 index 00000000..d817c87a --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java @@ -0,0 +1,325 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI 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 = InitiatorConfigPattern.InitiatorConfigPatternDeserializer.class) +@JsonSerialize(using = InitiatorConfigPattern.InitiatorConfigPatternSerializer.class) +public class InitiatorConfigPattern extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(InitiatorConfigPattern.class.getName()); + + public static class InitiatorConfigPatternSerializer + extends StdSerializer { + public InitiatorConfigPatternSerializer(Class t) { + super(t); + } + + public InitiatorConfigPatternSerializer() { + this(null); + } + + @Override + public void serialize( + InitiatorConfigPattern value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class InitiatorConfigPatternDeserializer + extends StdDeserializer { + public InitiatorConfigPatternDeserializer() { + this(InitiatorConfigPattern.class); + } + + public InitiatorConfigPatternDeserializer(Class vc) { + super(vc); + } + + @Override + public InitiatorConfigPattern 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 + 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)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((InitiatorConfig.class.equals(Integer.class) + || InitiatorConfig.class.equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((InitiatorConfig.class.equals(Float.class) + || InitiatorConfig.class.equals(Double.class)) + && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= + (InitiatorConfig.class.equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE + || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (InitiatorConfig.class.equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InitiatorConfig.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'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InitiatorConfig'", 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) { + InitiatorConfigPattern ret = new InitiatorConfigPattern(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for InitiatorConfigPattern: %d classes match" + + " result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ + @Override + public InitiatorConfigPattern getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "InitiatorConfigPattern cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public InitiatorConfigPattern() { + super("oneOf", Boolean.FALSE); + } + + public InitiatorConfigPattern(InitiatorConfig o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public InitiatorConfigPattern(String 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)); + } + + @Override + public Map> getSchemas() { + return InitiatorConfigPattern.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: InitiatorConfig, 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(InitiatorConfig.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 InitiatorConfig, String"); + } + + /** + * Get the actual instance, which can be the following: InitiatorConfig, String + * + * @return The actual instance (InitiatorConfig, String) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `InitiatorConfig`. If the actual instance is not + * `InitiatorConfig`, the ClassCastException will be thrown. + * + * @return The actual instance of `InitiatorConfig` + * @throws ClassCastException if the instance is not `InitiatorConfig` + */ + public InitiatorConfig getInitiatorConfig() throws ClassCastException { + return (InitiatorConfig) 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 InitiatorConfig) { + if (getActualInstance() != null) { + joiner.add( + ((InitiatorConfig) getActualInstance()) + .toUrlQueryString(prefix + "one_of_1" + suffix)); + } + return joiner.toString(); + } + return null; + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/InstructionAmount.java b/src/main/java/com/fireblocks/sdk/model/InstructionAmount.java index 525fe79b..b1d11b0a 100644 --- a/src/main/java/com/fireblocks/sdk/model/InstructionAmount.java +++ b/src/main/java/com/fireblocks/sdk/model/InstructionAmount.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ InstructionAmount.JSON_PROPERTY_AMOUNT, InstructionAmount.JSON_PROPERTY_ASSET_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class InstructionAmount { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public InstructionAmount() {} - public InstructionAmount amount(String amount) { + @JsonCreator + public InstructionAmount( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId) { + this.amount = amount; + this.assetId = assetId; + } + + public InstructionAmount amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -55,11 +65,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public InstructionAmount assetId(String assetId) { + public InstructionAmount assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -78,7 +88,7 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } @@ -161,8 +171,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `assetId` to the URL query string @@ -172,8 +181,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } 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 dca0bf4c..9b3cd620 100644 --- a/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ InternalTransferResponse.JSON_PROPERTY_SUCCESS, InternalTransferResponse.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class InternalTransferResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public InternalTransferResponse() {} - public InternalTransferResponse success(Boolean success) { + @JsonCreator + public InternalTransferResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public InternalTransferResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -55,11 +63,11 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } - public InternalTransferResponse id(String id) { + public InternalTransferResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -78,7 +86,7 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } @@ -161,8 +169,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } // add `id` to the URL query string @@ -170,10 +177,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 5725df14..f99083d8 100644 --- a/src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java +++ b/src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ InvalidParamaterValueError.JSON_PROPERTY_MESSAGE, InvalidParamaterValueError.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public InvalidParamaterValueError() {} - public InvalidParamaterValueError message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public InvalidParamaterValueError code(BigDecimal code) { + public InvalidParamaterValueError code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 1b003987..cf9ecb12 100644 --- a/src/main/java/com/fireblocks/sdk/model/Job.java +++ b/src/main/java/com/fireblocks/sdk/model/Job.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -35,35 +34,37 @@ Job.JSON_PROPERTY_STATE, Job.JSON_PROPERTY_TASKS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Job { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; - private String tenantId; + @jakarta.annotation.Nullable private String tenantId; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_USER_ID = "userId"; - private String userId; + @jakarta.annotation.Nullable private String userId; public static final String JSON_PROPERTY_CREATED = "created"; - private BigDecimal created; + @jakarta.annotation.Nullable private BigDecimal created; public static final String JSON_PROPERTY_UPDATED = "updated"; - private BigDecimal updated; + @jakarta.annotation.Nullable private BigDecimal updated; public static final String JSON_PROPERTY_STATE = "state"; - private String state; + @jakarta.annotation.Nullable private String state; public static final String JSON_PROPERTY_TASKS = "tasks"; - private List tasks; + @jakarta.annotation.Nullable private List tasks = new ArrayList<>(); public Job() {} - public Job id(String id) { + public Job id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -82,11 +83,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public Job tenantId(String tenantId) { + public Job tenantId(@jakarta.annotation.Nullable String tenantId) { this.tenantId = tenantId; return this; } @@ -105,11 +106,11 @@ public String getTenantId() { @JsonProperty(JSON_PROPERTY_TENANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTenantId(String tenantId) { + public void setTenantId(@jakarta.annotation.Nullable String tenantId) { this.tenantId = tenantId; } - public Job type(String type) { + public Job type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -128,11 +129,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public Job userId(String userId) { + public Job userId(@jakarta.annotation.Nullable String userId) { this.userId = userId; return this; } @@ -151,11 +152,11 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserId(String userId) { + public void setUserId(@jakarta.annotation.Nullable String userId) { this.userId = userId; } - public Job created(BigDecimal created) { + public Job created(@jakarta.annotation.Nullable BigDecimal created) { this.created = created; return this; } @@ -174,11 +175,11 @@ public BigDecimal getCreated() { @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreated(BigDecimal created) { + public void setCreated(@jakarta.annotation.Nullable BigDecimal created) { this.created = created; } - public Job updated(BigDecimal updated) { + public Job updated(@jakarta.annotation.Nullable BigDecimal updated) { this.updated = updated; return this; } @@ -197,11 +198,11 @@ public BigDecimal getUpdated() { @JsonProperty(JSON_PROPERTY_UPDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdated(BigDecimal updated) { + public void setUpdated(@jakarta.annotation.Nullable BigDecimal updated) { this.updated = updated; } - public Job state(String state) { + public Job state(@jakarta.annotation.Nullable String state) { this.state = state; return this; } @@ -220,11 +221,11 @@ public String getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(String state) { + public void setState(@jakarta.annotation.Nullable String state) { this.state = state; } - public Job tasks(List tasks) { + public Job tasks(@jakarta.annotation.Nullable List tasks) { this.tasks = tasks; return this; } @@ -251,7 +252,7 @@ public List getTasks() { @JsonProperty(JSON_PROPERTY_TASKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTasks(List tasks) { + public void setTasks(@jakarta.annotation.Nullable List tasks) { this.tasks = tasks; } @@ -344,10 +345,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `tenantId` to the URL query string @@ -357,8 +355,7 @@ public String toUrlQueryString(String prefix) { "%stenantId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTenantId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); } // add `type` to the URL query string @@ -368,8 +365,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `userId` to the URL query string @@ -379,8 +375,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } // add `created` to the URL query string @@ -390,8 +385,7 @@ public String toUrlQueryString(String prefix) { "%screated%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCreated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreated())))); } // add `updated` to the URL query string @@ -401,8 +395,7 @@ public String toUrlQueryString(String prefix) { "%supdated%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUpdated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdated())))); } // add `state` to the URL query string @@ -412,8 +405,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } // add `tasks` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/JobCreated.java b/src/main/java/com/fireblocks/sdk/model/JobCreated.java index 28c5f01e..1992e55a 100644 --- a/src/main/java/com/fireblocks/sdk/model/JobCreated.java +++ b/src/main/java/com/fireblocks/sdk/model/JobCreated.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** JobCreated */ @JsonPropertyOrder({JobCreated.JSON_PROPERTY_JOB_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class JobCreated { public static final String JSON_PROPERTY_JOB_ID = "jobId"; - private String jobId; + @jakarta.annotation.Nullable private String jobId; public JobCreated() {} - public JobCreated jobId(String jobId) { + public JobCreated jobId(@jakarta.annotation.Nullable String jobId) { this.jobId = jobId; return this; } @@ -49,7 +50,7 @@ public String getJobId() { @JsonProperty(JSON_PROPERTY_JOB_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJobId(String jobId) { + public void setJobId(@jakarta.annotation.Nullable String jobId) { this.jobId = jobId; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%sjobId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getJobId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getJobId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java b/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java index 7f87c872..426666ff 100644 --- a/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java +++ b/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,41 @@ LayerZeroAdapterCreateParams.JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS, LayerZeroAdapterCreateParams.JSON_PROPERTY_PAUSER_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String tokenLinkId; + @jakarta.annotation.Nonnull private String tokenLinkId; public static final String JSON_PROPERTY_DELEGATE_ADDRESS = "delegateAddress"; - private String delegateAddress; + @jakarta.annotation.Nonnull private String delegateAddress; public static final String JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS = "defaultAdminAddress"; - private String defaultAdminAddress; + @jakarta.annotation.Nonnull private String defaultAdminAddress; public static final String JSON_PROPERTY_PAUSER_ADDRESS = "pauserAddress"; - private String pauserAddress; + @jakarta.annotation.Nonnull private String pauserAddress; public LayerZeroAdapterCreateParams() {} - public LayerZeroAdapterCreateParams tokenLinkId(String tokenLinkId) { + @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; } @@ -63,11 +81,12 @@ public String getTokenLinkId() { @JsonProperty(JSON_PROPERTY_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenLinkId(String tokenLinkId) { + public void setTokenLinkId(@jakarta.annotation.Nonnull String tokenLinkId) { this.tokenLinkId = tokenLinkId; } - public LayerZeroAdapterCreateParams delegateAddress(String delegateAddress) { + public LayerZeroAdapterCreateParams delegateAddress( + @jakarta.annotation.Nonnull String delegateAddress) { this.delegateAddress = delegateAddress; return this; } @@ -86,11 +105,12 @@ public String getDelegateAddress() { @JsonProperty(JSON_PROPERTY_DELEGATE_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDelegateAddress(String delegateAddress) { + public void setDelegateAddress(@jakarta.annotation.Nonnull String delegateAddress) { this.delegateAddress = delegateAddress; } - public LayerZeroAdapterCreateParams defaultAdminAddress(String defaultAdminAddress) { + public LayerZeroAdapterCreateParams defaultAdminAddress( + @jakarta.annotation.Nonnull String defaultAdminAddress) { this.defaultAdminAddress = defaultAdminAddress; return this; } @@ -109,11 +129,12 @@ public String getDefaultAdminAddress() { @JsonProperty(JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDefaultAdminAddress(String defaultAdminAddress) { + public void setDefaultAdminAddress(@jakarta.annotation.Nonnull String defaultAdminAddress) { this.defaultAdminAddress = defaultAdminAddress; } - public LayerZeroAdapterCreateParams pauserAddress(String pauserAddress) { + public LayerZeroAdapterCreateParams pauserAddress( + @jakarta.annotation.Nonnull String pauserAddress) { this.pauserAddress = pauserAddress; return this; } @@ -132,7 +153,7 @@ public String getPauserAddress() { @JsonProperty(JSON_PROPERTY_PAUSER_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPauserAddress(String pauserAddress) { + public void setPauserAddress(@jakarta.annotation.Nonnull String pauserAddress) { this.pauserAddress = pauserAddress; } @@ -224,10 +245,7 @@ public String toUrlQueryString(String prefix) { "%stokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTokenLinkId())))); } // add `delegateAddress` to the URL query string @@ -237,10 +255,7 @@ public String toUrlQueryString(String prefix) { "%sdelegateAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDelegateAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDelegateAddress())))); } // add `defaultAdminAddress` to the URL query string @@ -250,10 +265,8 @@ public String toUrlQueryString(String prefix) { "%sdefaultAdminAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDefaultAdminAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDefaultAdminAddress())))); } // add `pauserAddress` to the URL query string @@ -263,10 +276,7 @@ public String toUrlQueryString(String prefix) { "%spauserAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPauserAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 new file mode 100644 index 00000000..57e9a6c7 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java @@ -0,0 +1,522 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 04bf0c23..6ecba4e5 100644 --- a/src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,26 +31,28 @@ LeanAbiFunction.JSON_PROPERTY_OUTPUTS, LeanAbiFunction.JSON_PROPERTY_STATE_MUTABILITY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class LeanAbiFunction { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_INPUTS = "inputs"; - private List inputs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inputs = new ArrayList<>(); public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - private List 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("view"), + VIEW(String.valueOf("view")), - PURE("pure"), + PURE(String.valueOf("pure")), - NONPAYABLE("nonpayable"), + NONPAYABLE(String.valueOf("nonpayable")), - PAYABLE("payable"); + PAYABLE(String.valueOf("payable")); private String value; @@ -81,11 +82,18 @@ public static StateMutabilityEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability"; - private StateMutabilityEnum stateMutability; + @jakarta.annotation.Nullable private StateMutabilityEnum stateMutability; public LeanAbiFunction() {} - public LeanAbiFunction name(String name) { + @JsonCreator + public LeanAbiFunction( + @JsonProperty(value = JSON_PROPERTY_INPUTS, required = true) + List inputs) { + this.inputs = inputs; + } + + public LeanAbiFunction name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -104,11 +112,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public LeanAbiFunction inputs(List inputs) { + public LeanAbiFunction inputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; return this; } @@ -135,11 +143,11 @@ public List getInputs() { @JsonProperty(JSON_PROPERTY_INPUTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputs(List inputs) { + public void setInputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; } - public LeanAbiFunction outputs(List outputs) { + public LeanAbiFunction outputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; return this; } @@ -166,11 +174,12 @@ public List getOutputs() { @JsonProperty(JSON_PROPERTY_OUTPUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutputs(List outputs) { + public void setOutputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; } - public LeanAbiFunction stateMutability(StateMutabilityEnum stateMutability) { + public LeanAbiFunction stateMutability( + @jakarta.annotation.Nullable StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; return this; } @@ -189,7 +198,8 @@ public StateMutabilityEnum getStateMutability() { @JsonProperty(JSON_PROPERTY_STATE_MUTABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStateMutability(StateMutabilityEnum stateMutability) { + public void setStateMutability( + @jakarta.annotation.Nullable StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; } @@ -276,8 +286,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `inputs` to the URL query string @@ -333,10 +342,7 @@ public String toUrlQueryString(String prefix) { "%sstateMutability%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStateMutability()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStateMutability())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LeanContractDto.java b/src/main/java/com/fireblocks/sdk/model/LeanContractDto.java index 73b9a206..007ab88f 100644 --- a/src/main/java/com/fireblocks/sdk/model/LeanContractDto.java +++ b/src/main/java/com/fireblocks/sdk/model/LeanContractDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -35,43 +34,45 @@ LeanContractDto.JSON_PROPERTY_VENDOR, LeanContractDto.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class LeanContractDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nonnull private String description; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private ContractAttributes attributes; + @jakarta.annotation.Nullable private ContractAttributes attributes; public static final String JSON_PROPERTY_IS_PUBLIC = "isPublic"; - private Boolean isPublic; + @jakarta.annotation.Nonnull private Boolean isPublic; public static final String JSON_PROPERTY_CAN_DEPLOY = "canDeploy"; - private Boolean canDeploy; + @jakarta.annotation.Nullable private Boolean canDeploy; public static final String JSON_PROPERTY_OWNER = "owner"; - private String owner; + @jakarta.annotation.Nullable private String owner; public static final String JSON_PROPERTY_VENDOR = "vendor"; - private VendorDto vendor; + @jakarta.annotation.Nullable private VendorDto vendor; /** Gets or Sets type */ public enum TypeEnum { - FUNGIBLE_TOKEN("FUNGIBLE_TOKEN"), + FUNGIBLE_TOKEN(String.valueOf("FUNGIBLE_TOKEN")), - NON_FUNGIBLE_TOKEN("NON_FUNGIBLE_TOKEN"), + NON_FUNGIBLE_TOKEN(String.valueOf("NON_FUNGIBLE_TOKEN")), - NON_TOKEN("NON_TOKEN"), + NON_TOKEN(String.valueOf("NON_TOKEN")), - TOKEN_EXTENSION("TOKEN_EXTENSION"), + TOKEN_EXTENSION(String.valueOf("TOKEN_EXTENSION")), - TOKEN_UTILITY("TOKEN_UTILITY"); + TOKEN_UTILITY(String.valueOf("TOKEN_UTILITY")); private String value; @@ -101,11 +102,23 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public LeanContractDto() {} - public LeanContractDto id(String id) { + @JsonCreator + public LeanContractDto( + @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_IS_PUBLIC, required = true) Boolean isPublic) { + this.id = id; + this.name = name; + this.description = description; + this.isPublic = isPublic; + } + + public LeanContractDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -124,11 +137,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public LeanContractDto name(String name) { + public LeanContractDto name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -147,11 +160,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public LeanContractDto description(String description) { + public LeanContractDto description(@jakarta.annotation.Nonnull String description) { this.description = description; return this; } @@ -170,11 +183,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nonnull String description) { this.description = description; } - public LeanContractDto attributes(ContractAttributes attributes) { + public LeanContractDto attributes(@jakarta.annotation.Nullable ContractAttributes attributes) { this.attributes = attributes; return this; } @@ -194,11 +207,11 @@ public ContractAttributes getAttributes() { @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(ContractAttributes attributes) { + public void setAttributes(@jakarta.annotation.Nullable ContractAttributes attributes) { this.attributes = attributes; } - public LeanContractDto isPublic(Boolean isPublic) { + public LeanContractDto isPublic(@jakarta.annotation.Nonnull Boolean isPublic) { this.isPublic = isPublic; return this; } @@ -218,11 +231,11 @@ public Boolean getIsPublic() { @JsonProperty(JSON_PROPERTY_IS_PUBLIC) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsPublic(Boolean isPublic) { + public void setIsPublic(@jakarta.annotation.Nonnull Boolean isPublic) { this.isPublic = isPublic; } - public LeanContractDto canDeploy(Boolean canDeploy) { + public LeanContractDto canDeploy(@jakarta.annotation.Nullable Boolean canDeploy) { this.canDeploy = canDeploy; return this; } @@ -241,11 +254,11 @@ public Boolean getCanDeploy() { @JsonProperty(JSON_PROPERTY_CAN_DEPLOY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanDeploy(Boolean canDeploy) { + public void setCanDeploy(@jakarta.annotation.Nullable Boolean canDeploy) { this.canDeploy = canDeploy; } - public LeanContractDto owner(String owner) { + public LeanContractDto owner(@jakarta.annotation.Nullable String owner) { this.owner = owner; return this; } @@ -265,11 +278,11 @@ public String getOwner() { @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOwner(String owner) { + public void setOwner(@jakarta.annotation.Nullable String owner) { this.owner = owner; } - public LeanContractDto vendor(VendorDto vendor) { + public LeanContractDto vendor(@jakarta.annotation.Nullable VendorDto vendor) { this.vendor = vendor; return this; } @@ -289,11 +302,11 @@ public VendorDto getVendor() { @JsonProperty(JSON_PROPERTY_VENDOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVendor(VendorDto vendor) { + public void setVendor(@jakarta.annotation.Nullable VendorDto vendor) { this.vendor = vendor; } - public LeanContractDto type(TypeEnum type) { + public LeanContractDto type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -312,7 +325,7 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } @@ -408,10 +421,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -421,8 +431,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `description` to the URL query string @@ -432,10 +441,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `attributes` to the URL query string @@ -450,8 +456,7 @@ public String toUrlQueryString(String prefix) { "%sisPublic%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsPublic()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsPublic())))); } // add `canDeploy` to the URL query string @@ -461,9 +466,7 @@ public String toUrlQueryString(String prefix) { "%scanDeploy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCanDeploy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCanDeploy())))); } // add `owner` to the URL query string @@ -473,8 +476,7 @@ public String toUrlQueryString(String prefix) { "%sowner%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getOwner()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOwner())))); } // add `vendor` to the URL query string @@ -489,8 +491,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDto.java b/src/main/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDto.java index 4909e7df..fbdc4d1b 100644 --- a/src/main/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,40 @@ LeanDeployedContractResponseDto.JSON_PROPERTY_CONTRACT_TEMPLATE_ID, LeanDeployedContractResponseDto.JSON_PROPERTY_BLOCKCHAIN_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class LeanDeployedContractResponseDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nonnull private String contractAddress; public static final String JSON_PROPERTY_CONTRACT_TEMPLATE_ID = "contractTemplateId"; - private String contractTemplateId; + @jakarta.annotation.Nonnull private String contractTemplateId; public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - private String blockchainId; + @jakarta.annotation.Nonnull private String blockchainId; public LeanDeployedContractResponseDto() {} - public LeanDeployedContractResponseDto id(String id) { + @JsonCreator + public LeanDeployedContractResponseDto( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_CONTRACT_ADDRESS, required = true) + String contractAddress, + @JsonProperty(value = JSON_PROPERTY_CONTRACT_TEMPLATE_ID, required = true) + String contractTemplateId, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_ID, required = true) + String blockchainId) { + this.id = id; + this.contractAddress = contractAddress; + this.contractTemplateId = contractTemplateId; + this.blockchainId = blockchainId; + } + + public LeanDeployedContractResponseDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -63,11 +80,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public LeanDeployedContractResponseDto contractAddress(String contractAddress) { + public LeanDeployedContractResponseDto contractAddress( + @jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -86,11 +104,12 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { this.contractAddress = contractAddress; } - public LeanDeployedContractResponseDto contractTemplateId(String contractTemplateId) { + public LeanDeployedContractResponseDto contractTemplateId( + @jakarta.annotation.Nonnull String contractTemplateId) { this.contractTemplateId = contractTemplateId; return this; } @@ -109,11 +128,12 @@ public String getContractTemplateId() { @JsonProperty(JSON_PROPERTY_CONTRACT_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractTemplateId(String contractTemplateId) { + public void setContractTemplateId(@jakarta.annotation.Nonnull String contractTemplateId) { this.contractTemplateId = contractTemplateId; } - public LeanDeployedContractResponseDto blockchainId(String blockchainId) { + public LeanDeployedContractResponseDto blockchainId( + @jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; return this; } @@ -132,7 +152,7 @@ public String getBlockchainId() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainId(String blockchainId) { + public void setBlockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; } @@ -222,10 +242,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `contractAddress` to the URL query string @@ -235,10 +252,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `contractTemplateId` to the URL query string @@ -248,10 +262,7 @@ public String toUrlQueryString(String prefix) { "%scontractTemplateId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractTemplateId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractTemplateId())))); } // add `blockchainId` to the URL query string @@ -261,10 +272,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java b/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java rename to src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java index c2a21e87..a2e6a0aa 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.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 AmountAggregationTimePeriodMethod { +public enum LegacyAmountAggregationTimePeriodMethod { PER_SINGLE_MATCH("PER_SINGLE_MATCH"), ACROSS_ALL_MATCHES("ACROSS_ALL_MATCHES"); private String value; - AmountAggregationTimePeriodMethod(String value) { + LegacyAmountAggregationTimePeriodMethod(String value) { this.value = value; } @@ -42,8 +42,9 @@ public String toString() { } @JsonCreator - public static AmountAggregationTimePeriodMethod fromValue(String value) { - for (AmountAggregationTimePeriodMethod b : AmountAggregationTimePeriodMethod.values()) { + public static LegacyAmountAggregationTimePeriodMethod fromValue(String value) { + for (LegacyAmountAggregationTimePeriodMethod b : + LegacyAmountAggregationTimePeriodMethod.values()) { if (b.value.equals(value)) { return b; } diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java new file mode 100644 index 00000000..ecad9793 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java @@ -0,0 +1,291 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..0e21983d --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java @@ -0,0 +1,185 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..8b6feed3 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java @@ -0,0 +1,183 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..9634cef4 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java @@ -0,0 +1,217 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..e0a7de21 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java @@ -0,0 +1,258 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (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 new file mode 100644 index 00000000..d3f59879 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java @@ -0,0 +1,209 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..fa90ead5 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java @@ -0,0 +1,1610 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/PolicyRuleAmount.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java similarity index 75% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleAmount.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java index ce9f5a44..4edc5c51 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmount.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java @@ -35,40 +35,44 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@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) { +@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) { super(t); } - public PolicyRuleAmountSerializer() { + public LegacyPolicyRuleAmountSerializer() { this(null); } @Override public void serialize( - PolicyRuleAmount value, JsonGenerator jgen, SerializerProvider provider) + LegacyPolicyRuleAmount value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class PolicyRuleAmountDeserializer extends StdDeserializer { - public PolicyRuleAmountDeserializer() { - this(PolicyRuleAmount.class); + public static class LegacyPolicyRuleAmountDeserializer + extends StdDeserializer { + public LegacyPolicyRuleAmountDeserializer() { + this(LegacyPolicyRuleAmount.class); } - public PolicyRuleAmountDeserializer(Class vc) { + public LegacyPolicyRuleAmountDeserializer(Class vc) { super(vc); } @Override - public PolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt) + public LegacyPolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); @@ -76,50 +80,52 @@ public PolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt) // deserialize BigDecimal try { deserialized = tree.traverse(jp.getCodec()).readValueAs(BigDecimal.class); - PolicyRuleAmount ret = new PolicyRuleAmount(); + LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'PolicyRuleAmount'", e); + log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e); } // deserialize String try { deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - PolicyRuleAmount ret = new PolicyRuleAmount(); + LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'PolicyRuleAmount'", e); + log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e); } throw new IOException( - String.format("Failed deserialization for PolicyRuleAmount: no match found")); + String.format( + "Failed deserialization for LegacyPolicyRuleAmount: no match found")); } /** Handle deserialization of the 'null' value. */ @Override - public PolicyRuleAmount getNullValue(DeserializationContext ctxt) + public LegacyPolicyRuleAmount getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PolicyRuleAmount cannot be null"); + throw new JsonMappingException( + ctxt.getParser(), "LegacyPolicyRuleAmount cannot be null"); } } // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public PolicyRuleAmount() { + public LegacyPolicyRuleAmount() { super("anyOf", Boolean.FALSE); } - public PolicyRuleAmount(BigDecimal o) { + public LegacyPolicyRuleAmount(BigDecimal o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } - public PolicyRuleAmount(String o) { + public LegacyPolicyRuleAmount(String o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -127,12 +133,13 @@ public PolicyRuleAmount(String o) { static { schemas.put("BigDecimal", BigDecimal.class); schemas.put("String", String.class); - JSON.registerDescendants(PolicyRuleAmount.class, Collections.unmodifiableMap(schemas)); + JSON.registerDescendants( + LegacyPolicyRuleAmount.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return PolicyRuleAmount.schemas; + return LegacyPolicyRuleAmount.schemas; } /** diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java similarity index 67% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java index a69d5059..2eabd4b6 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,24 +26,27 @@ * under Time Period. */ @JsonPropertyOrder({ - PolicyRuleAmountAggregation.JSON_PROPERTY_OPERATORS, - PolicyRuleAmountAggregation.JSON_PROPERTY_SRC_TRANSFER_PEERS, - PolicyRuleAmountAggregation.JSON_PROPERTY_DST_TRANSFER_PEERS + LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_OPERATORS, + LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_SRC_TRANSFER_PEERS, + LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_DST_TRANSFER_PEERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleAmountAggregation { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleAmountAggregation { public static final String JSON_PROPERTY_OPERATORS = "operators"; - private AmountAggregationTimePeriodMethod operators; + @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod operators; public static final String JSON_PROPERTY_SRC_TRANSFER_PEERS = "srcTransferPeers"; - private AmountAggregationTimePeriodMethod srcTransferPeers; + @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod srcTransferPeers; public static final String JSON_PROPERTY_DST_TRANSFER_PEERS = "dstTransferPeers"; - private AmountAggregationTimePeriodMethod dstTransferPeers; + @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod dstTransferPeers; - public PolicyRuleAmountAggregation() {} + public LegacyPolicyRuleAmountAggregation() {} - public PolicyRuleAmountAggregation operators(AmountAggregationTimePeriodMethod operators) { + public LegacyPolicyRuleAmountAggregation operators( + @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) { this.operators = operators; return this; } @@ -57,18 +59,19 @@ public PolicyRuleAmountAggregation operators(AmountAggregationTimePeriodMethod o @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERATORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountAggregationTimePeriodMethod getOperators() { + public LegacyAmountAggregationTimePeriodMethod getOperators() { return operators; } @JsonProperty(JSON_PROPERTY_OPERATORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperators(AmountAggregationTimePeriodMethod operators) { + public void setOperators( + @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) { this.operators = operators; } - public PolicyRuleAmountAggregation srcTransferPeers( - AmountAggregationTimePeriodMethod srcTransferPeers) { + public LegacyPolicyRuleAmountAggregation srcTransferPeers( + @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) { this.srcTransferPeers = srcTransferPeers; return this; } @@ -81,18 +84,19 @@ public PolicyRuleAmountAggregation srcTransferPeers( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountAggregationTimePeriodMethod getSrcTransferPeers() { + public LegacyAmountAggregationTimePeriodMethod getSrcTransferPeers() { return srcTransferPeers; } @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcTransferPeers(AmountAggregationTimePeriodMethod srcTransferPeers) { + public void setSrcTransferPeers( + @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) { this.srcTransferPeers = srcTransferPeers; } - public PolicyRuleAmountAggregation dstTransferPeers( - AmountAggregationTimePeriodMethod dstTransferPeers) { + public LegacyPolicyRuleAmountAggregation dstTransferPeers( + @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) { this.dstTransferPeers = dstTransferPeers; return this; } @@ -105,17 +109,18 @@ public PolicyRuleAmountAggregation dstTransferPeers( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountAggregationTimePeriodMethod getDstTransferPeers() { + public LegacyAmountAggregationTimePeriodMethod getDstTransferPeers() { return dstTransferPeers; } @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstTransferPeers(AmountAggregationTimePeriodMethod dstTransferPeers) { + public void setDstTransferPeers( + @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) { this.dstTransferPeers = dstTransferPeers; } - /** Return true if this PolicyRule_amountAggregation object is equal to o. */ + /** Return true if this LegacyPolicyRule_amountAggregation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -124,12 +129,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleAmountAggregation policyRuleAmountAggregation = (PolicyRuleAmountAggregation) o; - return Objects.equals(this.operators, policyRuleAmountAggregation.operators) + LegacyPolicyRuleAmountAggregation legacyPolicyRuleAmountAggregation = + (LegacyPolicyRuleAmountAggregation) o; + return Objects.equals(this.operators, legacyPolicyRuleAmountAggregation.operators) && Objects.equals( - this.srcTransferPeers, policyRuleAmountAggregation.srcTransferPeers) + this.srcTransferPeers, legacyPolicyRuleAmountAggregation.srcTransferPeers) && Objects.equals( - this.dstTransferPeers, policyRuleAmountAggregation.dstTransferPeers); + this.dstTransferPeers, legacyPolicyRuleAmountAggregation.dstTransferPeers); } @Override @@ -140,7 +146,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleAmountAggregation {\n"); + sb.append("class LegacyPolicyRuleAmountAggregation {\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"); @@ -198,9 +204,7 @@ public String toUrlQueryString(String prefix) { "%soperators%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperators()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperators())))); } // add `srcTransferPeers` to the URL query string @@ -210,10 +214,7 @@ public String toUrlQueryString(String prefix) { "%ssrcTransferPeers%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSrcTransferPeers()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcTransferPeers())))); } // add `dstTransferPeers` to the URL query string @@ -223,10 +224,7 @@ public String toUrlQueryString(String prefix) { "%sdstTransferPeers%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDstTransferPeers()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDstTransferPeers())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java similarity index 75% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java index af094557..5e0e4347 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -27,20 +26,22 @@ /** Defines the transaction approval terms */ @JsonPropertyOrder({ - PolicyRuleAuthorizationGroups.JSON_PROPERTY_LOGIC, - PolicyRuleAuthorizationGroups.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER, - PolicyRuleAuthorizationGroups.JSON_PROPERTY_GROUPS + LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_LOGIC, + LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER, + LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_GROUPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleAuthorizationGroups { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleAuthorizationGroups { /** * * AND - requires approval of all authorization groups * OR - requires approval of at least * one of the authorization groups */ public enum LogicEnum { - AND("AND"), + AND(String.valueOf("AND")), - OR("OR"); + OR(String.valueOf("OR")); private String value; @@ -70,18 +71,20 @@ public static LogicEnum fromValue(String value) { } public static final String JSON_PROPERTY_LOGIC = "logic"; - private LogicEnum logic; + @jakarta.annotation.Nullable private LogicEnum logic; public static final String JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER = "allowOperatorAsAuthorizer"; - private Boolean allowOperatorAsAuthorizer; + @jakarta.annotation.Nullable private Boolean allowOperatorAsAuthorizer; public static final String JSON_PROPERTY_GROUPS = "groups"; - private List groups; - public PolicyRuleAuthorizationGroups() {} + @jakarta.annotation.Nullable + private List groups = new ArrayList<>(); + + public LegacyPolicyRuleAuthorizationGroups() {} - public PolicyRuleAuthorizationGroups logic(LogicEnum logic) { + public LegacyPolicyRuleAuthorizationGroups logic(@jakarta.annotation.Nullable LogicEnum logic) { this.logic = logic; return this; } @@ -101,12 +104,12 @@ public LogicEnum getLogic() { @JsonProperty(JSON_PROPERTY_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogic(LogicEnum logic) { + public void setLogic(@jakarta.annotation.Nullable LogicEnum logic) { this.logic = logic; } - public PolicyRuleAuthorizationGroups allowOperatorAsAuthorizer( - Boolean allowOperatorAsAuthorizer) { + public LegacyPolicyRuleAuthorizationGroups allowOperatorAsAuthorizer( + @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; return this; } @@ -126,18 +129,20 @@ public Boolean getAllowOperatorAsAuthorizer() { @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowOperatorAsAuthorizer(Boolean allowOperatorAsAuthorizer) { + public void setAllowOperatorAsAuthorizer( + @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; } - public PolicyRuleAuthorizationGroups groups( - List groups) { + public LegacyPolicyRuleAuthorizationGroups groups( + @jakarta.annotation.Nullable + List groups) { this.groups = groups; return this; } - public PolicyRuleAuthorizationGroups addGroupsItem( - PolicyRuleAuthorizationGroupsGroupsInner groupsItem) { + public LegacyPolicyRuleAuthorizationGroups addGroupsItem( + LegacyPolicyRuleAuthorizationGroupsGroupsInner groupsItem) { if (this.groups == null) { this.groups = new ArrayList<>(); } @@ -153,17 +158,19 @@ public PolicyRuleAuthorizationGroups 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(List groups) { + public void setGroups( + @jakarta.annotation.Nullable + List groups) { this.groups = groups; } - /** Return true if this PolicyRule_authorizationGroups object is equal to o. */ + /** Return true if this LegacyPolicyRule_authorizationGroups object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -172,13 +179,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleAuthorizationGroups policyRuleAuthorizationGroups = - (PolicyRuleAuthorizationGroups) o; - return Objects.equals(this.logic, policyRuleAuthorizationGroups.logic) + LegacyPolicyRuleAuthorizationGroups legacyPolicyRuleAuthorizationGroups = + (LegacyPolicyRuleAuthorizationGroups) o; + return Objects.equals(this.logic, legacyPolicyRuleAuthorizationGroups.logic) && Objects.equals( this.allowOperatorAsAuthorizer, - policyRuleAuthorizationGroups.allowOperatorAsAuthorizer) - && Objects.equals(this.groups, policyRuleAuthorizationGroups.groups); + legacyPolicyRuleAuthorizationGroups.allowOperatorAsAuthorizer) + && Objects.equals(this.groups, legacyPolicyRuleAuthorizationGroups.groups); } @Override @@ -189,7 +196,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleAuthorizationGroups {\n"); + sb.append("class LegacyPolicyRuleAuthorizationGroups {\n"); sb.append(" logic: ").append(toIndentedString(logic)).append("\n"); sb.append(" allowOperatorAsAuthorizer: ") .append(toIndentedString(allowOperatorAsAuthorizer)) @@ -249,8 +256,7 @@ public String toUrlQueryString(String prefix) { "%slogic%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLogic()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLogic())))); } // add `allowOperatorAsAuthorizer` to the URL query string @@ -260,10 +266,8 @@ public String toUrlQueryString(String prefix) { "%sallowOperatorAsAuthorizer%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAllowOperatorAsAuthorizer()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAllowOperatorAsAuthorizer())))); } // add `groups` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java similarity index 69% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java index 7ac36f48..dc682d50 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java @@ -16,39 +16,41 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** PolicyRuleAuthorizationGroupsGroupsInner */ +/** LegacyPolicyRuleAuthorizationGroupsGroupsInner */ @JsonPropertyOrder({ - PolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS, - PolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS_GROUPS, - PolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_TH + LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS, + LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS_GROUPS, + LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_TH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleAuthorizationGroupsGroupsInner { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleAuthorizationGroupsGroupsInner { public static final String JSON_PROPERTY_USERS = "users"; - private List users; + @jakarta.annotation.Nullable private List users = new ArrayList<>(); public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - private List usersGroups; + @jakarta.annotation.Nullable private List usersGroups = new ArrayList<>(); public static final String JSON_PROPERTY_TH = "th"; - private BigDecimal th; + @jakarta.annotation.Nullable private BigDecimal th; - public PolicyRuleAuthorizationGroupsGroupsInner() {} + public LegacyPolicyRuleAuthorizationGroupsGroupsInner() {} - public PolicyRuleAuthorizationGroupsGroupsInner users(List users) { + public LegacyPolicyRuleAuthorizationGroupsGroupsInner users( + @jakarta.annotation.Nullable List users) { this.users = users; return this; } - public PolicyRuleAuthorizationGroupsGroupsInner addUsersItem(String usersItem) { + public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersItem(String usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -70,16 +72,18 @@ public List getUsers() { @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(List users) { + public void setUsers(@jakarta.annotation.Nullable List users) { this.users = users; } - public PolicyRuleAuthorizationGroupsGroupsInner usersGroups(List usersGroups) { + public LegacyPolicyRuleAuthorizationGroupsGroupsInner usersGroups( + @jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; return this; } - public PolicyRuleAuthorizationGroupsGroupsInner addUsersGroupsItem(String usersGroupsItem) { + public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersGroupsItem( + String usersGroupsItem) { if (this.usersGroups == null) { this.usersGroups = new ArrayList<>(); } @@ -101,11 +105,12 @@ public List getUsersGroups() { @JsonProperty(JSON_PROPERTY_USERS_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsersGroups(List usersGroups) { + public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; } - public PolicyRuleAuthorizationGroupsGroupsInner th(BigDecimal th) { + public LegacyPolicyRuleAuthorizationGroupsGroupsInner th( + @jakarta.annotation.Nullable BigDecimal th) { this.th = th; return this; } @@ -125,11 +130,13 @@ public BigDecimal getTh() { @JsonProperty(JSON_PROPERTY_TH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTh(BigDecimal th) { + public void setTh(@jakarta.annotation.Nullable BigDecimal th) { this.th = th; } - /** Return true if this PolicyRule_authorizationGroups_groups_inner object is equal to o. */ + /** + * Return true if this LegacyPolicyRule_authorizationGroups_groups_inner object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -138,12 +145,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleAuthorizationGroupsGroupsInner policyRuleAuthorizationGroupsGroupsInner = - (PolicyRuleAuthorizationGroupsGroupsInner) o; - return Objects.equals(this.users, policyRuleAuthorizationGroupsGroupsInner.users) + LegacyPolicyRuleAuthorizationGroupsGroupsInner + legacyPolicyRuleAuthorizationGroupsGroupsInner = + (LegacyPolicyRuleAuthorizationGroupsGroupsInner) o; + return Objects.equals(this.users, legacyPolicyRuleAuthorizationGroupsGroupsInner.users) && Objects.equals( - this.usersGroups, policyRuleAuthorizationGroupsGroupsInner.usersGroups) - && Objects.equals(this.th, policyRuleAuthorizationGroupsGroupsInner.th); + this.usersGroups, + legacyPolicyRuleAuthorizationGroupsGroupsInner.usersGroups) + && Objects.equals(this.th, legacyPolicyRuleAuthorizationGroupsGroupsInner.th); } @Override @@ -154,7 +163,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleAuthorizationGroupsGroupsInner {\n"); + sb.append("class LegacyPolicyRuleAuthorizationGroupsGroupsInner {\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"); @@ -217,10 +226,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUsers().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); } } @@ -236,10 +242,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUsersGroups().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUsersGroups().get(i))))); } } @@ -248,10 +252,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sth%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getTh()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTh())))); } 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 new file mode 100644 index 00000000..2d668dd1 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java @@ -0,0 +1,290 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/PolicyRuleDesignatedSigners.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java similarity index 74% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSigners.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java index 413a4925..bb054033 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSigners.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -25,25 +24,28 @@ /** Set of ids representing the users who signs transactions that match a specific rule */ @JsonPropertyOrder({ - PolicyRuleDesignatedSigners.JSON_PROPERTY_USERS, - PolicyRuleDesignatedSigners.JSON_PROPERTY_USERS_GROUPS + LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS, + LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS_GROUPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleDesignatedSigners { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleDesignatedSigners { public static final String JSON_PROPERTY_USERS = "users"; - private List users; + @jakarta.annotation.Nullable private List users = new ArrayList<>(); public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - private List usersGroups; + @jakarta.annotation.Nullable private List usersGroups = new ArrayList<>(); - public PolicyRuleDesignatedSigners() {} + public LegacyPolicyRuleDesignatedSigners() {} - public PolicyRuleDesignatedSigners users(List users) { + public LegacyPolicyRuleDesignatedSigners users( + @jakarta.annotation.Nullable List users) { this.users = users; return this; } - public PolicyRuleDesignatedSigners addUsersItem(String usersItem) { + public LegacyPolicyRuleDesignatedSigners addUsersItem(String usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -65,16 +67,17 @@ public List getUsers() { @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(List users) { + public void setUsers(@jakarta.annotation.Nullable List users) { this.users = users; } - public PolicyRuleDesignatedSigners usersGroups(List usersGroups) { + public LegacyPolicyRuleDesignatedSigners usersGroups( + @jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; return this; } - public PolicyRuleDesignatedSigners addUsersGroupsItem(String usersGroupsItem) { + public LegacyPolicyRuleDesignatedSigners addUsersGroupsItem(String usersGroupsItem) { if (this.usersGroups == null) { this.usersGroups = new ArrayList<>(); } @@ -96,11 +99,11 @@ public List getUsersGroups() { @JsonProperty(JSON_PROPERTY_USERS_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsersGroups(List usersGroups) { + public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; } - /** Return true if this PolicyRule_designatedSigners object is equal to o. */ + /** Return true if this LegacyPolicyRule_designatedSigners object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -109,9 +112,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleDesignatedSigners policyRuleDesignatedSigners = (PolicyRuleDesignatedSigners) o; - return Objects.equals(this.users, policyRuleDesignatedSigners.users) - && Objects.equals(this.usersGroups, policyRuleDesignatedSigners.usersGroups); + LegacyPolicyRuleDesignatedSigners legacyPolicyRuleDesignatedSigners = + (LegacyPolicyRuleDesignatedSigners) o; + return Objects.equals(this.users, legacyPolicyRuleDesignatedSigners.users) + && Objects.equals(this.usersGroups, legacyPolicyRuleDesignatedSigners.usersGroups); } @Override @@ -122,7 +126,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleDesignatedSigners {\n"); + sb.append("class LegacyPolicyRuleDesignatedSigners {\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n"); sb.append("}"); @@ -184,10 +188,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUsers().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); } } @@ -203,10 +204,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUsersGroups().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUsersGroups().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java similarity index 76% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java index cd3d1595..856c5c60 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java @@ -16,28 +16,32 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.StringJoiner; /** Defines the destination accounts the rule allows transfers to */ -@JsonPropertyOrder({PolicyRuleDst.JSON_PROPERTY_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleDst { +@JsonPropertyOrder({LegacyPolicyRuleDst.JSON_PROPERTY_IDS}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleDst { public static final String JSON_PROPERTY_IDS = "ids"; - private List> ids; - public PolicyRuleDst() {} + @jakarta.annotation.Nullable + private List> ids = new ArrayList<>(); + + public LegacyPolicyRuleDst() {} - public PolicyRuleDst ids(List> ids) { + public LegacyPolicyRuleDst ids( + @jakarta.annotation.Nullable List> ids) { this.ids = ids; return this; } - public PolicyRuleDst addIdsItem(List idsItem) { + public LegacyPolicyRuleDst addIdsItem(List idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -53,17 +57,18 @@ public PolicyRuleDst addIdsItem(List idsItem) { @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(List> ids) { + public void setIds( + @jakarta.annotation.Nullable List> ids) { this.ids = ids; } - /** Return true if this PolicyRule_dst object is equal to o. */ + /** Return true if this LegacyPolicyRule_dst object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -72,8 +77,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleDst policyRuleDst = (PolicyRuleDst) o; - return Objects.equals(this.ids, policyRuleDst.ids); + LegacyPolicyRuleDst legacyPolicyRuleDst = (LegacyPolicyRuleDst) o; + return Objects.equals(this.ids, legacyPolicyRuleDst.ids); } @Override @@ -84,7 +89,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleDst {\n"); + sb.append("class LegacyPolicyRuleDst {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); sb.append("}"); return sb.toString(); @@ -146,10 +151,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java new file mode 100644 index 00000000..f644dffb --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java @@ -0,0 +1,334 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/PolicyRuleOperators.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java similarity index 75% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleOperators.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java index 4886299e..2a199c92 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleOperators.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -27,19 +26,21 @@ /** Defines users/groups who can initiate the type of transaction to which the rule applies. */ @JsonPropertyOrder({ - PolicyRuleOperators.JSON_PROPERTY_WILDCARD, - PolicyRuleOperators.JSON_PROPERTY_USERS, - PolicyRuleOperators.JSON_PROPERTY_USERS_GROUPS, - PolicyRuleOperators.JSON_PROPERTY_SERVICES + LegacyPolicyRuleOperators.JSON_PROPERTY_WILDCARD, + LegacyPolicyRuleOperators.JSON_PROPERTY_USERS, + LegacyPolicyRuleOperators.JSON_PROPERTY_USERS_GROUPS, + LegacyPolicyRuleOperators.JSON_PROPERTY_SERVICES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleOperators { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleOperators { /** * If used then this property should appear as the only child property * \"*\" - All * users are allowed */ public enum WildcardEnum { - STAR("*"); + STAR(String.valueOf("*")); private String value; @@ -69,20 +70,20 @@ public static WildcardEnum fromValue(String value) { } public static final String JSON_PROPERTY_WILDCARD = "wildcard"; - private WildcardEnum wildcard; + @jakarta.annotation.Nullable private WildcardEnum wildcard; public static final String JSON_PROPERTY_USERS = "users"; - private List users; + @jakarta.annotation.Nullable private List users = new ArrayList<>(); public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - private List usersGroups; + @jakarta.annotation.Nullable private List usersGroups = new ArrayList<>(); public static final String JSON_PROPERTY_SERVICES = "services"; - private List services; + @jakarta.annotation.Nullable private List services = new ArrayList<>(); - public PolicyRuleOperators() {} + public LegacyPolicyRuleOperators() {} - public PolicyRuleOperators wildcard(WildcardEnum wildcard) { + public LegacyPolicyRuleOperators wildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { this.wildcard = wildcard; return this; } @@ -102,16 +103,16 @@ public WildcardEnum getWildcard() { @JsonProperty(JSON_PROPERTY_WILDCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWildcard(WildcardEnum wildcard) { + public void setWildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { this.wildcard = wildcard; } - public PolicyRuleOperators users(List users) { + public LegacyPolicyRuleOperators users(@jakarta.annotation.Nullable List users) { this.users = users; return this; } - public PolicyRuleOperators addUsersItem(String usersItem) { + public LegacyPolicyRuleOperators addUsersItem(String usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -133,16 +134,17 @@ public List getUsers() { @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(List users) { + public void setUsers(@jakarta.annotation.Nullable List users) { this.users = users; } - public PolicyRuleOperators usersGroups(List usersGroups) { + public LegacyPolicyRuleOperators usersGroups( + @jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; return this; } - public PolicyRuleOperators addUsersGroupsItem(String usersGroupsItem) { + public LegacyPolicyRuleOperators addUsersGroupsItem(String usersGroupsItem) { if (this.usersGroups == null) { this.usersGroups = new ArrayList<>(); } @@ -164,16 +166,16 @@ public List getUsersGroups() { @JsonProperty(JSON_PROPERTY_USERS_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsersGroups(List usersGroups) { + public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; } - public PolicyRuleOperators services(List services) { + public LegacyPolicyRuleOperators services(@jakarta.annotation.Nullable List services) { this.services = services; return this; } - public PolicyRuleOperators addServicesItem(String servicesItem) { + public LegacyPolicyRuleOperators addServicesItem(String servicesItem) { if (this.services == null) { this.services = new ArrayList<>(); } @@ -195,11 +197,11 @@ public List getServices() { @JsonProperty(JSON_PROPERTY_SERVICES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setServices(List services) { + public void setServices(@jakarta.annotation.Nullable List services) { this.services = services; } - /** Return true if this PolicyRule_operators object is equal to o. */ + /** Return true if this LegacyPolicyRule_operators object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -208,11 +210,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - 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); + 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); } @Override @@ -223,7 +225,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleOperators {\n"); + sb.append("class LegacyPolicyRuleOperators {\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"); @@ -282,8 +284,7 @@ public String toUrlQueryString(String prefix) { "%swildcard%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWildcard()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWildcard())))); } // add `users` to the URL query string @@ -298,10 +299,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUsers().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); } } @@ -317,10 +315,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUsersGroups().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUsersGroups().get(i))))); } } @@ -336,10 +332,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getServices().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getServices().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java similarity index 69% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java index 21a10a4f..6e6976f4 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java @@ -16,27 +16,31 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** Raw message signing configuration */ @JsonPropertyOrder({ - PolicyRuleRawMessageSigning.JSON_PROPERTY_ALGORITHM, - PolicyRuleRawMessageSigning.JSON_PROPERTY_DERIVATION_PATH + LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_ALGORITHM, + LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_DERIVATION_PATH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleRawMessageSigning { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleRawMessageSigning { public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private String algorithm; + @jakarta.annotation.Nullable private String algorithm; public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - private PolicyRuleRawMessageSigningDerivationPath derivationPath; - public PolicyRuleRawMessageSigning() {} + @jakarta.annotation.Nullable + private LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath; + + public LegacyPolicyRuleRawMessageSigning() {} - public PolicyRuleRawMessageSigning algorithm(String algorithm) { + public LegacyPolicyRuleRawMessageSigning algorithm( + @jakarta.annotation.Nullable String algorithm) { this.algorithm = algorithm; return this; } @@ -55,12 +59,13 @@ public String getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(String algorithm) { + public void setAlgorithm(@jakarta.annotation.Nullable String algorithm) { this.algorithm = algorithm; } - public PolicyRuleRawMessageSigning derivationPath( - PolicyRuleRawMessageSigningDerivationPath derivationPath) { + public LegacyPolicyRuleRawMessageSigning derivationPath( + @jakarta.annotation.Nullable + LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) { this.derivationPath = derivationPath; return this; } @@ -73,17 +78,19 @@ public PolicyRuleRawMessageSigning derivationPath( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleRawMessageSigningDerivationPath getDerivationPath() { + public LegacyPolicyRuleRawMessageSigningDerivationPath getDerivationPath() { return derivationPath; } @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDerivationPath(PolicyRuleRawMessageSigningDerivationPath derivationPath) { + public void setDerivationPath( + @jakarta.annotation.Nullable + LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) { this.derivationPath = derivationPath; } - /** Return true if this PolicyRule_rawMessageSigning object is equal to o. */ + /** Return true if this LegacyPolicyRule_rawMessageSigning object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,9 +99,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleRawMessageSigning policyRuleRawMessageSigning = (PolicyRuleRawMessageSigning) o; - return Objects.equals(this.algorithm, policyRuleRawMessageSigning.algorithm) - && Objects.equals(this.derivationPath, policyRuleRawMessageSigning.derivationPath); + LegacyPolicyRuleRawMessageSigning legacyPolicyRuleRawMessageSigning = + (LegacyPolicyRuleRawMessageSigning) o; + return Objects.equals(this.algorithm, legacyPolicyRuleRawMessageSigning.algorithm) + && Objects.equals( + this.derivationPath, legacyPolicyRuleRawMessageSigning.derivationPath); } @Override @@ -105,7 +114,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleRawMessageSigning {\n"); + sb.append("class LegacyPolicyRuleRawMessageSigning {\n"); sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); sb.append(" derivationPath: ").append(toIndentedString(derivationPath)).append("\n"); sb.append("}"); @@ -162,9 +171,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); } // add `derivationPath` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java similarity index 72% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java index 0ade4cd6..1f10bd78 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java @@ -16,29 +16,31 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** PolicyRuleRawMessageSigningDerivationPath */ -@JsonPropertyOrder({PolicyRuleRawMessageSigningDerivationPath.JSON_PROPERTY_PATH}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleRawMessageSigningDerivationPath { +/** LegacyPolicyRuleRawMessageSigningDerivationPath */ +@JsonPropertyOrder({LegacyPolicyRuleRawMessageSigningDerivationPath.JSON_PROPERTY_PATH}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleRawMessageSigningDerivationPath { public static final String JSON_PROPERTY_PATH = "path"; - private List path; + @jakarta.annotation.Nullable private List path = new ArrayList<>(); - public PolicyRuleRawMessageSigningDerivationPath() {} + public LegacyPolicyRuleRawMessageSigningDerivationPath() {} - public PolicyRuleRawMessageSigningDerivationPath path(List path) { + public LegacyPolicyRuleRawMessageSigningDerivationPath path( + @jakarta.annotation.Nullable List path) { this.path = path; return this; } - public PolicyRuleRawMessageSigningDerivationPath addPathItem(BigDecimal pathItem) { + public LegacyPolicyRuleRawMessageSigningDerivationPath addPathItem(BigDecimal pathItem) { if (this.path == null) { this.path = new ArrayList<>(); } @@ -60,11 +62,13 @@ public List getPath() { @JsonProperty(JSON_PROPERTY_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPath(List path) { + public void setPath(@jakarta.annotation.Nullable List path) { this.path = path; } - /** Return true if this PolicyRule_rawMessageSigning_derivationPath object is equal to o. */ + /** + * Return true if this LegacyPolicyRule_rawMessageSigning_derivationPath object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -73,9 +77,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleRawMessageSigningDerivationPath policyRuleRawMessageSigningDerivationPath = - (PolicyRuleRawMessageSigningDerivationPath) o; - return Objects.equals(this.path, policyRuleRawMessageSigningDerivationPath.path); + LegacyPolicyRuleRawMessageSigningDerivationPath + legacyPolicyRuleRawMessageSigningDerivationPath = + (LegacyPolicyRuleRawMessageSigningDerivationPath) o; + return Objects.equals(this.path, legacyPolicyRuleRawMessageSigningDerivationPath.path); } @Override @@ -86,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleRawMessageSigningDerivationPath {\n"); + sb.append("class LegacyPolicyRuleRawMessageSigningDerivationPath {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); return sb.toString(); @@ -148,10 +153,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getPath().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getPath().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java similarity index 76% rename from src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java index 43726e85..c5bee9d8 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java @@ -16,28 +16,32 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.StringJoiner; /** Defines source accounts the rule allows transfers to originate from */ -@JsonPropertyOrder({PolicyRuleSrc.JSON_PROPERTY_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRuleSrc { +@JsonPropertyOrder({LegacyPolicyRuleSrc.JSON_PROPERTY_IDS}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRuleSrc { public static final String JSON_PROPERTY_IDS = "ids"; - private List> ids; - public PolicyRuleSrc() {} + @jakarta.annotation.Nullable + private List> ids = new ArrayList<>(); + + public LegacyPolicyRuleSrc() {} - public PolicyRuleSrc ids(List> ids) { + public LegacyPolicyRuleSrc ids( + @jakarta.annotation.Nullable List> ids) { this.ids = ids; return this; } - public PolicyRuleSrc addIdsItem(List idsItem) { + public LegacyPolicyRuleSrc addIdsItem(List idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -53,17 +57,18 @@ public PolicyRuleSrc addIdsItem(List idsItem) { @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(List> ids) { + public void setIds( + @jakarta.annotation.Nullable List> ids) { this.ids = ids; } - /** Return true if this PolicyRule_src object is equal to o. */ + /** Return true if this LegacyPolicyRule_src object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -72,8 +77,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRuleSrc policyRuleSrc = (PolicyRuleSrc) o; - return Objects.equals(this.ids, policyRuleSrc.ids); + LegacyPolicyRuleSrc legacyPolicyRuleSrc = (LegacyPolicyRuleSrc) o; + return Objects.equals(this.ids, legacyPolicyRuleSrc.ids); } @Override @@ -84,7 +89,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRuleSrc {\n"); + sb.append("class LegacyPolicyRuleSrc {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); sb.append("}"); return sb.toString(); @@ -146,10 +151,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRules.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java similarity index 81% rename from src/main/java/com/fireblocks/sdk/model/PolicyRules.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java index f4db896a..ffe570dd 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRules.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java @@ -21,21 +21,23 @@ import java.util.Objects; import java.util.StringJoiner; -/** PolicyRules */ -@JsonPropertyOrder({PolicyRules.JSON_PROPERTY_RULES}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PolicyRules { +/** LegacyPolicyRules */ +@JsonPropertyOrder({LegacyPolicyRules.JSON_PROPERTY_RULES}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class LegacyPolicyRules { public static final String JSON_PROPERTY_RULES = "rules"; - private List rules; + @jakarta.annotation.Nullable private List rules = new ArrayList<>(); - public PolicyRules() {} + public LegacyPolicyRules() {} - public PolicyRules rules(List rules) { + public LegacyPolicyRules rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } - public PolicyRules addRulesItem(PolicyRule rulesItem) { + public LegacyPolicyRules addRulesItem(LegacyPolicyRule rulesItem) { if (this.rules == null) { this.rules = new ArrayList<>(); } @@ -51,17 +53,17 @@ public PolicyRules addRulesItem(PolicyRule 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(List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } - /** Return true if this PolicyRules object is equal to o. */ + /** Return true if this LegacyPolicyRules object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -70,8 +72,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolicyRules policyRules = (PolicyRules) o; - return Objects.equals(this.rules, policyRules.rules); + LegacyPolicyRules legacyPolicyRules = (LegacyPolicyRules) o; + return Objects.equals(this.rules, legacyPolicyRules.rules); } @Override @@ -82,7 +84,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PolicyRules {\n"); + sb.append("class LegacyPolicyRules {\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java similarity index 88% rename from src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java index 07bd5334..83402e62 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.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 PolicySrcOrDestSubType { +public enum LegacyPolicySrcOrDestSubType { EXTERNAL("EXTERNAL"), INTERNAL("INTERNAL"), @@ -36,7 +36,7 @@ public enum PolicySrcOrDestSubType { private String value; - PolicySrcOrDestSubType(String value) { + LegacyPolicySrcOrDestSubType(String value) { this.value = value; } @@ -51,8 +51,8 @@ public String toString() { } @JsonCreator - public static PolicySrcOrDestSubType fromValue(String value) { - for (PolicySrcOrDestSubType b : PolicySrcOrDestSubType.values()) { + public static LegacyPolicySrcOrDestSubType fromValue(String value) { + for (LegacyPolicySrcOrDestSubType b : LegacyPolicySrcOrDestSubType.values()) { if (b.value.equals(value)) { return b; } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java similarity index 89% rename from src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java rename to src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java index b5d22c41..8656e3dd 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java @@ -24,7 +24,7 @@ * connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks * Workspace * \"*\" - All types */ -public enum PolicySrcOrDestType { +public enum LegacyPolicySrcOrDestType { EXCHANGE("EXCHANGE"), UNMANAGED("UNMANAGED"), @@ -43,7 +43,7 @@ public enum PolicySrcOrDestType { private String value; - PolicySrcOrDestType(String value) { + LegacyPolicySrcOrDestType(String value) { this.value = value; } @@ -58,8 +58,8 @@ public String toString() { } @JsonCreator - public static PolicySrcOrDestType fromValue(String value) { - for (PolicySrcOrDestType b : PolicySrcOrDestType.values()) { + public static LegacyPolicySrcOrDestType fromValue(String value) { + for (LegacyPolicySrcOrDestType b : LegacyPolicySrcOrDestType.values()) { if (b.value.equals(value)) { return b; } diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java new file mode 100644 index 00000000..dcf55a34 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java @@ -0,0 +1,78 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..9c833104 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java @@ -0,0 +1,186 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..0aca5758 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java @@ -0,0 +1,139 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (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 new file mode 100644 index 00000000..9a887bab --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java @@ -0,0 +1,288 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/SrcOrDestAttributesInner.java b/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java similarity index 52% rename from src/main/java/com/fireblocks/sdk/model/SrcOrDestAttributesInner.java rename to src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java index 20d97844..74688570 100644 --- a/src/main/java/com/fireblocks/sdk/model/SrcOrDestAttributesInner.java +++ b/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java @@ -34,144 +34,166 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -@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) { +@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) { super(t); } - public SrcOrDestAttributesInnerSerializer() { + public LegacySrcOrDestAttributesInnerSerializer() { this(null); } @Override public void serialize( - SrcOrDestAttributesInner value, JsonGenerator jgen, SerializerProvider provider) + LegacySrcOrDestAttributesInner value, + JsonGenerator jgen, + SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class SrcOrDestAttributesInnerDeserializer - extends StdDeserializer { - public SrcOrDestAttributesInnerDeserializer() { - this(SrcOrDestAttributesInner.class); + public static class LegacySrcOrDestAttributesInnerDeserializer + extends StdDeserializer { + public LegacySrcOrDestAttributesInnerDeserializer() { + this(LegacySrcOrDestAttributesInner.class); } - public SrcOrDestAttributesInnerDeserializer(Class vc) { + public LegacySrcOrDestAttributesInnerDeserializer(Class vc) { super(vc); } @Override - public SrcOrDestAttributesInner deserialize(JsonParser jp, DeserializationContext ctxt) + public LegacySrcOrDestAttributesInner deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; - // deserialize PolicySrcOrDestSubType + // deserialize LegacyPolicySrcOrDestSubType try { deserialized = - tree.traverse(jp.getCodec()).readValueAs(PolicySrcOrDestSubType.class); - SrcOrDestAttributesInner ret = new SrcOrDestAttributesInner(); + tree.traverse(jp.getCodec()) + .readValueAs(LegacyPolicySrcOrDestSubType.class); + LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'SrcOrDestAttributesInner'", e); + log.log( + Level.FINER, + "Input data does not match 'LegacySrcOrDestAttributesInner'", + e); } - // deserialize PolicySrcOrDestType + // deserialize LegacyPolicySrcOrDestType try { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PolicySrcOrDestType.class); - SrcOrDestAttributesInner ret = new SrcOrDestAttributesInner(); + deserialized = + tree.traverse(jp.getCodec()).readValueAs(LegacyPolicySrcOrDestType.class); + LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'SrcOrDestAttributesInner'", e); + log.log( + Level.FINER, + "Input data does not match 'LegacySrcOrDestAttributesInner'", + e); } // deserialize String try { deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - SrcOrDestAttributesInner ret = new SrcOrDestAttributesInner(); + LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'SrcOrDestAttributesInner'", e); + log.log( + Level.FINER, + "Input data does not match 'LegacySrcOrDestAttributesInner'", + e); } throw new IOException( String.format( - "Failed deserialization for SrcOrDestAttributesInner: no match found")); + "Failed deserialization for LegacySrcOrDestAttributesInner: no match" + + " found")); } /** Handle deserialization of the 'null' value. */ @Override - public SrcOrDestAttributesInner getNullValue(DeserializationContext ctxt) + public LegacySrcOrDestAttributesInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { throw new JsonMappingException( - ctxt.getParser(), "SrcOrDestAttributesInner cannot be null"); + ctxt.getParser(), "LegacySrcOrDestAttributesInner cannot be null"); } } // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public SrcOrDestAttributesInner() { + public LegacySrcOrDestAttributesInner() { super("anyOf", Boolean.FALSE); } - public SrcOrDestAttributesInner(PolicySrcOrDestSubType o) { + public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestSubType o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } - public SrcOrDestAttributesInner(PolicySrcOrDestType o) { + public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestType o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } - public SrcOrDestAttributesInner(String o) { + public LegacySrcOrDestAttributesInner(String o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("PolicySrcOrDestSubType", PolicySrcOrDestSubType.class); - schemas.put("PolicySrcOrDestType", PolicySrcOrDestType.class); + schemas.put("LegacyPolicySrcOrDestSubType", LegacyPolicySrcOrDestSubType.class); + schemas.put("LegacyPolicySrcOrDestType", LegacyPolicySrcOrDestType.class); schemas.put("String", String.class); JSON.registerDescendants( - SrcOrDestAttributesInner.class, Collections.unmodifiableMap(schemas)); + LegacySrcOrDestAttributesInner.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return SrcOrDestAttributesInner.schemas; + return LegacySrcOrDestAttributesInner.schemas; } /** * Set the instance that matches the anyOf child schema, check the instance parameter is valid - * against the anyOf child schemas: PolicySrcOrDestSubType, PolicySrcOrDestType, String + * against the anyOf child schemas: LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, + * 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(PolicySrcOrDestSubType.class, instance, new HashSet>())) { + if (JSON.isInstanceOf( + LegacyPolicySrcOrDestSubType.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(PolicySrcOrDestType.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(LegacyPolicySrcOrDestType.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } @@ -182,15 +204,15 @@ public void setActualInstance(Object instance) { } throw new RuntimeException( - "Invalid instance type. Must be PolicySrcOrDestSubType, PolicySrcOrDestType," - + " String"); + "Invalid instance type. Must be LegacyPolicySrcOrDestSubType," + + " LegacyPolicySrcOrDestType, String"); } /** - * Get the actual instance, which can be the following: PolicySrcOrDestSubType, - * PolicySrcOrDestType, String + * Get the actual instance, which can be the following: LegacyPolicySrcOrDestSubType, + * LegacyPolicySrcOrDestType, String * - * @return The actual instance (PolicySrcOrDestSubType, PolicySrcOrDestType, String) + * @return The actual instance (LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, String) */ @Override public Object getActualInstance() { @@ -198,25 +220,26 @@ public Object getActualInstance() { } /** - * Get the actual instance of `PolicySrcOrDestSubType`. If the actual instance is not - * `PolicySrcOrDestSubType`, the ClassCastException will be thrown. + * Get the actual instance of `LegacyPolicySrcOrDestSubType`. If the actual instance is not + * `LegacyPolicySrcOrDestSubType`, the ClassCastException will be thrown. * - * @return The actual instance of `PolicySrcOrDestSubType` - * @throws ClassCastException if the instance is not `PolicySrcOrDestSubType` + * @return The actual instance of `LegacyPolicySrcOrDestSubType` + * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestSubType` */ - public PolicySrcOrDestSubType getPolicySrcOrDestSubType() throws ClassCastException { - return (PolicySrcOrDestSubType) super.getActualInstance(); + public LegacyPolicySrcOrDestSubType getLegacyPolicySrcOrDestSubType() + throws ClassCastException { + return (LegacyPolicySrcOrDestSubType) super.getActualInstance(); } /** - * Get the actual instance of `PolicySrcOrDestType`. If the actual instance is not - * `PolicySrcOrDestType`, the ClassCastException will be thrown. + * Get the actual instance of `LegacyPolicySrcOrDestType`. If the actual instance is not + * `LegacyPolicySrcOrDestType`, the ClassCastException will be thrown. * - * @return The actual instance of `PolicySrcOrDestType` - * @throws ClassCastException if the instance is not `PolicySrcOrDestType` + * @return The actual instance of `LegacyPolicySrcOrDestType` + * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestType` */ - public PolicySrcOrDestType getPolicySrcOrDestType() throws ClassCastException { - return (PolicySrcOrDestType) super.getActualInstance(); + public LegacyPolicySrcOrDestType getLegacyPolicySrcOrDestType() throws ClassCastException { + return (LegacyPolicySrcOrDestType) super.getActualInstance(); } /** diff --git a/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java index 5e4e7259..41042a62 100644 --- a/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -25,17 +25,27 @@ /** ListAssetsResponse */ @JsonPropertyOrder({ListAssetsResponse.JSON_PROPERTY_DATA, ListAssetsResponse.JSON_PROPERTY_NEXT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public ListAssetsResponse() {} - public ListAssetsResponse data(List data) { + @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; } @@ -62,11 +72,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public ListAssetsResponse next(String next) { + public ListAssetsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -85,7 +95,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -191,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 85d6a864..5eb496bd 100644 --- a/src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,28 @@ ListBlockchainsResponse.JSON_PROPERTY_DATA, ListBlockchainsResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public ListBlockchainsResponse() {} - public ListBlockchainsResponse data(List data) { + @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; } @@ -65,11 +76,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public ListBlockchainsResponse next(String next) { + public ListBlockchainsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +99,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 cc56529b..d976d661 100644 --- a/src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java @@ -26,17 +26,19 @@ ListOwnedCollectionsResponse.JSON_PROPERTY_PAGING, ListOwnedCollectionsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ListOwnedCollectionsResponse { public static final String JSON_PROPERTY_PAGING = "paging"; - private Paging paging; + @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public ListOwnedCollectionsResponse() {} - public ListOwnedCollectionsResponse paging(Paging paging) { + public ListOwnedCollectionsResponse paging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; return this; } @@ -55,11 +57,12 @@ public Paging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(Paging paging) { + public void setPaging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; } - public ListOwnedCollectionsResponse data(List data) { + public ListOwnedCollectionsResponse data( + @jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -86,7 +89,7 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } diff --git a/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java b/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java index c5b1fcd8..18789b03 100644 --- a/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java @@ -26,17 +26,19 @@ ListOwnedTokensResponse.JSON_PROPERTY_PAGING, ListOwnedTokensResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ListOwnedTokensResponse { public static final String JSON_PROPERTY_PAGING = "paging"; - private Paging paging; + @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public ListOwnedTokensResponse() {} - public ListOwnedTokensResponse paging(Paging paging) { + public ListOwnedTokensResponse paging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; return this; } @@ -55,11 +57,11 @@ public Paging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(Paging paging) { + public void setPaging(@jakarta.annotation.Nullable Paging paging) { this.paging = paging; } - public ListOwnedTokensResponse data(List data) { + public ListOwnedTokensResponse data(@jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -86,7 +88,7 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } diff --git a/src/main/java/com/fireblocks/sdk/model/MediaEntityResponse.java b/src/main/java/com/fireblocks/sdk/model/MediaEntityResponse.java index cb34a043..c6b1728c 100644 --- a/src/main/java/com/fireblocks/sdk/model/MediaEntityResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/MediaEntityResponse.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,30 +27,32 @@ MediaEntityResponse.JSON_PROPERTY_URL, MediaEntityResponse.JSON_PROPERTY_CONTENT_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class MediaEntityResponse { public static final String JSON_PROPERTY_URL = "url"; - private String url; + @jakarta.annotation.Nonnull private String url; /** Media type */ public enum ContentTypeEnum { - IMAGE("IMAGE"), + IMAGE(String.valueOf("IMAGE")), - VIDEO("VIDEO"), + VIDEO(String.valueOf("VIDEO")), - ANIMATION("ANIMATION"), + ANIMATION(String.valueOf("ANIMATION")), - THREE_D("THREE_D"), + THREE_D(String.valueOf("THREE_D")), - TEXT("TEXT"), + TEXT(String.valueOf("TEXT")), - GIF("GIF"), + GIF(String.valueOf("GIF")), - UNKNOWN_TYPE("UNKNOWN_TYPE"), + UNKNOWN_TYPE(String.valueOf("UNKNOWN_TYPE")), - SVG("SVG"), + SVG(String.valueOf("SVG")), - AUDIO("AUDIO"); + AUDIO(String.valueOf("AUDIO")); private String value; @@ -81,11 +82,20 @@ public static ContentTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_CONTENT_TYPE = "contentType"; - private ContentTypeEnum contentType; + @jakarta.annotation.Nonnull private ContentTypeEnum contentType; public MediaEntityResponse() {} - public MediaEntityResponse url(String url) { + @JsonCreator + public MediaEntityResponse( + @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url, + @JsonProperty(value = JSON_PROPERTY_CONTENT_TYPE, required = true) + ContentTypeEnum contentType) { + this.url = url; + this.contentType = contentType; + } + + public MediaEntityResponse url(@jakarta.annotation.Nonnull String url) { this.url = url; return this; } @@ -104,11 +114,12 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public MediaEntityResponse contentType(ContentTypeEnum contentType) { + public MediaEntityResponse contentType( + @jakarta.annotation.Nonnull ContentTypeEnum contentType) { this.contentType = contentType; return this; } @@ -127,7 +138,7 @@ public ContentTypeEnum getContentType() { @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContentType(ContentTypeEnum contentType) { + public void setContentType(@jakarta.annotation.Nonnull ContentTypeEnum contentType) { this.contentType = contentType; } @@ -210,8 +221,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `contentType` to the URL query string @@ -221,10 +231,7 @@ public String toUrlQueryString(String prefix) { "%scontentType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContentType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContentType())))); } 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 index b1456fff..a4dd0c14 100644 --- a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -30,26 +30,37 @@ MergeStakeAccountsRequest.JSON_PROPERTY_FEE_LEVEL, MergeStakeAccountsRequest.JSON_PROPERTY_TX_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID sourceId; + @jakarta.annotation.Nonnull private UUID sourceId; public static final String JSON_PROPERTY_DESTINATION_ID = "destinationId"; - private UUID destinationId; + @jakarta.annotation.Nonnull private UUID destinationId; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevel feeLevel; + @jakarta.annotation.Nullable private FeeLevel feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public MergeStakeAccountsRequest() {} - public MergeStakeAccountsRequest sourceId(UUID sourceId) { + @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; } @@ -68,11 +79,11 @@ public UUID getSourceId() { @JsonProperty(JSON_PROPERTY_SOURCE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceId(UUID sourceId) { + public void setSourceId(@jakarta.annotation.Nonnull UUID sourceId) { this.sourceId = sourceId; } - public MergeStakeAccountsRequest destinationId(UUID destinationId) { + public MergeStakeAccountsRequest destinationId(@jakarta.annotation.Nonnull UUID destinationId) { this.destinationId = destinationId; return this; } @@ -91,11 +102,11 @@ public UUID getDestinationId() { @JsonProperty(JSON_PROPERTY_DESTINATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationId(UUID destinationId) { + public void setDestinationId(@jakarta.annotation.Nonnull UUID destinationId) { this.destinationId = destinationId; } - public MergeStakeAccountsRequest fee(String fee) { + public MergeStakeAccountsRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -115,11 +126,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public MergeStakeAccountsRequest feeLevel(FeeLevel feeLevel) { + public MergeStakeAccountsRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; return this; } @@ -138,11 +149,11 @@ public FeeLevel getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; } - public MergeStakeAccountsRequest txNote(String txNote) { + public MergeStakeAccountsRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -161,7 +172,7 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } @@ -250,8 +261,7 @@ public String toUrlQueryString(String prefix) { "%ssourceId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSourceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceId())))); } // add `destinationId` to the URL query string @@ -261,10 +271,7 @@ public String toUrlQueryString(String prefix) { "%sdestinationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestinationId())))); } // add `fee` to the URL query string @@ -274,8 +281,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -285,8 +291,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `txNote` to the URL query string @@ -296,8 +301,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 3e5a6105..4f607a1c 100644 --- a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java @@ -13,25 +13,33 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public MergeStakeAccountsResponse() {} - public MergeStakeAccountsResponse id(UUID id) { + @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; } @@ -50,7 +58,7 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } @@ -129,10 +137,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDto.java b/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDto.java index ccb2d2dc..7078fae8 100644 --- a/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDto.java @@ -13,24 +13,33 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** ModifySigningKeyAgentIdDto */ @JsonPropertyOrder({ModifySigningKeyAgentIdDto.JSON_PROPERTY_AGENT_USER_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ModifySigningKeyAgentIdDto { public static final String JSON_PROPERTY_AGENT_USER_ID = "agentUserId"; - private String agentUserId; + @jakarta.annotation.Nonnull private String agentUserId; public ModifySigningKeyAgentIdDto() {} - public ModifySigningKeyAgentIdDto agentUserId(String agentUserId) { + @JsonCreator + public ModifySigningKeyAgentIdDto( + @JsonProperty(value = JSON_PROPERTY_AGENT_USER_ID, required = true) + String agentUserId) { + this.agentUserId = agentUserId; + } + + public ModifySigningKeyAgentIdDto agentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; return this; } @@ -49,7 +58,7 @@ public String getAgentUserId() { @JsonProperty(JSON_PROPERTY_AGENT_USER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAgentUserId(String agentUserId) { + public void setAgentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; } @@ -130,10 +139,7 @@ public String toUrlQueryString(String prefix) { "%sagentUserId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAgentUserId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAgentUserId())))); } 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 1d0e5077..5aa850fd 100644 --- a/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java @@ -13,25 +13,35 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** ModifySigningKeyDto */ @JsonPropertyOrder({ModifySigningKeyDto.JSON_PROPERTY_VAULT_ACCOUNT_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ModifySigningKeyDto { public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private BigDecimal vaultAccountId; + @jakarta.annotation.Nonnull private BigDecimal vaultAccountId; public ModifySigningKeyDto() {} - public ModifySigningKeyDto vaultAccountId(BigDecimal vaultAccountId) { + @JsonCreator + public ModifySigningKeyDto( + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + BigDecimal vaultAccountId) { + this.vaultAccountId = vaultAccountId; + } + + public ModifySigningKeyDto vaultAccountId( + @jakarta.annotation.Nonnull BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -50,7 +60,7 @@ public BigDecimal getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(BigDecimal vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; } @@ -131,10 +141,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ModifyValidationKeyDto.java b/src/main/java/com/fireblocks/sdk/model/ModifyValidationKeyDto.java index 4dac4276..327a02d0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ModifyValidationKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ModifyValidationKeyDto.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** ModifyValidationKeyDto */ @JsonPropertyOrder({ModifyValidationKeyDto.JSON_PROPERTY_ENABLED}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ModifyValidationKeyDto { public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nonnull private Boolean enabled; public ModifyValidationKeyDto() {} - public ModifyValidationKeyDto enabled(Boolean enabled) { + @JsonCreator + public ModifyValidationKeyDto( + @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled) { + this.enabled = enabled; + } + + public ModifyValidationKeyDto enabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -49,7 +57,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java new file mode 100644 index 00000000..47cb8f7a --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java @@ -0,0 +1,610 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 index 1078c887..e6c91e4f 100644 --- a/src/main/java/com/fireblocks/sdk/model/MpcKey.java +++ b/src/main/java/com/fireblocks/sdk/model/MpcKey.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,26 +32,40 @@ MpcKey.JSON_PROPERTY_PLAYERS, MpcKey.JSON_PROPERTY_LAST_PREPROCESSED_INDEX }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String keyId; + @jakarta.annotation.Nonnull private String keyId; public static final String JSON_PROPERTY_USER_ID = "userId"; - private String userId; + @jakarta.annotation.Nonnull private String userId; public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private BigDecimal algorithm; + @jakarta.annotation.Nonnull private BigDecimal algorithm; public static final String JSON_PROPERTY_PLAYERS = "players"; - private List players = new ArrayList<>(); + @jakarta.annotation.Nonnull private List players = new ArrayList<>(); public static final String JSON_PROPERTY_LAST_PREPROCESSED_INDEX = "lastPreprocessedIndex"; - private BigDecimal lastPreprocessedIndex; + @jakarta.annotation.Nullable private BigDecimal lastPreprocessedIndex; public MpcKey() {} - public MpcKey keyId(String keyId) { + @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; } @@ -70,11 +84,11 @@ public String getKeyId() { @JsonProperty(JSON_PROPERTY_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyId(String keyId) { + public void setKeyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; } - public MpcKey userId(String userId) { + public MpcKey userId(@jakarta.annotation.Nonnull String userId) { this.userId = userId; return this; } @@ -93,11 +107,11 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(String userId) { + public void setUserId(@jakarta.annotation.Nonnull String userId) { this.userId = userId; } - public MpcKey algorithm(BigDecimal algorithm) { + public MpcKey algorithm(@jakarta.annotation.Nonnull BigDecimal algorithm) { this.algorithm = algorithm; return this; } @@ -116,11 +130,11 @@ public BigDecimal getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(BigDecimal algorithm) { + public void setAlgorithm(@jakarta.annotation.Nonnull BigDecimal algorithm) { this.algorithm = algorithm; } - public MpcKey players(List players) { + public MpcKey players(@jakarta.annotation.Nonnull List players) { this.players = players; return this; } @@ -147,11 +161,12 @@ public List getPlayers() { @JsonProperty(JSON_PROPERTY_PLAYERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPlayers(List players) { + public void setPlayers(@jakarta.annotation.Nonnull List players) { this.players = players; } - public MpcKey lastPreprocessedIndex(BigDecimal lastPreprocessedIndex) { + public MpcKey lastPreprocessedIndex( + @jakarta.annotation.Nullable BigDecimal lastPreprocessedIndex) { this.lastPreprocessedIndex = lastPreprocessedIndex; return this; } @@ -170,7 +185,8 @@ public BigDecimal getLastPreprocessedIndex() { @JsonProperty(JSON_PROPERTY_LAST_PREPROCESSED_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastPreprocessedIndex(BigDecimal lastPreprocessedIndex) { + public void setLastPreprocessedIndex( + @jakarta.annotation.Nullable BigDecimal lastPreprocessedIndex) { this.lastPreprocessedIndex = lastPreprocessedIndex; } @@ -261,8 +277,7 @@ public String toUrlQueryString(String prefix) { "%skeyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getKeyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getKeyId())))); } // add `userId` to the URL query string @@ -272,8 +287,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } // add `algorithm` to the URL query string @@ -283,9 +297,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); } // add `players` to the URL query string @@ -318,10 +330,8 @@ public String toUrlQueryString(String prefix) { "%slastPreprocessedIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastPreprocessedIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 320f8d6a..238e9ee8 100644 --- a/src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,29 +32,31 @@ MultichainDeploymentMetadata.JSON_PROPERTY_INIT_PARAMS, MultichainDeploymentMetadata.JSON_PROPERTY_ENCODED_INIT_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID id; + @jakarta.annotation.Nullable private UUID id; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_TEMPLATE_ID = "templateId"; - private UUID templateId; + @jakarta.annotation.Nullable private UUID templateId; public static final String JSON_PROPERTY_DEPLOYMENT_SALT = "deploymentSalt"; - private String deploymentSalt; + @jakarta.annotation.Nullable private String deploymentSalt; public static final String JSON_PROPERTY_INIT_PARAMS = "initParams"; - private List initParams; + @jakarta.annotation.Nullable private List initParams = new ArrayList<>(); public static final String JSON_PROPERTY_ENCODED_INIT_PARAMS = "encodedInitParams"; - private String encodedInitParams; + @jakarta.annotation.Nullable private String encodedInitParams; public MultichainDeploymentMetadata() {} - public MultichainDeploymentMetadata id(UUID id) { + public MultichainDeploymentMetadata id(@jakarta.annotation.Nullable UUID id) { this.id = id; return this; } @@ -74,11 +75,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nullable UUID id) { this.id = id; } - public MultichainDeploymentMetadata address(String address) { + public MultichainDeploymentMetadata address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -97,11 +98,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public MultichainDeploymentMetadata templateId(UUID templateId) { + public MultichainDeploymentMetadata templateId(@jakarta.annotation.Nullable UUID templateId) { this.templateId = templateId; return this; } @@ -120,11 +121,12 @@ public UUID getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateId(UUID templateId) { + public void setTemplateId(@jakarta.annotation.Nullable UUID templateId) { this.templateId = templateId; } - public MultichainDeploymentMetadata deploymentSalt(String deploymentSalt) { + public MultichainDeploymentMetadata deploymentSalt( + @jakarta.annotation.Nullable String deploymentSalt) { this.deploymentSalt = deploymentSalt; return this; } @@ -143,11 +145,12 @@ public String getDeploymentSalt() { @JsonProperty(JSON_PROPERTY_DEPLOYMENT_SALT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeploymentSalt(String deploymentSalt) { + public void setDeploymentSalt(@jakarta.annotation.Nullable String deploymentSalt) { this.deploymentSalt = deploymentSalt; } - public MultichainDeploymentMetadata initParams(List initParams) { + public MultichainDeploymentMetadata initParams( + @jakarta.annotation.Nullable List initParams) { this.initParams = initParams; return this; } @@ -174,11 +177,12 @@ public List getInitParams() { @JsonProperty(JSON_PROPERTY_INIT_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInitParams(List initParams) { + public void setInitParams(@jakarta.annotation.Nullable List initParams) { this.initParams = initParams; } - public MultichainDeploymentMetadata encodedInitParams(String encodedInitParams) { + public MultichainDeploymentMetadata encodedInitParams( + @jakarta.annotation.Nullable String encodedInitParams) { this.encodedInitParams = encodedInitParams; return this; } @@ -197,7 +201,7 @@ public String getEncodedInitParams() { @JsonProperty(JSON_PROPERTY_ENCODED_INIT_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEncodedInitParams(String encodedInitParams) { + public void setEncodedInitParams(@jakarta.annotation.Nullable String encodedInitParams) { this.encodedInitParams = encodedInitParams; } @@ -290,10 +294,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `address` to the URL query string @@ -303,8 +304,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `templateId` to the URL query string @@ -314,9 +314,7 @@ public String toUrlQueryString(String prefix) { "%stemplateId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTemplateId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTemplateId())))); } // add `deploymentSalt` to the URL query string @@ -326,10 +324,7 @@ public String toUrlQueryString(String prefix) { "%sdeploymentSalt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDeploymentSalt()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDeploymentSalt())))); } // add `initParams` to the URL query string @@ -362,10 +357,7 @@ public String toUrlQueryString(String prefix) { "%sencodedInitParams%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEncodedInitParams()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEncodedInitParams())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkChannel.java b/src/main/java/com/fireblocks/sdk/model/NetworkChannel.java index 01db2ee3..e76ddd7e 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkChannel.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkChannel.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,17 +27,19 @@ */ @Deprecated @JsonPropertyOrder({NetworkChannel.JSON_PROPERTY_NETWORK_ID, NetworkChannel.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkChannel { public static final String JSON_PROPERTY_NETWORK_ID = "networkId"; - private String networkId; + @jakarta.annotation.Nullable private String networkId; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public NetworkChannel() {} - public NetworkChannel networkId(String networkId) { + public NetworkChannel networkId(@jakarta.annotation.Nullable String networkId) { this.networkId = networkId; return this; } @@ -57,11 +58,11 @@ public String getNetworkId() { @JsonProperty(JSON_PROPERTY_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkId(String networkId) { + public void setNetworkId(@jakarta.annotation.Nullable String networkId) { this.networkId = networkId; } - public NetworkChannel name(String name) { + public NetworkChannel name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -80,7 +81,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -163,9 +164,7 @@ public String toUrlQueryString(String prefix) { "%snetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkId())))); } // add `name` to the URL query string @@ -175,8 +174,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } 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 16138701..79feaf28 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkConnection.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkConnection.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -29,20 +29,34 @@ NetworkConnection.JSON_PROPERTY_REMOTE_NETWORK_ID, NetworkConnection.JSON_PROPERTY_ROUTING_POLICY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkConnection { public static final String JSON_PROPERTY_LOCAL_NETWORK_ID = "localNetworkId"; - private String localNetworkId; + @jakarta.annotation.Nonnull private String localNetworkId; public static final String JSON_PROPERTY_REMOTE_NETWORK_ID = "remoteNetworkId"; - private String remoteNetworkId; + @jakarta.annotation.Nonnull private String remoteNetworkId; public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; + + @jakarta.annotation.Nullable private Map routingPolicy = new HashMap<>(); public NetworkConnection() {} - public NetworkConnection localNetworkId(String localNetworkId) { + @JsonCreator + public NetworkConnection( + @JsonProperty(value = JSON_PROPERTY_LOCAL_NETWORK_ID, required = true) + String localNetworkId, + @JsonProperty(value = JSON_PROPERTY_REMOTE_NETWORK_ID, required = true) + String remoteNetworkId) { + this.localNetworkId = localNetworkId; + this.remoteNetworkId = remoteNetworkId; + } + + public NetworkConnection localNetworkId(@jakarta.annotation.Nonnull String localNetworkId) { this.localNetworkId = localNetworkId; return this; } @@ -61,11 +75,11 @@ public String getLocalNetworkId() { @JsonProperty(JSON_PROPERTY_LOCAL_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLocalNetworkId(String localNetworkId) { + public void setLocalNetworkId(@jakarta.annotation.Nonnull String localNetworkId) { this.localNetworkId = localNetworkId; } - public NetworkConnection remoteNetworkId(String remoteNetworkId) { + public NetworkConnection remoteNetworkId(@jakarta.annotation.Nonnull String remoteNetworkId) { this.remoteNetworkId = remoteNetworkId; return this; } @@ -84,12 +98,13 @@ public String getRemoteNetworkId() { @JsonProperty(JSON_PROPERTY_REMOTE_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRemoteNetworkId(String remoteNetworkId) { + public void setRemoteNetworkId(@jakarta.annotation.Nonnull String remoteNetworkId) { this.remoteNetworkId = remoteNetworkId; } public NetworkConnection routingPolicy( - Map routingPolicy) { + @jakarta.annotation.Nullable + Map routingPolicy) { this.routingPolicy = routingPolicy; return this; } @@ -117,7 +132,9 @@ public Map getRoutingPolicy() { @JsonProperty(JSON_PROPERTY_ROUTING_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoutingPolicy(Map routingPolicy) { + public void setRoutingPolicy( + @jakarta.annotation.Nullable + Map routingPolicy) { this.routingPolicy = routingPolicy; } @@ -202,10 +219,7 @@ public String toUrlQueryString(String prefix) { "%slocalNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLocalNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLocalNetworkId())))); } // add `remoteNetworkId` to the URL query string @@ -215,10 +229,7 @@ public String toUrlQueryString(String prefix) { "%sremoteNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRemoteNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRemoteNetworkId())))); } // add `routingPolicy` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java b/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java index e2264592..6e91660b 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -33,32 +33,54 @@ NetworkConnectionResponse.JSON_PROPERTY_REMOTE_NETWORK_ID, NetworkConnectionResponse.JSON_PROPERTY_ROUTING_POLICY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkConnectionResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_LOCAL_CHANNEL = "localChannel"; - private NetworkChannel localChannel; + @jakarta.annotation.Nullable private NetworkChannel localChannel; public static final String JSON_PROPERTY_REMOTE_CHANNEL = "remoteChannel"; - private NetworkChannel remoteChannel; + @jakarta.annotation.Nullable private NetworkChannel remoteChannel; public static final String JSON_PROPERTY_STATUS = "status"; - private NetworkConnectionStatus status; + @jakarta.annotation.Nonnull private NetworkConnectionStatus status; public static final String JSON_PROPERTY_LOCAL_NETWORK_ID = "localNetworkId"; - private NetworkId localNetworkId; + @jakarta.annotation.Nonnull private NetworkId localNetworkId; public static final String JSON_PROPERTY_REMOTE_NETWORK_ID = "remoteNetworkId"; - private NetworkId remoteNetworkId; + @jakarta.annotation.Nonnull private NetworkId remoteNetworkId; public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; + + @jakarta.annotation.Nonnull private Map routingPolicy = new HashMap<>(); public NetworkConnectionResponse() {} - public NetworkConnectionResponse id(String id) { + @JsonCreator + public NetworkConnectionResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + NetworkConnectionStatus status, + @JsonProperty(value = JSON_PROPERTY_LOCAL_NETWORK_ID, required = true) + NetworkId localNetworkId, + @JsonProperty(value = JSON_PROPERTY_REMOTE_NETWORK_ID, required = true) + NetworkId remoteNetworkId, + @JsonProperty(value = JSON_PROPERTY_ROUTING_POLICY, required = true) + Map routingPolicy) { + this.id = id; + this.status = status; + this.localNetworkId = localNetworkId; + this.remoteNetworkId = remoteNetworkId; + this.routingPolicy = routingPolicy; + } + + public NetworkConnectionResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -77,11 +99,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public NetworkConnectionResponse localChannel(NetworkChannel localChannel) { + public NetworkConnectionResponse localChannel( + @jakarta.annotation.Nullable NetworkChannel localChannel) { this.localChannel = localChannel; return this; } @@ -102,11 +125,12 @@ public NetworkChannel getLocalChannel() { @JsonProperty(JSON_PROPERTY_LOCAL_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocalChannel(NetworkChannel localChannel) { + public void setLocalChannel(@jakarta.annotation.Nullable NetworkChannel localChannel) { this.localChannel = localChannel; } - public NetworkConnectionResponse remoteChannel(NetworkChannel remoteChannel) { + public NetworkConnectionResponse remoteChannel( + @jakarta.annotation.Nullable NetworkChannel remoteChannel) { this.remoteChannel = remoteChannel; return this; } @@ -127,11 +151,12 @@ public NetworkChannel getRemoteChannel() { @JsonProperty(JSON_PROPERTY_REMOTE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRemoteChannel(NetworkChannel remoteChannel) { + public void setRemoteChannel(@jakarta.annotation.Nullable NetworkChannel remoteChannel) { this.remoteChannel = remoteChannel; } - public NetworkConnectionResponse status(NetworkConnectionStatus status) { + public NetworkConnectionResponse status( + @jakarta.annotation.Nonnull NetworkConnectionStatus status) { this.status = status; return this; } @@ -150,11 +175,12 @@ public NetworkConnectionStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(NetworkConnectionStatus status) { + public void setStatus(@jakarta.annotation.Nonnull NetworkConnectionStatus status) { this.status = status; } - public NetworkConnectionResponse localNetworkId(NetworkId localNetworkId) { + public NetworkConnectionResponse localNetworkId( + @jakarta.annotation.Nonnull NetworkId localNetworkId) { this.localNetworkId = localNetworkId; return this; } @@ -173,11 +199,12 @@ public NetworkId getLocalNetworkId() { @JsonProperty(JSON_PROPERTY_LOCAL_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLocalNetworkId(NetworkId localNetworkId) { + public void setLocalNetworkId(@jakarta.annotation.Nonnull NetworkId localNetworkId) { this.localNetworkId = localNetworkId; } - public NetworkConnectionResponse remoteNetworkId(NetworkId remoteNetworkId) { + public NetworkConnectionResponse remoteNetworkId( + @jakarta.annotation.Nonnull NetworkId remoteNetworkId) { this.remoteNetworkId = remoteNetworkId; return this; } @@ -196,12 +223,13 @@ public NetworkId getRemoteNetworkId() { @JsonProperty(JSON_PROPERTY_REMOTE_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRemoteNetworkId(NetworkId remoteNetworkId) { + public void setRemoteNetworkId(@jakarta.annotation.Nonnull NetworkId remoteNetworkId) { this.remoteNetworkId = remoteNetworkId; } public NetworkConnectionResponse routingPolicy( - Map routingPolicy) { + @jakarta.annotation.Nonnull + Map routingPolicy) { this.routingPolicy = routingPolicy; return this; } @@ -229,7 +257,9 @@ public Map getRoutingPolicy() { @JsonProperty(JSON_PROPERTY_ROUTING_POLICY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoutingPolicy(Map routingPolicy) { + public void setRoutingPolicy( + @jakarta.annotation.Nonnull + Map routingPolicy) { this.routingPolicy = routingPolicy; } @@ -327,10 +357,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `localChannel` to the URL query string @@ -350,8 +377,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `localNetworkId` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValue.java b/src/main/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValue.java index 21071ace..0a15de25 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValue.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValue.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = NetworkConnectionRoutingPolicyValue.NetworkConnectionRoutingPolicyValueDeserializer diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkFee.java b/src/main/java/com/fireblocks/sdk/model/NetworkFee.java index 7dd78f9c..dac27766 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkFee.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkFee.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +28,28 @@ NetworkFee.JSON_PROPERTY_BASE_FEE, NetworkFee.JSON_PROPERTY_PRIORITY_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkFee { public static final String JSON_PROPERTY_FEE_PER_BYTE = "feePerByte"; - private String feePerByte; + @jakarta.annotation.Nullable private String feePerByte; public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice"; - private String gasPrice; + @jakarta.annotation.Nullable private String gasPrice; public static final String JSON_PROPERTY_NETWORK_FEE = "networkFee"; - private String networkFee; + @jakarta.annotation.Nullable private String networkFee; public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; - private String baseFee; + @jakarta.annotation.Nullable private String baseFee; public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - private String priorityFee; + @jakarta.annotation.Nullable private String priorityFee; public NetworkFee() {} - public NetworkFee feePerByte(String feePerByte) { + public NetworkFee feePerByte(@jakarta.annotation.Nullable String feePerByte) { this.feePerByte = feePerByte; return this; } @@ -67,11 +68,11 @@ public String getFeePerByte() { @JsonProperty(JSON_PROPERTY_FEE_PER_BYTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeePerByte(String feePerByte) { + public void setFeePerByte(@jakarta.annotation.Nullable String feePerByte) { this.feePerByte = feePerByte; } - public NetworkFee gasPrice(String gasPrice) { + public NetworkFee gasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; return this; } @@ -90,11 +91,11 @@ public String getGasPrice() { @JsonProperty(JSON_PROPERTY_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasPrice(String gasPrice) { + public void setGasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; } - public NetworkFee networkFee(String networkFee) { + public NetworkFee networkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; return this; } @@ -113,11 +114,11 @@ public String getNetworkFee() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkFee(String networkFee) { + public void setNetworkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; } - public NetworkFee baseFee(String baseFee) { + public NetworkFee baseFee(@jakarta.annotation.Nullable String baseFee) { this.baseFee = baseFee; return this; } @@ -136,11 +137,11 @@ public String getBaseFee() { @JsonProperty(JSON_PROPERTY_BASE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(String baseFee) { + public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { this.baseFee = baseFee; } - public NetworkFee priorityFee(String priorityFee) { + public NetworkFee priorityFee(@jakarta.annotation.Nullable String priorityFee) { this.priorityFee = priorityFee; return this; } @@ -159,7 +160,7 @@ public String getPriorityFee() { @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(String priorityFee) { + public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { this.priorityFee = priorityFee; } @@ -248,9 +249,7 @@ public String toUrlQueryString(String prefix) { "%sfeePerByte%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFeePerByte()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeePerByte())))); } // add `gasPrice` to the URL query string @@ -260,8 +259,7 @@ public String toUrlQueryString(String prefix) { "%sgasPrice%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasPrice()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasPrice())))); } // add `networkFee` to the URL query string @@ -271,9 +269,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFee())))); } // add `baseFee` to the URL query string @@ -283,8 +279,7 @@ public String toUrlQueryString(String prefix) { "%sbaseFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBaseFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); } // add `priorityFee` to the URL query string @@ -294,10 +289,7 @@ public String toUrlQueryString(String prefix) { "%spriorityFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPriorityFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkId.java b/src/main/java/com/fireblocks/sdk/model/NetworkId.java index b8dba662..8c2dd809 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkId.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkId.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** NetworkId */ @JsonPropertyOrder({NetworkId.JSON_PROPERTY_ID, NetworkId.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkId { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public NetworkId() {} - public NetworkId id(String id) { + @JsonCreator + public NetworkId( + @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 NetworkId id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -52,11 +62,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public NetworkId name(String name) { + public NetworkId name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -75,7 +85,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -155,10 +165,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -168,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java b/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java index 34a36c5e..7f03a2a9 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -30,23 +29,28 @@ NetworkIdResponse.JSON_PROPERTY_ID, NetworkIdResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; + + @jakarta.annotation.Nullable private Map routingPolicy = new HashMap<>(); public static final String JSON_PROPERTY_IS_DISCOVERABLE = "isDiscoverable"; - private Boolean isDiscoverable; + @jakarta.annotation.Nullable private Boolean isDiscoverable; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public NetworkIdResponse() {} - public NetworkIdResponse routingPolicy(Map routingPolicy) { + public NetworkIdResponse routingPolicy( + @jakarta.annotation.Nullable Map routingPolicy) { this.routingPolicy = routingPolicy; return this; } @@ -74,11 +78,12 @@ public Map getRoutingPolicy() { @JsonProperty(JSON_PROPERTY_ROUTING_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoutingPolicy(Map routingPolicy) { + public void setRoutingPolicy( + @jakarta.annotation.Nullable Map routingPolicy) { this.routingPolicy = routingPolicy; } - public NetworkIdResponse isDiscoverable(Boolean isDiscoverable) { + public NetworkIdResponse isDiscoverable(@jakarta.annotation.Nullable Boolean isDiscoverable) { this.isDiscoverable = isDiscoverable; return this; } @@ -97,11 +102,11 @@ public Boolean getIsDiscoverable() { @JsonProperty(JSON_PROPERTY_IS_DISCOVERABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsDiscoverable(Boolean isDiscoverable) { + public void setIsDiscoverable(@jakarta.annotation.Nullable Boolean isDiscoverable) { this.isDiscoverable = isDiscoverable; } - public NetworkIdResponse id(String id) { + public NetworkIdResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -120,11 +125,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public NetworkIdResponse name(String name) { + public NetworkIdResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -143,7 +148,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -253,10 +258,7 @@ public String toUrlQueryString(String prefix) { "%sisDiscoverable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsDiscoverable()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsDiscoverable())))); } // add `id` to the URL query string @@ -264,10 +266,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -277,8 +276,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValue.java b/src/main/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValue.java index 2fa8b2ad..54b11e35 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValue.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValue.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = NetworkIdRoutingPolicyValue.NetworkIdRoutingPolicyValueDeserializer.class) @JsonSerialize(using = NetworkIdRoutingPolicyValue.NetworkIdRoutingPolicyValueSerializer.class) public class NetworkIdRoutingPolicyValue extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkRecord.java b/src/main/java/com/fireblocks/sdk/model/NetworkRecord.java index df735861..4cc5c597 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkRecord.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkRecord.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -38,50 +37,53 @@ NetworkRecord.JSON_PROPERTY_INDEX, NetworkRecord.JSON_PROPERTY_REWARD_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NetworkRecord { public static final String JSON_PROPERTY_SOURCE = "source"; - private SourceTransferPeerPathResponse source; + @jakarta.annotation.Nullable private SourceTransferPeerPathResponse source; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private DestinationTransferPeerPathResponse destination; + @jakarta.annotation.Nullable private DestinationTransferPeerPathResponse destination; public static final String JSON_PROPERTY_TX_HASH = "txHash"; - private String txHash; + @jakarta.annotation.Nullable private String txHash; public static final String JSON_PROPERTY_NETWORK_FEE = "networkFee"; - private String networkFee; + @jakarta.annotation.Nullable private String networkFee; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_NET_AMOUNT = "netAmount"; - private String netAmount; + @jakarta.annotation.Nullable private String netAmount; public static final String JSON_PROPERTY_IS_DROPPED = "isDropped"; - private Boolean isDropped; + @jakarta.annotation.Nullable private Boolean isDropped; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_DESTINATION_ADDRESS = "destinationAddress"; - private String destinationAddress; + @jakarta.annotation.Nullable private String destinationAddress; public static final String JSON_PROPERTY_SOURCE_ADDRESS = "sourceAddress"; - private String sourceAddress; + @jakarta.annotation.Nullable private String sourceAddress; public static final String JSON_PROPERTY_AMOUNT_U_S_D = "amountUSD"; - private String amountUSD; + @jakarta.annotation.Nullable private String amountUSD; public static final String JSON_PROPERTY_INDEX = "index"; - private BigDecimal index; + @jakarta.annotation.Nullable private BigDecimal index; public static final String JSON_PROPERTY_REWARD_INFO = "rewardInfo"; - private RewardInfo rewardInfo; + @jakarta.annotation.Nullable private RewardInfo rewardInfo; public NetworkRecord() {} - public NetworkRecord source(SourceTransferPeerPathResponse source) { + public NetworkRecord source( + @jakarta.annotation.Nullable SourceTransferPeerPathResponse source) { this.source = source; return this; } @@ -100,11 +102,12 @@ public SourceTransferPeerPathResponse getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(SourceTransferPeerPathResponse source) { + public void setSource(@jakarta.annotation.Nullable SourceTransferPeerPathResponse source) { this.source = source; } - public NetworkRecord destination(DestinationTransferPeerPathResponse destination) { + public NetworkRecord destination( + @jakarta.annotation.Nullable DestinationTransferPeerPathResponse destination) { this.destination = destination; return this; } @@ -123,11 +126,12 @@ public DestinationTransferPeerPathResponse getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(DestinationTransferPeerPathResponse destination) { + public void setDestination( + @jakarta.annotation.Nullable DestinationTransferPeerPathResponse destination) { this.destination = destination; } - public NetworkRecord txHash(String txHash) { + public NetworkRecord txHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; return this; } @@ -146,11 +150,11 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; } - public NetworkRecord networkFee(String networkFee) { + public NetworkRecord networkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; return this; } @@ -169,11 +173,11 @@ public String getNetworkFee() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkFee(String networkFee) { + public void setNetworkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; } - public NetworkRecord assetId(String assetId) { + public NetworkRecord assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -192,11 +196,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public NetworkRecord netAmount(String netAmount) { + public NetworkRecord netAmount(@jakarta.annotation.Nullable String netAmount) { this.netAmount = netAmount; return this; } @@ -215,11 +219,11 @@ public String getNetAmount() { @JsonProperty(JSON_PROPERTY_NET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetAmount(String netAmount) { + public void setNetAmount(@jakarta.annotation.Nullable String netAmount) { this.netAmount = netAmount; } - public NetworkRecord isDropped(Boolean isDropped) { + public NetworkRecord isDropped(@jakarta.annotation.Nullable Boolean isDropped) { this.isDropped = isDropped; return this; } @@ -238,11 +242,11 @@ public Boolean getIsDropped() { @JsonProperty(JSON_PROPERTY_IS_DROPPED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsDropped(Boolean isDropped) { + public void setIsDropped(@jakarta.annotation.Nullable Boolean isDropped) { this.isDropped = isDropped; } - public NetworkRecord type(String type) { + public NetworkRecord type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -261,11 +265,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public NetworkRecord destinationAddress(String destinationAddress) { + public NetworkRecord destinationAddress( + @jakarta.annotation.Nullable String destinationAddress) { this.destinationAddress = destinationAddress; return this; } @@ -284,11 +289,11 @@ public String getDestinationAddress() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinationAddress(String destinationAddress) { + public void setDestinationAddress(@jakarta.annotation.Nullable String destinationAddress) { this.destinationAddress = destinationAddress; } - public NetworkRecord sourceAddress(String sourceAddress) { + public NetworkRecord sourceAddress(@jakarta.annotation.Nullable String sourceAddress) { this.sourceAddress = sourceAddress; return this; } @@ -307,11 +312,11 @@ public String getSourceAddress() { @JsonProperty(JSON_PROPERTY_SOURCE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceAddress(String sourceAddress) { + public void setSourceAddress(@jakarta.annotation.Nullable String sourceAddress) { this.sourceAddress = sourceAddress; } - public NetworkRecord amountUSD(String amountUSD) { + public NetworkRecord amountUSD(@jakarta.annotation.Nullable String amountUSD) { this.amountUSD = amountUSD; return this; } @@ -330,11 +335,11 @@ public String getAmountUSD() { @JsonProperty(JSON_PROPERTY_AMOUNT_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUSD(String amountUSD) { + public void setAmountUSD(@jakarta.annotation.Nullable String amountUSD) { this.amountUSD = amountUSD; } - public NetworkRecord index(BigDecimal index) { + public NetworkRecord index(@jakarta.annotation.Nullable BigDecimal index) { this.index = index; return this; } @@ -353,11 +358,11 @@ public BigDecimal getIndex() { @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndex(BigDecimal index) { + public void setIndex(@jakarta.annotation.Nullable BigDecimal index) { this.index = index; } - public NetworkRecord rewardInfo(RewardInfo rewardInfo) { + public NetworkRecord rewardInfo(@jakarta.annotation.Nullable RewardInfo rewardInfo) { this.rewardInfo = rewardInfo; return this; } @@ -376,7 +381,7 @@ public RewardInfo getRewardInfo() { @JsonProperty(JSON_PROPERTY_REWARD_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewardInfo(RewardInfo rewardInfo) { + public void setRewardInfo(@jakarta.annotation.Nullable RewardInfo rewardInfo) { this.rewardInfo = rewardInfo; } @@ -506,8 +511,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } // add `networkFee` to the URL query string @@ -517,9 +521,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFee())))); } // add `assetId` to the URL query string @@ -529,8 +531,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `netAmount` to the URL query string @@ -540,9 +541,7 @@ public String toUrlQueryString(String prefix) { "%snetAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetAmount())))); } // add `isDropped` to the URL query string @@ -552,9 +551,7 @@ public String toUrlQueryString(String prefix) { "%sisDropped%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsDropped()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsDropped())))); } // add `type` to the URL query string @@ -564,8 +561,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `destinationAddress` to the URL query string @@ -575,10 +571,7 @@ public String toUrlQueryString(String prefix) { "%sdestinationAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestinationAddress())))); } // add `sourceAddress` to the URL query string @@ -588,10 +581,7 @@ public String toUrlQueryString(String prefix) { "%ssourceAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceAddress())))); } // add `amountUSD` to the URL query string @@ -601,9 +591,7 @@ public String toUrlQueryString(String prefix) { "%samountUSD%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUSD())))); } // add `index` to the URL query string @@ -613,8 +601,7 @@ public String toUrlQueryString(String prefix) { "%sindex%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIndex()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); } // add `rewardInfo` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/NewAddress.java b/src/main/java/com/fireblocks/sdk/model/NewAddress.java index 1e67d92f..f16c649a 100644 --- a/src/main/java/com/fireblocks/sdk/model/NewAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/NewAddress.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,32 @@ NewAddress.JSON_PROPERTY_INDEX, NewAddress.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_INDEX = "index"; - private Integer index; + @jakarta.annotation.Nonnull private Integer index; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nonnull private String description; public NewAddress() {} - public NewAddress address(String address) { + @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; } @@ -59,11 +71,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public NewAddress index(Integer index) { + public NewAddress index(@jakarta.annotation.Nonnull Integer index) { this.index = index; return this; } @@ -82,11 +94,11 @@ public Integer getIndex() { @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIndex(Integer index) { + public void setIndex(@jakarta.annotation.Nonnull Integer index) { this.index = index; } - public NewAddress description(String description) { + public NewAddress description(@jakarta.annotation.Nonnull String description) { this.description = description; return this; } @@ -105,7 +117,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nonnull String description) { this.description = description; } @@ -190,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `index` to the URL query string @@ -201,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%sindex%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIndex()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); } // add `description` to the URL query string @@ -212,10 +222,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteFee.java b/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteFee.java index fb1be254..76873fd7 100644 --- a/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteFee.java +++ b/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteFee.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +30,47 @@ NonWalletQuoteFee.JSON_PROPERTY_PROVIDER_FEE_ASSET_ID, NonWalletQuoteFee.JSON_PROPERTY_PROVIDER_FEE_RATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NonWalletQuoteFee { public static final String JSON_PROPERTY_NETWORK_EXECUTION_FEE = "networkExecutionFee"; - private String networkExecutionFee; + @jakarta.annotation.Nonnull private String networkExecutionFee; public static final String JSON_PROPERTY_NETWORK_FEE_ASSET_ID = "networkFeeAssetId"; - private String networkFeeAssetId; + @jakarta.annotation.Nonnull private String networkFeeAssetId; public static final String JSON_PROPERTY_PROVIDER_FEE = "providerFee"; - private String providerFee; + @jakarta.annotation.Nonnull private String providerFee; public static final String JSON_PROPERTY_PROVIDER_FEE_ASSET_ID = "providerFeeAssetId"; - private String providerFeeAssetId; + @jakarta.annotation.Nonnull private String providerFeeAssetId; public static final String JSON_PROPERTY_PROVIDER_FEE_RATE = "providerFeeRate"; - private BigDecimal providerFeeRate; + @jakarta.annotation.Nonnull private BigDecimal providerFeeRate; public NonWalletQuoteFee() {} - public NonWalletQuoteFee networkExecutionFee(String networkExecutionFee) { + @JsonCreator + public NonWalletQuoteFee( + @JsonProperty(value = JSON_PROPERTY_NETWORK_EXECUTION_FEE, required = true) + String networkExecutionFee, + @JsonProperty(value = JSON_PROPERTY_NETWORK_FEE_ASSET_ID, required = true) + String networkFeeAssetId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_FEE, required = true) String providerFee, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_FEE_ASSET_ID, required = true) + String providerFeeAssetId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_FEE_RATE, required = true) + BigDecimal providerFeeRate) { + this.networkExecutionFee = networkExecutionFee; + this.networkFeeAssetId = networkFeeAssetId; + this.providerFee = providerFee; + this.providerFeeAssetId = providerFeeAssetId; + this.providerFeeRate = providerFeeRate; + } + + public NonWalletQuoteFee networkExecutionFee( + @jakarta.annotation.Nonnull String networkExecutionFee) { this.networkExecutionFee = networkExecutionFee; return this; } @@ -68,11 +89,12 @@ public String getNetworkExecutionFee() { @JsonProperty(JSON_PROPERTY_NETWORK_EXECUTION_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkExecutionFee(String networkExecutionFee) { + public void setNetworkExecutionFee(@jakarta.annotation.Nonnull String networkExecutionFee) { this.networkExecutionFee = networkExecutionFee; } - public NonWalletQuoteFee networkFeeAssetId(String networkFeeAssetId) { + public NonWalletQuoteFee networkFeeAssetId( + @jakarta.annotation.Nonnull String networkFeeAssetId) { this.networkFeeAssetId = networkFeeAssetId; return this; } @@ -91,11 +113,11 @@ public String getNetworkFeeAssetId() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkFeeAssetId(String networkFeeAssetId) { + public void setNetworkFeeAssetId(@jakarta.annotation.Nonnull String networkFeeAssetId) { this.networkFeeAssetId = networkFeeAssetId; } - public NonWalletQuoteFee providerFee(String providerFee) { + public NonWalletQuoteFee providerFee(@jakarta.annotation.Nonnull String providerFee) { this.providerFee = providerFee; return this; } @@ -114,11 +136,12 @@ public String getProviderFee() { @JsonProperty(JSON_PROPERTY_PROVIDER_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderFee(String providerFee) { + public void setProviderFee(@jakarta.annotation.Nonnull String providerFee) { this.providerFee = providerFee; } - public NonWalletQuoteFee providerFeeAssetId(String providerFeeAssetId) { + public NonWalletQuoteFee providerFeeAssetId( + @jakarta.annotation.Nonnull String providerFeeAssetId) { this.providerFeeAssetId = providerFeeAssetId; return this; } @@ -137,11 +160,12 @@ public String getProviderFeeAssetId() { @JsonProperty(JSON_PROPERTY_PROVIDER_FEE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderFeeAssetId(String providerFeeAssetId) { + public void setProviderFeeAssetId(@jakarta.annotation.Nonnull String providerFeeAssetId) { this.providerFeeAssetId = providerFeeAssetId; } - public NonWalletQuoteFee providerFeeRate(BigDecimal providerFeeRate) { + public NonWalletQuoteFee providerFeeRate( + @jakarta.annotation.Nonnull BigDecimal providerFeeRate) { this.providerFeeRate = providerFeeRate; return this; } @@ -160,7 +184,7 @@ public BigDecimal getProviderFeeRate() { @JsonProperty(JSON_PROPERTY_PROVIDER_FEE_RATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderFeeRate(BigDecimal providerFeeRate) { + public void setProviderFeeRate(@jakarta.annotation.Nonnull BigDecimal providerFeeRate) { this.providerFeeRate = providerFeeRate; } @@ -260,10 +284,8 @@ public String toUrlQueryString(String prefix) { "%snetworkExecutionFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkExecutionFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getNetworkExecutionFee())))); } // add `networkFeeAssetId` to the URL query string @@ -273,10 +295,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFeeAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFeeAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFeeAssetId())))); } // add `providerFee` to the URL query string @@ -286,10 +305,7 @@ public String toUrlQueryString(String prefix) { "%sproviderFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderFee())))); } // add `providerFeeAssetId` to the URL query string @@ -299,10 +315,7 @@ public String toUrlQueryString(String prefix) { "%sproviderFeeAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderFeeAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderFeeAssetId())))); } // add `providerFeeRate` to the URL query string @@ -312,10 +325,7 @@ public String toUrlQueryString(String prefix) { "%sproviderFeeRate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderFeeRate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderFeeRate())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteResponse.java b/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteResponse.java index 29e099ee..acf4b59e 100644 --- a/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NonWalletQuoteResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -34,38 +34,69 @@ NonWalletQuoteResponse.JSON_PROPERTY_ADDITIONAL_DATA, NonWalletQuoteResponse.JSON_PROPERTY_ESTIMATED_FEES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NonWalletQuoteResponse { public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private SwapProviderProtocolsEnum protocol; + @jakarta.annotation.Nonnull private SwapProviderProtocolsEnum protocol; public static final String JSON_PROPERTY_INPUT_AMOUNT = "inputAmount"; - private String inputAmount; + @jakarta.annotation.Nonnull private String inputAmount; public static final String JSON_PROPERTY_INPUT_ASSET = "inputAsset"; - private String inputAsset; + @jakarta.annotation.Nonnull private String inputAsset; public static final String JSON_PROPERTY_SLIPPAGE_TOLERANCE = "slippageTolerance"; - private BigDecimal slippageTolerance; + @jakarta.annotation.Nonnull private BigDecimal slippageTolerance; public static final String JSON_PROPERTY_OUTPUT_MIN_AMOUNT = "outputMinAmount"; - private String outputMinAmount; + @jakarta.annotation.Nonnull private String outputMinAmount; public static final String JSON_PROPERTY_OUTPUT_MAX_AMOUNT = "outputMaxAmount"; - private String outputMaxAmount; + @jakarta.annotation.Nonnull private String outputMaxAmount; public static final String JSON_PROPERTY_OUTPUT_ASSET = "outputAsset"; - private String outputAsset; + @jakarta.annotation.Nonnull private String outputAsset; public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; - private ProviderAdditionalData additionalData; + @jakarta.annotation.Nonnull private ProviderAdditionalData additionalData; public static final String JSON_PROPERTY_ESTIMATED_FEES = "estimatedFees"; - private NonWalletQuoteFee estimatedFees; + @jakarta.annotation.Nonnull private NonWalletQuoteFee estimatedFees; public NonWalletQuoteResponse() {} - public NonWalletQuoteResponse protocol(SwapProviderProtocolsEnum protocol) { + @JsonCreator + public NonWalletQuoteResponse( + @JsonProperty(value = JSON_PROPERTY_PROTOCOL, required = true) + SwapProviderProtocolsEnum protocol, + @JsonProperty(value = JSON_PROPERTY_INPUT_AMOUNT, required = true) String inputAmount, + @JsonProperty(value = JSON_PROPERTY_INPUT_ASSET, required = true) String inputAsset, + @JsonProperty(value = JSON_PROPERTY_SLIPPAGE_TOLERANCE, required = true) + BigDecimal slippageTolerance, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_MIN_AMOUNT, required = true) + String outputMinAmount, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_MAX_AMOUNT, required = true) + String outputMaxAmount, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_ASSET, required = true) String outputAsset, + @JsonProperty(value = JSON_PROPERTY_ADDITIONAL_DATA, required = true) + ProviderAdditionalData additionalData, + @JsonProperty(value = JSON_PROPERTY_ESTIMATED_FEES, required = true) + NonWalletQuoteFee estimatedFees) { + this.protocol = protocol; + this.inputAmount = inputAmount; + this.inputAsset = inputAsset; + this.slippageTolerance = slippageTolerance; + this.outputMinAmount = outputMinAmount; + this.outputMaxAmount = outputMaxAmount; + this.outputAsset = outputAsset; + this.additionalData = additionalData; + this.estimatedFees = estimatedFees; + } + + public NonWalletQuoteResponse protocol( + @jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; return this; } @@ -84,11 +115,11 @@ public SwapProviderProtocolsEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocol(SwapProviderProtocolsEnum protocol) { + public void setProtocol(@jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; } - public NonWalletQuoteResponse inputAmount(String inputAmount) { + public NonWalletQuoteResponse inputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; return this; } @@ -107,11 +138,11 @@ public String getInputAmount() { @JsonProperty(JSON_PROPERTY_INPUT_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAmount(String inputAmount) { + public void setInputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; } - public NonWalletQuoteResponse inputAsset(String inputAsset) { + public NonWalletQuoteResponse inputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; return this; } @@ -130,11 +161,12 @@ public String getInputAsset() { @JsonProperty(JSON_PROPERTY_INPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAsset(String inputAsset) { + public void setInputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; } - public NonWalletQuoteResponse slippageTolerance(BigDecimal slippageTolerance) { + public NonWalletQuoteResponse slippageTolerance( + @jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; return this; } @@ -154,11 +186,12 @@ public BigDecimal getSlippageTolerance() { @JsonProperty(JSON_PROPERTY_SLIPPAGE_TOLERANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSlippageTolerance(BigDecimal slippageTolerance) { + public void setSlippageTolerance(@jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; } - public NonWalletQuoteResponse outputMinAmount(String outputMinAmount) { + public NonWalletQuoteResponse outputMinAmount( + @jakarta.annotation.Nonnull String outputMinAmount) { this.outputMinAmount = outputMinAmount; return this; } @@ -177,11 +210,12 @@ public String getOutputMinAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputMinAmount(String outputMinAmount) { + public void setOutputMinAmount(@jakarta.annotation.Nonnull String outputMinAmount) { this.outputMinAmount = outputMinAmount; } - public NonWalletQuoteResponse outputMaxAmount(String outputMaxAmount) { + public NonWalletQuoteResponse outputMaxAmount( + @jakarta.annotation.Nonnull String outputMaxAmount) { this.outputMaxAmount = outputMaxAmount; return this; } @@ -200,11 +234,11 @@ public String getOutputMaxAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputMaxAmount(String outputMaxAmount) { + public void setOutputMaxAmount(@jakarta.annotation.Nonnull String outputMaxAmount) { this.outputMaxAmount = outputMaxAmount; } - public NonWalletQuoteResponse outputAsset(String outputAsset) { + public NonWalletQuoteResponse outputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; return this; } @@ -223,11 +257,12 @@ public String getOutputAsset() { @JsonProperty(JSON_PROPERTY_OUTPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputAsset(String outputAsset) { + public void setOutputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; } - public NonWalletQuoteResponse additionalData(ProviderAdditionalData additionalData) { + public NonWalletQuoteResponse additionalData( + @jakarta.annotation.Nonnull ProviderAdditionalData additionalData) { this.additionalData = additionalData; return this; } @@ -246,11 +281,13 @@ public ProviderAdditionalData getAdditionalData() { @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdditionalData(ProviderAdditionalData additionalData) { + public void setAdditionalData( + @jakarta.annotation.Nonnull ProviderAdditionalData additionalData) { this.additionalData = additionalData; } - public NonWalletQuoteResponse estimatedFees(NonWalletQuoteFee estimatedFees) { + public NonWalletQuoteResponse estimatedFees( + @jakarta.annotation.Nonnull NonWalletQuoteFee estimatedFees) { this.estimatedFees = estimatedFees; return this; } @@ -269,7 +306,7 @@ public NonWalletQuoteFee getEstimatedFees() { @JsonProperty(JSON_PROPERTY_ESTIMATED_FEES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEstimatedFees(NonWalletQuoteFee estimatedFees) { + public void setEstimatedFees(@jakarta.annotation.Nonnull NonWalletQuoteFee estimatedFees) { this.estimatedFees = estimatedFees; } @@ -377,8 +414,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } // add `inputAmount` to the URL query string @@ -388,10 +424,7 @@ public String toUrlQueryString(String prefix) { "%sinputAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAmount())))); } // add `inputAsset` to the URL query string @@ -401,9 +434,7 @@ public String toUrlQueryString(String prefix) { "%sinputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAsset())))); } // add `slippageTolerance` to the URL query string @@ -413,10 +444,7 @@ public String toUrlQueryString(String prefix) { "%sslippageTolerance%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSlippageTolerance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSlippageTolerance())))); } // add `outputMinAmount` to the URL query string @@ -426,10 +454,7 @@ public String toUrlQueryString(String prefix) { "%soutputMinAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputMinAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputMinAmount())))); } // add `outputMaxAmount` to the URL query string @@ -439,10 +464,7 @@ public String toUrlQueryString(String prefix) { "%soutputMaxAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputMaxAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputMaxAmount())))); } // add `outputAsset` to the URL query string @@ -452,10 +474,7 @@ public String toUrlQueryString(String prefix) { "%soutputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputAsset())))); } // add `additionalData` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/NoneNetworkRoutingDest.java b/src/main/java/com/fireblocks/sdk/model/NoneNetworkRoutingDest.java index df683fef..1f151616 100644 --- a/src/main/java/com/fireblocks/sdk/model/NoneNetworkRoutingDest.java +++ b/src/main/java/com/fireblocks/sdk/model/NoneNetworkRoutingDest.java @@ -18,18 +18,19 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** NoneNetworkRoutingDest */ @JsonPropertyOrder({NoneNetworkRoutingDest.JSON_PROPERTY_SCHEME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NoneNetworkRoutingDest { /** No network routing logic. */ public enum SchemeEnum { - NONE("NONE"); + NONE(String.valueOf("NONE")); private String value; @@ -59,11 +60,17 @@ public static SchemeEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCHEME = "scheme"; - private SchemeEnum scheme; + @jakarta.annotation.Nonnull private SchemeEnum scheme; public NoneNetworkRoutingDest() {} - public NoneNetworkRoutingDest scheme(SchemeEnum scheme) { + @JsonCreator + public NoneNetworkRoutingDest( + @JsonProperty(value = JSON_PROPERTY_SCHEME, required = true) SchemeEnum scheme) { + this.scheme = scheme; + } + + public NoneNetworkRoutingDest scheme(@jakarta.annotation.Nonnull SchemeEnum scheme) { this.scheme = scheme; return this; } @@ -82,7 +89,7 @@ public SchemeEnum getScheme() { @JsonProperty(JSON_PROPERTY_SCHEME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScheme(SchemeEnum scheme) { + public void setScheme(@jakarta.annotation.Nonnull SchemeEnum scheme) { this.scheme = scheme; } @@ -163,8 +170,7 @@ public String toUrlQueryString(String prefix) { "%sscheme%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getScheme()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getScheme())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NotFoundException.java b/src/main/java/com/fireblocks/sdk/model/NotFoundException.java index 055def47..c1fb91f9 100644 --- a/src/main/java/com/fireblocks/sdk/model/NotFoundException.java +++ b/src/main/java/com/fireblocks/sdk/model/NotFoundException.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ NotFoundException.JSON_PROPERTY_MESSAGE, NotFoundException.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class NotFoundException { public static final String JSON_PROPERTY_STATUS_CODE = "statusCode"; - private Integer statusCode; + @jakarta.annotation.Nullable private Integer statusCode; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_ERROR = "error"; - private String error; + @jakarta.annotation.Nullable private String error; public NotFoundException() {} - public NotFoundException statusCode(Integer statusCode) { + public NotFoundException statusCode(@jakarta.annotation.Nullable Integer statusCode) { this.statusCode = statusCode; return this; } @@ -59,11 +60,11 @@ public Integer getStatusCode() { @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatusCode(Integer statusCode) { + public void setStatusCode(@jakarta.annotation.Nullable Integer statusCode) { this.statusCode = statusCode; } - public NotFoundException message(String message) { + public NotFoundException message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -82,11 +83,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public NotFoundException error(String error) { + public NotFoundException error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } @@ -105,7 +106,7 @@ public String getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } @@ -190,9 +191,7 @@ public String toUrlQueryString(String prefix) { "%sstatusCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStatusCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatusCode())))); } // add `message` to the URL query string @@ -202,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `error` to the URL query string @@ -213,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%serror%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getError()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getError())))); } 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 index 9e3bff66..d8ee89ee 100644 --- a/src/main/java/com/fireblocks/sdk/model/Notification.java +++ b/src/main/java/com/fireblocks/sdk/model/Notification.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -31,29 +31,46 @@ Notification.JSON_PROPERTY_EVENT_TYPE, Notification.JSON_PROPERTY_RESOURCE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private Long createdAt; + @jakarta.annotation.Nonnull private Long createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private Long updatedAt; + @jakarta.annotation.Nonnull private Long updatedAt; public static final String JSON_PROPERTY_STATUS = "status"; - private NotificationStatus status; + @jakarta.annotation.Nonnull private NotificationStatus status; public static final String JSON_PROPERTY_EVENT_TYPE = "eventType"; - private WebhookEvent eventType; + @jakarta.annotation.Nonnull private WebhookEvent eventType; public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; - private UUID resourceId; + @jakarta.annotation.Nullable private UUID resourceId; public Notification() {} - public Notification id(UUID id) { + @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; } @@ -72,11 +89,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public Notification createdAt(Long createdAt) { + public Notification createdAt(@jakarta.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; return this; } @@ -95,11 +112,11 @@ public Long getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(Long createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; } - public Notification updatedAt(Long updatedAt) { + public Notification updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; return this; } @@ -118,11 +135,11 @@ public Long getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(Long updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; } - public Notification status(NotificationStatus status) { + public Notification status(@jakarta.annotation.Nonnull NotificationStatus status) { this.status = status; return this; } @@ -141,11 +158,11 @@ public NotificationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(NotificationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull NotificationStatus status) { this.status = status; } - public Notification eventType(WebhookEvent eventType) { + public Notification eventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { this.eventType = eventType; return this; } @@ -164,11 +181,11 @@ public WebhookEvent getEventType() { @JsonProperty(JSON_PROPERTY_EVENT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventType(WebhookEvent eventType) { + public void setEventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { this.eventType = eventType; } - public Notification resourceId(UUID resourceId) { + public Notification resourceId(@jakarta.annotation.Nullable UUID resourceId) { this.resourceId = resourceId; return this; } @@ -187,7 +204,7 @@ public UUID getResourceId() { @JsonProperty(JSON_PROPERTY_RESOURCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResourceId(UUID resourceId) { + public void setResourceId(@jakarta.annotation.Nullable UUID resourceId) { this.resourceId = resourceId; } @@ -276,10 +293,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `createdAt` to the URL query string @@ -289,9 +303,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `updatedAt` to the URL query string @@ -301,9 +313,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } // add `status` to the URL query string @@ -313,8 +323,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `eventType` to the URL query string @@ -324,9 +333,7 @@ public String toUrlQueryString(String prefix) { "%seventType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEventType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEventType())))); } // add `resourceId` to the URL query string @@ -336,9 +343,7 @@ public String toUrlQueryString(String prefix) { "%sresourceId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getResourceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 7cd737e4..1d7a9498 100644 --- a/src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java +++ b/src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,22 +29,24 @@ NotificationAttempt.JSON_PROPERTY_RESPONSE_CODE, NotificationAttempt.JSON_PROPERTY_FAILURE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private Long sentTime; + @jakarta.annotation.Nonnull private Long sentTime; public static final String JSON_PROPERTY_DURATION = "duration"; - private Integer duration; + @jakarta.annotation.Nonnull private Integer duration; public static final String JSON_PROPERTY_RESPONSE_CODE = "responseCode"; - private Integer responseCode; + @jakarta.annotation.Nullable private Integer responseCode; /** The request failure reason in case responseCode is missing. */ public enum FailureReasonEnum { - TIMED_OUT("TIMED_OUT"), + TIMED_OUT(String.valueOf("TIMED_OUT")), - NO_RESPONSE("NO_RESPONSE"); + NO_RESPONSE(String.valueOf("NO_RESPONSE")); private String value; @@ -75,11 +76,19 @@ public static FailureReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_FAILURE_REASON = "failureReason"; - private FailureReasonEnum failureReason; + @jakarta.annotation.Nullable private FailureReasonEnum failureReason; public NotificationAttempt() {} - public NotificationAttempt sentTime(Long sentTime) { + @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; } @@ -98,11 +107,11 @@ public Long getSentTime() { @JsonProperty(JSON_PROPERTY_SENT_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSentTime(Long sentTime) { + public void setSentTime(@jakarta.annotation.Nonnull Long sentTime) { this.sentTime = sentTime; } - public NotificationAttempt duration(Integer duration) { + public NotificationAttempt duration(@jakarta.annotation.Nonnull Integer duration) { this.duration = duration; return this; } @@ -121,11 +130,11 @@ public Integer getDuration() { @JsonProperty(JSON_PROPERTY_DURATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDuration(Integer duration) { + public void setDuration(@jakarta.annotation.Nonnull Integer duration) { this.duration = duration; } - public NotificationAttempt responseCode(Integer responseCode) { + public NotificationAttempt responseCode(@jakarta.annotation.Nullable Integer responseCode) { this.responseCode = responseCode; return this; } @@ -144,11 +153,12 @@ public Integer getResponseCode() { @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResponseCode(Integer responseCode) { + public void setResponseCode(@jakarta.annotation.Nullable Integer responseCode) { this.responseCode = responseCode; } - public NotificationAttempt failureReason(FailureReasonEnum failureReason) { + public NotificationAttempt failureReason( + @jakarta.annotation.Nullable FailureReasonEnum failureReason) { this.failureReason = failureReason; return this; } @@ -167,7 +177,7 @@ public FailureReasonEnum getFailureReason() { @JsonProperty(JSON_PROPERTY_FAILURE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailureReason(FailureReasonEnum failureReason) { + public void setFailureReason(@jakarta.annotation.Nullable FailureReasonEnum failureReason) { this.failureReason = failureReason; } @@ -254,8 +264,7 @@ public String toUrlQueryString(String prefix) { "%ssentTime%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSentTime()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSentTime())))); } // add `duration` to the URL query string @@ -265,8 +274,7 @@ public String toUrlQueryString(String prefix) { "%sduration%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDuration()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDuration())))); } // add `responseCode` to the URL query string @@ -276,10 +284,7 @@ public String toUrlQueryString(String prefix) { "%sresponseCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getResponseCode()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getResponseCode())))); } // add `failureReason` to the URL query string @@ -289,10 +294,7 @@ public String toUrlQueryString(String prefix) { "%sfailureReason%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFailureReason()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 6adae358..e6adf355 100644 --- a/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ NotificationAttemptsPaginatedResponse.JSON_PROPERTY_DATA, NotificationAttemptsPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public NotificationAttemptsPaginatedResponse() {} - public NotificationAttemptsPaginatedResponse data(List data) { + @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; } @@ -65,11 +75,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public NotificationAttemptsPaginatedResponse next(String next) { + public NotificationAttemptsPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +98,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -195,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 73913d97..fa4499c8 100644 --- a/src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java @@ -13,11 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -26,19 +27,31 @@ /** NotificationPaginatedResponse */ @JsonPropertyOrder({ NotificationPaginatedResponse.JSON_PROPERTY_DATA, + NotificationPaginatedResponse.JSON_PROPERTY_TOTAL, NotificationPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @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"; - private String next; + @jakarta.annotation.Nullable private String next; public NotificationPaginatedResponse() {} - public NotificationPaginatedResponse data(List data) { + @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; } @@ -65,11 +78,35 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public NotificationPaginatedResponse next(String next) { + 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; } @@ -88,7 +125,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -104,12 +141,13 @@ public boolean equals(Object o) { 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, next); + return Objects.hash(data, total, next); } @Override @@ -117,6 +155,7 @@ 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(); @@ -188,6 +227,16 @@ 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( @@ -195,8 +244,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java b/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java index e1b38b46..e7f70895 100644 --- a/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java +++ b/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -32,32 +32,49 @@ NotificationWithData.JSON_PROPERTY_RESOURCE_ID, NotificationWithData.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private Long createdAt; + @jakarta.annotation.Nonnull private Long createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private Long updatedAt; + @jakarta.annotation.Nonnull private Long updatedAt; public static final String JSON_PROPERTY_STATUS = "status"; - private NotificationStatus status; + @jakarta.annotation.Nonnull private NotificationStatus status; public static final String JSON_PROPERTY_EVENT_TYPE = "eventType"; - private WebhookEvent eventType; + @jakarta.annotation.Nonnull private WebhookEvent eventType; public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; - private UUID resourceId; + @jakarta.annotation.Nullable private UUID resourceId; public static final String JSON_PROPERTY_DATA = "data"; - private Object data; + @jakarta.annotation.Nullable private Object data; public NotificationWithData() {} - public NotificationWithData id(UUID id) { + @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; } @@ -76,11 +93,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public NotificationWithData createdAt(Long createdAt) { + public NotificationWithData createdAt(@jakarta.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; return this; } @@ -99,11 +116,11 @@ public Long getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(Long createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; } - public NotificationWithData updatedAt(Long updatedAt) { + public NotificationWithData updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; return this; } @@ -122,11 +139,11 @@ public Long getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(Long updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; } - public NotificationWithData status(NotificationStatus status) { + public NotificationWithData status(@jakarta.annotation.Nonnull NotificationStatus status) { this.status = status; return this; } @@ -145,11 +162,11 @@ public NotificationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(NotificationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull NotificationStatus status) { this.status = status; } - public NotificationWithData eventType(WebhookEvent eventType) { + public NotificationWithData eventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { this.eventType = eventType; return this; } @@ -168,11 +185,11 @@ public WebhookEvent getEventType() { @JsonProperty(JSON_PROPERTY_EVENT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventType(WebhookEvent eventType) { + public void setEventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { this.eventType = eventType; } - public NotificationWithData resourceId(UUID resourceId) { + public NotificationWithData resourceId(@jakarta.annotation.Nullable UUID resourceId) { this.resourceId = resourceId; return this; } @@ -191,11 +208,11 @@ public UUID getResourceId() { @JsonProperty(JSON_PROPERTY_RESOURCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResourceId(UUID resourceId) { + public void setResourceId(@jakarta.annotation.Nullable UUID resourceId) { this.resourceId = resourceId; } - public NotificationWithData data(Object data) { + public NotificationWithData data(@jakarta.annotation.Nullable Object data) { this.data = data; return this; } @@ -214,7 +231,7 @@ public Object getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Object data) { + public void setData(@jakarta.annotation.Nullable Object data) { this.data = data; } @@ -305,10 +322,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `createdAt` to the URL query string @@ -318,9 +332,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `updatedAt` to the URL query string @@ -330,9 +342,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } // add `status` to the URL query string @@ -342,8 +352,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `eventType` to the URL query string @@ -353,9 +362,7 @@ public String toUrlQueryString(String prefix) { "%seventType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEventType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEventType())))); } // add `resourceId` to the URL query string @@ -365,9 +372,7 @@ public String toUrlQueryString(String prefix) { "%sresourceId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getResourceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getResourceId())))); } // add `data` to the URL query string @@ -377,8 +382,7 @@ public String toUrlQueryString(String prefix) { "%sdata%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getData()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/OneTimeAddress.java b/src/main/java/com/fireblocks/sdk/model/OneTimeAddress.java index 06137842..69d1f6ba 100644 --- a/src/main/java/com/fireblocks/sdk/model/OneTimeAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/OneTimeAddress.java @@ -13,27 +13,35 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** OneTimeAddress */ @JsonPropertyOrder({OneTimeAddress.JSON_PROPERTY_ADDRESS, OneTimeAddress.JSON_PROPERTY_TAG}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class OneTimeAddress { public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public OneTimeAddress() {} - public OneTimeAddress address(String address) { + @JsonCreator + public OneTimeAddress( + @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { + this.address = address; + } + + public OneTimeAddress address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } @@ -52,11 +60,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public OneTimeAddress tag(String tag) { + public OneTimeAddress tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -75,7 +83,7 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } @@ -158,8 +166,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `tag` to the URL query string @@ -169,8 +176,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/OneTimeAddressAccount.java b/src/main/java/com/fireblocks/sdk/model/OneTimeAddressAccount.java index 07fcbf7f..0688d14b 100644 --- a/src/main/java/com/fireblocks/sdk/model/OneTimeAddressAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/OneTimeAddressAccount.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,26 @@ OneTimeAddressAccount.JSON_PROPERTY_ONE_TIME_ADDRESS, OneTimeAddressAccount.JSON_PROPERTY_TAG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class OneTimeAddressAccount { public static final String JSON_PROPERTY_ONE_TIME_ADDRESS = "oneTimeAddress"; - private String oneTimeAddress; + @jakarta.annotation.Nonnull private String oneTimeAddress; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public OneTimeAddressAccount() {} - public OneTimeAddressAccount oneTimeAddress(String oneTimeAddress) { + @JsonCreator + public OneTimeAddressAccount( + @JsonProperty(value = JSON_PROPERTY_ONE_TIME_ADDRESS, required = true) + String oneTimeAddress) { + this.oneTimeAddress = oneTimeAddress; + } + + public OneTimeAddressAccount oneTimeAddress(@jakarta.annotation.Nonnull String oneTimeAddress) { this.oneTimeAddress = oneTimeAddress; return this; } @@ -55,11 +64,11 @@ public String getOneTimeAddress() { @JsonProperty(JSON_PROPERTY_ONE_TIME_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOneTimeAddress(String oneTimeAddress) { + public void setOneTimeAddress(@jakarta.annotation.Nonnull String oneTimeAddress) { this.oneTimeAddress = oneTimeAddress; } - public OneTimeAddressAccount tag(String tag) { + public OneTimeAddressAccount tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -78,7 +87,7 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } @@ -161,10 +170,7 @@ public String toUrlQueryString(String prefix) { "%soneTimeAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOneTimeAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOneTimeAddress())))); } // add `tag` to the URL query string @@ -174,8 +180,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 cdd3551f..c6366cea 100644 --- a/src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -28,17 +28,25 @@ OperationExecutionFailure.JSON_PROPERTY_REASON, OperationExecutionFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class OperationExecutionFailure { public static final String JSON_PROPERTY_REASON = "reason"; - private String reason; + @jakarta.annotation.Nonnull private String reason; public static final String JSON_PROPERTY_DATA = "data"; - private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public OperationExecutionFailure() {} - public OperationExecutionFailure reason(String reason) { + @JsonCreator + public OperationExecutionFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) String reason) { + this.reason = reason; + } + + public OperationExecutionFailure reason(@jakarta.annotation.Nonnull String reason) { this.reason = reason; return this; } @@ -57,11 +65,11 @@ public String getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(String reason) { + public void setReason(@jakarta.annotation.Nonnull String reason) { this.reason = reason; } - public OperationExecutionFailure data(Map data) { + public OperationExecutionFailure data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -88,7 +96,7 @@ public Map getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } @@ -171,8 +179,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string @@ -188,10 +195,7 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getData().get(_key), - URLEncoder.encode( - String.valueOf(getData().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java index 9c58e19e..f0b92443 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java @@ -26,17 +26,20 @@ PaginatedAddressResponse.JSON_PROPERTY_ADDRESSES, PaginatedAddressResponse.JSON_PROPERTY_PAGING }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaginatedAddressResponse { public static final String JSON_PROPERTY_ADDRESSES = "addresses"; - private List addresses; + @jakarta.annotation.Nullable private List addresses = new ArrayList<>(); public static final String JSON_PROPERTY_PAGING = "paging"; - private PaginatedAddressResponsePaging paging; + @jakarta.annotation.Nullable private PaginatedAddressResponsePaging paging; public PaginatedAddressResponse() {} - public PaginatedAddressResponse addresses(List addresses) { + public PaginatedAddressResponse addresses( + @jakarta.annotation.Nullable List addresses) { this.addresses = addresses; return this; } @@ -63,11 +66,12 @@ public List getAddresses() { @JsonProperty(JSON_PROPERTY_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddresses(List addresses) { + public void setAddresses(@jakarta.annotation.Nullable List addresses) { this.addresses = addresses; } - public PaginatedAddressResponse paging(PaginatedAddressResponsePaging paging) { + public PaginatedAddressResponse paging( + @jakarta.annotation.Nullable PaginatedAddressResponsePaging paging) { this.paging = paging; return this; } @@ -86,7 +90,7 @@ public PaginatedAddressResponsePaging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(PaginatedAddressResponsePaging paging) { + public void setPaging(@jakarta.annotation.Nullable PaginatedAddressResponsePaging paging) { this.paging = paging; } diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponsePaging.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponsePaging.java index 98defa5d..03bd2598 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponsePaging.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponsePaging.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ PaginatedAddressResponsePaging.JSON_PROPERTY_BEFORE, PaginatedAddressResponsePaging.JSON_PROPERTY_AFTER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaginatedAddressResponsePaging { public static final String JSON_PROPERTY_BEFORE = "before"; - private String before; + @jakarta.annotation.Nullable private String before; public static final String JSON_PROPERTY_AFTER = "after"; - private String after; + @jakarta.annotation.Nullable private String after; public PaginatedAddressResponsePaging() {} - public PaginatedAddressResponsePaging before(String before) { + public PaginatedAddressResponsePaging before(@jakarta.annotation.Nullable String before) { this.before = before; return this; } @@ -56,11 +57,11 @@ public String getBefore() { @JsonProperty(JSON_PROPERTY_BEFORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBefore(String before) { + public void setBefore(@jakarta.annotation.Nullable String before) { this.before = before; } - public PaginatedAddressResponsePaging after(String after) { + public PaginatedAddressResponsePaging after(@jakarta.annotation.Nullable String after) { this.after = after; return this; } @@ -80,7 +81,7 @@ public String getAfter() { @JsonProperty(JSON_PROPERTY_AFTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAfter(String after) { + public void setAfter(@jakarta.annotation.Nullable String after) { this.after = after; } @@ -164,8 +165,7 @@ public String toUrlQueryString(String prefix) { "%sbefore%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBefore()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBefore())))); } // add `after` to the URL query string @@ -175,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%safter%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAfter()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAfter())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java index 3a81b1cd..b265c68e 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java @@ -26,17 +26,20 @@ PaginatedAssetWalletResponse.JSON_PROPERTY_ASSET_WALLETS, PaginatedAssetWalletResponse.JSON_PROPERTY_PAGING }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaginatedAssetWalletResponse { public static final String JSON_PROPERTY_ASSET_WALLETS = "assetWallets"; - private List assetWallets; + @jakarta.annotation.Nullable private List assetWallets = new ArrayList<>(); public static final String JSON_PROPERTY_PAGING = "paging"; - private PaginatedAssetWalletResponsePaging paging; + @jakarta.annotation.Nullable private PaginatedAssetWalletResponsePaging paging; public PaginatedAssetWalletResponse() {} - public PaginatedAssetWalletResponse assetWallets(List assetWallets) { + public PaginatedAssetWalletResponse assetWallets( + @jakarta.annotation.Nullable List assetWallets) { this.assetWallets = assetWallets; return this; } @@ -63,11 +66,12 @@ public List getAssetWallets() { @JsonProperty(JSON_PROPERTY_ASSET_WALLETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetWallets(List assetWallets) { + public void setAssetWallets(@jakarta.annotation.Nullable List assetWallets) { this.assetWallets = assetWallets; } - public PaginatedAssetWalletResponse paging(PaginatedAssetWalletResponsePaging paging) { + public PaginatedAssetWalletResponse paging( + @jakarta.annotation.Nullable PaginatedAssetWalletResponsePaging paging) { this.paging = paging; return this; } @@ -86,7 +90,7 @@ public PaginatedAssetWalletResponsePaging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(PaginatedAssetWalletResponsePaging paging) { + public void setPaging(@jakarta.annotation.Nullable PaginatedAssetWalletResponsePaging paging) { this.paging = paging; } diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePaging.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePaging.java index a6127c6f..0cffde4e 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePaging.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePaging.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ PaginatedAssetWalletResponsePaging.JSON_PROPERTY_BEFORE, PaginatedAssetWalletResponsePaging.JSON_PROPERTY_AFTER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaginatedAssetWalletResponsePaging { public static final String JSON_PROPERTY_BEFORE = "before"; - private String before; + @jakarta.annotation.Nullable private String before; public static final String JSON_PROPERTY_AFTER = "after"; - private String after; + @jakarta.annotation.Nullable private String after; public PaginatedAssetWalletResponsePaging() {} - public PaginatedAssetWalletResponsePaging before(String before) { + public PaginatedAssetWalletResponsePaging before(@jakarta.annotation.Nullable String before) { this.before = before; return this; } @@ -56,11 +57,11 @@ public String getBefore() { @JsonProperty(JSON_PROPERTY_BEFORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBefore(String before) { + public void setBefore(@jakarta.annotation.Nullable String before) { this.before = before; } - public PaginatedAssetWalletResponsePaging after(String after) { + public PaginatedAssetWalletResponsePaging after(@jakarta.annotation.Nullable String after) { this.after = after; return this; } @@ -80,7 +81,7 @@ public String getAfter() { @JsonProperty(JSON_PROPERTY_AFTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAfter(String after) { + public void setAfter(@jakarta.annotation.Nullable String after) { this.after = after; } @@ -164,8 +165,7 @@ public String toUrlQueryString(String prefix) { "%sbefore%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBefore()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBefore())))); } // add `after` to the URL query string @@ -175,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%safter%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAfter()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAfter())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java index 4a78f2ad..bb3c64f2 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -28,20 +28,28 @@ PaginatedAssetsResponse.JSON_PROPERTY_DATA, PaginatedAssetsResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaginatedAssetsResponse { public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; + @jakarta.annotation.Nullable private BigDecimal total; public static final String JSON_PROPERTY_DATA = "data"; - private UnmanagedWallet data; + @jakarta.annotation.Nonnull private UnmanagedWallet data; public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public PaginatedAssetsResponse() {} - public PaginatedAssetsResponse total(BigDecimal total) { + @JsonCreator + public PaginatedAssetsResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) UnmanagedWallet data) { + this.data = data; + } + + public PaginatedAssetsResponse total(@jakarta.annotation.Nullable BigDecimal total) { this.total = total; return this; } @@ -60,11 +68,11 @@ public BigDecimal getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(BigDecimal total) { + public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { this.total = total; } - public PaginatedAssetsResponse data(UnmanagedWallet data) { + public PaginatedAssetsResponse data(@jakarta.annotation.Nonnull UnmanagedWallet data) { this.data = data; return this; } @@ -83,11 +91,11 @@ public UnmanagedWallet getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(UnmanagedWallet data) { + public void setData(@jakarta.annotation.Nonnull UnmanagedWallet data) { this.data = data; } - public PaginatedAssetsResponse next(String next) { + public PaginatedAssetsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -106,7 +114,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -191,8 +199,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } // add `data` to the URL query string @@ -207,8 +214,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Paging.java b/src/main/java/com/fireblocks/sdk/model/Paging.java index f6a452e8..8636ce50 100644 --- a/src/main/java/com/fireblocks/sdk/model/Paging.java +++ b/src/main/java/com/fireblocks/sdk/model/Paging.java @@ -13,24 +13,31 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** Paging */ @JsonPropertyOrder({Paging.JSON_PROPERTY_NEXT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Paging { public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nonnull private String next; public Paging() {} - public Paging next(String next) { + @JsonCreator + public Paging(@JsonProperty(value = JSON_PROPERTY_NEXT, required = true) String next) { + this.next = next; + } + + public Paging next(@jakarta.annotation.Nonnull String next) { this.next = next; return this; } @@ -49,7 +56,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nonnull String next) { this.next = next; } @@ -130,8 +137,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java b/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java index 97266a39..425f36a0 100644 --- a/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java @@ -21,14 +21,17 @@ /** PairApiKeyRequest */ @JsonPropertyOrder({PairApiKeyRequest.JSON_PROPERTY_CALLBACK_HANDLER}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private CallbackHandlerRequest callbackHandler; + @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; public PairApiKeyRequest() {} - public PairApiKeyRequest callbackHandler(CallbackHandlerRequest callbackHandler) { + public PairApiKeyRequest callbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; return this; } @@ -47,7 +50,8 @@ public CallbackHandlerRequest getCallbackHandler() { @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler(CallbackHandlerRequest callbackHandler) { + public void setCallbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; } diff --git a/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java b/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java index 459c6a1a..5f3837d5 100644 --- a/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -27,17 +27,24 @@ PairApiKeyResponse.JSON_PROPERTY_ID, PairApiKeyResponse.JSON_PROPERTY_CALLBACK_HANDLER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - private CallbackHandlerRequest callbackHandler; + @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; public PairApiKeyResponse() {} - public PairApiKeyResponse id(UUID id) { + @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; } @@ -56,11 +63,12 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public PairApiKeyResponse callbackHandler(CallbackHandlerRequest callbackHandler) { + public PairApiKeyResponse callbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; return this; } @@ -79,7 +87,8 @@ public CallbackHandlerRequest getCallbackHandler() { @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler(CallbackHandlerRequest callbackHandler) { + public void setCallbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; } @@ -160,10 +169,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `callbackHandler` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/Parameter.java b/src/main/java/com/fireblocks/sdk/model/Parameter.java index e0e041cf..07c42807 100644 --- a/src/main/java/com/fireblocks/sdk/model/Parameter.java +++ b/src/main/java/com/fireblocks/sdk/model/Parameter.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,26 +31,36 @@ Parameter.JSON_PROPERTY_TYPE, Parameter.JSON_PROPERTY_COMPONENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Parameter { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_INTERNAL_TYPE = "internalType"; - private String internalType; + @jakarta.annotation.Nullable private String internalType; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_COMPONENTS = "components"; - private List components; + @jakarta.annotation.Nullable private List components = new ArrayList<>(); public Parameter() {} - public Parameter name(String name) { + @JsonCreator + public Parameter( + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) String type) { + this.name = name; + this.type = type; + } + + public Parameter name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -69,11 +79,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Parameter description(String description) { + public Parameter description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -92,11 +102,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public Parameter internalType(String internalType) { + public Parameter internalType(@jakarta.annotation.Nullable String internalType) { this.internalType = internalType; return this; } @@ -115,11 +125,11 @@ public String getInternalType() { @JsonProperty(JSON_PROPERTY_INTERNAL_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInternalType(String internalType) { + public void setInternalType(@jakarta.annotation.Nullable String internalType) { this.internalType = internalType; } - public Parameter type(String type) { + public Parameter type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -138,11 +148,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public Parameter components(List components) { + public Parameter components(@jakarta.annotation.Nullable List components) { this.components = components; return this; } @@ -169,7 +179,7 @@ public List getComponents() { @JsonProperty(JSON_PROPERTY_COMPONENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComponents(List components) { + public void setComponents(@jakarta.annotation.Nullable List components) { this.components = components; } @@ -258,8 +268,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `description` to the URL query string @@ -269,10 +278,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `internalType` to the URL query string @@ -282,10 +288,7 @@ public String toUrlQueryString(String prefix) { "%sinternalType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInternalType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInternalType())))); } // add `type` to the URL query string @@ -295,8 +298,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `components` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java b/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java index e41d5630..0c6341c0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java +++ b/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,32 +33,42 @@ ParameterWithValue.JSON_PROPERTY_VALUE, ParameterWithValue.JSON_PROPERTY_FUNCTION_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ParameterWithValue { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_INTERNAL_TYPE = "internalType"; - private String internalType; + @jakarta.annotation.Nullable private String internalType; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_COMPONENTS = "components"; - private List components; + @jakarta.annotation.Nullable private List components = new ArrayList<>(); public static final String JSON_PROPERTY_VALUE = "value"; - private String value; + @jakarta.annotation.Nullable private String value; public static final String JSON_PROPERTY_FUNCTION_VALUE = "functionValue"; - private LeanAbiFunction functionValue; + @jakarta.annotation.Nullable private LeanAbiFunction functionValue; public ParameterWithValue() {} - public ParameterWithValue name(String name) { + @JsonCreator + public ParameterWithValue( + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) String type) { + this.name = name; + this.type = type; + } + + public ParameterWithValue name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -77,11 +87,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ParameterWithValue description(String description) { + public ParameterWithValue description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -100,11 +110,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public ParameterWithValue internalType(String internalType) { + public ParameterWithValue internalType(@jakarta.annotation.Nullable String internalType) { this.internalType = internalType; return this; } @@ -123,11 +133,11 @@ public String getInternalType() { @JsonProperty(JSON_PROPERTY_INTERNAL_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInternalType(String internalType) { + public void setInternalType(@jakarta.annotation.Nullable String internalType) { this.internalType = internalType; } - public ParameterWithValue type(String type) { + public ParameterWithValue type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -146,11 +156,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public ParameterWithValue components(List components) { + public ParameterWithValue components(@jakarta.annotation.Nullable List components) { this.components = components; return this; } @@ -177,11 +187,11 @@ public List getComponents() { @JsonProperty(JSON_PROPERTY_COMPONENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComponents(List components) { + public void setComponents(@jakarta.annotation.Nullable List components) { this.components = components; } - public ParameterWithValue value(String value) { + public ParameterWithValue value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -200,11 +210,12 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } - public ParameterWithValue functionValue(LeanAbiFunction functionValue) { + public ParameterWithValue functionValue( + @jakarta.annotation.Nullable LeanAbiFunction functionValue) { this.functionValue = functionValue; return this; } @@ -224,7 +235,7 @@ public LeanAbiFunction getFunctionValue() { @JsonProperty(JSON_PROPERTY_FUNCTION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFunctionValue(LeanAbiFunction functionValue) { + public void setFunctionValue(@jakarta.annotation.Nullable LeanAbiFunction functionValue) { this.functionValue = functionValue; } @@ -318,8 +329,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `description` to the URL query string @@ -329,10 +339,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `internalType` to the URL query string @@ -342,10 +349,7 @@ public String toUrlQueryString(String prefix) { "%sinternalType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInternalType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInternalType())))); } // add `type` to the URL query string @@ -355,8 +359,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `components` to the URL query string @@ -389,8 +392,7 @@ public String toUrlQueryString(String prefix) { "%svalue%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getValue()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getValue())))); } // add `functionValue` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PayeeAccount.java b/src/main/java/com/fireblocks/sdk/model/PayeeAccount.java index c036f7cc..95ff3ade 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayeeAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/PayeeAccount.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** PayeeAccount */ @JsonPropertyOrder({PayeeAccount.JSON_PROPERTY_ID, PayeeAccount.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PayeeAccount { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private PayeeAccountType type; + @jakarta.annotation.Nonnull private PayeeAccountType type; public PayeeAccount() {} - public PayeeAccount id(String id) { + @JsonCreator + public PayeeAccount( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) PayeeAccountType type) { + this.id = id; + this.type = type; + } + + public PayeeAccount id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -52,11 +62,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public PayeeAccount type(PayeeAccountType type) { + public PayeeAccount type(@jakarta.annotation.Nonnull PayeeAccountType type) { this.type = type; return this; } @@ -75,7 +85,7 @@ public PayeeAccountType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(PayeeAccountType type) { + public void setType(@jakarta.annotation.Nonnull PayeeAccountType type) { this.type = type; } @@ -156,10 +166,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -169,8 +176,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PayeeAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/PayeeAccountResponse.java index d17c7c97..d4ac1bea 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayeeAccountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PayeeAccountResponse.java @@ -16,24 +16,25 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** PayeeAccountResponse */ @JsonPropertyOrder({PayeeAccountResponse.JSON_PROPERTY_ID, PayeeAccountResponse.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PayeeAccountResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private PayeeAccountType type; + @jakarta.annotation.Nullable private PayeeAccountType type; public PayeeAccountResponse() {} - public PayeeAccountResponse id(String id) { + public PayeeAccountResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -52,11 +53,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public PayeeAccountResponse type(PayeeAccountType type) { + public PayeeAccountResponse type(@jakarta.annotation.Nullable PayeeAccountType type) { this.type = type; return this; } @@ -75,7 +76,7 @@ public PayeeAccountType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(PayeeAccountType type) { + public void setType(@jakarta.annotation.Nullable PayeeAccountType type) { this.type = type; } @@ -156,10 +157,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -169,8 +167,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PaymentAccount.java b/src/main/java/com/fireblocks/sdk/model/PaymentAccount.java index 4c872b23..614bbcfa 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaymentAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/PaymentAccount.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** PaymentAccount */ @JsonPropertyOrder({PaymentAccount.JSON_PROPERTY_ID, PaymentAccount.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaymentAccount { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private PaymentAccountType type; + @jakarta.annotation.Nonnull private PaymentAccountType type; public PaymentAccount() {} - public PaymentAccount id(String id) { + @JsonCreator + public PaymentAccount( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) PaymentAccountType type) { + this.id = id; + this.type = type; + } + + public PaymentAccount id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -52,11 +62,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public PaymentAccount type(PaymentAccountType type) { + public PaymentAccount type(@jakarta.annotation.Nonnull PaymentAccountType type) { this.type = type; return this; } @@ -75,7 +85,7 @@ public PaymentAccountType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(PaymentAccountType type) { + public void setType(@jakarta.annotation.Nonnull PaymentAccountType type) { this.type = type; } @@ -156,10 +166,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -169,8 +176,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PaymentAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/PaymentAccountResponse.java index 9cdf5aa1..14ca2575 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaymentAccountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PaymentAccountResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ PaymentAccountResponse.JSON_PROPERTY_ID, PaymentAccountResponse.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PaymentAccountResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private PaymentAccountType type; + @jakarta.annotation.Nullable private PaymentAccountType type; public PaymentAccountResponse() {} - public PaymentAccountResponse id(String id) { + public PaymentAccountResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -55,11 +56,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public PaymentAccountResponse type(PaymentAccountType type) { + public PaymentAccountResponse type(@jakarta.annotation.Nullable PaymentAccountType type) { this.type = type; return this; } @@ -78,7 +79,7 @@ public PaymentAccountType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(PaymentAccountType type) { + public void setType(@jakarta.annotation.Nullable PaymentAccountType type) { this.type = type; } @@ -159,10 +160,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -172,8 +170,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PayoutInstruction.java b/src/main/java/com/fireblocks/sdk/model/PayoutInstruction.java index 59004182..07b204d3 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayoutInstruction.java +++ b/src/main/java/com/fireblocks/sdk/model/PayoutInstruction.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,31 @@ PayoutInstruction.JSON_PROPERTY_PAYEE_ACCOUNT, PayoutInstruction.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PayoutInstruction { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_PAYEE_ACCOUNT = "payeeAccount"; - private PayeeAccount payeeAccount; + @jakarta.annotation.Nonnull private PayeeAccount payeeAccount; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private InstructionAmount amount; + @jakarta.annotation.Nonnull private InstructionAmount amount; public PayoutInstruction() {} - public PayoutInstruction id(String id) { + @JsonCreator + public PayoutInstruction( + @JsonProperty(value = JSON_PROPERTY_PAYEE_ACCOUNT, required = true) + PayeeAccount payeeAccount, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) InstructionAmount amount) { + this.payeeAccount = payeeAccount; + this.amount = amount; + } + + public PayoutInstruction id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -59,11 +70,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public PayoutInstruction payeeAccount(PayeeAccount payeeAccount) { + public PayoutInstruction payeeAccount(@jakarta.annotation.Nonnull PayeeAccount payeeAccount) { this.payeeAccount = payeeAccount; return this; } @@ -82,11 +93,11 @@ public PayeeAccount getPayeeAccount() { @JsonProperty(JSON_PROPERTY_PAYEE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayeeAccount(PayeeAccount payeeAccount) { + public void setPayeeAccount(@jakarta.annotation.Nonnull PayeeAccount payeeAccount) { this.payeeAccount = payeeAccount; } - public PayoutInstruction amount(InstructionAmount amount) { + public PayoutInstruction amount(@jakarta.annotation.Nonnull InstructionAmount amount) { this.amount = amount; return this; } @@ -105,7 +116,7 @@ public InstructionAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(InstructionAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull InstructionAmount amount) { this.amount = amount; } @@ -188,10 +199,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `payeeAccount` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java b/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java index b837a299..fd84f14e 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,26 +31,43 @@ PayoutInstructionResponse.JSON_PROPERTY_STATE, PayoutInstructionResponse.JSON_PROPERTY_TRANSACTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PayoutInstructionResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_PAYEE_ACCOUNT = "payeeAccount"; - private PayeeAccountResponse payeeAccount; + @jakarta.annotation.Nonnull private PayeeAccountResponse payeeAccount; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private InstructionAmount amount; + @jakarta.annotation.Nonnull private InstructionAmount amount; public static final String JSON_PROPERTY_STATE = "state"; - private PayoutInstructionState state; + @jakarta.annotation.Nonnull private PayoutInstructionState state; public static final String JSON_PROPERTY_TRANSACTIONS = "transactions"; - private List transactions = new ArrayList<>(); + @jakarta.annotation.Nonnull private List transactions = new ArrayList<>(); public PayoutInstructionResponse() {} - public PayoutInstructionResponse id(String id) { + @JsonCreator + public PayoutInstructionResponse( + @JsonProperty(value = JSON_PROPERTY_PAYEE_ACCOUNT, required = true) + PayeeAccountResponse payeeAccount, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) InstructionAmount amount, + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) + PayoutInstructionState state, + @JsonProperty(value = JSON_PROPERTY_TRANSACTIONS, required = true) + List transactions) { + this.payeeAccount = payeeAccount; + this.amount = amount; + this.state = state; + this.transactions = transactions; + } + + public PayoutInstructionResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -69,11 +86,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public PayoutInstructionResponse payeeAccount(PayeeAccountResponse payeeAccount) { + public PayoutInstructionResponse payeeAccount( + @jakarta.annotation.Nonnull PayeeAccountResponse payeeAccount) { this.payeeAccount = payeeAccount; return this; } @@ -92,11 +110,11 @@ public PayeeAccountResponse getPayeeAccount() { @JsonProperty(JSON_PROPERTY_PAYEE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayeeAccount(PayeeAccountResponse payeeAccount) { + public void setPayeeAccount(@jakarta.annotation.Nonnull PayeeAccountResponse payeeAccount) { this.payeeAccount = payeeAccount; } - public PayoutInstructionResponse amount(InstructionAmount amount) { + public PayoutInstructionResponse amount(@jakarta.annotation.Nonnull InstructionAmount amount) { this.amount = amount; return this; } @@ -115,11 +133,12 @@ public InstructionAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(InstructionAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull InstructionAmount amount) { this.amount = amount; } - public PayoutInstructionResponse state(PayoutInstructionState state) { + public PayoutInstructionResponse state( + @jakarta.annotation.Nonnull PayoutInstructionState state) { this.state = state; return this; } @@ -138,11 +157,12 @@ public PayoutInstructionState getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setState(PayoutInstructionState state) { + public void setState(@jakarta.annotation.Nonnull PayoutInstructionState state) { this.state = state; } - public PayoutInstructionResponse transactions(List transactions) { + public PayoutInstructionResponse transactions( + @jakarta.annotation.Nonnull List transactions) { this.transactions = transactions; return this; } @@ -169,7 +189,7 @@ public List getTransactions() { @JsonProperty(JSON_PROPERTY_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactions(List transactions) { + public void setTransactions(@jakarta.annotation.Nonnull List transactions) { this.transactions = transactions; } @@ -256,10 +276,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `payeeAccount` to the URL query string @@ -279,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } // add `transactions` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java b/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java index 59099e7b..0bd67ed4 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -36,38 +36,60 @@ PayoutResponse.JSON_PROPERTY_INSTRUCTION_SET, PayoutResponse.JSON_PROPERTY_REPORT_URL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PayoutResponse { public static final String JSON_PROPERTY_PAYOUT_ID = "payoutId"; - private String payoutId; + @jakarta.annotation.Nonnull private String payoutId; public static final String JSON_PROPERTY_PAYMENT_ACCOUNT = "paymentAccount"; - private PaymentAccountResponse paymentAccount; + @jakarta.annotation.Nonnull private PaymentAccountResponse paymentAccount; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private BigDecimal createdAt; + @jakarta.annotation.Nonnull private BigDecimal createdAt; public static final String JSON_PROPERTY_STATE = "state"; - private PayoutState state; + @jakarta.annotation.Nonnull private PayoutState state; public static final String JSON_PROPERTY_STATUS = "status"; - private PayoutStatus status; + @jakarta.annotation.Nonnull private PayoutStatus status; public static final String JSON_PROPERTY_REASON_OF_FAILURE = "reasonOfFailure"; - private String reasonOfFailure; + @jakarta.annotation.Nullable private String reasonOfFailure; public static final String JSON_PROPERTY_INIT_METHOD = "initMethod"; - private PayoutInitMethod initMethod; + @jakarta.annotation.Nullable private PayoutInitMethod initMethod; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; + + @jakarta.annotation.Nonnull private List instructionSet = new ArrayList<>(); public static final String JSON_PROPERTY_REPORT_URL = "reportUrl"; - private String reportUrl; + @jakarta.annotation.Nullable private String reportUrl; public PayoutResponse() {} - public PayoutResponse payoutId(String payoutId) { + @JsonCreator + public PayoutResponse( + @JsonProperty(value = JSON_PROPERTY_PAYOUT_ID, required = true) String payoutId, + @JsonProperty(value = JSON_PROPERTY_PAYMENT_ACCOUNT, required = true) + PaymentAccountResponse paymentAccount, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) BigDecimal createdAt, + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) PayoutState state, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) PayoutStatus status, + @JsonProperty(value = JSON_PROPERTY_INSTRUCTION_SET, required = true) + List instructionSet) { + this.payoutId = payoutId; + this.paymentAccount = paymentAccount; + this.createdAt = createdAt; + this.state = state; + this.status = status; + this.instructionSet = instructionSet; + } + + public PayoutResponse payoutId(@jakarta.annotation.Nonnull String payoutId) { this.payoutId = payoutId; return this; } @@ -86,11 +108,12 @@ public String getPayoutId() { @JsonProperty(JSON_PROPERTY_PAYOUT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPayoutId(String payoutId) { + public void setPayoutId(@jakarta.annotation.Nonnull String payoutId) { this.payoutId = payoutId; } - public PayoutResponse paymentAccount(PaymentAccountResponse paymentAccount) { + public PayoutResponse paymentAccount( + @jakarta.annotation.Nonnull PaymentAccountResponse paymentAccount) { this.paymentAccount = paymentAccount; return this; } @@ -109,11 +132,12 @@ public PaymentAccountResponse getPaymentAccount() { @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPaymentAccount(PaymentAccountResponse paymentAccount) { + public void setPaymentAccount( + @jakarta.annotation.Nonnull PaymentAccountResponse paymentAccount) { this.paymentAccount = paymentAccount; } - public PayoutResponse createdAt(BigDecimal createdAt) { + public PayoutResponse createdAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; return this; } @@ -132,11 +156,11 @@ public BigDecimal getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; } - public PayoutResponse state(PayoutState state) { + public PayoutResponse state(@jakarta.annotation.Nonnull PayoutState state) { this.state = state; return this; } @@ -155,11 +179,11 @@ public PayoutState getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setState(PayoutState state) { + public void setState(@jakarta.annotation.Nonnull PayoutState state) { this.state = state; } - public PayoutResponse status(PayoutStatus status) { + public PayoutResponse status(@jakarta.annotation.Nonnull PayoutStatus status) { this.status = status; return this; } @@ -178,11 +202,11 @@ public PayoutStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(PayoutStatus status) { + public void setStatus(@jakarta.annotation.Nonnull PayoutStatus status) { this.status = status; } - public PayoutResponse reasonOfFailure(String reasonOfFailure) { + public PayoutResponse reasonOfFailure(@jakarta.annotation.Nullable String reasonOfFailure) { this.reasonOfFailure = reasonOfFailure; return this; } @@ -208,11 +232,11 @@ public String getReasonOfFailure() { @JsonProperty(JSON_PROPERTY_REASON_OF_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReasonOfFailure(String reasonOfFailure) { + public void setReasonOfFailure(@jakarta.annotation.Nullable String reasonOfFailure) { this.reasonOfFailure = reasonOfFailure; } - public PayoutResponse initMethod(PayoutInitMethod initMethod) { + public PayoutResponse initMethod(@jakarta.annotation.Nullable PayoutInitMethod initMethod) { this.initMethod = initMethod; return this; } @@ -231,11 +255,12 @@ public PayoutInitMethod getInitMethod() { @JsonProperty(JSON_PROPERTY_INIT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInitMethod(PayoutInitMethod initMethod) { + public void setInitMethod(@jakarta.annotation.Nullable PayoutInitMethod initMethod) { this.initMethod = initMethod; } - public PayoutResponse instructionSet(List instructionSet) { + public PayoutResponse instructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; return this; } @@ -262,11 +287,12 @@ public List getInstructionSet() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_SET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInstructionSet(List instructionSet) { + public void setInstructionSet( + @jakarta.annotation.Nonnull List instructionSet) { this.instructionSet = instructionSet; } - public PayoutResponse reportUrl(String reportUrl) { + public PayoutResponse reportUrl(@jakarta.annotation.Nullable String reportUrl) { this.reportUrl = reportUrl; return this; } @@ -285,7 +311,7 @@ public String getReportUrl() { @JsonProperty(JSON_PROPERTY_REPORT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReportUrl(String reportUrl) { + public void setReportUrl(@jakarta.annotation.Nullable String reportUrl) { this.reportUrl = reportUrl; } @@ -391,8 +417,7 @@ public String toUrlQueryString(String prefix) { "%spayoutId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPayoutId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPayoutId())))); } // add `paymentAccount` to the URL query string @@ -407,9 +432,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `state` to the URL query string @@ -419,8 +442,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } // add `status` to the URL query string @@ -430,8 +452,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `reasonOfFailure` to the URL query string @@ -441,10 +462,7 @@ public String toUrlQueryString(String prefix) { "%sreasonOfFailure%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getReasonOfFailure()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReasonOfFailure())))); } // add `initMethod` to the URL query string @@ -454,9 +472,7 @@ public String toUrlQueryString(String prefix) { "%sinitMethod%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInitMethod()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInitMethod())))); } // add `instructionSet` to the URL query string @@ -489,9 +505,7 @@ public String toUrlQueryString(String prefix) { "%sreportUrl%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getReportUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReportUrl())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java b/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java index fa750450..6005fe8f 100644 --- a/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -28,20 +28,35 @@ PeerAdapterInfo.JSON_PROPERTY_ADAPTER_ADDRESS, PeerAdapterInfo.JSON_PROPERTY_BASE_ASSET_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID adapterTokenLinkId; + @jakarta.annotation.Nonnull private UUID adapterTokenLinkId; public static final String JSON_PROPERTY_ADAPTER_ADDRESS = "adapterAddress"; - private String adapterAddress; + @jakarta.annotation.Nonnull private String adapterAddress; public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - private String baseAssetId; + @jakarta.annotation.Nonnull private String baseAssetId; public PeerAdapterInfo() {} - public PeerAdapterInfo adapterTokenLinkId(UUID adapterTokenLinkId) { + @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; } @@ -60,11 +75,11 @@ public UUID getAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkId(UUID adapterTokenLinkId) { + public void setAdapterTokenLinkId(@jakarta.annotation.Nonnull UUID adapterTokenLinkId) { this.adapterTokenLinkId = adapterTokenLinkId; } - public PeerAdapterInfo adapterAddress(String adapterAddress) { + public PeerAdapterInfo adapterAddress(@jakarta.annotation.Nonnull String adapterAddress) { this.adapterAddress = adapterAddress; return this; } @@ -83,11 +98,11 @@ public String getAdapterAddress() { @JsonProperty(JSON_PROPERTY_ADAPTER_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterAddress(String adapterAddress) { + public void setAdapterAddress(@jakarta.annotation.Nonnull String adapterAddress) { this.adapterAddress = adapterAddress; } - public PeerAdapterInfo baseAssetId(String baseAssetId) { + public PeerAdapterInfo baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; return this; } @@ -106,7 +121,7 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { this.baseAssetId = baseAssetId; } @@ -193,10 +208,7 @@ public String toUrlQueryString(String prefix) { "%sadapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAdapterTokenLinkId())))); } // add `adapterAddress` to the URL query string @@ -206,10 +218,7 @@ public String toUrlQueryString(String prefix) { "%sadapterAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdapterAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAdapterAddress())))); } // add `baseAssetId` to the URL query string @@ -219,10 +228,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } 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 new file mode 100644 index 00000000..a6e0c3e4 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java @@ -0,0 +1,598 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/Players.java b/src/main/java/com/fireblocks/sdk/model/Players.java index 09fff291..eb80d1e8 100644 --- a/src/main/java/com/fireblocks/sdk/model/Players.java +++ b/src/main/java/com/fireblocks/sdk/model/Players.java @@ -18,23 +18,24 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; /** Type of the player */ public enum TypeEnum { - MOBILE("MOBILE"), + MOBILE(String.valueOf("MOBILE")), - CLOUD("CLOUD"); + CLOUD(String.valueOf("CLOUD")); private String value; @@ -64,11 +65,19 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public Players() {} - public Players id(String id) { + @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; } @@ -87,11 +96,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Players type(TypeEnum type) { + public Players type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -110,7 +119,7 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } @@ -190,10 +199,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -203,8 +209,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/PolicyAndValidationResponse.java index 228cb9b5..71801725 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyAndValidationResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyAndValidationResponse.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,17 +25,28 @@ PolicyAndValidationResponse.JSON_PROPERTY_POLICY, PolicyAndValidationResponse.JSON_PROPERTY_VALIDATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyAndValidationResponse { public static final String JSON_PROPERTY_POLICY = "policy"; - private PolicyResponse policy; + @jakarta.annotation.Nonnull private PolicyResponse policy; public static final String JSON_PROPERTY_VALIDATION = "validation"; - private PolicyValidation validation; + @jakarta.annotation.Nonnull private PolicyValidation validation; public PolicyAndValidationResponse() {} - public PolicyAndValidationResponse policy(PolicyResponse policy) { + @JsonCreator + public PolicyAndValidationResponse( + @JsonProperty(value = JSON_PROPERTY_POLICY, required = true) PolicyResponse policy, + @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) + PolicyValidation validation) { + this.policy = policy; + this.validation = validation; + } + + public PolicyAndValidationResponse policy(@jakarta.annotation.Nonnull PolicyResponse policy) { this.policy = policy; return this; } @@ -53,11 +65,12 @@ public PolicyResponse getPolicy() { @JsonProperty(JSON_PROPERTY_POLICY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicy(PolicyResponse policy) { + public void setPolicy(@jakarta.annotation.Nonnull PolicyResponse policy) { this.policy = policy; } - public PolicyAndValidationResponse validation(PolicyValidation validation) { + public PolicyAndValidationResponse validation( + @jakarta.annotation.Nonnull PolicyValidation validation) { this.validation = validation; return this; } @@ -76,7 +89,7 @@ public PolicyValidation getValidation() { @JsonProperty(JSON_PROPERTY_VALIDATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidation(PolicyValidation validation) { + public void setValidation(@jakarta.annotation.Nonnull PolicyValidation validation) { this.validation = validation; } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java b/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java index bb5e9e5c..2a174bd4 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,17 +29,28 @@ PolicyCheckResult.JSON_PROPERTY_ERRORS, PolicyCheckResult.JSON_PROPERTY_RESULTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyCheckResult { public static final String JSON_PROPERTY_ERRORS = "errors"; - private BigDecimal errors; + @jakarta.annotation.Nonnull private BigDecimal errors; public static final String JSON_PROPERTY_RESULTS = "results"; - private List results = new ArrayList<>(); + @jakarta.annotation.Nonnull private List results = new ArrayList<>(); public PolicyCheckResult() {} - public PolicyCheckResult errors(BigDecimal errors) { + @JsonCreator + public PolicyCheckResult( + @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 PolicyCheckResult errors(@jakarta.annotation.Nonnull BigDecimal errors) { this.errors = errors; return this; } @@ -58,11 +69,12 @@ public BigDecimal getErrors() { @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(BigDecimal errors) { + public void setErrors(@jakarta.annotation.Nonnull BigDecimal errors) { this.errors = errors; } - public PolicyCheckResult results(List results) { + public PolicyCheckResult results( + @jakarta.annotation.Nonnull List results) { this.results = results; return this; } @@ -89,7 +101,7 @@ public List getResults() { @JsonProperty(JSON_PROPERTY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResults(List results) { + public void setResults(@jakarta.annotation.Nonnull List results) { this.results = results; } @@ -172,8 +184,7 @@ public String toUrlQueryString(String prefix) { "%serrors%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getErrors()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrors())))); } // add `results` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java b/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java index adc0484f..c37d816c 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java @@ -13,44 +13,57 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; -/** Policy related metadata */ +/** Policy 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_PUBLISHED_AT, + PolicyMetadata.JSON_PROPERTY_POLICY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyMetadata { public static final String JSON_PROPERTY_EDITED_BY = "editedBy"; - private String editedBy; + @jakarta.annotation.Nullable private String editedBy; public static final String JSON_PROPERTY_EDITED_AT = "editedAt"; - private String editedAt; + @jakarta.annotation.Nullable private String editedAt; public static final String JSON_PROPERTY_PUBLISHED_BY = "publishedBy"; - private String publishedBy; + @jakarta.annotation.Nullable private String publishedBy; public static final String JSON_PROPERTY_PUBLISHED_AT = "publishedAt"; - private String publishedAt; + @jakarta.annotation.Nullable private String publishedAt; + + public static final String JSON_PROPERTY_POLICY_TYPE = "policyType"; + @jakarta.annotation.Nonnull private PolicyType policyType; public PolicyMetadata() {} - public PolicyMetadata editedBy(String editedBy) { + @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 */ @@ -63,11 +76,11 @@ public String getEditedBy() { @JsonProperty(JSON_PROPERTY_EDITED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditedBy(String editedBy) { + public void setEditedBy(@jakarta.annotation.Nullable String editedBy) { this.editedBy = editedBy; } - public PolicyMetadata editedAt(String editedAt) { + public PolicyMetadata editedAt(@jakarta.annotation.Nullable String editedAt) { this.editedAt = editedAt; return this; } @@ -86,17 +99,17 @@ public String getEditedAt() { @JsonProperty(JSON_PROPERTY_EDITED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditedAt(String editedAt) { + public void setEditedAt(@jakarta.annotation.Nullable String editedAt) { this.editedAt = editedAt; } - public PolicyMetadata publishedBy(String publishedBy) { + public PolicyMetadata publishedBy(@jakarta.annotation.Nullable String publishedBy) { this.publishedBy = publishedBy; return this; } /** - * The user id of the user who last published the policy + * The user ID of the user who last published the policy * * @return publishedBy */ @@ -109,11 +122,11 @@ public String getPublishedBy() { @JsonProperty(JSON_PROPERTY_PUBLISHED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublishedBy(String publishedBy) { + public void setPublishedBy(@jakarta.annotation.Nullable String publishedBy) { this.publishedBy = publishedBy; } - public PolicyMetadata publishedAt(String publishedAt) { + public PolicyMetadata publishedAt(@jakarta.annotation.Nullable String publishedAt) { this.publishedAt = publishedAt; return this; } @@ -132,10 +145,33 @@ public String getPublishedAt() { @JsonProperty(JSON_PROPERTY_PUBLISHED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublishedAt(String publishedAt) { + 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) { @@ -149,12 +185,13 @@ 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.publishedAt, policyMetadata.publishedAt) + && Objects.equals(this.policyType, policyMetadata.policyType); } @Override public int hashCode() { - return Objects.hash(editedBy, editedAt, publishedBy, publishedAt); + return Objects.hash(editedBy, editedAt, publishedBy, publishedAt, policyType); } @Override @@ -165,6 +202,7 @@ 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(); } @@ -219,8 +257,7 @@ public String toUrlQueryString(String prefix) { "%seditedBy%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEditedBy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEditedBy())))); } // add `editedAt` to the URL query string @@ -230,8 +267,7 @@ public String toUrlQueryString(String prefix) { "%seditedAt%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEditedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEditedAt())))); } // add `publishedBy` to the URL query string @@ -241,10 +277,7 @@ public String toUrlQueryString(String prefix) { "%spublishedBy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublishedBy()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublishedBy())))); } // add `publishedAt` to the URL query string @@ -254,10 +287,17 @@ public String toUrlQueryString(String prefix) { "%spublishedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublishedAt()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 new file mode 100644 index 00000000..82f843b0 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/PolicyOperator.java @@ -0,0 +1,64 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 778f29d5..b0e1a84b 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyResponse.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; @@ -23,17 +24,28 @@ /** Response object for policy operations */ @JsonPropertyOrder({PolicyResponse.JSON_PROPERTY_RULES, PolicyResponse.JSON_PROPERTY_METADATA}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyResponse { public static final String JSON_PROPERTY_RULES = "rules"; - private List rules = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); public static final String JSON_PROPERTY_METADATA = "metadata"; - private PolicyMetadata metadata; + @jakarta.annotation.Nonnull private PolicyMetadata metadata; public PolicyResponse() {} - public PolicyResponse rules(List rules) { + @JsonCreator + public PolicyResponse( + @JsonProperty(value = JSON_PROPERTY_RULES, required = true) List rules, + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) + PolicyMetadata metadata) { + this.rules = rules; + this.metadata = metadata; + } + + public PolicyResponse rules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; return this; } @@ -60,11 +72,11 @@ public List getRules() { @JsonProperty(JSON_PROPERTY_RULES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; } - public PolicyResponse metadata(PolicyMetadata metadata) { + public PolicyResponse metadata(@jakarta.annotation.Nonnull PolicyMetadata metadata) { this.metadata = metadata; return this; } @@ -83,7 +95,7 @@ public PolicyMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(PolicyMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull PolicyMetadata metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRule.java b/src/main/java/com/fireblocks/sdk/model/PolicyRule.java index 99ee11e9..eec18ee1 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRule.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRule.java @@ -18,93 +18,55 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** Policy rule which is enforced on transactions */ +/** V2 Policy rule which is enforced on transactions */ @JsonPropertyOrder({ - 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_NAME, + PolicyRule.JSON_PROPERTY_ID, + PolicyRule.JSON_PROPERTY_POLICY_ENGINE_VERSION, PolicyRule.JSON_PROPERTY_TYPE, - PolicyRule.JSON_PROPERTY_ACTION, + PolicyRule.JSON_PROPERTY_SUB_TYPE, + PolicyRule.JSON_PROPERTY_INITIATOR, PolicyRule.JSON_PROPERTY_ASSET, - 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_SOURCE, + PolicyRule.JSON_PROPERTY_DESTINATION, + PolicyRule.JSON_PROPERTY_ACCOUNT, + PolicyRule.JSON_PROPERTY_VERDICT, + PolicyRule.JSON_PROPERTY_AMOUNT_OVER_TIME, PolicyRule.JSON_PROPERTY_AMOUNT, - 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 + 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 }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyRule { - public static final String JSON_PROPERTY_OPERATOR = "operator"; - private String operator; + public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; - public static final String JSON_PROPERTY_OPERATORS = "operators"; - private PolicyRuleOperators operators; + public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private String id; - /** - * 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("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"); + /** Policy engine version */ + public enum PolicyEngineVersionEnum { + V2(String.valueOf("v2")); private String value; - TransactionTypeEnum(String value) { + PolicyEngineVersionEnum(String value) { this.value = value; } @@ -119,8 +81,8 @@ public String toString() { } @JsonCreator - public static TransactionTypeEnum fromValue(String value) { - for (TransactionTypeEnum b : TransactionTypeEnum.values()) { + public static PolicyEngineVersionEnum fromValue(String value) { + for (PolicyEngineVersionEnum b : PolicyEngineVersionEnum.values()) { if (b.value.equals(value)) { return b; } @@ -129,1006 +91,654 @@ public static TransactionTypeEnum fromValue(String value) { } } - public static final String JSON_PROPERTY_TRANSACTION_TYPE = "transactionType"; - private TransactionTypeEnum transactionType; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNER = "designatedSigner"; - private String designatedSigner; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNERS = "designatedSigners"; - private PolicyRuleDesignatedSigners designatedSigners; - - /** Policy rule type */ - public enum TypeEnum { - TRANSFER("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_POLICY_ENGINE_VERSION = "policyEngineVersion"; + @jakarta.annotation.Nonnull private PolicyEngineVersionEnum policyEngineVersion; public static final String JSON_PROPERTY_TYPE = "type"; - 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("ALLOW"), - - BLOCK("BLOCK"), - - _2_TIER("2-TIER"); + @jakarta.annotation.Nonnull private PolicyType type; - private String value; + public static final String JSON_PROPERTY_SUB_TYPE = "subType"; + @jakarta.annotation.Nullable private PolicyType subType; - 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"; - private ActionEnum action; + public static final String JSON_PROPERTY_INITIATOR = "initiator"; + @jakarta.annotation.Nonnull private InitiatorConfigPattern initiator; public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; - - public static final String JSON_PROPERTY_SRC_TYPE = "srcType"; - private PolicySrcOrDestType srcType; - - public static final String JSON_PROPERTY_SRC_SUB_TYPE = "srcSubType"; - private PolicySrcOrDestSubType srcSubType; + @jakarta.annotation.Nonnull private AssetConfig asset; - public static final String JSON_PROPERTY_SRC_ID = "srcId"; - private String srcId; + public static final String JSON_PROPERTY_SOURCE = "source"; + @jakarta.annotation.Nonnull private AccountConfig source; - public static final String JSON_PROPERTY_SRC = "src"; - private PolicyRuleSrc src; + public static final String JSON_PROPERTY_DESTINATION = "destination"; + @jakarta.annotation.Nullable private DestinationConfig destination; - public static final String JSON_PROPERTY_DST_TYPE = "dstType"; - private PolicySrcOrDestType dstType; - - public static final String JSON_PROPERTY_DST_SUB_TYPE = "dstSubType"; - private PolicySrcOrDestSubType dstSubType; - - public static final String JSON_PROPERTY_DST_ID = "dstId"; - private String dstId; - - public static final String JSON_PROPERTY_DST = "dst"; - 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("WHITELISTED"), + public static final String JSON_PROPERTY_ACCOUNT = "account"; + @jakarta.annotation.Nullable private AccountConfig account; - ONE_TIME("ONE_TIME"), + public static final String JSON_PROPERTY_VERDICT = "verdict"; + @jakarta.annotation.Nonnull private VerdictConfig verdict; - STAR("*"); - - 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_AMOUNT_OVER_TIME = "amountOverTime"; + @jakarta.annotation.Nullable private AmountOverTimeConfig amountOverTime; - public static final String JSON_PROPERTY_DST_ADDRESS_TYPE = "dstAddressType"; - private DstAddressTypeEnum dstAddressType; + public static final String JSON_PROPERTY_AMOUNT = "amount"; + @jakarta.annotation.Nullable private AmountRange amount; - /** - * * 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("USD"), + public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor"; + @jakarta.annotation.Nullable private String externalDescriptor; - EUR("EUR"), + public static final String JSON_PROPERTY_METHOD = "method"; + @jakarta.annotation.Nullable private ContractMethodPattern method; - NATIVE("NATIVE"); + public static final String JSON_PROPERTY_IS_GLOBAL_POLICY = "isGlobalPolicy"; + @jakarta.annotation.Nullable private Boolean isGlobalPolicy; - private String value; + public static final String JSON_PROPERTY_PROGRAM_CALL = "programCall"; + @jakarta.annotation.Nullable private ProgramCallConfig programCall; - AmountCurrencyEnum(String value) { - this.value = value; - } + public static final String JSON_PROPERTY_SCREENING_METADATA = "screeningMetadata"; + @jakarta.annotation.Nullable private ScreeningMetadataConfig screeningMetadata; - @JsonValue - public String getValue() { - return value; - } + public static final String JSON_PROPERTY_QUOTE_ASSET = "quoteAsset"; + @jakarta.annotation.Nullable private AssetConfig quoteAsset; - @Override - public String toString() { - return String.valueOf(value); - } + public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; + @jakarta.annotation.Nullable private AssetConfig baseAsset; - @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_QUOTE_AMOUNT = "quoteAmount"; + @jakarta.annotation.Nullable private AmountRange quoteAmount; - public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amountCurrency"; - private AmountCurrencyEnum amountCurrency; + public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; + @jakarta.annotation.Nullable private AmountRange baseAmount; - /** - * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all - * transactions within the defined time period - */ - public enum AmountScopeEnum { - SINGLE_TX("SINGLE_TX"), + public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; + @jakarta.annotation.Nullable private DerivationPathConfig derivationPath; - TIMEFRAME("TIMEFRAME"); + public static final String JSON_PROPERTY_INDEX = "index"; + @jakarta.annotation.Nullable private BigDecimal index; - private String value; - - AmountScopeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } + public PolicyRule() {} - @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 + "'"); - } + @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; + this.type = type; + this.initiator = initiator; + this.asset = asset; + this.source = source; + this.verdict = verdict; } - public static final String JSON_PROPERTY_AMOUNT_SCOPE = "amountScope"; - private AmountScopeEnum amountScope; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - private PolicyRuleAmount amount; - - public static final String JSON_PROPERTY_PERIOD_SEC = "periodSec"; - private BigDecimal periodSec; - - public static final String JSON_PROPERTY_AUTHORIZERS = "authorizers"; - private List authorizers; - - public static final String JSON_PROPERTY_AUTHORIZERS_COUNT = "authorizersCount"; - private BigDecimal authorizersCount; - - public static final String JSON_PROPERTY_AUTHORIZATION_GROUPS = "authorizationGroups"; - private PolicyRuleAuthorizationGroups authorizationGroups; - - public static final String JSON_PROPERTY_AMOUNT_AGGREGATION = "amountAggregation"; - private PolicyRuleAmountAggregation amountAggregation; - - public static final String JSON_PROPERTY_RAW_MESSAGE_SIGNING = "rawMessageSigning"; - private PolicyRuleRawMessageSigning rawMessageSigning; - - public static final String JSON_PROPERTY_APPLY_FOR_APPROVE = "applyForApprove"; - private Boolean applyForApprove; - - public static final String JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE = "applyForTypedMessage"; - private Boolean applyForTypedMessage; - - public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor"; - private String externalDescriptor; - - public PolicyRule() {} - - public PolicyRule operator(String operator) { - this.operator = operator; + public PolicyRule name(@jakarta.annotation.Nonnull String name) { + this.name = name; 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 + * Name of the policy rule * - * @return operator - * @deprecated + * @return name */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOperator() { - return operator; + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; } - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperator(String operator) { - this.operator = operator; + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; } - public PolicyRule operators(PolicyRuleOperators operators) { - this.operators = operators; + public PolicyRule id(@jakarta.annotation.Nonnull String id) { + this.id = id; return this; } /** - * Get operators + * Unique identifier for the policy rule * - * @return operators + * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleOperators getOperators() { - return operators; + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; } - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperators(PolicyRuleOperators operators) { - this.operators = operators; + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(@jakarta.annotation.Nonnull String id) { + this.id = id; } - public PolicyRule transactionType(TransactionTypeEnum transactionType) { - this.transactionType = transactionType; + public PolicyRule policyEngineVersion( + @jakarta.annotation.Nonnull PolicyEngineVersionEnum policyEngineVersion) { + this.policyEngineVersion = policyEngineVersion; 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. + * Policy engine version * - * @return transactionType + * @return policyEngineVersion */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionTypeEnum getTransactionType() { - return transactionType; + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_POLICY_ENGINE_VERSION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public PolicyEngineVersionEnum getPolicyEngineVersion() { + return policyEngineVersion; } - @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionType(TransactionTypeEnum transactionType) { - this.transactionType = transactionType; + @JsonProperty(JSON_PROPERTY_POLICY_ENGINE_VERSION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPolicyEngineVersion( + @jakarta.annotation.Nonnull PolicyEngineVersionEnum policyEngineVersion) { + this.policyEngineVersion = policyEngineVersion; } - public PolicyRule designatedSigner(String designatedSigner) { - this.designatedSigner = designatedSigner; + public PolicyRule type(@jakarta.annotation.Nonnull PolicyType type) { + this.type = type; return this; } /** - * (deprecated - replaced by \"designatedSigners\") Id representing the user who signs - * transactions that match a specific rule + * Get type * - * @return designatedSigner - * @deprecated + * @return type */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesignatedSigner() { - return designatedSigner; + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public PolicyType getType() { + return type; } - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigner(String designatedSigner) { - this.designatedSigner = designatedSigner; + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@jakarta.annotation.Nonnull PolicyType type) { + this.type = type; } - public PolicyRule designatedSigners(PolicyRuleDesignatedSigners designatedSigners) { - this.designatedSigners = designatedSigners; + public PolicyRule subType(@jakarta.annotation.Nullable PolicyType subType) { + this.subType = subType; return this; } /** - * Get designatedSigners + * Get subType * - * @return designatedSigners + * @return subType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) + @JsonProperty(JSON_PROPERTY_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleDesignatedSigners getDesignatedSigners() { - return designatedSigners; + public PolicyType getSubType() { + return subType; } - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) + @JsonProperty(JSON_PROPERTY_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigners(PolicyRuleDesignatedSigners designatedSigners) { - this.designatedSigners = designatedSigners; + public void setSubType(@jakarta.annotation.Nullable PolicyType subType) { + this.subType = subType; } - public PolicyRule type(TypeEnum type) { - this.type = type; + public PolicyRule initiator(@jakarta.annotation.Nonnull InitiatorConfigPattern initiator) { + this.initiator = initiator; return this; } /** - * Policy rule type + * Get initiator * - * @return type + * @return initiator */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(JSON_PROPERTY_INITIATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; + public InitiatorConfigPattern getInitiator() { + return initiator; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(JSON_PROPERTY_INITIATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { - this.type = type; + public void setInitiator(@jakarta.annotation.Nonnull InitiatorConfigPattern initiator) { + this.initiator = initiator; } - public PolicyRule action(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(ActionEnum action) { - this.action = action; - } - - public PolicyRule asset(String asset) { + public PolicyRule asset(@jakarta.annotation.Nonnull AssetConfig asset) { this.asset = asset; return this; } /** - * Defines the type of asset being transacted, options are * \"*\" - All assets * - * Specific asset + * Get asset * * @return asset */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAsset() { + public AssetConfig getAsset() { return asset; } @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull AssetConfig asset) { this.asset = asset; } - public PolicyRule srcType(PolicySrcOrDestType srcType) { - this.srcType = srcType; + public PolicyRule source(@jakarta.annotation.Nonnull AccountConfig source) { + this.source = source; return this; } /** - * (deprecated - replaced by "src") source account type + * Get source * - * @return srcType - * @deprecated + * @return source */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicySrcOrDestType getSrcType() { - return srcType; + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountConfig getSource() { + return source; } - @JsonProperty(JSON_PROPERTY_SRC_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcType(PolicySrcOrDestType srcType) { - this.srcType = srcType; + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSource(@jakarta.annotation.Nonnull AccountConfig source) { + this.source = source; } - public PolicyRule srcSubType(PolicySrcOrDestSubType srcSubType) { - this.srcSubType = srcSubType; + public PolicyRule destination(@jakarta.annotation.Nullable DestinationConfig destination) { + this.destination = destination; return this; } /** - * (deprecated - replaced by "src") source sub account type + * Get destination * - * @return srcSubType - * @deprecated + * @return destination */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) + @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicySrcOrDestSubType getSrcSubType() { - return srcSubType; + public DestinationConfig getDestination() { + return destination; } - @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) + @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcSubType(PolicySrcOrDestSubType srcSubType) { - this.srcSubType = srcSubType; + public void setDestination(@jakarta.annotation.Nullable DestinationConfig destination) { + this.destination = destination; } - public PolicyRule srcId(String srcId) { - this.srcId = srcId; + public PolicyRule account(@jakarta.annotation.Nullable AccountConfig account) { + this.account = account; return this; } /** - * (deprecated - replaced by "src") source account id + * Get account * - * @return srcId - * @deprecated + * @return account */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_ID) + @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSrcId() { - return srcId; + public AccountConfig getAccount() { + return account; } - @JsonProperty(JSON_PROPERTY_SRC_ID) + @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcId(String srcId) { - this.srcId = srcId; + public void setAccount(@jakarta.annotation.Nullable AccountConfig account) { + this.account = account; } - public PolicyRule src(PolicyRuleSrc src) { - this.src = src; + public PolicyRule verdict(@jakarta.annotation.Nonnull VerdictConfig verdict) { + this.verdict = verdict; return this; } /** - * Get src + * Get verdict * - * @return src + * @return verdict */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleSrc getSrc() { - return src; + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_VERDICT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public VerdictConfig getVerdict() { + return verdict; } - @JsonProperty(JSON_PROPERTY_SRC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrc(PolicyRuleSrc src) { - this.src = src; + @JsonProperty(JSON_PROPERTY_VERDICT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setVerdict(@jakarta.annotation.Nonnull VerdictConfig verdict) { + this.verdict = verdict; } - public PolicyRule dstType(PolicySrcOrDestType dstType) { - this.dstType = dstType; + public PolicyRule amountOverTime( + @jakarta.annotation.Nullable AmountOverTimeConfig amountOverTime) { + this.amountOverTime = amountOverTime; return this; } /** - * (deprecated - replaced by "dst") destination account type + * Get amountOverTime * - * @return dstType - * @deprecated + * @return amountOverTime */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_TYPE) + @JsonProperty(JSON_PROPERTY_AMOUNT_OVER_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicySrcOrDestType getDstType() { - return dstType; + public AmountOverTimeConfig getAmountOverTime() { + return amountOverTime; } - @JsonProperty(JSON_PROPERTY_DST_TYPE) + @JsonProperty(JSON_PROPERTY_AMOUNT_OVER_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstType(PolicySrcOrDestType dstType) { - this.dstType = dstType; + public void setAmountOverTime( + @jakarta.annotation.Nullable AmountOverTimeConfig amountOverTime) { + this.amountOverTime = amountOverTime; } - public PolicyRule dstSubType(PolicySrcOrDestSubType dstSubType) { - this.dstSubType = dstSubType; + public PolicyRule amount(@jakarta.annotation.Nullable AmountRange amount) { + this.amount = amount; return this; } /** - * (deprecated - replaced by "dst") destination sub account type + * Get amount * - * @return dstSubType - * @deprecated + * @return amount */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) + @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicySrcOrDestSubType getDstSubType() { - return dstSubType; + public AmountRange getAmount() { + return amount; } - @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) + @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstSubType(PolicySrcOrDestSubType dstSubType) { - this.dstSubType = dstSubType; + public void setAmount(@jakarta.annotation.Nullable AmountRange amount) { + this.amount = amount; } - public PolicyRule dstId(String dstId) { - this.dstId = dstId; + public PolicyRule externalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { + this.externalDescriptor = externalDescriptor; return this; } /** - * (deprecated - replaced by "dst") destination account id + * External descriptor for the rule * - * @return dstId - * @deprecated + * @return externalDescriptor */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_ID) + @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDstId() { - return dstId; + public String getExternalDescriptor() { + return externalDescriptor; } - @JsonProperty(JSON_PROPERTY_DST_ID) + @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstId(String dstId) { - this.dstId = dstId; + public void setExternalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { + this.externalDescriptor = externalDescriptor; } - public PolicyRule dst(PolicyRuleDst dst) { - this.dst = dst; + public PolicyRule method(@jakarta.annotation.Nullable ContractMethodPattern method) { + this.method = method; return this; } /** - * Get dst + * Get method * - * @return dst + * @return method */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST) + @JsonProperty(JSON_PROPERTY_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleDst getDst() { - return dst; + public ContractMethodPattern getMethod() { + return method; } - @JsonProperty(JSON_PROPERTY_DST) + @JsonProperty(JSON_PROPERTY_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDst(PolicyRuleDst dst) { - this.dst = dst; + public void setMethod(@jakarta.annotation.Nullable ContractMethodPattern method) { + this.method = method; } - public PolicyRule dstAddressType(DstAddressTypeEnum dstAddressType) { - this.dstAddressType = dstAddressType; + public PolicyRule isGlobalPolicy(@jakarta.annotation.Nullable Boolean isGlobalPolicy) { + this.isGlobalPolicy = isGlobalPolicy; 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 + * Whether this is a global policy * - * @return dstAddressType + * @return isGlobalPolicy */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) + @JsonProperty(JSON_PROPERTY_IS_GLOBAL_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DstAddressTypeEnum getDstAddressType() { - return dstAddressType; + public Boolean getIsGlobalPolicy() { + return isGlobalPolicy; } - @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) + @JsonProperty(JSON_PROPERTY_IS_GLOBAL_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstAddressType(DstAddressTypeEnum dstAddressType) { - this.dstAddressType = dstAddressType; - } - - public PolicyRule amountCurrency(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(AmountCurrencyEnum amountCurrency) { - this.amountCurrency = amountCurrency; - } - - public PolicyRule amountScope(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(AmountScopeEnum amountScope) { - this.amountScope = amountScope; - } - - public PolicyRule amount(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(PolicyRuleAmount amount) { - this.amount = amount; - } - - public PolicyRule periodSec(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(BigDecimal periodSec) { - this.periodSec = periodSec; + public void setIsGlobalPolicy(@jakarta.annotation.Nullable Boolean isGlobalPolicy) { + this.isGlobalPolicy = isGlobalPolicy; } - public PolicyRule authorizers(List authorizers) { - this.authorizers = authorizers; - return this; - } - - public PolicyRule addAuthorizersItem(String authorizersItem) { - if (this.authorizers == null) { - this.authorizers = new ArrayList<>(); - } - this.authorizers.add(authorizersItem); + public PolicyRule programCall(@jakarta.annotation.Nullable ProgramCallConfig programCall) { + this.programCall = programCall; return this; } /** - * (deprecated - replaced by \"authorizationGroups\") Allowed entities which can - * approves a transaction + * Get programCall * - * @return authorizers - * @deprecated + * @return programCall */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZERS) + @JsonProperty(JSON_PROPERTY_PROGRAM_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizers() { - return authorizers; + public ProgramCallConfig getProgramCall() { + return programCall; } - @JsonProperty(JSON_PROPERTY_AUTHORIZERS) + @JsonProperty(JSON_PROPERTY_PROGRAM_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizers(List authorizers) { - this.authorizers = authorizers; + public void setProgramCall(@jakarta.annotation.Nullable ProgramCallConfig programCall) { + this.programCall = programCall; } - public PolicyRule authorizersCount(BigDecimal authorizersCount) { - this.authorizersCount = authorizersCount; + public PolicyRule screeningMetadata( + @jakarta.annotation.Nullable ScreeningMetadataConfig screeningMetadata) { + this.screeningMetadata = screeningMetadata; return this; } /** - * (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are - * needed to approve a transaction + * Get screeningMetadata * - * @return authorizersCount - * @deprecated + * @return screeningMetadata */ - @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) + @JsonProperty(JSON_PROPERTY_SCREENING_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getAuthorizersCount() { - return authorizersCount; + public ScreeningMetadataConfig getScreeningMetadata() { + return screeningMetadata; } - @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) + @JsonProperty(JSON_PROPERTY_SCREENING_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizersCount(BigDecimal authorizersCount) { - this.authorizersCount = authorizersCount; + public void setScreeningMetadata( + @jakarta.annotation.Nullable ScreeningMetadataConfig screeningMetadata) { + this.screeningMetadata = screeningMetadata; } - public PolicyRule authorizationGroups(PolicyRuleAuthorizationGroups authorizationGroups) { - this.authorizationGroups = authorizationGroups; + public PolicyRule quoteAsset(@jakarta.annotation.Nullable AssetConfig quoteAsset) { + this.quoteAsset = quoteAsset; return this; } /** - * Get authorizationGroups + * Get quoteAsset * - * @return authorizationGroups + * @return quoteAsset */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) + @JsonProperty(JSON_PROPERTY_QUOTE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleAuthorizationGroups getAuthorizationGroups() { - return authorizationGroups; + public AssetConfig getQuoteAsset() { + return quoteAsset; } - @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) + @JsonProperty(JSON_PROPERTY_QUOTE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizationGroups(PolicyRuleAuthorizationGroups authorizationGroups) { - this.authorizationGroups = authorizationGroups; + public void setQuoteAsset(@jakarta.annotation.Nullable AssetConfig quoteAsset) { + this.quoteAsset = quoteAsset; } - public PolicyRule amountAggregation(PolicyRuleAmountAggregation amountAggregation) { - this.amountAggregation = amountAggregation; + public PolicyRule baseAsset(@jakarta.annotation.Nullable AssetConfig baseAsset) { + this.baseAsset = baseAsset; return this; } /** - * Get amountAggregation + * Get baseAsset * - * @return amountAggregation + * @return baseAsset */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) + @JsonProperty(JSON_PROPERTY_BASE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleAmountAggregation getAmountAggregation() { - return amountAggregation; + public AssetConfig getBaseAsset() { + return baseAsset; } - @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) + @JsonProperty(JSON_PROPERTY_BASE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountAggregation(PolicyRuleAmountAggregation amountAggregation) { - this.amountAggregation = amountAggregation; + public void setBaseAsset(@jakarta.annotation.Nullable AssetConfig baseAsset) { + this.baseAsset = baseAsset; } - public PolicyRule rawMessageSigning(PolicyRuleRawMessageSigning rawMessageSigning) { - this.rawMessageSigning = rawMessageSigning; + public PolicyRule quoteAmount(@jakarta.annotation.Nullable AmountRange quoteAmount) { + this.quoteAmount = quoteAmount; return this; } /** - * Get rawMessageSigning + * Get quoteAmount * - * @return rawMessageSigning + * @return quoteAmount */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) + @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyRuleRawMessageSigning getRawMessageSigning() { - return rawMessageSigning; + public AmountRange getQuoteAmount() { + return quoteAmount; } - @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) + @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRawMessageSigning(PolicyRuleRawMessageSigning rawMessageSigning) { - this.rawMessageSigning = rawMessageSigning; + public void setQuoteAmount(@jakarta.annotation.Nullable AmountRange quoteAmount) { + this.quoteAmount = quoteAmount; } - public PolicyRule applyForApprove(Boolean applyForApprove) { - this.applyForApprove = applyForApprove; + public PolicyRule baseAmount(@jakarta.annotation.Nullable AmountRange baseAmount) { + this.baseAmount = baseAmount; return this; } /** - * Applying this rule over APPROVE type transactions (can only be enabled when rule's - * transaction type is TRANSFER) + * Get baseAmount * - * @return applyForApprove + * @return baseAmount */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) + @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApplyForApprove() { - return applyForApprove; + public AmountRange getBaseAmount() { + return baseAmount; } - @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) + @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApplyForApprove(Boolean applyForApprove) { - this.applyForApprove = applyForApprove; + public void setBaseAmount(@jakarta.annotation.Nullable AmountRange baseAmount) { + this.baseAmount = baseAmount; } - public PolicyRule applyForTypedMessage(Boolean applyForTypedMessage) { - this.applyForTypedMessage = applyForTypedMessage; + public PolicyRule derivationPath( + @jakarta.annotation.Nullable DerivationPathConfig derivationPath) { + this.derivationPath = derivationPath; return this; } /** - * Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's - * transaction type is CONTRACT_CALL) + * Get derivationPath * - * @return applyForTypedMessage + * @return derivationPath */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) + @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApplyForTypedMessage() { - return applyForTypedMessage; + public DerivationPathConfig getDerivationPath() { + return derivationPath; } - @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) + @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApplyForTypedMessage(Boolean applyForTypedMessage) { - this.applyForTypedMessage = applyForTypedMessage; + public void setDerivationPath( + @jakarta.annotation.Nullable DerivationPathConfig derivationPath) { + this.derivationPath = derivationPath; } - public PolicyRule externalDescriptor(String externalDescriptor) { - this.externalDescriptor = externalDescriptor; + public PolicyRule index(@jakarta.annotation.Nullable BigDecimal index) { + this.index = index; return this; } /** - * A unique id identifying the rule + * Index for the policy rule * - * @return externalDescriptor + * @return index */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) + @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExternalDescriptor() { - return externalDescriptor; + public BigDecimal getIndex() { + return index; } - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) + @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalDescriptor(String externalDescriptor) { - this.externalDescriptor = externalDescriptor; + public void setIndex(@jakarta.annotation.Nullable BigDecimal index) { + this.index = index; } /** Return true if this PolicyRule object is equal to o. */ @@ -1141,116 +751,95 @@ public boolean equals(Object o) { return false; } PolicyRule policyRule = (PolicyRule) o; - 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) + return Objects.equals(this.name, policyRule.name) + && Objects.equals(this.id, policyRule.id) + && Objects.equals(this.policyEngineVersion, policyRule.policyEngineVersion) && Objects.equals(this.type, policyRule.type) - && Objects.equals(this.action, policyRule.action) + && Objects.equals(this.subType, policyRule.subType) + && Objects.equals(this.initiator, policyRule.initiator) && Objects.equals(this.asset, policyRule.asset) - && 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.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.amount, policyRule.amount) - && 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); + && 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); } @Override public int hashCode() { return Objects.hash( - operator, - operators, - transactionType, - designatedSigner, - designatedSigners, + name, + id, + policyEngineVersion, type, - action, + subType, + initiator, asset, - srcType, - srcSubType, - srcId, - src, - dstType, - dstSubType, - dstId, - dst, - dstAddressType, - amountCurrency, - amountScope, + source, + destination, + account, + verdict, + amountOverTime, amount, - periodSec, - authorizers, - authorizersCount, - authorizationGroups, - amountAggregation, - rawMessageSigning, - applyForApprove, - applyForTypedMessage, - externalDescriptor); + externalDescriptor, + method, + isGlobalPolicy, + programCall, + screeningMetadata, + quoteAsset, + baseAsset, + quoteAmount, + baseAmount, + derivationPath, + index); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyRule {\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)) + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" policyEngineVersion: ") + .append(toIndentedString(policyEngineVersion)) .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); + sb.append(" initiator: ").append(toIndentedString(initiator)).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(" 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(" 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(); } @@ -1298,52 +887,33 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `operator` to the URL query string - if (getOperator() != null) { + // add `name` to the URL query string + if (getName() != null) { joiner.add( String.format( - "%soperator%s=%s", + "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getOperator()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `operators` to the URL query string - if (getOperators() != null) { - joiner.add(getOperators().toUrlQueryString(prefix + "operators" + suffix)); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } - // add `transactionType` to the URL query string - if (getTransactionType() != null) { + // add `id` to the URL query string + if (getId() != null) { joiner.add( String.format( - "%stransactionType%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getTransactionType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + "%sid%s=%s", + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } - // add `designatedSigner` to the URL query string - if (getDesignatedSigner() != null) { + // add `policyEngineVersion` to the URL query string + if (getPolicyEngineVersion() != null) { joiner.add( String.format( - "%sdesignatedSigner%s=%s", + "%spolicyEngineVersion%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDesignatedSigner()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `designatedSigners` to the URL query string - if (getDesignatedSigners() != null) { - joiner.add( - getDesignatedSigners().toUrlQueryString(prefix + "designatedSigners" + suffix)); + ApiClient.urlEncode( + ApiClient.valueToString(getPolicyEngineVersion())))); } // add `type` to the URL query string @@ -1353,254 +923,128 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } - // add `action` to the URL query string - if (getAction() != null) { + // add `subType` to the URL query string + if (getSubType() != null) { joiner.add( String.format( - "%saction%s=%s", + "%ssubType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAction()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); } - // add `asset` to the URL query string - if (getAsset() != null) { - joiner.add( - String.format( - "%sasset%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `srcType` to the URL query string - if (getSrcType() != null) { - joiner.add( - String.format( - "%ssrcType%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getSrcType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `srcSubType` to the URL query string - if (getSrcSubType() != null) { - joiner.add( - String.format( - "%ssrcSubType%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getSrcSubType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `srcId` to the URL query string - if (getSrcId() != null) { - joiner.add( - String.format( - "%ssrcId%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getSrcId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `initiator` to the URL query string + if (getInitiator() != null) { + joiner.add(getInitiator().toUrlQueryString(prefix + "initiator" + suffix)); } - // add `src` to the URL query string - if (getSrc() != null) { - joiner.add(getSrc().toUrlQueryString(prefix + "src" + suffix)); + // add `asset` to the URL query string + if (getAsset() != null) { + joiner.add(getAsset().toUrlQueryString(prefix + "asset" + suffix)); } - // add `dstType` to the URL query string - if (getDstType() != null) { - joiner.add( - String.format( - "%sdstType%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getDstType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `source` to the URL query string + if (getSource() != null) { + joiner.add(getSource().toUrlQueryString(prefix + "source" + suffix)); } - // add `dstSubType` to the URL query string - if (getDstSubType() != null) { - joiner.add( - String.format( - "%sdstSubType%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getDstSubType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `destination` to the URL query string + if (getDestination() != null) { + joiner.add(getDestination().toUrlQueryString(prefix + "destination" + suffix)); } - // add `dstId` to the URL query string - if (getDstId() != null) { - joiner.add( - String.format( - "%sdstId%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getDstId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); } - // add `dst` to the URL query string - if (getDst() != null) { - joiner.add(getDst().toUrlQueryString(prefix + "dst" + suffix)); + // add `verdict` to the URL query string + if (getVerdict() != null) { + joiner.add(getVerdict().toUrlQueryString(prefix + "verdict" + suffix)); } - // add `dstAddressType` to the URL query string - if (getDstAddressType() != null) { - joiner.add( - String.format( - "%sdstAddressType%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getDstAddressType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `amountOverTime` to the URL query string + if (getAmountOverTime() != null) { + joiner.add(getAmountOverTime().toUrlQueryString(prefix + "amountOverTime" + suffix)); } - // add `amountCurrency` to the URL query string - if (getAmountCurrency() != null) { - joiner.add( - String.format( - "%samountCurrency%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getAmountCurrency()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `amount` to the URL query string + if (getAmount() != null) { + joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix)); } - // add `amountScope` to the URL query string - if (getAmountScope() != null) { + // add `externalDescriptor` to the URL query string + if (getExternalDescriptor() != null) { joiner.add( String.format( - "%samountScope%s=%s", + "%sexternalDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountScope()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalDescriptor())))); } - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix)); + // add `method` to the URL query string + if (getMethod() != null) { + joiner.add(getMethod().toUrlQueryString(prefix + "method" + suffix)); } - // add `periodSec` to the URL query string - if (getPeriodSec() != null) { + // add `isGlobalPolicy` to the URL query string + if (getIsGlobalPolicy() != null) { joiner.add( String.format( - "%speriodSec%s=%s", + "%sisGlobalPolicy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPeriodSec()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsGlobalPolicy())))); } - // 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), - URLEncoder.encode( - String.valueOf(getAuthorizers().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } + // add `programCall` to the URL query string + if (getProgramCall() != null) { + joiner.add(getProgramCall().toUrlQueryString(prefix + "programCall" + suffix)); } - // add `authorizersCount` to the URL query string - if (getAuthorizersCount() != null) { + // add `screeningMetadata` to the URL query string + if (getScreeningMetadata() != null) { joiner.add( - String.format( - "%sauthorizersCount%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getAuthorizersCount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + getScreeningMetadata().toUrlQueryString(prefix + "screeningMetadata" + suffix)); } - // add `authorizationGroups` to the URL query string - if (getAuthorizationGroups() != null) { - joiner.add( - getAuthorizationGroups() - .toUrlQueryString(prefix + "authorizationGroups" + suffix)); + // add `quoteAsset` to the URL query string + if (getQuoteAsset() != null) { + joiner.add(getQuoteAsset().toUrlQueryString(prefix + "quoteAsset" + suffix)); } - // add `amountAggregation` to the URL query string - if (getAmountAggregation() != null) { - joiner.add( - getAmountAggregation().toUrlQueryString(prefix + "amountAggregation" + suffix)); + // add `baseAsset` to the URL query string + if (getBaseAsset() != null) { + joiner.add(getBaseAsset().toUrlQueryString(prefix + "baseAsset" + suffix)); } - // add `rawMessageSigning` to the URL query string - if (getRawMessageSigning() != null) { - joiner.add( - getRawMessageSigning().toUrlQueryString(prefix + "rawMessageSigning" + suffix)); + // add `quoteAmount` to the URL query string + if (getQuoteAmount() != null) { + joiner.add(getQuoteAmount().toUrlQueryString(prefix + "quoteAmount" + suffix)); } - // add `applyForApprove` to the URL query string - if (getApplyForApprove() != null) { - joiner.add( - String.format( - "%sapplyForApprove%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getApplyForApprove()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `baseAmount` to the URL query string + if (getBaseAmount() != null) { + joiner.add(getBaseAmount().toUrlQueryString(prefix + "baseAmount" + suffix)); } - // add `applyForTypedMessage` to the URL query string - if (getApplyForTypedMessage() != null) { - joiner.add( - String.format( - "%sapplyForTypedMessage%s=%s", - prefix, - suffix, - URLEncoder.encode( - String.valueOf(getApplyForTypedMessage()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + // add `derivationPath` to the URL query string + if (getDerivationPath() != null) { + joiner.add(getDerivationPath().toUrlQueryString(prefix + "derivationPath" + suffix)); } - // add `externalDescriptor` to the URL query string - if (getExternalDescriptor() != null) { + // add `index` to the URL query string + if (getIndex() != null) { joiner.add( String.format( - "%sexternalDescriptor%s=%s", + "%sindex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java index e6966284..8978f1d5 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,16 +31,18 @@ PolicyRuleCheckResult.JSON_PROPERTY_STATUS, PolicyRuleCheckResult.JSON_PROPERTY_ERRORS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyRuleCheckResult { public static final String JSON_PROPERTY_INDEX = "index"; - private BigDecimal index; + @jakarta.annotation.Nonnull private BigDecimal index; /** Validation status */ public enum StatusEnum { - OK("ok"), + OK(String.valueOf("ok")), - FAILURE("failure"); + FAILURE(String.valueOf("failure")); private String value; @@ -71,14 +72,25 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_ERRORS = "errors"; - private List errors = new ArrayList<>(); + @jakarta.annotation.Nonnull private List errors = new ArrayList<>(); public PolicyRuleCheckResult() {} - public PolicyRuleCheckResult index(BigDecimal index) { + @JsonCreator + public PolicyRuleCheckResult( + @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 PolicyRuleCheckResult index(@jakarta.annotation.Nonnull BigDecimal index) { this.index = index; return this; } @@ -97,11 +109,11 @@ public BigDecimal getIndex() { @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIndex(BigDecimal index) { + public void setIndex(@jakarta.annotation.Nonnull BigDecimal index) { this.index = index; } - public PolicyRuleCheckResult status(StatusEnum status) { + public PolicyRuleCheckResult status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -120,11 +132,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public PolicyRuleCheckResult errors(List errors) { + public PolicyRuleCheckResult errors(@jakarta.annotation.Nonnull List errors) { this.errors = errors; return this; } @@ -151,7 +163,7 @@ public List getErrors() { @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(List errors) { + public void setErrors(@jakarta.annotation.Nonnull List errors) { this.errors = errors; } @@ -236,8 +248,7 @@ public String toUrlQueryString(String prefix) { "%sindex%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIndex()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); } // add `status` to the URL query string @@ -247,8 +258,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `errors` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleError.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleError.java index bb266842..7c1bc7bb 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleError.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleError.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,16 +30,18 @@ PolicyRuleError.JSON_PROPERTY_ERROR_CODE_NAME, PolicyRuleError.JSON_PROPERTY_ERROR_FIELD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyRuleError { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; - private String errorMessage; + @jakarta.annotation.Nonnull private String errorMessage; public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; - private BigDecimal errorCode; + @jakarta.annotation.Nonnull private BigDecimal errorCode; public static final String JSON_PROPERTY_ERROR_CODE_NAME = "errorCodeName"; - private String errorCodeName; + @jakarta.annotation.Nonnull private String errorCodeName; /** * The field which the error relates to * operator - transaction initiator * operators - @@ -51,23 +52,23 @@ public class PolicyRuleError { * asset configuration */ public enum ErrorFieldEnum { - OPERATOR("operator"), + OPERATOR(String.valueOf("operator")), - OPERATORS("operators"), + OPERATORS(String.valueOf("operators")), - AUTHORIZATIONGROUPS("authorizationGroups"), + AUTHORIZATION_GROUPS(String.valueOf("authorizationGroups")), - DESIGNATEDSIGNER("designatedSigner"), + DESIGNATED_SIGNER(String.valueOf("designatedSigner")), - DESIGNATEDSIGNERS("designatedSigners"), + DESIGNATED_SIGNERS(String.valueOf("designatedSigners")), - CONTRACTMETHODS("contractMethods"), + CONTRACT_METHODS(String.valueOf("contractMethods")), - AMOUNTAGGREGATION("amountAggregation"), + AMOUNT_AGGREGATION(String.valueOf("amountAggregation")), - SRC("src"), + SRC(String.valueOf("src")), - DST("dst"); + DST(String.valueOf("dst")); private String value; @@ -97,11 +98,25 @@ public static ErrorFieldEnum fromValue(String value) { } public static final String JSON_PROPERTY_ERROR_FIELD = "errorField"; - private ErrorFieldEnum errorField; + @jakarta.annotation.Nonnull private ErrorFieldEnum errorField; public PolicyRuleError() {} - public PolicyRuleError errorMessage(String errorMessage) { + @JsonCreator + public PolicyRuleError( + @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 PolicyRuleError errorMessage(@jakarta.annotation.Nonnull String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -120,11 +135,11 @@ public String getErrorMessage() { @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@jakarta.annotation.Nonnull String errorMessage) { this.errorMessage = errorMessage; } - public PolicyRuleError errorCode(BigDecimal errorCode) { + public PolicyRuleError errorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) { this.errorCode = errorCode; return this; } @@ -143,11 +158,11 @@ public BigDecimal getErrorCode() { @JsonProperty(JSON_PROPERTY_ERROR_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorCode(BigDecimal errorCode) { + public void setErrorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) { this.errorCode = errorCode; } - public PolicyRuleError errorCodeName(String errorCodeName) { + public PolicyRuleError errorCodeName(@jakarta.annotation.Nonnull String errorCodeName) { this.errorCodeName = errorCodeName; return this; } @@ -166,11 +181,11 @@ public String getErrorCodeName() { @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorCodeName(String errorCodeName) { + public void setErrorCodeName(@jakarta.annotation.Nonnull String errorCodeName) { this.errorCodeName = errorCodeName; } - public PolicyRuleError errorField(ErrorFieldEnum errorField) { + public PolicyRuleError errorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) { this.errorField = errorField; return this; } @@ -194,7 +209,7 @@ public ErrorFieldEnum getErrorField() { @JsonProperty(JSON_PROPERTY_ERROR_FIELD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorField(ErrorFieldEnum errorField) { + public void setErrorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) { this.errorField = errorField; } @@ -281,10 +296,7 @@ public String toUrlQueryString(String prefix) { "%serrorMessage%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorMessage()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrorMessage())))); } // add `errorCode` to the URL query string @@ -294,9 +306,7 @@ public String toUrlQueryString(String prefix) { "%serrorCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrorCode())))); } // add `errorCodeName` to the URL query string @@ -306,10 +316,7 @@ public String toUrlQueryString(String prefix) { "%serrorCodeName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorCodeName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrorCodeName())))); } // add `errorField` to the URL query string @@ -319,9 +326,7 @@ public String toUrlQueryString(String prefix) { "%serrorField%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorField()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrorField())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyType.java b/src/main/java/com/fireblocks/sdk/model/PolicyType.java new file mode 100644 index 00000000..cfcd6183 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/PolicyType.java @@ -0,0 +1,100 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/PolicyValidation.java b/src/main/java/com/fireblocks/sdk/model/PolicyValidation.java index 4cec0cb5..b609686a 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyValidation.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyValidation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,28 @@ PolicyValidation.JSON_PROPERTY_STATUS, PolicyValidation.JSON_PROPERTY_CHECK_RESULT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PolicyValidation { public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nonnull private String status; public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; - private PolicyCheckResult checkResult; + @jakarta.annotation.Nonnull private PolicyCheckResult checkResult; public PolicyValidation() {} - public PolicyValidation status(String status) { + @JsonCreator + public PolicyValidation( + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, + @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true) + PolicyCheckResult checkResult) { + this.status = status; + this.checkResult = checkResult; + } + + public PolicyValidation status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } @@ -55,11 +66,11 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public PolicyValidation checkResult(PolicyCheckResult checkResult) { + public PolicyValidation checkResult(@jakarta.annotation.Nonnull PolicyCheckResult checkResult) { this.checkResult = checkResult; return this; } @@ -78,7 +89,7 @@ public PolicyCheckResult getCheckResult() { @JsonProperty(JSON_PROPERTY_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCheckResult(PolicyCheckResult checkResult) { + public void setCheckResult(@jakarta.annotation.Nonnull PolicyCheckResult checkResult) { this.checkResult = checkResult; } @@ -161,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `checkResult` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/PreScreening.java b/src/main/java/com/fireblocks/sdk/model/PreScreening.java index 70012cb7..05daf7d5 100644 --- a/src/main/java/com/fireblocks/sdk/model/PreScreening.java +++ b/src/main/java/com/fireblocks/sdk/model/PreScreening.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** PreScreening */ @JsonPropertyOrder({PreScreening.JSON_PROPERTY_ENABLED}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PreScreening { public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nonnull private Boolean enabled; public PreScreening() {} - public PreScreening enabled(Boolean enabled) { + @JsonCreator + public PreScreening( + @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled) { + this.enabled = enabled; + } + + public PreScreening enabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -49,7 +57,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } 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 new file mode 100644 index 00000000..2bab9d9e --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java @@ -0,0 +1,188 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/Provider.java index 79a3ddd8..feac0ed4 100644 --- a/src/main/java/com/fireblocks/sdk/model/Provider.java +++ b/src/main/java/com/fireblocks/sdk/model/Provider.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,36 +34,55 @@ Provider.JSON_PROPERTY_IS_PRIVATE, Provider.JSON_PROPERTY_IS_LIQUID_STAKING }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Provider { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_PROVIDER_NAME = "providerName"; - private String providerName; + @jakarta.annotation.Nonnull private String providerName; public static final String JSON_PROPERTY_VALIDATORS = "validators"; - private List validators = new ArrayList<>(); + @jakarta.annotation.Nonnull private List validators = new ArrayList<>(); public static final String JSON_PROPERTY_ICON_URL = "iconUrl"; - private String iconUrl; + @jakarta.annotation.Nullable private String iconUrl; public static final String JSON_PROPERTY_TERMS_OF_SERVICE_URL = "termsOfServiceUrl"; - private String termsOfServiceUrl; + @jakarta.annotation.Nullable private String termsOfServiceUrl; public static final String JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED = "isTermsOfServiceApproved"; - private Boolean isTermsOfServiceApproved; + @jakarta.annotation.Nonnull private Boolean isTermsOfServiceApproved; public static final String JSON_PROPERTY_IS_PRIVATE = "isPrivate"; - private Boolean isPrivate; + @jakarta.annotation.Nullable private Boolean isPrivate; public static final String JSON_PROPERTY_IS_LIQUID_STAKING = "isLiquidStaking"; - private Boolean isLiquidStaking; + @jakarta.annotation.Nonnull private Boolean isLiquidStaking; public Provider() {} - public Provider id(String id) { + @JsonCreator + public Provider( + @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, + @JsonProperty(value = JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED, required = true) + Boolean isTermsOfServiceApproved, + @JsonProperty(value = JSON_PROPERTY_IS_LIQUID_STAKING, required = true) + Boolean isLiquidStaking) { + this.id = id; + this.providerName = providerName; + this.validators = validators; + this.isTermsOfServiceApproved = isTermsOfServiceApproved; + this.isLiquidStaking = isLiquidStaking; + } + + public Provider id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -82,11 +101,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Provider providerName(String providerName) { + public Provider providerName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; return this; } @@ -105,11 +124,11 @@ public String getProviderName() { @JsonProperty(JSON_PROPERTY_PROVIDER_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderName(String providerName) { + public void setProviderName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; } - public Provider validators(List validators) { + public Provider validators(@jakarta.annotation.Nonnull List validators) { this.validators = validators; return this; } @@ -137,11 +156,11 @@ public List getValidators() { @JsonProperty(JSON_PROPERTY_VALIDATORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidators(List validators) { + public void setValidators(@jakarta.annotation.Nonnull List validators) { this.validators = validators; } - public Provider iconUrl(String iconUrl) { + public Provider iconUrl(@jakarta.annotation.Nullable String iconUrl) { this.iconUrl = iconUrl; return this; } @@ -160,11 +179,11 @@ public String getIconUrl() { @JsonProperty(JSON_PROPERTY_ICON_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIconUrl(String iconUrl) { + public void setIconUrl(@jakarta.annotation.Nullable String iconUrl) { this.iconUrl = iconUrl; } - public Provider termsOfServiceUrl(String termsOfServiceUrl) { + public Provider termsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { this.termsOfServiceUrl = termsOfServiceUrl; return this; } @@ -183,11 +202,12 @@ public String getTermsOfServiceUrl() { @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTermsOfServiceUrl(String termsOfServiceUrl) { + public void setTermsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { this.termsOfServiceUrl = termsOfServiceUrl; } - public Provider isTermsOfServiceApproved(Boolean isTermsOfServiceApproved) { + public Provider isTermsOfServiceApproved( + @jakarta.annotation.Nonnull Boolean isTermsOfServiceApproved) { this.isTermsOfServiceApproved = isTermsOfServiceApproved; return this; } @@ -206,11 +226,12 @@ public Boolean getIsTermsOfServiceApproved() { @JsonProperty(JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsTermsOfServiceApproved(Boolean isTermsOfServiceApproved) { + public void setIsTermsOfServiceApproved( + @jakarta.annotation.Nonnull Boolean isTermsOfServiceApproved) { this.isTermsOfServiceApproved = isTermsOfServiceApproved; } - public Provider isPrivate(Boolean isPrivate) { + public Provider isPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { this.isPrivate = isPrivate; return this; } @@ -229,11 +250,11 @@ public Boolean getIsPrivate() { @JsonProperty(JSON_PROPERTY_IS_PRIVATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPrivate(Boolean isPrivate) { + public void setIsPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { this.isPrivate = isPrivate; } - public Provider isLiquidStaking(Boolean isLiquidStaking) { + public Provider isLiquidStaking(@jakarta.annotation.Nonnull Boolean isLiquidStaking) { this.isLiquidStaking = isLiquidStaking; return this; } @@ -252,7 +273,7 @@ public Boolean getIsLiquidStaking() { @JsonProperty(JSON_PROPERTY_IS_LIQUID_STAKING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsLiquidStaking(Boolean isLiquidStaking) { + public void setIsLiquidStaking(@jakarta.annotation.Nonnull Boolean isLiquidStaking) { this.isLiquidStaking = isLiquidStaking; } @@ -357,10 +378,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `providerName` to the URL query string @@ -370,10 +388,7 @@ public String toUrlQueryString(String prefix) { "%sproviderName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderName())))); } // add `validators` to the URL query string @@ -406,8 +421,7 @@ public String toUrlQueryString(String prefix) { "%siconUrl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIconUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIconUrl())))); } // add `termsOfServiceUrl` to the URL query string @@ -417,10 +431,7 @@ public String toUrlQueryString(String prefix) { "%stermsOfServiceUrl%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTermsOfServiceUrl()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTermsOfServiceUrl())))); } // add `isTermsOfServiceApproved` to the URL query string @@ -430,10 +441,8 @@ public String toUrlQueryString(String prefix) { "%sisTermsOfServiceApproved%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsTermsOfServiceApproved()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getIsTermsOfServiceApproved())))); } // add `isPrivate` to the URL query string @@ -443,9 +452,7 @@ public String toUrlQueryString(String prefix) { "%sisPrivate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsPrivate()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsPrivate())))); } // add `isLiquidStaking` to the URL query string @@ -455,10 +462,7 @@ public String toUrlQueryString(String prefix) { "%sisLiquidStaking%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsLiquidStaking()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsLiquidStaking())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ProviderAdditionalData.java b/src/main/java/com/fireblocks/sdk/model/ProviderAdditionalData.java index a86f28b6..49b11681 100644 --- a/src/main/java/com/fireblocks/sdk/model/ProviderAdditionalData.java +++ b/src/main/java/com/fireblocks/sdk/model/ProviderAdditionalData.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** Provider specific additional data */ @JsonPropertyOrder({ProviderAdditionalData.JSON_PROPERTY_PRICE_IMPACT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ProviderAdditionalData { public static final String JSON_PROPERTY_PRICE_IMPACT = "priceImpact"; - private String priceImpact; + @jakarta.annotation.Nonnull private String priceImpact; public ProviderAdditionalData() {} - public ProviderAdditionalData priceImpact(String priceImpact) { + @JsonCreator + public ProviderAdditionalData( + @JsonProperty(value = JSON_PROPERTY_PRICE_IMPACT, required = true) String priceImpact) { + this.priceImpact = priceImpact; + } + + public ProviderAdditionalData priceImpact(@jakarta.annotation.Nonnull String priceImpact) { this.priceImpact = priceImpact; return this; } @@ -49,7 +57,7 @@ public String getPriceImpact() { @JsonProperty(JSON_PROPERTY_PRICE_IMPACT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPriceImpact(String priceImpact) { + public void setPriceImpact(@jakarta.annotation.Nonnull String priceImpact) { this.priceImpact = priceImpact; } @@ -130,10 +138,7 @@ public String toUrlQueryString(String prefix) { "%spriceImpact%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPriceImpact()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPriceImpact())))); } 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 51bc31a6..ade9b0c9 100644 --- a/src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java +++ b/src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,15 +30,17 @@ PublicKeyInformation.JSON_PROPERTY_DERIVATION_PATH, PublicKeyInformation.JSON_PROPERTY_PUBLIC_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PublicKeyInformation { /** Elliptic Curve */ public enum AlgorithmEnum { - ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"), + MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - ECDSA_SECP256R1("MPC_ECDSA_SECP256R1"), + MPC_ECDSA_SECP256_R1(String.valueOf("MPC_ECDSA_SECP256R1")), - EDDSA_ED25519("MPC_EDDSA_ED25519"); + MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); private String value; @@ -69,17 +70,17 @@ public static AlgorithmEnum fromValue(String value) { } public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private AlgorithmEnum algorithm; + @jakarta.annotation.Nullable private AlgorithmEnum algorithm; public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - private List derivationPath; + @jakarta.annotation.Nullable private List derivationPath = new ArrayList<>(); public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - private String publicKey; + @jakarta.annotation.Nullable private String publicKey; public PublicKeyInformation() {} - public PublicKeyInformation algorithm(AlgorithmEnum algorithm) { + public PublicKeyInformation algorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { this.algorithm = algorithm; return this; } @@ -98,11 +99,12 @@ public AlgorithmEnum getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(AlgorithmEnum algorithm) { + public void setAlgorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { this.algorithm = algorithm; } - public PublicKeyInformation derivationPath(List derivationPath) { + public PublicKeyInformation derivationPath( + @jakarta.annotation.Nullable List derivationPath) { this.derivationPath = derivationPath; return this; } @@ -129,11 +131,11 @@ public List getDerivationPath() { @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDerivationPath(List derivationPath) { + public void setDerivationPath(@jakarta.annotation.Nullable List derivationPath) { this.derivationPath = derivationPath; } - public PublicKeyInformation publicKey(String publicKey) { + public PublicKeyInformation publicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; return this; } @@ -152,7 +154,7 @@ public String getPublicKey() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublicKey(String publicKey) { + public void setPublicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; } @@ -237,9 +239,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); } // add `derivationPath` to the URL query string @@ -254,10 +254,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDerivationPath().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDerivationPath().get(i))))); } } @@ -268,9 +266,7 @@ public String toUrlQueryString(String prefix) { "%spublicKey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java index 5ffae0c5..da3f1a85 100644 --- a/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java @@ -13,43 +13,94 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** PublishDraftRequest */ -@JsonPropertyOrder({PublishDraftRequest.JSON_PROPERTY_DRAFT_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +/** Request schema for publishing draft with policy types and draft ID */ +@JsonPropertyOrder({ + PublishDraftRequest.JSON_PROPERTY_POLICY_TYPES, + 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"; - private String draftId; + @jakarta.annotation.Nonnull private String draftId; public PublishDraftRequest() {} - public PublishDraftRequest draftId(String draftId) { + @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) { this.draftId = draftId; return this; } /** - * draft unique identifier + * The ID of the draft to publish * * @return draftId */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDraftId() { return draftId; } @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDraftId(String draftId) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDraftId(@jakarta.annotation.Nonnull String draftId) { this.draftId = draftId; } @@ -63,18 +114,20 @@ public boolean equals(Object o) { return false; } PublishDraftRequest publishDraftRequest = (PublishDraftRequest) o; - return Objects.equals(this.draftId, publishDraftRequest.draftId); + return Objects.equals(this.policyTypes, publishDraftRequest.policyTypes) + && Objects.equals(this.draftId, publishDraftRequest.draftId); } @Override public int hashCode() { - return Objects.hash(draftId); + return Objects.hash(policyTypes, 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(); @@ -123,6 +176,25 @@ 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( @@ -130,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%sdraftId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDraftId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/PublishResult.java b/src/main/java/com/fireblocks/sdk/model/PublishResult.java index e9db7f95..8c4ea12d 100644 --- a/src/main/java/com/fireblocks/sdk/model/PublishResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PublishResult.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +30,39 @@ PublishResult.JSON_PROPERTY_CHECK_RESULT, PublishResult.JSON_PROPERTY_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class PublishResult { public static final String JSON_PROPERTY_STATUS = "status"; - private PolicyStatus status; + @jakarta.annotation.Nonnull private PolicyStatus status; public static final String JSON_PROPERTY_RULES = "rules"; - private List rules = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; - private PolicyCheckResult checkResult; + @jakarta.annotation.Nonnull private PolicyCheckResult checkResult; public static final String JSON_PROPERTY_METADATA = "metadata"; - private PolicyMetadata metadata; + @jakarta.annotation.Nonnull private PolicyMetadata metadata; public PublishResult() {} - public PublishResult status(PolicyStatus status) { + @JsonCreator + public PublishResult( + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) PolicyStatus status, + @JsonProperty(value = JSON_PROPERTY_RULES, required = true) List rules, + @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true) + PolicyCheckResult checkResult, + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) + PolicyMetadata metadata) { + this.status = status; + this.rules = rules; + this.checkResult = checkResult; + this.metadata = metadata; + } + + public PublishResult status(@jakarta.annotation.Nonnull PolicyStatus status) { this.status = status; return this; } @@ -65,11 +81,11 @@ public PolicyStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(PolicyStatus status) { + public void setStatus(@jakarta.annotation.Nonnull PolicyStatus status) { this.status = status; } - public PublishResult rules(List rules) { + public PublishResult rules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; return this; } @@ -96,11 +112,11 @@ public List getRules() { @JsonProperty(JSON_PROPERTY_RULES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(List rules) { + public void setRules(@jakarta.annotation.Nonnull List rules) { this.rules = rules; } - public PublishResult checkResult(PolicyCheckResult checkResult) { + public PublishResult checkResult(@jakarta.annotation.Nonnull PolicyCheckResult checkResult) { this.checkResult = checkResult; return this; } @@ -119,11 +135,11 @@ public PolicyCheckResult getCheckResult() { @JsonProperty(JSON_PROPERTY_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCheckResult(PolicyCheckResult checkResult) { + public void setCheckResult(@jakarta.annotation.Nonnull PolicyCheckResult checkResult) { this.checkResult = checkResult; } - public PublishResult metadata(PolicyMetadata metadata) { + public PublishResult metadata(@jakarta.annotation.Nonnull PolicyMetadata metadata) { this.metadata = metadata; return this; } @@ -142,7 +158,7 @@ public PolicyMetadata getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(PolicyMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull PolicyMetadata metadata) { this.metadata = metadata; } @@ -229,8 +245,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `rules` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteFee.java b/src/main/java/com/fireblocks/sdk/model/QuoteFee.java index 4354ef98..a1ec657d 100644 --- a/src/main/java/com/fireblocks/sdk/model/QuoteFee.java +++ b/src/main/java/com/fireblocks/sdk/model/QuoteFee.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,29 +31,49 @@ QuoteFee.JSON_PROPERTY_PROVIDER_FEE_RATE, QuoteFee.JSON_PROPERTY_NETWORK_APPROVE_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class QuoteFee { public static final String JSON_PROPERTY_NETWORK_EXECUTION_FEE = "networkExecutionFee"; - private String networkExecutionFee; + @jakarta.annotation.Nonnull private String networkExecutionFee; public static final String JSON_PROPERTY_NETWORK_FEE_ASSET_ID = "networkFeeAssetId"; - private String networkFeeAssetId; + @jakarta.annotation.Nonnull private String networkFeeAssetId; public static final String JSON_PROPERTY_PROVIDER_FEE = "providerFee"; - private String providerFee; + @jakarta.annotation.Nonnull private String providerFee; public static final String JSON_PROPERTY_PROVIDER_FEE_ASSET_ID = "providerFeeAssetId"; - private String providerFeeAssetId; + @jakarta.annotation.Nonnull private String providerFeeAssetId; public static final String JSON_PROPERTY_PROVIDER_FEE_RATE = "providerFeeRate"; - private BigDecimal providerFeeRate; + @jakarta.annotation.Nonnull private BigDecimal providerFeeRate; public static final String JSON_PROPERTY_NETWORK_APPROVE_FEE = "networkApproveFee"; - private String networkApproveFee; + @jakarta.annotation.Nullable private String networkApproveFee; public QuoteFee() {} - public QuoteFee networkExecutionFee(String networkExecutionFee) { + @JsonCreator + public QuoteFee( + @JsonProperty(value = JSON_PROPERTY_NETWORK_EXECUTION_FEE, required = true) + String networkExecutionFee, + @JsonProperty(value = JSON_PROPERTY_NETWORK_FEE_ASSET_ID, required = true) + String networkFeeAssetId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_FEE, required = true) String providerFee, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_FEE_ASSET_ID, required = true) + String providerFeeAssetId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_FEE_RATE, required = true) + BigDecimal providerFeeRate) { + this.networkExecutionFee = networkExecutionFee; + this.networkFeeAssetId = networkFeeAssetId; + this.providerFee = providerFee; + this.providerFeeAssetId = providerFeeAssetId; + this.providerFeeRate = providerFeeRate; + } + + public QuoteFee networkExecutionFee(@jakarta.annotation.Nonnull String networkExecutionFee) { this.networkExecutionFee = networkExecutionFee; return this; } @@ -72,11 +92,11 @@ public String getNetworkExecutionFee() { @JsonProperty(JSON_PROPERTY_NETWORK_EXECUTION_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkExecutionFee(String networkExecutionFee) { + public void setNetworkExecutionFee(@jakarta.annotation.Nonnull String networkExecutionFee) { this.networkExecutionFee = networkExecutionFee; } - public QuoteFee networkFeeAssetId(String networkFeeAssetId) { + public QuoteFee networkFeeAssetId(@jakarta.annotation.Nonnull String networkFeeAssetId) { this.networkFeeAssetId = networkFeeAssetId; return this; } @@ -95,11 +115,11 @@ public String getNetworkFeeAssetId() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkFeeAssetId(String networkFeeAssetId) { + public void setNetworkFeeAssetId(@jakarta.annotation.Nonnull String networkFeeAssetId) { this.networkFeeAssetId = networkFeeAssetId; } - public QuoteFee providerFee(String providerFee) { + public QuoteFee providerFee(@jakarta.annotation.Nonnull String providerFee) { this.providerFee = providerFee; return this; } @@ -118,11 +138,11 @@ public String getProviderFee() { @JsonProperty(JSON_PROPERTY_PROVIDER_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderFee(String providerFee) { + public void setProviderFee(@jakarta.annotation.Nonnull String providerFee) { this.providerFee = providerFee; } - public QuoteFee providerFeeAssetId(String providerFeeAssetId) { + public QuoteFee providerFeeAssetId(@jakarta.annotation.Nonnull String providerFeeAssetId) { this.providerFeeAssetId = providerFeeAssetId; return this; } @@ -141,11 +161,11 @@ public String getProviderFeeAssetId() { @JsonProperty(JSON_PROPERTY_PROVIDER_FEE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderFeeAssetId(String providerFeeAssetId) { + public void setProviderFeeAssetId(@jakarta.annotation.Nonnull String providerFeeAssetId) { this.providerFeeAssetId = providerFeeAssetId; } - public QuoteFee providerFeeRate(BigDecimal providerFeeRate) { + public QuoteFee providerFeeRate(@jakarta.annotation.Nonnull BigDecimal providerFeeRate) { this.providerFeeRate = providerFeeRate; return this; } @@ -164,11 +184,11 @@ public BigDecimal getProviderFeeRate() { @JsonProperty(JSON_PROPERTY_PROVIDER_FEE_RATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderFeeRate(BigDecimal providerFeeRate) { + public void setProviderFeeRate(@jakarta.annotation.Nonnull BigDecimal providerFeeRate) { this.providerFeeRate = providerFeeRate; } - public QuoteFee networkApproveFee(String networkApproveFee) { + public QuoteFee networkApproveFee(@jakarta.annotation.Nullable String networkApproveFee) { this.networkApproveFee = networkApproveFee; return this; } @@ -187,7 +207,7 @@ public String getNetworkApproveFee() { @JsonProperty(JSON_PROPERTY_NETWORK_APPROVE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkApproveFee(String networkApproveFee) { + public void setNetworkApproveFee(@jakarta.annotation.Nullable String networkApproveFee) { this.networkApproveFee = networkApproveFee; } @@ -292,10 +312,8 @@ public String toUrlQueryString(String prefix) { "%snetworkExecutionFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkExecutionFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getNetworkExecutionFee())))); } // add `networkFeeAssetId` to the URL query string @@ -305,10 +323,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFeeAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFeeAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFeeAssetId())))); } // add `providerFee` to the URL query string @@ -318,10 +333,7 @@ public String toUrlQueryString(String prefix) { "%sproviderFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderFee())))); } // add `providerFeeAssetId` to the URL query string @@ -331,10 +343,7 @@ public String toUrlQueryString(String prefix) { "%sproviderFeeAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderFeeAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderFeeAssetId())))); } // add `providerFeeRate` to the URL query string @@ -344,10 +353,7 @@ public String toUrlQueryString(String prefix) { "%sproviderFeeRate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderFeeRate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderFeeRate())))); } // add `networkApproveFee` to the URL query string @@ -357,10 +363,7 @@ public String toUrlQueryString(String prefix) { "%snetworkApproveFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkApproveFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkApproveFee())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteRequest.java b/src/main/java/com/fireblocks/sdk/model/QuoteRequest.java index 24beaeb8..a4abb6df 100644 --- a/src/main/java/com/fireblocks/sdk/model/QuoteRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/QuoteRequest.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,29 +31,47 @@ QuoteRequest.JSON_PROPERTY_SLIPPAGE_TOLERANCE, QuoteRequest.JSON_PROPERTY_PROTOCOL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class QuoteRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - private String accountId; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_INPUT_AMOUNT = "inputAmount"; - private String inputAmount; + @jakarta.annotation.Nonnull private String inputAmount; public static final String JSON_PROPERTY_INPUT_ASSET = "inputAsset"; - private String inputAsset; + @jakarta.annotation.Nonnull private String inputAsset; public static final String JSON_PROPERTY_OUTPUT_ASSET = "outputAsset"; - private String outputAsset; + @jakarta.annotation.Nonnull private String outputAsset; public static final String JSON_PROPERTY_SLIPPAGE_TOLERANCE = "slippageTolerance"; - private BigDecimal slippageTolerance; + @jakarta.annotation.Nonnull private BigDecimal slippageTolerance; public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private SwapProviderProtocolsEnum protocol; + @jakarta.annotation.Nonnull private SwapProviderProtocolsEnum protocol; public QuoteRequest() {} - public QuoteRequest accountId(String accountId) { + @JsonCreator + public QuoteRequest( + @JsonProperty(value = JSON_PROPERTY_INPUT_AMOUNT, required = true) String inputAmount, + @JsonProperty(value = JSON_PROPERTY_INPUT_ASSET, required = true) String inputAsset, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_ASSET, required = true) String outputAsset, + @JsonProperty(value = JSON_PROPERTY_SLIPPAGE_TOLERANCE, required = true) + BigDecimal slippageTolerance, + @JsonProperty(value = JSON_PROPERTY_PROTOCOL, required = true) + SwapProviderProtocolsEnum protocol) { + this.inputAmount = inputAmount; + this.inputAsset = inputAsset; + this.outputAsset = outputAsset; + this.slippageTolerance = slippageTolerance; + this.protocol = protocol; + } + + public QuoteRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -72,11 +90,11 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public QuoteRequest inputAmount(String inputAmount) { + public QuoteRequest inputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; return this; } @@ -95,11 +113,11 @@ public String getInputAmount() { @JsonProperty(JSON_PROPERTY_INPUT_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAmount(String inputAmount) { + public void setInputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; } - public QuoteRequest inputAsset(String inputAsset) { + public QuoteRequest inputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; return this; } @@ -118,11 +136,11 @@ public String getInputAsset() { @JsonProperty(JSON_PROPERTY_INPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAsset(String inputAsset) { + public void setInputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; } - public QuoteRequest outputAsset(String outputAsset) { + public QuoteRequest outputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; return this; } @@ -141,11 +159,12 @@ public String getOutputAsset() { @JsonProperty(JSON_PROPERTY_OUTPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputAsset(String outputAsset) { + public void setOutputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; } - public QuoteRequest slippageTolerance(BigDecimal slippageTolerance) { + public QuoteRequest slippageTolerance( + @jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; return this; } @@ -166,11 +185,11 @@ public BigDecimal getSlippageTolerance() { @JsonProperty(JSON_PROPERTY_SLIPPAGE_TOLERANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSlippageTolerance(BigDecimal slippageTolerance) { + public void setSlippageTolerance(@jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; } - public QuoteRequest protocol(SwapProviderProtocolsEnum protocol) { + public QuoteRequest protocol(@jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; return this; } @@ -189,7 +208,7 @@ public SwapProviderProtocolsEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocol(SwapProviderProtocolsEnum protocol) { + public void setProtocol(@jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; } @@ -283,9 +302,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `inputAmount` to the URL query string @@ -295,10 +312,7 @@ public String toUrlQueryString(String prefix) { "%sinputAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAmount())))); } // add `inputAsset` to the URL query string @@ -308,9 +322,7 @@ public String toUrlQueryString(String prefix) { "%sinputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAsset())))); } // add `outputAsset` to the URL query string @@ -320,10 +332,7 @@ public String toUrlQueryString(String prefix) { "%soutputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputAsset())))); } // add `slippageTolerance` to the URL query string @@ -333,10 +342,7 @@ public String toUrlQueryString(String prefix) { "%sslippageTolerance%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSlippageTolerance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSlippageTolerance())))); } // add `protocol` to the URL query string @@ -346,8 +352,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteResponse.java b/src/main/java/com/fireblocks/sdk/model/QuoteResponse.java index 6c8a05af..7a8343e7 100644 --- a/src/main/java/com/fireblocks/sdk/model/QuoteResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/QuoteResponse.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = QuoteResponse.QuoteResponseDeserializer.class) @JsonSerialize(using = QuoteResponse.QuoteResponseSerializer.class) public class QuoteResponse extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java index 5b4bf060..f3747101 100644 --- a/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,13 +33,15 @@ ReadAbiFunction.JSON_PROPERTY_INPUTS, ReadAbiFunction.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ReadAbiFunction { /** Gets or Sets stateMutability */ public enum StateMutabilityEnum { - PURE("pure"), + PURE(String.valueOf("pure")), - VIEW("view"); + VIEW(String.valueOf("view")); private String value; @@ -70,26 +71,39 @@ public static StateMutabilityEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability"; - private StateMutabilityEnum stateMutability; + @jakarta.annotation.Nonnull private StateMutabilityEnum stateMutability; public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - private List outputs; + @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_INPUTS = "inputs"; - private List inputs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inputs = new ArrayList<>(); public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public ReadAbiFunction() {} - public ReadAbiFunction stateMutability(StateMutabilityEnum stateMutability) { + @JsonCreator + public ReadAbiFunction( + @JsonProperty(value = JSON_PROPERTY_STATE_MUTABILITY, required = true) + StateMutabilityEnum stateMutability, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) String type, + @JsonProperty(value = JSON_PROPERTY_INPUTS, required = true) + List inputs) { + this.stateMutability = stateMutability; + this.type = type; + this.inputs = inputs; + } + + public ReadAbiFunction stateMutability( + @jakarta.annotation.Nonnull StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; return this; } @@ -108,11 +122,12 @@ public StateMutabilityEnum getStateMutability() { @JsonProperty(JSON_PROPERTY_STATE_MUTABILITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStateMutability(StateMutabilityEnum stateMutability) { + public void setStateMutability( + @jakarta.annotation.Nonnull StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; } - public ReadAbiFunction outputs(List outputs) { + public ReadAbiFunction outputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; return this; } @@ -139,11 +154,11 @@ public List getOutputs() { @JsonProperty(JSON_PROPERTY_OUTPUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutputs(List outputs) { + public void setOutputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; } - public ReadAbiFunction name(String name) { + public ReadAbiFunction name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -162,11 +177,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public ReadAbiFunction type(String type) { + public ReadAbiFunction type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -185,11 +200,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public ReadAbiFunction inputs(List inputs) { + public ReadAbiFunction inputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; return this; } @@ -216,11 +231,11 @@ public List getInputs() { @JsonProperty(JSON_PROPERTY_INPUTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputs(List inputs) { + public void setInputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; } - public ReadAbiFunction description(String description) { + public ReadAbiFunction description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -239,7 +254,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -330,10 +345,7 @@ public String toUrlQueryString(String prefix) { "%sstateMutability%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStateMutability()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStateMutability())))); } // add `outputs` to the URL query string @@ -366,8 +378,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `type` to the URL query string @@ -377,8 +388,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `inputs` to the URL query string @@ -411,10 +421,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java index e69af647..5bc586a5 100644 --- a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.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; @@ -21,14 +22,24 @@ /** ReadCallFunctionDto */ @JsonPropertyOrder({ReadCallFunctionDto.JSON_PROPERTY_ABI_FUNCTION}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ReadCallFunctionDto { public static final String JSON_PROPERTY_ABI_FUNCTION = "abiFunction"; - private ReadCallFunctionDtoAbiFunction abiFunction; + @jakarta.annotation.Nonnull private ReadCallFunctionDtoAbiFunction abiFunction; public ReadCallFunctionDto() {} - public ReadCallFunctionDto abiFunction(ReadCallFunctionDtoAbiFunction abiFunction) { + @JsonCreator + public ReadCallFunctionDto( + @JsonProperty(value = JSON_PROPERTY_ABI_FUNCTION, required = true) + ReadCallFunctionDtoAbiFunction abiFunction) { + this.abiFunction = abiFunction; + } + + public ReadCallFunctionDto abiFunction( + @jakarta.annotation.Nonnull ReadCallFunctionDtoAbiFunction abiFunction) { this.abiFunction = abiFunction; return this; } @@ -47,7 +58,8 @@ public ReadCallFunctionDtoAbiFunction getAbiFunction() { @JsonProperty(JSON_PROPERTY_ABI_FUNCTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbiFunction(ReadCallFunctionDtoAbiFunction abiFunction) { + public void setAbiFunction( + @jakarta.annotation.Nonnull ReadCallFunctionDtoAbiFunction abiFunction) { this.abiFunction = abiFunction; } diff --git a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java index 28eab481..ecc784da 100644 --- a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = ReadCallFunctionDtoAbiFunction.ReadCallFunctionDtoAbiFunctionDeserializer.class) @JsonSerialize( diff --git a/src/main/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponse.java b/src/main/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponse.java index 72e1c419..037074b0 100644 --- a/src/main/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** RedeemFundsToLinkedDDAResponse */ @JsonPropertyOrder({RedeemFundsToLinkedDDAResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RedeemFundsToLinkedDDAResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public RedeemFundsToLinkedDDAResponse() {} - public RedeemFundsToLinkedDDAResponse success(Boolean success) { + @JsonCreator + public RedeemFundsToLinkedDDAResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public RedeemFundsToLinkedDDAResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -131,8 +139,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java b/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java index 87bc1cb1..eec1a670 100644 --- a/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,30 @@ RegisterNewAssetRequest.JSON_PROPERTY_ADDRESS, RegisterNewAssetRequest.JSON_PROPERTY_SYMBOL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RegisterNewAssetRequest { public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - private String blockchainId; + @jakarta.annotation.Nonnull private String blockchainId; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nullable private String symbol; public RegisterNewAssetRequest() {} - public RegisterNewAssetRequest blockchainId(String blockchainId) { + @JsonCreator + public RegisterNewAssetRequest( + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_ID, required = true) String blockchainId, + @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { + this.blockchainId = blockchainId; + this.address = address; + } + + public RegisterNewAssetRequest blockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; return this; } @@ -59,11 +69,11 @@ public String getBlockchainId() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainId(String blockchainId) { + public void setBlockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; } - public RegisterNewAssetRequest address(String address) { + public RegisterNewAssetRequest address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } @@ -84,11 +94,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public RegisterNewAssetRequest symbol(String symbol) { + public RegisterNewAssetRequest symbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; return this; } @@ -107,7 +117,7 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; } @@ -192,10 +202,7 @@ public String toUrlQueryString(String prefix) { "%sblockchainId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } // add `address` to the URL query string @@ -205,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `symbol` to the URL query string @@ -216,8 +222,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java b/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java index fc6f980a..e7baa19b 100644 --- a/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,27 +32,29 @@ ReissueMultichainTokenRequest.JSON_PROPERTY_FEE, ReissueMultichainTokenRequest.JSON_PROPERTY_FEE_LEVEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_CHAINS = "chains"; - private List chains = new ArrayList<>(); + @jakarta.annotation.Nonnull private List chains = new ArrayList<>(); public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; /** Fee level for the deploy request. Interchangeable with the 'fee' field */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -83,11 +84,21 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public ReissueMultichainTokenRequest() {} - public ReissueMultichainTokenRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -106,11 +117,11 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public ReissueMultichainTokenRequest chains(List chains) { + public ReissueMultichainTokenRequest chains(@jakarta.annotation.Nonnull List chains) { this.chains = chains; return this; } @@ -137,11 +148,12 @@ public List getChains() { @JsonProperty(JSON_PROPERTY_CHAINS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChains(List chains) { + public void setChains(@jakarta.annotation.Nonnull List chains) { this.chains = chains; } - public ReissueMultichainTokenRequest useGasless(Boolean useGasless) { + public ReissueMultichainTokenRequest useGasless( + @jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -160,11 +172,11 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } - public ReissueMultichainTokenRequest fee(String fee) { + public ReissueMultichainTokenRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -183,11 +195,12 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public ReissueMultichainTokenRequest feeLevel(FeeLevelEnum feeLevel) { + public ReissueMultichainTokenRequest feeLevel( + @jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -206,7 +219,7 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } @@ -296,10 +309,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `chains` to the URL query string @@ -314,10 +324,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getChains().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChains().get(i))))); } } @@ -328,9 +335,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } // add `fee` to the URL query string @@ -340,8 +345,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -351,8 +355,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 4f3e7d45..802653f9 100644 --- a/src/main/java/com/fireblocks/sdk/model/RelatedRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RelatedRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,11 +29,13 @@ RelatedRequest.JSON_PROPERTY_AMOUNT, RelatedRequest.JSON_PROPERTY_TX_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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("deactivating"); + DEACTIVATING(String.valueOf("deactivating")); private String value; @@ -64,20 +65,30 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_IN_PROGRESS = "inProgress"; - private Boolean inProgress; + @jakarta.annotation.Nonnull private Boolean inProgress; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nullable private String txId; public RelatedRequest() {} - public RelatedRequest status(StatusEnum status) { + @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; } @@ -96,11 +107,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public RelatedRequest inProgress(Boolean inProgress) { + public RelatedRequest inProgress(@jakarta.annotation.Nonnull Boolean inProgress) { this.inProgress = inProgress; return this; } @@ -119,11 +130,11 @@ public Boolean getInProgress() { @JsonProperty(JSON_PROPERTY_IN_PROGRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInProgress(Boolean inProgress) { + public void setInProgress(@jakarta.annotation.Nonnull Boolean inProgress) { this.inProgress = inProgress; } - public RelatedRequest amount(String amount) { + public RelatedRequest amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -142,11 +153,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public RelatedRequest txId(String txId) { + public RelatedRequest txId(@jakarta.annotation.Nullable String txId) { this.txId = txId; return this; } @@ -165,7 +176,7 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nullable String txId) { this.txId = txId; } @@ -252,8 +263,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `inProgress` to the URL query string @@ -263,9 +273,7 @@ public String toUrlQueryString(String prefix) { "%sinProgress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInProgress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInProgress())))); } // add `amount` to the URL query string @@ -275,8 +283,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `txId` to the URL query string @@ -286,8 +293,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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/RelatedTransaction.java index bac45e58..8a750dc3 100644 --- a/src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java +++ b/src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ RelatedTransaction.JSON_PROPERTY_TX_ID, RelatedTransaction.JSON_PROPERTY_COMPLETED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RelatedTransaction { public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nonnull private String txId; public static final String JSON_PROPERTY_COMPLETED = "completed"; - private Boolean completed; + @jakarta.annotation.Nonnull private Boolean completed; public RelatedTransaction() {} - public RelatedTransaction txId(String txId) { + @JsonCreator + public RelatedTransaction( + @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) { this.txId = txId; return this; } @@ -55,11 +65,11 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } - public RelatedTransaction completed(Boolean completed) { + public RelatedTransaction completed(@jakarta.annotation.Nonnull Boolean completed) { this.completed = completed; return this; } @@ -78,7 +88,7 @@ public Boolean getCompleted() { @JsonProperty(JSON_PROPERTY_COMPLETED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCompleted(Boolean completed) { + public void setCompleted(@jakarta.annotation.Nonnull Boolean completed) { this.completed = completed; } @@ -161,8 +171,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } // add `completed` to the URL query string @@ -172,9 +181,7 @@ public String toUrlQueryString(String prefix) { "%scompleted%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCompleted()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCompleted())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveCollateralRequestBody.java b/src/main/java/com/fireblocks/sdk/model/RemoveCollateralRequestBody.java index d6f2d36e..be6902b3 100644 --- a/src/main/java/com/fireblocks/sdk/model/RemoveCollateralRequestBody.java +++ b/src/main/java/com/fireblocks/sdk/model/RemoveCollateralRequestBody.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ RemoveCollateralRequestBody.JSON_PROPERTY_TRANSACTION_REQUEST, RemoveCollateralRequestBody.JSON_PROPERTY_IS_DST_COLLATERAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RemoveCollateralRequestBody { public static final String JSON_PROPERTY_TRANSACTION_REQUEST = "transactionRequest"; - private TransactionRequest transactionRequest; + @jakarta.annotation.Nullable private TransactionRequest transactionRequest; public static final String JSON_PROPERTY_IS_DST_COLLATERAL = "isDstCollateral"; - private Boolean isDstCollateral; + @jakarta.annotation.Nullable private Boolean isDstCollateral; public RemoveCollateralRequestBody() {} - public RemoveCollateralRequestBody transactionRequest(TransactionRequest transactionRequest) { + public RemoveCollateralRequestBody transactionRequest( + @jakarta.annotation.Nullable TransactionRequest transactionRequest) { this.transactionRequest = transactionRequest; return this; } @@ -55,11 +57,13 @@ public TransactionRequest getTransactionRequest() { @JsonProperty(JSON_PROPERTY_TRANSACTION_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionRequest(TransactionRequest transactionRequest) { + public void setTransactionRequest( + @jakarta.annotation.Nullable TransactionRequest transactionRequest) { this.transactionRequest = transactionRequest; } - public RemoveCollateralRequestBody isDstCollateral(Boolean isDstCollateral) { + public RemoveCollateralRequestBody isDstCollateral( + @jakarta.annotation.Nullable Boolean isDstCollateral) { this.isDstCollateral = isDstCollateral; return this; } @@ -78,7 +82,7 @@ public Boolean getIsDstCollateral() { @JsonProperty(JSON_PROPERTY_IS_DST_COLLATERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsDstCollateral(Boolean isDstCollateral) { + public void setIsDstCollateral(@jakarta.annotation.Nullable Boolean isDstCollateral) { this.isDstCollateral = isDstCollateral; } @@ -172,10 +176,7 @@ public String toUrlQueryString(String prefix) { "%sisDstCollateral%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsDstCollateral()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsDstCollateral())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java index 4cddb9e3..cf2f7ba0 100644 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java +++ b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java @@ -13,24 +13,34 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String adapterTokenLinkId; + @jakarta.annotation.Nonnull private String adapterTokenLinkId; public RemoveLayerZeroAdapterFailedResult() {} - public RemoveLayerZeroAdapterFailedResult adapterTokenLinkId(String adapterTokenLinkId) { + @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; } @@ -49,7 +59,7 @@ public String getAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkId(String adapterTokenLinkId) { + public void setAdapterTokenLinkId(@jakarta.annotation.Nonnull String adapterTokenLinkId) { this.adapterTokenLinkId = adapterTokenLinkId; } @@ -134,10 +144,7 @@ public String toUrlQueryString(String prefix) { "%sadapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index fc206b58..f3a52fb1 100644 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,17 +29,30 @@ RemoveLayerZeroAdaptersRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, RemoveLayerZeroAdaptersRequest.JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS = "adapterTokenLinkIds"; - private List adapterTokenLinkIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List adapterTokenLinkIds = new ArrayList<>(); public RemoveLayerZeroAdaptersRequest() {} - public RemoveLayerZeroAdaptersRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -58,11 +71,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public RemoveLayerZeroAdaptersRequest adapterTokenLinkIds(List adapterTokenLinkIds) { + public RemoveLayerZeroAdaptersRequest adapterTokenLinkIds( + @jakarta.annotation.Nonnull List adapterTokenLinkIds) { this.adapterTokenLinkIds = adapterTokenLinkIds; return this; } @@ -89,7 +103,7 @@ public List getAdapterTokenLinkIds() { @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkIds(List adapterTokenLinkIds) { + public void setAdapterTokenLinkIds(@jakarta.annotation.Nonnull List adapterTokenLinkIds) { this.adapterTokenLinkIds = adapterTokenLinkIds; } @@ -177,10 +191,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `adapterTokenLinkIds` to the URL query string @@ -196,10 +207,9 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAdapterTokenLinkIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getAdapterTokenLinkIds().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java index eb2f7109..b1c5bb6a 100644 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,32 @@ RemoveLayerZeroAdaptersResponse.JSON_PROPERTY_DEACTIVATED, RemoveLayerZeroAdaptersResponse.JSON_PROPERTY_FAILED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List deactivated = new ArrayList<>(); + @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() {} - public RemoveLayerZeroAdaptersResponse deactivated(List deactivated) { + @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; } @@ -65,11 +80,12 @@ public List getDeactivated() { @JsonProperty(JSON_PROPERTY_DEACTIVATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeactivated(List deactivated) { + public void setDeactivated(@jakarta.annotation.Nonnull List deactivated) { this.deactivated = deactivated; } - public RemoveLayerZeroAdaptersResponse failed(List failed) { + public RemoveLayerZeroAdaptersResponse failed( + @jakarta.annotation.Nonnull List failed) { this.failed = failed; return this; } @@ -97,7 +113,8 @@ public List getFailed() { @JsonProperty(JSON_PROPERTY_FAILED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFailed(List failed) { + public void setFailed( + @jakarta.annotation.Nonnull List failed) { this.failed = failed; } @@ -186,10 +203,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDeactivated().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDeactivated().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java index 61552916..a5eaa612 100644 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,25 +31,46 @@ RemoveLayerZeroPeersRequest.JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS, RemoveLayerZeroPeersRequest.JSON_PROPERTY_BIDIRECTIONAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = "sourceAdapterTokenLinkId"; - private UUID 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"; - private Boolean bidirectional; + @jakarta.annotation.Nonnull private Boolean bidirectional; public RemoveLayerZeroPeersRequest() {} - public RemoveLayerZeroPeersRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -68,11 +89,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public RemoveLayerZeroPeersRequest sourceAdapterTokenLinkId(UUID sourceAdapterTokenLinkId) { + public RemoveLayerZeroPeersRequest sourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; return this; } @@ -91,12 +113,13 @@ public UUID getSourceAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId(UUID sourceAdapterTokenLinkId) { + public void setSourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; } public RemoveLayerZeroPeersRequest destinationAdapterTokenLinkIds( - List destinationAdapterTokenLinkIds) { + @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; return this; } @@ -124,11 +147,13 @@ public List getDestinationAdapterTokenLinkIds() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAdapterTokenLinkIds(List destinationAdapterTokenLinkIds) { + public void setDestinationAdapterTokenLinkIds( + @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; } - public RemoveLayerZeroPeersRequest bidirectional(Boolean bidirectional) { + public RemoveLayerZeroPeersRequest bidirectional( + @jakarta.annotation.Nonnull Boolean bidirectional) { this.bidirectional = bidirectional; return this; } @@ -147,7 +172,7 @@ public Boolean getBidirectional() { @JsonProperty(JSON_PROPERTY_BIDIRECTIONAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBidirectional(Boolean bidirectional) { + public void setBidirectional(@jakarta.annotation.Nonnull Boolean bidirectional) { this.bidirectional = bidirectional; } @@ -246,10 +271,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `sourceAdapterTokenLinkId` to the URL query string @@ -259,10 +281,8 @@ public String toUrlQueryString(String prefix) { "%ssourceAdapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSourceAdapterTokenLinkId())))); } // add `destinationAdapterTokenLinkIds` to the URL query string @@ -278,12 +298,9 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf( - getDestinationAdapterTokenLinkIds() - .get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getDestinationAdapterTokenLinkIds().get(i))))); } } } @@ -295,10 +312,7 @@ public String toUrlQueryString(String prefix) { "%sbidirectional%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBidirectional()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index bba6a62a..6f243b82 100644 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -26,14 +26,22 @@ /** RemoveLayerZeroPeersResponse */ @JsonPropertyOrder({RemoveLayerZeroPeersResponse.JSON_PROPERTY_TXN_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List txnIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List txnIds = new ArrayList<>(); public RemoveLayerZeroPeersResponse() {} - public RemoveLayerZeroPeersResponse txnIds(List txnIds) { + @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; } @@ -61,7 +69,7 @@ public List getTxnIds() { @JsonProperty(JSON_PROPERTY_TXN_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxnIds(List txnIds) { + public void setTxnIds(@jakarta.annotation.Nonnull List txnIds) { this.txnIds = txnIds; } @@ -149,10 +157,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTxnIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTxnIds().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/RenameCosigner.java b/src/main/java/com/fireblocks/sdk/model/RenameCosigner.java index ff95bc6e..f81ccae6 100644 --- a/src/main/java/com/fireblocks/sdk/model/RenameCosigner.java +++ b/src/main/java/com/fireblocks/sdk/model/RenameCosigner.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** RenameCosigner */ @JsonPropertyOrder({RenameCosigner.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RenameCosigner { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public RenameCosigner() {} - public RenameCosigner name(String name) { + public RenameCosigner name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -49,7 +50,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RenameVaultAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/RenameVaultAccountResponse.java index d4de9973..ad9aa7aa 100644 --- a/src/main/java/com/fireblocks/sdk/model/RenameVaultAccountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/RenameVaultAccountResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ RenameVaultAccountResponse.JSON_PROPERTY_NAME, RenameVaultAccountResponse.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RenameVaultAccountResponse { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public RenameVaultAccountResponse() {} - public RenameVaultAccountResponse name(String name) { + public RenameVaultAccountResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -55,11 +56,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public RenameVaultAccountResponse id(String id) { + public RenameVaultAccountResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -78,7 +79,7 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `id` to the URL query string @@ -170,10 +170,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } 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 index 1c7153bc..dd87e35d 100644 --- a/src/main/java/com/fireblocks/sdk/model/RescanTransaction.java +++ b/src/main/java/com/fireblocks/sdk/model/RescanTransaction.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ RescanTransaction.JSON_PROPERTY_TX_HASH, RescanTransaction.JSON_PROPERTY_ASSET_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String txHash; + @jakarta.annotation.Nullable private String txHash; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public RescanTransaction() {} - public RescanTransaction txHash(String txHash) { + public RescanTransaction txHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; return this; } @@ -55,11 +56,11 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; } - public RescanTransaction assetId(String assetId) { + public RescanTransaction assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -78,7 +79,7 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } // add `assetId` to the URL query string @@ -172,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 293805b2..2b74caa7 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,20 +30,22 @@ ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_PROCESSED, ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_TOTAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String jobId; + @jakarta.annotation.Nonnull private String jobId; /** Bulk resend job status */ public enum StatusEnum { - QUEUED("QUEUED"), + QUEUED(String.valueOf("QUEUED")), - IN_PROGRESS("IN_PROGRESS"), + IN_PROGRESS(String.valueOf("IN_PROGRESS")), - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - FAILED("FAILED"); + FAILED(String.valueOf("FAILED")); private String value; @@ -74,17 +75,30 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_PROCESSED = "processed"; - private BigDecimal processed; + @jakarta.annotation.Nonnull private BigDecimal processed; public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; + @jakarta.annotation.Nonnull private BigDecimal total; public ResendFailedNotificationsJobStatusResponse() {} - public ResendFailedNotificationsJobStatusResponse jobId(String jobId) { + @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; } @@ -103,11 +117,12 @@ public String getJobId() { @JsonProperty(JSON_PROPERTY_JOB_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setJobId(String jobId) { + public void setJobId(@jakarta.annotation.Nonnull String jobId) { this.jobId = jobId; } - public ResendFailedNotificationsJobStatusResponse status(StatusEnum status) { + public ResendFailedNotificationsJobStatusResponse status( + @jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -126,11 +141,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public ResendFailedNotificationsJobStatusResponse processed(BigDecimal processed) { + public ResendFailedNotificationsJobStatusResponse processed( + @jakarta.annotation.Nonnull BigDecimal processed) { this.processed = processed; return this; } @@ -149,11 +165,12 @@ public BigDecimal getProcessed() { @JsonProperty(JSON_PROPERTY_PROCESSED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProcessed(BigDecimal processed) { + public void setProcessed(@jakarta.annotation.Nonnull BigDecimal processed) { this.processed = processed; } - public ResendFailedNotificationsJobStatusResponse total(BigDecimal total) { + public ResendFailedNotificationsJobStatusResponse total( + @jakarta.annotation.Nonnull BigDecimal total) { this.total = total; return this; } @@ -172,7 +189,7 @@ public BigDecimal getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(BigDecimal total) { + public void setTotal(@jakarta.annotation.Nonnull BigDecimal total) { this.total = total; } @@ -261,8 +278,7 @@ public String toUrlQueryString(String prefix) { "%sjobId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getJobId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getJobId())))); } // add `status` to the URL query string @@ -272,8 +288,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `processed` to the URL query string @@ -283,9 +298,7 @@ public String toUrlQueryString(String prefix) { "%sprocessed%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProcessed()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProcessed())))); } // add `total` to the URL query string @@ -295,8 +308,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index ea62b0a8..71b94342 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,17 +28,20 @@ ResendFailedNotificationsRequest.JSON_PROPERTY_START_TIME, ResendFailedNotificationsRequest.JSON_PROPERTY_EVENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private BigDecimal startTime; + @jakarta.annotation.Nullable private BigDecimal startTime; public static final String JSON_PROPERTY_EVENTS = "events"; - private List events; + @jakarta.annotation.Nullable private List events = new ArrayList<>(); public ResendFailedNotificationsRequest() {} - public ResendFailedNotificationsRequest startTime(BigDecimal startTime) { + public ResendFailedNotificationsRequest startTime( + @jakarta.annotation.Nullable BigDecimal startTime) { this.startTime = startTime; return this; } @@ -61,11 +63,12 @@ public BigDecimal getStartTime() { @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStartTime(BigDecimal startTime) { + public void setStartTime(@jakarta.annotation.Nullable BigDecimal startTime) { this.startTime = startTime; } - public ResendFailedNotificationsRequest events(List events) { + public ResendFailedNotificationsRequest events( + @jakarta.annotation.Nullable List events) { this.events = events; return this; } @@ -93,7 +96,7 @@ public List getEvents() { @JsonProperty(JSON_PROPERTY_EVENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEvents(List events) { + public void setEvents(@jakarta.annotation.Nullable List events) { this.events = events; } @@ -177,9 +180,7 @@ public String toUrlQueryString(String prefix) { "%sstartTime%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStartTime()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStartTime())))); } // add `events` to the URL query string @@ -195,10 +196,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getEvents().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getEvents().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java index 74aac8fc..a578fba3 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java @@ -16,22 +16,23 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** ResendFailedNotificationsResponse */ @JsonPropertyOrder({ResendFailedNotificationsResponse.JSON_PROPERTY_TOTAL}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private BigDecimal total; + @jakarta.annotation.Nullable private BigDecimal total; public ResendFailedNotificationsResponse() {} - public ResendFailedNotificationsResponse total(BigDecimal total) { + public ResendFailedNotificationsResponse total(@jakarta.annotation.Nullable BigDecimal total) { this.total = total; return this; } @@ -50,7 +51,7 @@ public BigDecimal getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(BigDecimal total) { + public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { this.total = total; } @@ -132,8 +133,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 83bee1c8..9e8620cf 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,17 +29,28 @@ ResendNotificationsByResourceIdRequest.JSON_PROPERTY_RESOURCE_ID, ResendNotificationsByResourceIdRequest.JSON_PROPERTY_EXCLUDE_STATUSES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID resourceId; + @jakarta.annotation.Nonnull private UUID resourceId; public static final String JSON_PROPERTY_EXCLUDE_STATUSES = "excludeStatuses"; - private List excludeStatuses; + + @jakarta.annotation.Nullable + private List excludeStatuses = new ArrayList<>(); public ResendNotificationsByResourceIdRequest() {} - public ResendNotificationsByResourceIdRequest resourceId(UUID resourceId) { + @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; } @@ -58,12 +69,12 @@ public UUID getResourceId() { @JsonProperty(JSON_PROPERTY_RESOURCE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResourceId(UUID resourceId) { + public void setResourceId(@jakarta.annotation.Nonnull UUID resourceId) { this.resourceId = resourceId; } public ResendNotificationsByResourceIdRequest excludeStatuses( - List excludeStatuses) { + @jakarta.annotation.Nullable List excludeStatuses) { this.excludeStatuses = excludeStatuses; return this; } @@ -94,7 +105,8 @@ public List getExcludeStatuses() { @JsonProperty(JSON_PROPERTY_EXCLUDE_STATUSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExcludeStatuses(List excludeStatuses) { + public void setExcludeStatuses( + @jakarta.annotation.Nullable List excludeStatuses) { this.excludeStatuses = excludeStatuses; } @@ -180,9 +192,7 @@ public String toUrlQueryString(String prefix) { "%sresourceId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getResourceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getResourceId())))); } // add `excludeStatuses` to the URL query string @@ -198,10 +208,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getExcludeStatuses().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getExcludeStatuses().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequest.java b/src/main/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequest.java index ee3ec617..45135d84 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ ResendTransactionWebhooksRequest.JSON_PROPERTY_RESEND_CREATED, ResendTransactionWebhooksRequest.JSON_PROPERTY_RESEND_STATUS_UPDATED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ResendTransactionWebhooksRequest { public static final String JSON_PROPERTY_RESEND_CREATED = "resendCreated"; - private Boolean resendCreated; + @jakarta.annotation.Nullable private Boolean resendCreated; public static final String JSON_PROPERTY_RESEND_STATUS_UPDATED = "resendStatusUpdated"; - private Boolean resendStatusUpdated; + @jakarta.annotation.Nullable private Boolean resendStatusUpdated; public ResendTransactionWebhooksRequest() {} - public ResendTransactionWebhooksRequest resendCreated(Boolean resendCreated) { + public ResendTransactionWebhooksRequest resendCreated( + @jakarta.annotation.Nullable Boolean resendCreated) { this.resendCreated = resendCreated; return this; } @@ -55,11 +57,12 @@ public Boolean getResendCreated() { @JsonProperty(JSON_PROPERTY_RESEND_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResendCreated(Boolean resendCreated) { + public void setResendCreated(@jakarta.annotation.Nullable Boolean resendCreated) { this.resendCreated = resendCreated; } - public ResendTransactionWebhooksRequest resendStatusUpdated(Boolean resendStatusUpdated) { + public ResendTransactionWebhooksRequest resendStatusUpdated( + @jakarta.annotation.Nullable Boolean resendStatusUpdated) { this.resendStatusUpdated = resendStatusUpdated; return this; } @@ -78,7 +81,7 @@ public Boolean getResendStatusUpdated() { @JsonProperty(JSON_PROPERTY_RESEND_STATUS_UPDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResendStatusUpdated(Boolean resendStatusUpdated) { + public void setResendStatusUpdated(@jakarta.annotation.Nullable Boolean resendStatusUpdated) { this.resendStatusUpdated = resendStatusUpdated; } @@ -166,10 +169,7 @@ public String toUrlQueryString(String prefix) { "%sresendCreated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getResendCreated()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getResendCreated())))); } // add `resendStatusUpdated` to the URL query string @@ -179,10 +179,8 @@ public String toUrlQueryString(String prefix) { "%sresendStatusUpdated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getResendStatusUpdated()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getResendStatusUpdated())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponse.java index 6f69112b..ee6d8ef2 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponse.java @@ -13,24 +13,33 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** ResendWebhooksByTransactionIdResponse */ @JsonPropertyOrder({ResendWebhooksByTransactionIdResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ResendWebhooksByTransactionIdResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public ResendWebhooksByTransactionIdResponse() {} - public ResendWebhooksByTransactionIdResponse success(Boolean success) { + @JsonCreator + public ResendWebhooksByTransactionIdResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public ResendWebhooksByTransactionIdResponse success( + @jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +58,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -131,8 +140,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ResendWebhooksResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendWebhooksResponse.java index d52db1c2..d79ba2eb 100644 --- a/src/main/java/com/fireblocks/sdk/model/ResendWebhooksResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ResendWebhooksResponse.java @@ -16,22 +16,24 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** ResendWebhooksResponse */ @JsonPropertyOrder({ResendWebhooksResponse.JSON_PROPERTY_MESSAGES_COUNT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ResendWebhooksResponse { public static final String JSON_PROPERTY_MESSAGES_COUNT = "messagesCount"; - private BigDecimal messagesCount; + @jakarta.annotation.Nullable private BigDecimal messagesCount; public ResendWebhooksResponse() {} - public ResendWebhooksResponse messagesCount(BigDecimal messagesCount) { + public ResendWebhooksResponse messagesCount( + @jakarta.annotation.Nullable BigDecimal messagesCount) { this.messagesCount = messagesCount; return this; } @@ -50,7 +52,7 @@ public BigDecimal getMessagesCount() { @JsonProperty(JSON_PROPERTY_MESSAGES_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessagesCount(BigDecimal messagesCount) { + public void setMessagesCount(@jakarta.annotation.Nullable BigDecimal messagesCount) { this.messagesCount = messagesCount; } @@ -131,10 +133,7 @@ public String toUrlQueryString(String prefix) { "%smessagesCount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMessagesCount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessagesCount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RespondToConnectionRequest.java b/src/main/java/com/fireblocks/sdk/model/RespondToConnectionRequest.java index f9b896dd..b559ea92 100644 --- a/src/main/java/com/fireblocks/sdk/model/RespondToConnectionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RespondToConnectionRequest.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** RespondToConnectionRequest */ @JsonPropertyOrder({RespondToConnectionRequest.JSON_PROPERTY_APPROVE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RespondToConnectionRequest { public static final String JSON_PROPERTY_APPROVE = "approve"; - private Boolean approve; + @jakarta.annotation.Nonnull private Boolean approve; public RespondToConnectionRequest() {} - public RespondToConnectionRequest approve(Boolean approve) { + @JsonCreator + public RespondToConnectionRequest( + @JsonProperty(value = JSON_PROPERTY_APPROVE, required = true) Boolean approve) { + this.approve = approve; + } + + public RespondToConnectionRequest approve(@jakarta.annotation.Nonnull Boolean approve) { this.approve = approve; return this; } @@ -49,7 +57,7 @@ public Boolean getApprove() { @JsonProperty(JSON_PROPERTY_APPROVE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApprove(Boolean approve) { + public void setApprove(@jakarta.annotation.Nonnull Boolean approve) { this.approve = approve; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%sapprove%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getApprove()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getApprove())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RewardInfo.java b/src/main/java/com/fireblocks/sdk/model/RewardInfo.java index 5c021339..b8b9a9fa 100644 --- a/src/main/java/com/fireblocks/sdk/model/RewardInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/RewardInfo.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +26,19 @@ * receive only the Fireblocks’ side of the transaction. */ @JsonPropertyOrder({RewardInfo.JSON_PROPERTY_SRC_REWARDS, RewardInfo.JSON_PROPERTY_DEST_REWARDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RewardInfo { public static final String JSON_PROPERTY_SRC_REWARDS = "srcRewards"; - private String srcRewards; + @jakarta.annotation.Nullable private String srcRewards; public static final String JSON_PROPERTY_DEST_REWARDS = "destRewards"; - private String destRewards; + @jakarta.annotation.Nullable private String destRewards; public RewardInfo() {} - public RewardInfo srcRewards(String srcRewards) { + public RewardInfo srcRewards(@jakarta.annotation.Nullable String srcRewards) { this.srcRewards = srcRewards; return this; } @@ -56,11 +57,11 @@ public String getSrcRewards() { @JsonProperty(JSON_PROPERTY_SRC_REWARDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcRewards(String srcRewards) { + public void setSrcRewards(@jakarta.annotation.Nullable String srcRewards) { this.srcRewards = srcRewards; } - public RewardInfo destRewards(String destRewards) { + public RewardInfo destRewards(@jakarta.annotation.Nullable String destRewards) { this.destRewards = destRewards; return this; } @@ -79,7 +80,7 @@ public String getDestRewards() { @JsonProperty(JSON_PROPERTY_DEST_REWARDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestRewards(String destRewards) { + public void setDestRewards(@jakarta.annotation.Nullable String destRewards) { this.destRewards = destRewards; } @@ -162,9 +163,7 @@ public String toUrlQueryString(String prefix) { "%ssrcRewards%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSrcRewards()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcRewards())))); } // add `destRewards` to the URL query string @@ -174,10 +173,7 @@ public String toUrlQueryString(String prefix) { "%sdestRewards%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestRewards()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestRewards())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/RewardsInfo.java b/src/main/java/com/fireblocks/sdk/model/RewardsInfo.java index 54377cd0..e34b3142 100644 --- a/src/main/java/com/fireblocks/sdk/model/RewardsInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/RewardsInfo.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** RewardsInfo */ @JsonPropertyOrder({RewardsInfo.JSON_PROPERTY_PENDING_REWARDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class RewardsInfo { public static final String JSON_PROPERTY_PENDING_REWARDS = "pendingRewards"; - private String pendingRewards; + @jakarta.annotation.Nullable private String pendingRewards; public RewardsInfo() {} - public RewardsInfo pendingRewards(String pendingRewards) { + public RewardsInfo pendingRewards(@jakarta.annotation.Nullable String pendingRewards) { this.pendingRewards = pendingRewards; return this; } @@ -49,7 +50,7 @@ public String getPendingRewards() { @JsonProperty(JSON_PROPERTY_PENDING_REWARDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPendingRewards(String pendingRewards) { + public void setPendingRewards(@jakarta.annotation.Nullable String pendingRewards) { this.pendingRewards = pendingRewards; } @@ -130,10 +131,7 @@ public String toUrlQueryString(String prefix) { "%spendingRewards%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPendingRewards()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPendingRewards())))); } 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 index f5e858a1..543b1862 100644 --- a/src/main/java/com/fireblocks/sdk/model/SOLAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/SOLAccount.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,30 @@ SOLAccount.JSON_PROPERTY_WRITABLE, SOLAccount.JSON_PROPERTY_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_SIGNER = "signer"; - private Boolean signer; + @jakarta.annotation.Nullable private Boolean signer; public static final String JSON_PROPERTY_WRITABLE = "writable"; - private Boolean writable; + @jakarta.annotation.Nullable private Boolean writable; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public SOLAccount() {} - public SOLAccount name(String name) { + @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; } @@ -63,11 +70,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SOLAccount signer(Boolean signer) { + public SOLAccount signer(@jakarta.annotation.Nullable Boolean signer) { this.signer = signer; return this; } @@ -87,11 +94,11 @@ public Boolean getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(Boolean signer) { + public void setSigner(@jakarta.annotation.Nullable Boolean signer) { this.signer = signer; } - public SOLAccount writable(Boolean writable) { + public SOLAccount writable(@jakarta.annotation.Nullable Boolean writable) { this.writable = writable; return this; } @@ -110,11 +117,11 @@ public Boolean getWritable() { @JsonProperty(JSON_PROPERTY_WRITABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWritable(Boolean writable) { + public void setWritable(@jakarta.annotation.Nullable Boolean writable) { this.writable = writable; } - public SOLAccount address(String address) { + public SOLAccount address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -133,7 +140,7 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } @@ -220,8 +227,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `signer` to the URL query string @@ -231,8 +237,7 @@ public String toUrlQueryString(String prefix) { "%ssigner%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSigner()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSigner())))); } // add `writable` to the URL query string @@ -242,8 +247,7 @@ public String toUrlQueryString(String prefix) { "%swritable%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWritable()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWritable())))); } // add `address` to the URL query string @@ -253,8 +257,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 91c63d38..8ed6cab9 100644 --- a/src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java +++ b/src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,33 @@ SOLAccountWithValue.JSON_PROPERTY_WRITABLE, SOLAccountWithValue.JSON_PROPERTY_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_SIGNER = "signer"; - private Boolean signer; + @jakarta.annotation.Nullable private Boolean signer; public static final String JSON_PROPERTY_WRITABLE = "writable"; - private Boolean writable; + @jakarta.annotation.Nullable private Boolean writable; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nonnull private String address; public SOLAccountWithValue() {} - public SOLAccountWithValue name(String name) { + @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; } @@ -63,11 +73,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SOLAccountWithValue signer(Boolean signer) { + public SOLAccountWithValue signer(@jakarta.annotation.Nullable Boolean signer) { this.signer = signer; return this; } @@ -87,11 +97,11 @@ public Boolean getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(Boolean signer) { + public void setSigner(@jakarta.annotation.Nullable Boolean signer) { this.signer = signer; } - public SOLAccountWithValue writable(Boolean writable) { + public SOLAccountWithValue writable(@jakarta.annotation.Nullable Boolean writable) { this.writable = writable; return this; } @@ -110,11 +120,11 @@ public Boolean getWritable() { @JsonProperty(JSON_PROPERTY_WRITABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWritable(Boolean writable) { + public void setWritable(@jakarta.annotation.Nullable Boolean writable) { this.writable = writable; } - public SOLAccountWithValue address(String address) { + public SOLAccountWithValue address(@jakarta.annotation.Nonnull String address) { this.address = address; return this; } @@ -133,7 +143,7 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } @@ -220,8 +230,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `signer` to the URL query string @@ -231,8 +240,7 @@ public String toUrlQueryString(String prefix) { "%ssigner%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSigner()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSigner())))); } // add `writable` to the URL query string @@ -242,8 +250,7 @@ public String toUrlQueryString(String prefix) { "%swritable%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWritable()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWritable())))); } // add `address` to the URL query string @@ -253,8 +260,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequest.java b/src/main/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequest.java index d2dc6508..2cd50cda 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequest.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ ScreeningConfigurationsRequest.JSON_PROPERTY_INBOUND_TRANSACTION_DELAY, ScreeningConfigurationsRequest.JSON_PROPERTY_OUTBOUND_TRANSACTION_DELAY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningConfigurationsRequest { public static final String JSON_PROPERTY_BYPASS_SCREENING_DURING_SERVICE_OUTAGES = "bypassScreeningDuringServiceOutages"; - private Boolean bypassScreeningDuringServiceOutages; + @jakarta.annotation.Nullable private Boolean bypassScreeningDuringServiceOutages; public static final String JSON_PROPERTY_INBOUND_TRANSACTION_DELAY = "inboundTransactionDelay"; - private BigDecimal inboundTransactionDelay; + @jakarta.annotation.Nullable private BigDecimal inboundTransactionDelay; public static final String JSON_PROPERTY_OUTBOUND_TRANSACTION_DELAY = "outboundTransactionDelay"; - private BigDecimal outboundTransactionDelay; + @jakarta.annotation.Nullable private BigDecimal outboundTransactionDelay; public ScreeningConfigurationsRequest() {} public ScreeningConfigurationsRequest bypassScreeningDuringServiceOutages( - Boolean bypassScreeningDuringServiceOutages) { + @jakarta.annotation.Nullable Boolean bypassScreeningDuringServiceOutages) { this.bypassScreeningDuringServiceOutages = bypassScreeningDuringServiceOutages; return this; } @@ -64,12 +65,12 @@ public Boolean getBypassScreeningDuringServiceOutages() { @JsonProperty(JSON_PROPERTY_BYPASS_SCREENING_DURING_SERVICE_OUTAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBypassScreeningDuringServiceOutages( - Boolean bypassScreeningDuringServiceOutages) { + @jakarta.annotation.Nullable Boolean bypassScreeningDuringServiceOutages) { this.bypassScreeningDuringServiceOutages = bypassScreeningDuringServiceOutages; } public ScreeningConfigurationsRequest inboundTransactionDelay( - BigDecimal inboundTransactionDelay) { + @jakarta.annotation.Nullable BigDecimal inboundTransactionDelay) { this.inboundTransactionDelay = inboundTransactionDelay; return this; } @@ -88,12 +89,13 @@ public BigDecimal getInboundTransactionDelay() { @JsonProperty(JSON_PROPERTY_INBOUND_TRANSACTION_DELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInboundTransactionDelay(BigDecimal inboundTransactionDelay) { + public void setInboundTransactionDelay( + @jakarta.annotation.Nullable BigDecimal inboundTransactionDelay) { this.inboundTransactionDelay = inboundTransactionDelay; } public ScreeningConfigurationsRequest outboundTransactionDelay( - BigDecimal outboundTransactionDelay) { + @jakarta.annotation.Nullable BigDecimal outboundTransactionDelay) { this.outboundTransactionDelay = outboundTransactionDelay; return this; } @@ -112,7 +114,8 @@ public BigDecimal getOutboundTransactionDelay() { @JsonProperty(JSON_PROPERTY_OUTBOUND_TRANSACTION_DELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutboundTransactionDelay(BigDecimal outboundTransactionDelay) { + public void setOutboundTransactionDelay( + @jakarta.annotation.Nullable BigDecimal outboundTransactionDelay) { this.outboundTransactionDelay = outboundTransactionDelay; } @@ -213,11 +216,9 @@ public String toUrlQueryString(String prefix) { "%sbypassScreeningDuringServiceOutages%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf( - getBypassScreeningDuringServiceOutages()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getBypassScreeningDuringServiceOutages())))); } // add `inboundTransactionDelay` to the URL query string @@ -227,10 +228,8 @@ public String toUrlQueryString(String prefix) { "%sinboundTransactionDelay%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInboundTransactionDelay()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getInboundTransactionDelay())))); } // add `outboundTransactionDelay` to the URL query string @@ -240,10 +239,8 @@ public String toUrlQueryString(String prefix) { "%soutboundTransactionDelay%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutboundTransactionDelay()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getOutboundTransactionDelay())))); } 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 new file mode 100644 index 00000000..7d290886 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java @@ -0,0 +1,790 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/ScreeningOperationExecution.java b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecution.java index 2eebd0dd..9c95d216 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecution.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecution.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -29,23 +29,32 @@ ScreeningOperationExecution.JSON_PROPERTY_FINISHED_AT, ScreeningOperationExecution.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningOperationExecution { public static final String JSON_PROPERTY_OUTPUT = "output"; - private ScreeningOperationExecutionOutput output; + @jakarta.annotation.Nullable private ScreeningOperationExecutionOutput output; public static final String JSON_PROPERTY_STARTED_AT = "startedAt"; - private BigDecimal startedAt; + @jakarta.annotation.Nonnull private BigDecimal startedAt; public static final String JSON_PROPERTY_FINISHED_AT = "finishedAt"; - private BigDecimal finishedAt; + @jakarta.annotation.Nullable private BigDecimal finishedAt; public static final String JSON_PROPERTY_FAILURE = "failure"; - private ScreeningOperationFailure failure; + @jakarta.annotation.Nullable private ScreeningOperationFailure failure; public ScreeningOperationExecution() {} - public ScreeningOperationExecution output(ScreeningOperationExecutionOutput output) { + @JsonCreator + public ScreeningOperationExecution( + @JsonProperty(value = JSON_PROPERTY_STARTED_AT, required = true) BigDecimal startedAt) { + this.startedAt = startedAt; + } + + public ScreeningOperationExecution output( + @jakarta.annotation.Nullable ScreeningOperationExecutionOutput output) { this.output = output; return this; } @@ -64,11 +73,11 @@ public ScreeningOperationExecutionOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(ScreeningOperationExecutionOutput output) { + public void setOutput(@jakarta.annotation.Nullable ScreeningOperationExecutionOutput output) { this.output = output; } - public ScreeningOperationExecution startedAt(BigDecimal startedAt) { + public ScreeningOperationExecution startedAt(@jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; return this; } @@ -87,11 +96,12 @@ public BigDecimal getStartedAt() { @JsonProperty(JSON_PROPERTY_STARTED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStartedAt(BigDecimal startedAt) { + public void setStartedAt(@jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; } - public ScreeningOperationExecution finishedAt(BigDecimal finishedAt) { + public ScreeningOperationExecution finishedAt( + @jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; return this; } @@ -110,11 +120,12 @@ public BigDecimal getFinishedAt() { @JsonProperty(JSON_PROPERTY_FINISHED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinishedAt(BigDecimal finishedAt) { + public void setFinishedAt(@jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; } - public ScreeningOperationExecution failure(ScreeningOperationFailure failure) { + public ScreeningOperationExecution failure( + @jakarta.annotation.Nullable ScreeningOperationFailure failure) { this.failure = failure; return this; } @@ -133,7 +144,7 @@ public ScreeningOperationFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(ScreeningOperationFailure failure) { + public void setFailure(@jakarta.annotation.Nullable ScreeningOperationFailure failure) { this.failure = failure; } @@ -225,9 +236,7 @@ public String toUrlQueryString(String prefix) { "%sstartedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStartedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStartedAt())))); } // add `finishedAt` to the URL query string @@ -237,9 +246,7 @@ public String toUrlQueryString(String prefix) { "%sfinishedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFinishedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFinishedAt())))); } // add `failure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java index b1059142..90e358f0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.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; @@ -23,14 +24,24 @@ /** ScreeningOperationExecutionOutput */ @JsonPropertyOrder({ScreeningOperationExecutionOutput.JSON_PROPERTY_VERDICTS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningOperationExecutionOutput { public static final String JSON_PROPERTY_VERDICTS = "verdicts"; - private List verdicts = new ArrayList<>(); + @jakarta.annotation.Nonnull private List verdicts = new ArrayList<>(); public ScreeningOperationExecutionOutput() {} - public ScreeningOperationExecutionOutput verdicts(List verdicts) { + @JsonCreator + public ScreeningOperationExecutionOutput( + @JsonProperty(value = JSON_PROPERTY_VERDICTS, required = true) + List verdicts) { + this.verdicts = verdicts; + } + + public ScreeningOperationExecutionOutput verdicts( + @jakarta.annotation.Nonnull List verdicts) { this.verdicts = verdicts; return this; } @@ -57,7 +68,7 @@ public List getVerdicts() { @JsonProperty(JSON_PROPERTY_VERDICTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerdicts(List verdicts) { + public void setVerdicts(@jakarta.annotation.Nonnull List verdicts) { this.verdicts = verdicts; } diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationFailure.java b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationFailure.java index b7f06bb9..ee407e5d 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,13 +27,15 @@ ScreeningOperationFailure.JSON_PROPERTY_REASON, ScreeningOperationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningOperationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - AML_PROCESS_FAILED("AML_PROCESS_FAILED"), + AML_PROCESS_FAILED(String.valueOf("AML_PROCESS_FAILED")), - SCREENING_REJECTED("SCREENING_REJECTED"); + SCREENING_REJECTED(String.valueOf("SCREENING_REJECTED")); private String value; @@ -64,14 +65,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private ScreeningOperationExecutionOutput data; + @jakarta.annotation.Nullable private ScreeningOperationExecutionOutput data; public ScreeningOperationFailure() {} - public ScreeningOperationFailure reason(ReasonEnum reason) { + @JsonCreator + public ScreeningOperationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public ScreeningOperationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -90,11 +97,12 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public ScreeningOperationFailure data(ScreeningOperationExecutionOutput data) { + public ScreeningOperationFailure data( + @jakarta.annotation.Nullable ScreeningOperationExecutionOutput data) { this.data = data; return this; } @@ -113,7 +121,7 @@ public ScreeningOperationExecutionOutput getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(ScreeningOperationExecutionOutput data) { + public void setData(@jakarta.annotation.Nullable ScreeningOperationExecutionOutput data) { this.data = data; } @@ -196,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningPolicyResponse.java b/src/main/java/com/fireblocks/sdk/model/ScreeningPolicyResponse.java index 1222ff23..2f0fd940 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningPolicyResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningPolicyResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.time.OffsetDateTime; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +30,41 @@ ScreeningPolicyResponse.JSON_PROPERTY_CREATE_DATE, ScreeningPolicyResponse.JSON_PROPERTY_LAST_UPDATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningPolicyResponse { public static final String JSON_PROPERTY_POLICY = "policy"; - private TravelRulePolicyRuleResponse policy; + @jakarta.annotation.Nonnull private TravelRulePolicyRuleResponse policy; public static final String JSON_PROPERTY_POLICY_STATUS = "policyStatus"; - private String policyStatus; + @jakarta.annotation.Nullable private String policyStatus; public static final String JSON_PROPERTY_IS_DEFAULT = "isDefault"; - private Boolean isDefault; + @jakarta.annotation.Nonnull private Boolean isDefault; public static final String JSON_PROPERTY_CREATE_DATE = "createDate"; - private OffsetDateTime createDate; + @jakarta.annotation.Nullable private OffsetDateTime createDate; public static final String JSON_PROPERTY_LAST_UPDATE = "lastUpdate"; - private OffsetDateTime lastUpdate; + @jakarta.annotation.Nonnull private OffsetDateTime lastUpdate; public ScreeningPolicyResponse() {} - public ScreeningPolicyResponse policy(TravelRulePolicyRuleResponse policy) { + @JsonCreator + public ScreeningPolicyResponse( + @JsonProperty(value = JSON_PROPERTY_POLICY, required = true) + TravelRulePolicyRuleResponse policy, + @JsonProperty(value = JSON_PROPERTY_IS_DEFAULT, required = true) Boolean isDefault, + @JsonProperty(value = JSON_PROPERTY_LAST_UPDATE, required = true) + OffsetDateTime lastUpdate) { + this.policy = policy; + this.isDefault = isDefault; + this.lastUpdate = lastUpdate; + } + + public ScreeningPolicyResponse policy( + @jakarta.annotation.Nonnull TravelRulePolicyRuleResponse policy) { this.policy = policy; return this; } @@ -68,11 +83,11 @@ public TravelRulePolicyRuleResponse getPolicy() { @JsonProperty(JSON_PROPERTY_POLICY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicy(TravelRulePolicyRuleResponse policy) { + public void setPolicy(@jakarta.annotation.Nonnull TravelRulePolicyRuleResponse policy) { this.policy = policy; } - public ScreeningPolicyResponse policyStatus(String policyStatus) { + public ScreeningPolicyResponse policyStatus(@jakarta.annotation.Nullable String policyStatus) { this.policyStatus = policyStatus; return this; } @@ -91,11 +106,11 @@ public String getPolicyStatus() { @JsonProperty(JSON_PROPERTY_POLICY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPolicyStatus(String policyStatus) { + public void setPolicyStatus(@jakarta.annotation.Nullable String policyStatus) { this.policyStatus = policyStatus; } - public ScreeningPolicyResponse isDefault(Boolean isDefault) { + public ScreeningPolicyResponse isDefault(@jakarta.annotation.Nonnull Boolean isDefault) { this.isDefault = isDefault; return this; } @@ -114,11 +129,12 @@ public Boolean getIsDefault() { @JsonProperty(JSON_PROPERTY_IS_DEFAULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsDefault(Boolean isDefault) { + public void setIsDefault(@jakarta.annotation.Nonnull Boolean isDefault) { this.isDefault = isDefault; } - public ScreeningPolicyResponse createDate(OffsetDateTime createDate) { + public ScreeningPolicyResponse createDate( + @jakarta.annotation.Nullable OffsetDateTime createDate) { this.createDate = createDate; return this; } @@ -137,11 +153,12 @@ public OffsetDateTime getCreateDate() { @JsonProperty(JSON_PROPERTY_CREATE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreateDate(OffsetDateTime createDate) { + public void setCreateDate(@jakarta.annotation.Nullable OffsetDateTime createDate) { this.createDate = createDate; } - public ScreeningPolicyResponse lastUpdate(OffsetDateTime lastUpdate) { + public ScreeningPolicyResponse lastUpdate( + @jakarta.annotation.Nonnull OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; return this; } @@ -160,7 +177,7 @@ public OffsetDateTime getLastUpdate() { @JsonProperty(JSON_PROPERTY_LAST_UPDATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastUpdate(OffsetDateTime lastUpdate) { + public void setLastUpdate(@jakarta.annotation.Nonnull OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; } @@ -254,10 +271,7 @@ public String toUrlQueryString(String prefix) { "%spolicyStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPolicyStatus()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPolicyStatus())))); } // add `isDefault` to the URL query string @@ -267,9 +281,7 @@ public String toUrlQueryString(String prefix) { "%sisDefault%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsDefault()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsDefault())))); } // add `createDate` to the URL query string @@ -279,9 +291,7 @@ public String toUrlQueryString(String prefix) { "%screateDate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreateDate()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreateDate())))); } // add `lastUpdate` to the URL query string @@ -291,9 +301,7 @@ public String toUrlQueryString(String prefix) { "%slastUpdate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastUpdate()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastUpdate())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponse.java b/src/main/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponse.java index a3b893ec..3fe6a3cb 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -33,13 +32,15 @@ ScreeningProviderRulesConfigurationResponse.JSON_PROPERTY_ASSET, ScreeningProviderRulesConfigurationResponse.JSON_PROPERTY_ACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningProviderRulesConfigurationResponse { /** Gets or Sets direction */ public enum DirectionEnum { - INBOUND("INBOUND"), + INBOUND(String.valueOf("INBOUND")), - OUTBOUND("OUTBOUND"); + OUTBOUND(String.valueOf("OUTBOUND")); private String value; @@ -69,21 +70,21 @@ public static DirectionEnum fromValue(String value) { } public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + @jakarta.annotation.Nullable private DirectionEnum direction; /** Gets or Sets status */ public enum StatusEnum { - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - PENDING("PENDING"), + PENDING(String.valueOf("PENDING")), - REJECTED("REJECTED"), + REJECTED(String.valueOf("REJECTED")), - FAILED("FAILED"), + FAILED(String.valueOf("FAILED")), - CANCELED("CANCELED"), + CANCELED(String.valueOf("CANCELED")), - BLOCKING_TIME_EXPIRED("BLOCKING_TIME_EXPIRED"); + BLOCKING_TIME_EXPIRED(String.valueOf("BLOCKING_TIME_EXPIRED")); private String value; @@ -113,30 +114,30 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_AMOUNT_U_S_D = "amountUSD"; - private BigDecimal amountUSD; + @jakarta.annotation.Nullable private BigDecimal amountUSD; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private BigDecimal amount; + @jakarta.annotation.Nullable private BigDecimal amount; public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nullable private String asset; /** Gets or Sets action */ public enum ActionEnum { - ACCEPT("ACCEPT"), + ACCEPT(String.valueOf("ACCEPT")), - REJECT("REJECT"), + REJECT(String.valueOf("REJECT")), - ALERT("ALERT"), + ALERT(String.valueOf("ALERT")), - WAIT("WAIT"), + WAIT(String.valueOf("WAIT")), - FREEZE("FREEZE"), + FREEZE(String.valueOf("FREEZE")), - CANCEL("CANCEL"); + CANCEL(String.valueOf("CANCEL")); private String value; @@ -166,11 +167,18 @@ public static ActionEnum fromValue(String value) { } public static final String JSON_PROPERTY_ACTION = "action"; - private ActionEnum action; + @jakarta.annotation.Nonnull private ActionEnum action; public ScreeningProviderRulesConfigurationResponse() {} - public ScreeningProviderRulesConfigurationResponse direction(DirectionEnum direction) { + @JsonCreator + public ScreeningProviderRulesConfigurationResponse( + @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action) { + this.action = action; + } + + public ScreeningProviderRulesConfigurationResponse direction( + @jakarta.annotation.Nullable DirectionEnum direction) { this.direction = direction; return this; } @@ -189,11 +197,12 @@ public DirectionEnum getDirection() { @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(@jakarta.annotation.Nullable DirectionEnum direction) { this.direction = direction; } - public ScreeningProviderRulesConfigurationResponse status(StatusEnum status) { + public ScreeningProviderRulesConfigurationResponse status( + @jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -212,11 +221,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public ScreeningProviderRulesConfigurationResponse amountUSD(BigDecimal amountUSD) { + public ScreeningProviderRulesConfigurationResponse amountUSD( + @jakarta.annotation.Nullable BigDecimal amountUSD) { this.amountUSD = amountUSD; return this; } @@ -235,11 +245,12 @@ public BigDecimal getAmountUSD() { @JsonProperty(JSON_PROPERTY_AMOUNT_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUSD(BigDecimal amountUSD) { + public void setAmountUSD(@jakarta.annotation.Nullable BigDecimal amountUSD) { this.amountUSD = amountUSD; } - public ScreeningProviderRulesConfigurationResponse amount(BigDecimal amount) { + public ScreeningProviderRulesConfigurationResponse amount( + @jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; return this; } @@ -258,11 +269,12 @@ public BigDecimal getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(BigDecimal amount) { + public void setAmount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; } - public ScreeningProviderRulesConfigurationResponse asset(String asset) { + public ScreeningProviderRulesConfigurationResponse asset( + @jakarta.annotation.Nullable String asset) { this.asset = asset; return this; } @@ -281,11 +293,12 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nullable String asset) { this.asset = asset; } - public ScreeningProviderRulesConfigurationResponse action(ActionEnum action) { + public ScreeningProviderRulesConfigurationResponse action( + @jakarta.annotation.Nonnull ActionEnum action) { this.action = action; return this; } @@ -304,7 +317,7 @@ public ActionEnum getAction() { @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAction(ActionEnum action) { + public void setAction(@jakarta.annotation.Nonnull ActionEnum action) { this.action = action; } @@ -397,9 +410,7 @@ public String toUrlQueryString(String prefix) { "%sdirection%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDirection()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDirection())))); } // add `status` to the URL query string @@ -409,8 +420,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `amountUSD` to the URL query string @@ -420,9 +430,7 @@ public String toUrlQueryString(String prefix) { "%samountUSD%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUSD())))); } // add `amount` to the URL query string @@ -432,8 +440,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `asset` to the URL query string @@ -443,8 +450,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `action` to the URL query string @@ -454,8 +460,7 @@ public String toUrlQueryString(String prefix) { "%saction%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAction()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAction())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java b/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java index 942f9139..9380472a 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ ScreeningUpdateConfigurations.JSON_PROPERTY_DISABLE_BYPASS, ScreeningUpdateConfigurations.JSON_PROPERTY_DISABLE_UNFREEZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningUpdateConfigurations { public static final String JSON_PROPERTY_DISABLE_BYPASS = "disableBypass"; - private Boolean disableBypass; + @jakarta.annotation.Nullable private Boolean disableBypass; public static final String JSON_PROPERTY_DISABLE_UNFREEZE = "disableUnfreeze"; - private Boolean disableUnfreeze; + @jakarta.annotation.Nullable private Boolean disableUnfreeze; public ScreeningUpdateConfigurations() {} - public ScreeningUpdateConfigurations disableBypass(Boolean disableBypass) { + public ScreeningUpdateConfigurations disableBypass( + @jakarta.annotation.Nullable Boolean disableBypass) { this.disableBypass = disableBypass; return this; } @@ -55,11 +57,12 @@ public Boolean getDisableBypass() { @JsonProperty(JSON_PROPERTY_DISABLE_BYPASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisableBypass(Boolean disableBypass) { + public void setDisableBypass(@jakarta.annotation.Nullable Boolean disableBypass) { this.disableBypass = disableBypass; } - public ScreeningUpdateConfigurations disableUnfreeze(Boolean disableUnfreeze) { + public ScreeningUpdateConfigurations disableUnfreeze( + @jakarta.annotation.Nullable Boolean disableUnfreeze) { this.disableUnfreeze = disableUnfreeze; return this; } @@ -79,7 +82,7 @@ public Boolean getDisableUnfreeze() { @JsonProperty(JSON_PROPERTY_DISABLE_UNFREEZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisableUnfreeze(Boolean disableUnfreeze) { + public void setDisableUnfreeze(@jakarta.annotation.Nullable Boolean disableUnfreeze) { this.disableUnfreeze = disableUnfreeze; } @@ -164,10 +167,7 @@ public String toUrlQueryString(String prefix) { "%sdisableBypass%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisableBypass()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisableBypass())))); } // add `disableUnfreeze` to the URL query string @@ -177,10 +177,7 @@ public String toUrlQueryString(String prefix) { "%sdisableUnfreeze%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisableUnfreeze()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisableUnfreeze())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java index 6b3afa33..4c69d336 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -30,11 +29,13 @@ ScreeningValidationFailure.JSON_PROPERTY_REASON, ScreeningValidationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningValidationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - SCREENING_DISABLED_IN_TENANT("SCREENING_DISABLED_IN_TENANT"); + SCREENING_DISABLED_IN_TENANT(String.valueOf("SCREENING_DISABLED_IN_TENANT")); private String value; @@ -64,14 +65,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public ScreeningValidationFailure() {} - public ScreeningValidationFailure reason(ReasonEnum reason) { + @JsonCreator + public ScreeningValidationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public ScreeningValidationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -90,11 +97,11 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public ScreeningValidationFailure data(Map data) { + public ScreeningValidationFailure data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -121,7 +128,7 @@ public Map getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } @@ -204,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string @@ -221,10 +227,7 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getData().get(_key), - URLEncoder.encode( - String.valueOf(getData().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningVerdict.java b/src/main/java/com/fireblocks/sdk/model/ScreeningVerdict.java index b0add608..835d991b 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningVerdict.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningVerdict.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,19 +31,21 @@ ScreeningVerdict.JSON_PROPERTY_AMOUNT, ScreeningVerdict.JSON_PROPERTY_MATCHED_RULE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningVerdict { /** Gets or Sets verdict */ public enum VerdictEnum { - PASSED("PASSED"), + PASSED(String.valueOf("PASSED")), - PASSED_WITH_ALERT("PASSED_WITH_ALERT"), + PASSED_WITH_ALERT(String.valueOf("PASSED_WITH_ALERT")), - REJECTED("REJECTED"), + REJECTED(String.valueOf("REJECTED")), - FAILED("FAILED"), + FAILED(String.valueOf("FAILED")), - BYPASSED("BYPASSED"); + BYPASSED(String.valueOf("BYPASSED")); private String value; @@ -74,26 +75,41 @@ public static VerdictEnum fromValue(String value) { } public static final String JSON_PROPERTY_VERDICT = "verdict"; - private VerdictEnum verdict; + @jakarta.annotation.Nonnull private VerdictEnum verdict; public static final String JSON_PROPERTY_EXECUTION_OPERATION_ID = "executionOperationId"; - private String executionOperationId; + @jakarta.annotation.Nonnull private String executionOperationId; public static final String JSON_PROPERTY_ACCOUNT = "account"; - private Destination account; + @jakarta.annotation.Nonnull private Destination account; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_MATCHED_RULE = "matchedRule"; - private ScreeningVerdictMatchedRule matchedRule; + @jakarta.annotation.Nullable private ScreeningVerdictMatchedRule matchedRule; public ScreeningVerdict() {} - public ScreeningVerdict verdict(VerdictEnum verdict) { + @JsonCreator + public ScreeningVerdict( + @JsonProperty(value = JSON_PROPERTY_VERDICT, required = true) VerdictEnum verdict, + @JsonProperty(value = JSON_PROPERTY_EXECUTION_OPERATION_ID, required = true) + String executionOperationId, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) Destination account, + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { + this.verdict = verdict; + this.executionOperationId = executionOperationId; + this.account = account; + this.assetId = assetId; + this.amount = amount; + } + + public ScreeningVerdict verdict(@jakarta.annotation.Nonnull VerdictEnum verdict) { this.verdict = verdict; return this; } @@ -112,11 +128,12 @@ public VerdictEnum getVerdict() { @JsonProperty(JSON_PROPERTY_VERDICT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerdict(VerdictEnum verdict) { + public void setVerdict(@jakarta.annotation.Nonnull VerdictEnum verdict) { this.verdict = verdict; } - public ScreeningVerdict executionOperationId(String executionOperationId) { + public ScreeningVerdict executionOperationId( + @jakarta.annotation.Nonnull String executionOperationId) { this.executionOperationId = executionOperationId; return this; } @@ -135,11 +152,11 @@ public String getExecutionOperationId() { @JsonProperty(JSON_PROPERTY_EXECUTION_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExecutionOperationId(String executionOperationId) { + public void setExecutionOperationId(@jakarta.annotation.Nonnull String executionOperationId) { this.executionOperationId = executionOperationId; } - public ScreeningVerdict account(Destination account) { + public ScreeningVerdict account(@jakarta.annotation.Nonnull Destination account) { this.account = account; return this; } @@ -158,11 +175,11 @@ public Destination getAccount() { @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccount(Destination account) { + public void setAccount(@jakarta.annotation.Nonnull Destination account) { this.account = account; } - public ScreeningVerdict assetId(String assetId) { + public ScreeningVerdict assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -181,11 +198,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public ScreeningVerdict amount(String amount) { + public ScreeningVerdict amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -204,11 +221,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public ScreeningVerdict matchedRule(ScreeningVerdictMatchedRule matchedRule) { + public ScreeningVerdict matchedRule( + @jakarta.annotation.Nullable ScreeningVerdictMatchedRule matchedRule) { this.matchedRule = matchedRule; return this; } @@ -227,7 +245,8 @@ public ScreeningVerdictMatchedRule getMatchedRule() { @JsonProperty(JSON_PROPERTY_MATCHED_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMatchedRule(ScreeningVerdictMatchedRule matchedRule) { + public void setMatchedRule( + @jakarta.annotation.Nullable ScreeningVerdictMatchedRule matchedRule) { this.matchedRule = matchedRule; } @@ -320,8 +339,7 @@ public String toUrlQueryString(String prefix) { "%sverdict%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getVerdict()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVerdict())))); } // add `executionOperationId` to the URL query string @@ -331,10 +349,8 @@ public String toUrlQueryString(String prefix) { "%sexecutionOperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExecutionOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getExecutionOperationId())))); } // add `account` to the URL query string @@ -349,8 +365,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `amount` to the URL query string @@ -360,8 +375,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `matchedRule` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java b/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java index a85ee17f..99ea8dc6 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,19 @@ ScreeningVerdictMatchedRule.JSON_PROPERTY_ACTION, ScreeningVerdictMatchedRule.JSON_PROPERTY_CATEGORY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ScreeningVerdictMatchedRule { public static final String JSON_PROPERTY_ACTION = "action"; - private String action; + @jakarta.annotation.Nullable private String action; public static final String JSON_PROPERTY_CATEGORY = "category"; - private List category; + @jakarta.annotation.Nullable private List category = new ArrayList<>(); public ScreeningVerdictMatchedRule() {} - public ScreeningVerdictMatchedRule action(String action) { + public ScreeningVerdictMatchedRule action(@jakarta.annotation.Nullable String action) { this.action = action; return this; } @@ -57,11 +58,12 @@ public String getAction() { @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAction(String action) { + public void setAction(@jakarta.annotation.Nullable String action) { this.action = action; } - public ScreeningVerdictMatchedRule category(List category) { + public ScreeningVerdictMatchedRule category( + @jakarta.annotation.Nullable List category) { this.category = category; return this; } @@ -88,7 +90,7 @@ public List getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(List category) { + public void setCategory(@jakarta.annotation.Nullable List category) { this.category = category; } @@ -171,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%saction%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAction()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAction())))); } // add `category` to the URL query string @@ -187,10 +188,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getCategory().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCategory().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java b/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java index 549204ab..c95444ee 100644 --- a/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,20 @@ SearchNetworkIdsResponse.JSON_PROPERTY_DATA, SearchNetworkIdsResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data; + @jakarta.annotation.Nullable private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public SearchNetworkIdsResponse() {} - public SearchNetworkIdsResponse data(List data) { + public SearchNetworkIdsResponse data( + @jakarta.annotation.Nullable List data) { this.data = data; return this; } @@ -65,11 +67,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nullable List data) { this.data = data; } - public SearchNetworkIdsResponse next(String next) { + public SearchNetworkIdsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +90,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +196,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 new file mode 100644 index 00000000..81f9b4f7 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java @@ -0,0 +1,765 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 890c8e6d..2c9317de 100644 --- a/src/main/java/com/fireblocks/sdk/model/SessionDTO.java +++ b/src/main/java/com/fireblocks/sdk/model/SessionDTO.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -39,25 +38,27 @@ SessionDTO.JSON_PROPERTY_CONNECTION_METHOD, SessionDTO.JSON_PROPERTY_CREATION_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SessionDTO { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_USER_ID = "userId"; - private String userId; + @jakarta.annotation.Nonnull private String userId; public static final String JSON_PROPERTY_SESSION_METADATA = "sessionMetadata"; - private SessionMetadata sessionMetadata; + @jakarta.annotation.Nonnull private SessionMetadata sessionMetadata; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private BigDecimal vaultAccountId; + @jakarta.annotation.Nonnull private BigDecimal vaultAccountId; /** The default fee level */ public enum FeeLevelEnum { - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -87,14 +88,14 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nonnull private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_CHAIN_IDS = "chainIds"; - private List chainIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List chainIds = new ArrayList<>(); /** The connection's type */ public enum ConnectionTypeEnum { - WALLETCONNECT("WalletConnect"); + WALLET_CONNECT(String.valueOf("WalletConnect")); private String value; @@ -124,15 +125,15 @@ public static ConnectionTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_CONNECTION_TYPE = "connectionType"; - private ConnectionTypeEnum connectionType; + @jakarta.annotation.Nonnull private ConnectionTypeEnum connectionType; /** The method through which the connection was established */ public enum ConnectionMethodEnum { - DESKTOP("DESKTOP"), + DESKTOP(String.valueOf("DESKTOP")), - MOBILE("MOBILE"), + MOBILE(String.valueOf("MOBILE")), - API("API"); + API(String.valueOf("API")); private String value; @@ -162,14 +163,41 @@ public static ConnectionMethodEnum fromValue(String value) { } public static final String JSON_PROPERTY_CONNECTION_METHOD = "connectionMethod"; - private ConnectionMethodEnum connectionMethod; + @jakarta.annotation.Nonnull private ConnectionMethodEnum connectionMethod; public static final String JSON_PROPERTY_CREATION_DATE = "creationDate"; - private OffsetDateTime creationDate; + @jakarta.annotation.Nonnull private OffsetDateTime creationDate; public SessionDTO() {} - public SessionDTO id(String id) { + @JsonCreator + public SessionDTO( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_USER_ID, required = true) String userId, + @JsonProperty(value = JSON_PROPERTY_SESSION_METADATA, required = true) + SessionMetadata sessionMetadata, + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + BigDecimal vaultAccountId, + @JsonProperty(value = JSON_PROPERTY_FEE_LEVEL, required = true) FeeLevelEnum feeLevel, + @JsonProperty(value = JSON_PROPERTY_CHAIN_IDS, required = true) List chainIds, + @JsonProperty(value = JSON_PROPERTY_CONNECTION_TYPE, required = true) + ConnectionTypeEnum connectionType, + @JsonProperty(value = JSON_PROPERTY_CONNECTION_METHOD, required = true) + ConnectionMethodEnum connectionMethod, + @JsonProperty(value = JSON_PROPERTY_CREATION_DATE, required = true) + OffsetDateTime creationDate) { + this.id = id; + this.userId = userId; + this.sessionMetadata = sessionMetadata; + this.vaultAccountId = vaultAccountId; + this.feeLevel = feeLevel; + this.chainIds = chainIds; + this.connectionType = connectionType; + this.connectionMethod = connectionMethod; + this.creationDate = creationDate; + } + + public SessionDTO id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -188,11 +216,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SessionDTO userId(String userId) { + public SessionDTO userId(@jakarta.annotation.Nonnull String userId) { this.userId = userId; return this; } @@ -211,11 +239,11 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(String userId) { + public void setUserId(@jakarta.annotation.Nonnull String userId) { this.userId = userId; } - public SessionDTO sessionMetadata(SessionMetadata sessionMetadata) { + public SessionDTO sessionMetadata(@jakarta.annotation.Nonnull SessionMetadata sessionMetadata) { this.sessionMetadata = sessionMetadata; return this; } @@ -234,11 +262,11 @@ public SessionMetadata getSessionMetadata() { @JsonProperty(JSON_PROPERTY_SESSION_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSessionMetadata(SessionMetadata sessionMetadata) { + public void setSessionMetadata(@jakarta.annotation.Nonnull SessionMetadata sessionMetadata) { this.sessionMetadata = sessionMetadata; } - public SessionDTO vaultAccountId(BigDecimal vaultAccountId) { + public SessionDTO vaultAccountId(@jakarta.annotation.Nonnull BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -257,11 +285,11 @@ public BigDecimal getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(BigDecimal vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public SessionDTO feeLevel(FeeLevelEnum feeLevel) { + public SessionDTO feeLevel(@jakarta.annotation.Nonnull FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -280,11 +308,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nonnull FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public SessionDTO chainIds(List chainIds) { + public SessionDTO chainIds(@jakarta.annotation.Nonnull List chainIds) { this.chainIds = chainIds; return this; } @@ -311,11 +339,12 @@ public List getChainIds() { @JsonProperty(JSON_PROPERTY_CHAIN_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainIds(List chainIds) { + public void setChainIds(@jakarta.annotation.Nonnull List chainIds) { this.chainIds = chainIds; } - public SessionDTO connectionType(ConnectionTypeEnum connectionType) { + public SessionDTO connectionType( + @jakarta.annotation.Nonnull ConnectionTypeEnum connectionType) { this.connectionType = connectionType; return this; } @@ -334,11 +363,12 @@ public ConnectionTypeEnum getConnectionType() { @JsonProperty(JSON_PROPERTY_CONNECTION_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConnectionType(ConnectionTypeEnum connectionType) { + public void setConnectionType(@jakarta.annotation.Nonnull ConnectionTypeEnum connectionType) { this.connectionType = connectionType; } - public SessionDTO connectionMethod(ConnectionMethodEnum connectionMethod) { + public SessionDTO connectionMethod( + @jakarta.annotation.Nonnull ConnectionMethodEnum connectionMethod) { this.connectionMethod = connectionMethod; return this; } @@ -357,11 +387,12 @@ public ConnectionMethodEnum getConnectionMethod() { @JsonProperty(JSON_PROPERTY_CONNECTION_METHOD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConnectionMethod(ConnectionMethodEnum connectionMethod) { + public void setConnectionMethod( + @jakarta.annotation.Nonnull ConnectionMethodEnum connectionMethod) { this.connectionMethod = connectionMethod; } - public SessionDTO creationDate(OffsetDateTime creationDate) { + public SessionDTO creationDate(@jakarta.annotation.Nonnull OffsetDateTime creationDate) { this.creationDate = creationDate; return this; } @@ -380,7 +411,7 @@ public OffsetDateTime getCreationDate() { @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreationDate(OffsetDateTime creationDate) { + public void setCreationDate(@jakarta.annotation.Nonnull OffsetDateTime creationDate) { this.creationDate = creationDate; } @@ -484,10 +515,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `userId` to the URL query string @@ -497,8 +525,7 @@ public String toUrlQueryString(String prefix) { "%suserId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); } // add `sessionMetadata` to the URL query string @@ -513,10 +540,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `feeLevel` to the URL query string @@ -526,8 +550,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `chainIds` to the URL query string @@ -542,10 +565,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getChainIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getChainIds().get(i))))); } } @@ -556,10 +577,7 @@ public String toUrlQueryString(String prefix) { "%sconnectionType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConnectionType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConnectionType())))); } // add `connectionMethod` to the URL query string @@ -569,10 +587,7 @@ public String toUrlQueryString(String prefix) { "%sconnectionMethod%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConnectionMethod()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConnectionMethod())))); } // add `creationDate` to the URL query string @@ -582,10 +597,7 @@ public String toUrlQueryString(String prefix) { "%screationDate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreationDate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreationDate())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SessionMetadata.java b/src/main/java/com/fireblocks/sdk/model/SessionMetadata.java index 7936afdb..84cdb5b5 100644 --- a/src/main/java/com/fireblocks/sdk/model/SessionMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/SessionMetadata.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,31 @@ SessionMetadata.JSON_PROPERTY_APP_DESCRIPTION, SessionMetadata.JSON_PROPERTY_APP_ICON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SessionMetadata { public static final String JSON_PROPERTY_APP_URL = "appUrl"; - private String appUrl; + @jakarta.annotation.Nonnull private String appUrl; public static final String JSON_PROPERTY_APP_NAME = "appName"; - private String appName; + @jakarta.annotation.Nullable private String appName; public static final String JSON_PROPERTY_APP_DESCRIPTION = "appDescription"; - private String appDescription; + @jakarta.annotation.Nullable private String appDescription; public static final String JSON_PROPERTY_APP_ICON = "appIcon"; - private String appIcon; + @jakarta.annotation.Nullable private String appIcon; public SessionMetadata() {} - public SessionMetadata appUrl(String appUrl) { + @JsonCreator + public SessionMetadata( + @JsonProperty(value = JSON_PROPERTY_APP_URL, required = true) String appUrl) { + this.appUrl = appUrl; + } + + public SessionMetadata appUrl(@jakarta.annotation.Nonnull String appUrl) { this.appUrl = appUrl; return this; } @@ -63,11 +71,11 @@ public String getAppUrl() { @JsonProperty(JSON_PROPERTY_APP_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAppUrl(String appUrl) { + public void setAppUrl(@jakarta.annotation.Nonnull String appUrl) { this.appUrl = appUrl; } - public SessionMetadata appName(String appName) { + public SessionMetadata appName(@jakarta.annotation.Nullable String appName) { this.appName = appName; return this; } @@ -86,11 +94,11 @@ public String getAppName() { @JsonProperty(JSON_PROPERTY_APP_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAppName(String appName) { + public void setAppName(@jakarta.annotation.Nullable String appName) { this.appName = appName; } - public SessionMetadata appDescription(String appDescription) { + public SessionMetadata appDescription(@jakarta.annotation.Nullable String appDescription) { this.appDescription = appDescription; return this; } @@ -109,11 +117,11 @@ public String getAppDescription() { @JsonProperty(JSON_PROPERTY_APP_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAppDescription(String appDescription) { + public void setAppDescription(@jakarta.annotation.Nullable String appDescription) { this.appDescription = appDescription; } - public SessionMetadata appIcon(String appIcon) { + public SessionMetadata appIcon(@jakarta.annotation.Nullable String appIcon) { this.appIcon = appIcon; return this; } @@ -132,7 +140,7 @@ public String getAppIcon() { @JsonProperty(JSON_PROPERTY_APP_ICON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAppIcon(String appIcon) { + public void setAppIcon(@jakarta.annotation.Nullable String appIcon) { this.appIcon = appIcon; } @@ -219,8 +227,7 @@ public String toUrlQueryString(String prefix) { "%sappUrl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAppUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAppUrl())))); } // add `appName` to the URL query string @@ -230,8 +237,7 @@ public String toUrlQueryString(String prefix) { "%sappName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAppName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAppName())))); } // add `appDescription` to the URL query string @@ -241,10 +247,7 @@ public String toUrlQueryString(String prefix) { "%sappDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAppDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAppDescription())))); } // add `appIcon` to the URL query string @@ -254,8 +257,7 @@ public String toUrlQueryString(String prefix) { "%sappIcon%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAppIcon()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAppIcon())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java index c011d101..7315acf4 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java @@ -16,22 +16,24 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** SetAdminQuorumThresholdRequest */ @JsonPropertyOrder({SetAdminQuorumThresholdRequest.JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetAdminQuorumThresholdRequest { public static final String JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD = "adminQuorumThreshold"; - private BigDecimal adminQuorumThreshold; + @jakarta.annotation.Nullable private BigDecimal adminQuorumThreshold; public SetAdminQuorumThresholdRequest() {} - public SetAdminQuorumThresholdRequest adminQuorumThreshold(BigDecimal adminQuorumThreshold) { + public SetAdminQuorumThresholdRequest adminQuorumThreshold( + @jakarta.annotation.Nullable BigDecimal adminQuorumThreshold) { this.adminQuorumThreshold = adminQuorumThreshold; return this; } @@ -50,7 +52,8 @@ public BigDecimal getAdminQuorumThreshold() { @JsonProperty(JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdminQuorumThreshold(BigDecimal adminQuorumThreshold) { + public void setAdminQuorumThreshold( + @jakarta.annotation.Nullable BigDecimal adminQuorumThreshold) { this.adminQuorumThreshold = adminQuorumThreshold; } @@ -135,10 +138,8 @@ public String toUrlQueryString(String prefix) { "%sadminQuorumThreshold%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAdminQuorumThreshold()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAdminQuorumThreshold())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java index 1da95669..73b7bafe 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetAdminQuorumThresholdResponse */ @JsonPropertyOrder({SetAdminQuorumThresholdResponse.JSON_PROPERTY_MESSAGE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetAdminQuorumThresholdResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public SetAdminQuorumThresholdResponse() {} - public SetAdminQuorumThresholdResponse message(String message) { + @JsonCreator + public SetAdminQuorumThresholdResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { + this.message = message; + } + + public SetAdminQuorumThresholdResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -49,7 +57,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } @@ -131,8 +139,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java index 19bfd290..32b38835 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ SetAssetPriceRequest.JSON_PROPERTY_CURRENCY, SetAssetPriceRequest.JSON_PROPERTY_PRICE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String currency; + @jakarta.annotation.Nonnull private String currency; public static final String JSON_PROPERTY_PRICE = "price"; - private BigDecimal price; + @jakarta.annotation.Nonnull private BigDecimal price; public SetAssetPriceRequest() {} - public SetAssetPriceRequest currency(String currency) { + @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; } @@ -56,11 +66,11 @@ public String getCurrency() { @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCurrency(String currency) { + public void setCurrency(@jakarta.annotation.Nonnull String currency) { this.currency = currency; } - public SetAssetPriceRequest price(BigDecimal price) { + public SetAssetPriceRequest price(@jakarta.annotation.Nonnull BigDecimal price) { this.price = price; return this; } @@ -79,7 +89,7 @@ public BigDecimal getPrice() { @JsonProperty(JSON_PROPERTY_PRICE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPrice(BigDecimal price) { + public void setPrice(@jakarta.annotation.Nonnull BigDecimal price) { this.price = price; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%scurrency%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCurrency()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCurrency())))); } // add `price` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%sprice%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPrice()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPrice())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java index b3c2a953..27cf20cf 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetAutoFuelRequest */ @JsonPropertyOrder({SetAutoFuelRequest.JSON_PROPERTY_AUTO_FUEL}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetAutoFuelRequest { public static final String JSON_PROPERTY_AUTO_FUEL = "autoFuel"; - private Boolean autoFuel; + @jakarta.annotation.Nullable private Boolean autoFuel; public SetAutoFuelRequest() {} - public SetAutoFuelRequest autoFuel(Boolean autoFuel) { + public SetAutoFuelRequest autoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; return this; } @@ -49,7 +50,7 @@ public Boolean getAutoFuel() { @JsonProperty(JSON_PROPERTY_AUTO_FUEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoFuel(Boolean autoFuel) { + public void setAutoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%sautoFuel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAutoFuel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAutoFuel())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java b/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java index 86564f1c..2f3b270d 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java @@ -16,22 +16,24 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** SetConfirmationsThresholdRequest */ @JsonPropertyOrder({SetConfirmationsThresholdRequest.JSON_PROPERTY_NUM_OF_CONFIRMATIONS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetConfirmationsThresholdRequest { public static final String JSON_PROPERTY_NUM_OF_CONFIRMATIONS = "numOfConfirmations"; - private BigDecimal numOfConfirmations; + @jakarta.annotation.Nullable private BigDecimal numOfConfirmations; public SetConfirmationsThresholdRequest() {} - public SetConfirmationsThresholdRequest numOfConfirmations(BigDecimal numOfConfirmations) { + public SetConfirmationsThresholdRequest numOfConfirmations( + @jakarta.annotation.Nullable BigDecimal numOfConfirmations) { this.numOfConfirmations = numOfConfirmations; return this; } @@ -50,7 +52,7 @@ public BigDecimal getNumOfConfirmations() { @JsonProperty(JSON_PROPERTY_NUM_OF_CONFIRMATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumOfConfirmations(BigDecimal numOfConfirmations) { + public void setNumOfConfirmations(@jakarta.annotation.Nullable BigDecimal numOfConfirmations) { this.numOfConfirmations = numOfConfirmations; } @@ -135,10 +137,7 @@ public String toUrlQueryString(String prefix) { "%snumOfConfirmations%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNumOfConfirmations()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNumOfConfirmations())))); } 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 bba3d20f..f6df0cd8 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,19 @@ SetConfirmationsThresholdResponse.JSON_PROPERTY_SUCCESS, SetConfirmationsThresholdResponse.JSON_PROPERTY_TRANSACTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetConfirmationsThresholdResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public static final String JSON_PROPERTY_TRANSACTIONS = "transactions"; - private List transactions; + @jakarta.annotation.Nullable private List transactions = new ArrayList<>(); public SetConfirmationsThresholdResponse() {} - public SetConfirmationsThresholdResponse success(Boolean success) { + public SetConfirmationsThresholdResponse success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -57,11 +58,12 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } - public SetConfirmationsThresholdResponse transactions(List transactions) { + public SetConfirmationsThresholdResponse transactions( + @jakarta.annotation.Nullable List transactions) { this.transactions = transactions; return this; } @@ -88,7 +90,7 @@ public List getTransactions() { @JsonProperty(JSON_PROPERTY_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactions(List transactions) { + public void setTransactions(@jakarta.annotation.Nullable List transactions) { this.transactions = transactions; } @@ -173,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } // add `transactions` to the URL query string @@ -189,10 +190,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTransactions().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTransactions().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequest.java b/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequest.java index 03ca3b42..5217259d 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequest.java @@ -16,21 +16,23 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetCustomerRefIdForAddressRequest */ @JsonPropertyOrder({SetCustomerRefIdForAddressRequest.JSON_PROPERTY_CUSTOMER_REF_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetCustomerRefIdForAddressRequest { public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public SetCustomerRefIdForAddressRequest() {} - public SetCustomerRefIdForAddressRequest customerRefId(String customerRefId) { + public SetCustomerRefIdForAddressRequest customerRefId( + @jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -49,7 +51,7 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } @@ -131,10 +133,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdRequest.java b/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdRequest.java index a64a1b03..806fa5e9 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdRequest.java @@ -16,21 +16,23 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetCustomerRefIdRequest */ @JsonPropertyOrder({SetCustomerRefIdRequest.JSON_PROPERTY_CUSTOMER_REF_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetCustomerRefIdRequest { public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public SetCustomerRefIdRequest() {} - public SetCustomerRefIdRequest customerRefId(String customerRefId) { + public SetCustomerRefIdRequest customerRefId( + @jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -49,7 +51,7 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } @@ -130,10 +132,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java index 517150a4..11b812e9 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,28 +29,49 @@ SetLayerZeroDvnConfigRequest.JSON_PROPERTY_SEND_CONFIG, SetLayerZeroDvnConfigRequest.JSON_PROPERTY_RECEIVE_CONFIG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = "sourceAdapterTokenLinkId"; - private String sourceAdapterTokenLinkId; + @jakarta.annotation.Nonnull private String sourceAdapterTokenLinkId; public static final String JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID = "destinationAdapterTokenLinkId"; - private String destinationAdapterTokenLinkId; + @jakarta.annotation.Nonnull private String destinationAdapterTokenLinkId; public static final String JSON_PROPERTY_SEND_CONFIG = "sendConfig"; - private DvnConfig sendConfig; + @jakarta.annotation.Nonnull private DvnConfig sendConfig; public static final String JSON_PROPERTY_RECEIVE_CONFIG = "receiveConfig"; - private DvnConfig receiveConfig; + @jakarta.annotation.Nonnull private DvnConfig receiveConfig; public SetLayerZeroDvnConfigRequest() {} - public SetLayerZeroDvnConfigRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -69,11 +90,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public SetLayerZeroDvnConfigRequest sourceAdapterTokenLinkId(String sourceAdapterTokenLinkId) { + public SetLayerZeroDvnConfigRequest sourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull String sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; return this; } @@ -92,12 +114,13 @@ public String getSourceAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId(String sourceAdapterTokenLinkId) { + public void setSourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull String sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; } public SetLayerZeroDvnConfigRequest destinationAdapterTokenLinkId( - String destinationAdapterTokenLinkId) { + @jakarta.annotation.Nonnull String destinationAdapterTokenLinkId) { this.destinationAdapterTokenLinkId = destinationAdapterTokenLinkId; return this; } @@ -116,11 +139,13 @@ public String getDestinationAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAdapterTokenLinkId(String destinationAdapterTokenLinkId) { + public void setDestinationAdapterTokenLinkId( + @jakarta.annotation.Nonnull String destinationAdapterTokenLinkId) { this.destinationAdapterTokenLinkId = destinationAdapterTokenLinkId; } - public SetLayerZeroDvnConfigRequest sendConfig(DvnConfig sendConfig) { + public SetLayerZeroDvnConfigRequest sendConfig( + @jakarta.annotation.Nonnull DvnConfig sendConfig) { this.sendConfig = sendConfig; return this; } @@ -139,11 +164,12 @@ public DvnConfig getSendConfig() { @JsonProperty(JSON_PROPERTY_SEND_CONFIG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSendConfig(DvnConfig sendConfig) { + public void setSendConfig(@jakarta.annotation.Nonnull DvnConfig sendConfig) { this.sendConfig = sendConfig; } - public SetLayerZeroDvnConfigRequest receiveConfig(DvnConfig receiveConfig) { + public SetLayerZeroDvnConfigRequest receiveConfig( + @jakarta.annotation.Nonnull DvnConfig receiveConfig) { this.receiveConfig = receiveConfig; return this; } @@ -162,7 +188,7 @@ public DvnConfig getReceiveConfig() { @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReceiveConfig(DvnConfig receiveConfig) { + public void setReceiveConfig(@jakarta.annotation.Nonnull DvnConfig receiveConfig) { this.receiveConfig = receiveConfig; } @@ -265,10 +291,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `sourceAdapterTokenLinkId` to the URL query string @@ -278,10 +301,8 @@ public String toUrlQueryString(String prefix) { "%ssourceAdapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSourceAdapterTokenLinkId())))); } // add `destinationAdapterTokenLinkId` to the URL query string @@ -291,10 +312,8 @@ public String toUrlQueryString(String prefix) { "%sdestinationAdapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDestinationAdapterTokenLinkId())))); } // add `sendConfig` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java index bd0b4808..fba43fac 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -25,14 +25,22 @@ /** SetLayerZeroDvnConfigResponse */ @JsonPropertyOrder({SetLayerZeroDvnConfigResponse.JSON_PROPERTY_TXN_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List txnIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List txnIds = new ArrayList<>(); public SetLayerZeroDvnConfigResponse() {} - public SetLayerZeroDvnConfigResponse txnIds(List txnIds) { + @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; } @@ -59,7 +67,7 @@ public List getTxnIds() { @JsonProperty(JSON_PROPERTY_TXN_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxnIds(List txnIds) { + public void setTxnIds(@jakarta.annotation.Nonnull List txnIds) { this.txnIds = txnIds; } @@ -146,10 +154,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTxnIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxnIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java index a3b7fb68..bd0ff917 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,25 +31,46 @@ SetLayerZeroPeersRequest.JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS, SetLayerZeroPeersRequest.JSON_PROPERTY_BIDIRECTIONAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = "sourceAdapterTokenLinkId"; - private UUID 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"; - private Boolean bidirectional; + @jakarta.annotation.Nonnull private Boolean bidirectional; public SetLayerZeroPeersRequest() {} - public SetLayerZeroPeersRequest vaultAccountId(String vaultAccountId) { + @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; } @@ -68,11 +89,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public SetLayerZeroPeersRequest sourceAdapterTokenLinkId(UUID sourceAdapterTokenLinkId) { + public SetLayerZeroPeersRequest sourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; return this; } @@ -91,12 +113,13 @@ public UUID getSourceAdapterTokenLinkId() { @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId(UUID sourceAdapterTokenLinkId) { + public void setSourceAdapterTokenLinkId( + @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; } public SetLayerZeroPeersRequest destinationAdapterTokenLinkIds( - List destinationAdapterTokenLinkIds) { + @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; return this; } @@ -124,11 +147,13 @@ public List getDestinationAdapterTokenLinkIds() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAdapterTokenLinkIds(List destinationAdapterTokenLinkIds) { + public void setDestinationAdapterTokenLinkIds( + @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; } - public SetLayerZeroPeersRequest bidirectional(Boolean bidirectional) { + public SetLayerZeroPeersRequest bidirectional( + @jakarta.annotation.Nonnull Boolean bidirectional) { this.bidirectional = bidirectional; return this; } @@ -147,7 +172,7 @@ public Boolean getBidirectional() { @JsonProperty(JSON_PROPERTY_BIDIRECTIONAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBidirectional(Boolean bidirectional) { + public void setBidirectional(@jakarta.annotation.Nonnull Boolean bidirectional) { this.bidirectional = bidirectional; } @@ -246,10 +271,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `sourceAdapterTokenLinkId` to the URL query string @@ -259,10 +281,8 @@ public String toUrlQueryString(String prefix) { "%ssourceAdapterTokenLinkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceAdapterTokenLinkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSourceAdapterTokenLinkId())))); } // add `destinationAdapterTokenLinkIds` to the URL query string @@ -278,12 +298,9 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf( - getDestinationAdapterTokenLinkIds() - .get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getDestinationAdapterTokenLinkIds().get(i))))); } } } @@ -295,10 +312,7 @@ public String toUrlQueryString(String prefix) { "%sbidirectional%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBidirectional()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 83548f68..1d933901 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -26,14 +26,22 @@ /** SetLayerZeroPeersResponse */ @JsonPropertyOrder({SetLayerZeroPeersResponse.JSON_PROPERTY_TXN_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List txnIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List txnIds = new ArrayList<>(); public SetLayerZeroPeersResponse() {} - public SetLayerZeroPeersResponse txnIds(List txnIds) { + @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; } @@ -61,7 +69,7 @@ public List getTxnIds() { @JsonProperty(JSON_PROPERTY_TXN_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxnIds(List txnIds) { + public void setTxnIds(@jakarta.annotation.Nonnull List txnIds) { this.txnIds = txnIds; } @@ -148,10 +156,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTxnIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTxnIds().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequest.java b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequest.java index ac5b6755..65a4bdc1 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequest.java @@ -13,24 +13,34 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetNetworkIdDiscoverabilityRequest */ @JsonPropertyOrder({SetNetworkIdDiscoverabilityRequest.JSON_PROPERTY_IS_DISCOVERABLE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetNetworkIdDiscoverabilityRequest { public static final String JSON_PROPERTY_IS_DISCOVERABLE = "isDiscoverable"; - private Boolean isDiscoverable; + @jakarta.annotation.Nonnull private Boolean isDiscoverable; public SetNetworkIdDiscoverabilityRequest() {} - public SetNetworkIdDiscoverabilityRequest isDiscoverable(Boolean isDiscoverable) { + @JsonCreator + public SetNetworkIdDiscoverabilityRequest( + @JsonProperty(value = JSON_PROPERTY_IS_DISCOVERABLE, required = true) + Boolean isDiscoverable) { + this.isDiscoverable = isDiscoverable; + } + + public SetNetworkIdDiscoverabilityRequest isDiscoverable( + @jakarta.annotation.Nonnull Boolean isDiscoverable) { this.isDiscoverable = isDiscoverable; return this; } @@ -49,7 +59,7 @@ public Boolean getIsDiscoverable() { @JsonProperty(JSON_PROPERTY_IS_DISCOVERABLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsDiscoverable(Boolean isDiscoverable) { + public void setIsDiscoverable(@jakarta.annotation.Nonnull Boolean isDiscoverable) { this.isDiscoverable = isDiscoverable; } @@ -132,10 +142,7 @@ public String toUrlQueryString(String prefix) { "%sisDiscoverable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsDiscoverable()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsDiscoverable())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdNameRequest.java b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdNameRequest.java index b359a10d..ef0d79fd 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdNameRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdNameRequest.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetNetworkIdNameRequest */ @JsonPropertyOrder({SetNetworkIdNameRequest.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetNetworkIdNameRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public SetNetworkIdNameRequest() {} - public SetNetworkIdNameRequest name(String name) { + @JsonCreator + public SetNetworkIdNameRequest( + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { + this.name = name; + } + + public SetNetworkIdNameRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -49,7 +57,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdResponse.java b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdResponse.java index 91d784d5..5d5f25d0 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetNetworkIdResponse */ @JsonPropertyOrder({SetNetworkIdResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetNetworkIdResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public SetNetworkIdResponse() {} - public SetNetworkIdResponse success(Boolean success) { + @JsonCreator + public SetNetworkIdResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public SetNetworkIdResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } 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 fd5b431f..47083825 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequest.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; @@ -23,15 +24,26 @@ /** SetNetworkIdRoutingPolicyRequest */ @JsonPropertyOrder({SetNetworkIdRoutingPolicyRequest.JSON_PROPERTY_ROUTING_POLICY}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + 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<>(); public SetNetworkIdRoutingPolicyRequest() {} + @JsonCreator + public SetNetworkIdRoutingPolicyRequest( + @JsonProperty(value = JSON_PROPERTY_ROUTING_POLICY, required = true) + Map routingPolicy) { + this.routingPolicy = routingPolicy; + } + public SetNetworkIdRoutingPolicyRequest routingPolicy( - Map routingPolicy) { + @jakarta.annotation.Nonnull Map routingPolicy) { this.routingPolicy = routingPolicy; return this; } @@ -59,7 +71,8 @@ public Map getRoutingPolicy() { @JsonProperty(JSON_PROPERTY_ROUTING_POLICY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoutingPolicy(Map routingPolicy) { + public void setRoutingPolicy( + @jakarta.annotation.Nonnull Map routingPolicy) { this.routingPolicy = routingPolicy; } diff --git a/src/main/java/com/fireblocks/sdk/model/SetOtaStatusRequest.java b/src/main/java/com/fireblocks/sdk/model/SetOtaStatusRequest.java index 5079f5e6..2630f088 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetOtaStatusRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetOtaStatusRequest.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetOtaStatusRequest */ @JsonPropertyOrder({SetOtaStatusRequest.JSON_PROPERTY_ENABLED}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetOtaStatusRequest { public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nullable private Boolean enabled; public SetOtaStatusRequest() {} - public SetOtaStatusRequest enabled(Boolean enabled) { + public SetOtaStatusRequest enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -49,7 +50,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponse.java b/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponse.java index 1f7a1e22..8b401077 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponse.java @@ -26,10 +26,9 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -38,7 +37,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = SetOtaStatusResponse.SetOtaStatusResponseDeserializer.class) @JsonSerialize(using = SetOtaStatusResponse.SetOtaStatusResponseSerializer.class) public class SetOtaStatusResponse extends AbstractOpenApiSchema { @@ -320,10 +321,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOf.java b/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOf.java index 8f89c422..2885a697 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOf.java +++ b/src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOf.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetOtaStatusResponseOneOf */ @JsonPropertyOrder({SetOtaStatusResponseOneOf.JSON_PROPERTY_MESSAGE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetOtaStatusResponseOneOf { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public SetOtaStatusResponseOneOf() {} - public SetOtaStatusResponseOneOf message(String message) { + public SetOtaStatusResponseOneOf message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -49,7 +50,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java b/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java index 85d62c9d..a2690650 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.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; @@ -23,15 +24,27 @@ /** SetRoutingPolicyRequest */ @JsonPropertyOrder({SetRoutingPolicyRequest.JSON_PROPERTY_ROUTING_POLICY}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetRoutingPolicyRequest { public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; + + @jakarta.annotation.Nonnull private Map routingPolicy = new HashMap<>(); public SetRoutingPolicyRequest() {} + @JsonCreator + public SetRoutingPolicyRequest( + @JsonProperty(value = JSON_PROPERTY_ROUTING_POLICY, required = true) + Map routingPolicy) { + this.routingPolicy = routingPolicy; + } + public SetRoutingPolicyRequest routingPolicy( - Map routingPolicy) { + @jakarta.annotation.Nonnull + Map routingPolicy) { this.routingPolicy = routingPolicy; return this; } @@ -59,7 +72,9 @@ public Map getRoutingPolicy() { @JsonProperty(JSON_PROPERTY_ROUTING_POLICY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoutingPolicy(Map routingPolicy) { + public void setRoutingPolicy( + @jakarta.annotation.Nonnull + Map routingPolicy) { this.routingPolicy = routingPolicy; } diff --git a/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyResponse.java b/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyResponse.java index b044059b..3d0de19e 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SetRoutingPolicyResponse */ @JsonPropertyOrder({SetRoutingPolicyResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SetRoutingPolicyResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nonnull private Boolean success; public SetRoutingPolicyResponse() {} - public SetRoutingPolicyResponse success(Boolean success) { + @JsonCreator + public SetRoutingPolicyResponse( + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success) { + this.success = success; + } + + public SetRoutingPolicyResponse success(@jakarta.annotation.Nonnull Boolean success) { this.success = success; return this; } @@ -49,7 +57,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SettlementRequestBody.java b/src/main/java/com/fireblocks/sdk/model/SettlementRequestBody.java index 51022c21..050f86be 100644 --- a/src/main/java/com/fireblocks/sdk/model/SettlementRequestBody.java +++ b/src/main/java/com/fireblocks/sdk/model/SettlementRequestBody.java @@ -16,21 +16,23 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SettlementRequestBody */ @JsonPropertyOrder({SettlementRequestBody.JSON_PROPERTY_MAIN_EXCHANGE_ACCOUNT_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SettlementRequestBody { public static final String JSON_PROPERTY_MAIN_EXCHANGE_ACCOUNT_ID = "mainExchangeAccountId"; - private String mainExchangeAccountId; + @jakarta.annotation.Nullable private String mainExchangeAccountId; public SettlementRequestBody() {} - public SettlementRequestBody mainExchangeAccountId(String mainExchangeAccountId) { + public SettlementRequestBody mainExchangeAccountId( + @jakarta.annotation.Nullable String mainExchangeAccountId) { this.mainExchangeAccountId = mainExchangeAccountId; return this; } @@ -49,7 +51,8 @@ public String getMainExchangeAccountId() { @JsonProperty(JSON_PROPERTY_MAIN_EXCHANGE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainExchangeAccountId(String mainExchangeAccountId) { + public void setMainExchangeAccountId( + @jakarta.annotation.Nullable String mainExchangeAccountId) { this.mainExchangeAccountId = mainExchangeAccountId; } @@ -133,10 +136,8 @@ public String toUrlQueryString(String prefix) { "%smainExchangeAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMainExchangeAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getMainExchangeAccountId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SettlementResponse.java b/src/main/java/com/fireblocks/sdk/model/SettlementResponse.java index 1cd88f3e..50d0ee14 100644 --- a/src/main/java/com/fireblocks/sdk/model/SettlementResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SettlementResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,28 +28,32 @@ SettlementResponse.JSON_PROPERTY_FIREBLOCKS_INITIATED_TRANSACTIONS, SettlementResponse.JSON_PROPERTY_EXCHANGE_REQUESTED_TRANSACTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SettlementResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_INITIATOR = "initiator"; - private String initiator; + @jakarta.annotation.Nullable private String initiator; public static final String JSON_PROPERTY_EXCHANGE_REPLY = "exchangeReply"; - private String exchangeReply; + @jakarta.annotation.Nullable private String exchangeReply; public static final String JSON_PROPERTY_FIREBLOCKS_INITIATED_TRANSACTIONS = "fireblocksInitiatedTransactions"; - private Object fireblocksInitiatedTransactions; + @jakarta.annotation.Nullable private Object fireblocksInitiatedTransactions; public static final String JSON_PROPERTY_EXCHANGE_REQUESTED_TRANSACTIONS = "exchangeRequestedTransactions"; + + @jakarta.annotation.Nullable private ExchangeSettlementTransactionsResponse exchangeRequestedTransactions; public SettlementResponse() {} - public SettlementResponse id(String id) { + public SettlementResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -69,11 +72,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public SettlementResponse initiator(String initiator) { + public SettlementResponse initiator(@jakarta.annotation.Nullable String initiator) { this.initiator = initiator; return this; } @@ -92,11 +95,11 @@ public String getInitiator() { @JsonProperty(JSON_PROPERTY_INITIATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInitiator(String initiator) { + public void setInitiator(@jakarta.annotation.Nullable String initiator) { this.initiator = initiator; } - public SettlementResponse exchangeReply(String exchangeReply) { + public SettlementResponse exchangeReply(@jakarta.annotation.Nullable String exchangeReply) { this.exchangeReply = exchangeReply; return this; } @@ -115,12 +118,12 @@ public String getExchangeReply() { @JsonProperty(JSON_PROPERTY_EXCHANGE_REPLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExchangeReply(String exchangeReply) { + public void setExchangeReply(@jakarta.annotation.Nullable String exchangeReply) { this.exchangeReply = exchangeReply; } public SettlementResponse fireblocksInitiatedTransactions( - Object fireblocksInitiatedTransactions) { + @jakarta.annotation.Nullable Object fireblocksInitiatedTransactions) { this.fireblocksInitiatedTransactions = fireblocksInitiatedTransactions; return this; } @@ -139,12 +142,14 @@ public Object getFireblocksInitiatedTransactions() { @JsonProperty(JSON_PROPERTY_FIREBLOCKS_INITIATED_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFireblocksInitiatedTransactions(Object fireblocksInitiatedTransactions) { + public void setFireblocksInitiatedTransactions( + @jakarta.annotation.Nullable Object fireblocksInitiatedTransactions) { this.fireblocksInitiatedTransactions = fireblocksInitiatedTransactions; } public SettlementResponse exchangeRequestedTransactions( - ExchangeSettlementTransactionsResponse exchangeRequestedTransactions) { + @jakarta.annotation.Nullable + ExchangeSettlementTransactionsResponse exchangeRequestedTransactions) { this.exchangeRequestedTransactions = exchangeRequestedTransactions; return this; } @@ -164,7 +169,8 @@ public ExchangeSettlementTransactionsResponse getExchangeRequestedTransactions() @JsonProperty(JSON_PROPERTY_EXCHANGE_REQUESTED_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExchangeRequestedTransactions( - ExchangeSettlementTransactionsResponse exchangeRequestedTransactions) { + @jakarta.annotation.Nullable + ExchangeSettlementTransactionsResponse exchangeRequestedTransactions) { this.exchangeRequestedTransactions = exchangeRequestedTransactions; } @@ -264,10 +270,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `initiator` to the URL query string @@ -277,9 +280,7 @@ public String toUrlQueryString(String prefix) { "%sinitiator%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInitiator()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInitiator())))); } // add `exchangeReply` to the URL query string @@ -289,10 +290,7 @@ public String toUrlQueryString(String prefix) { "%sexchangeReply%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExchangeReply()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExchangeReply())))); } // add `fireblocksInitiatedTransactions` to the URL query string @@ -302,10 +300,9 @@ public String toUrlQueryString(String prefix) { "%sfireblocksInitiatedTransactions%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFireblocksInitiatedTransactions()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getFireblocksInitiatedTransactions())))); } // add `exchangeRequestedTransactions` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/SignedMessage.java b/src/main/java/com/fireblocks/sdk/model/SignedMessage.java index 196a04ae..23910345 100644 --- a/src/main/java/com/fireblocks/sdk/model/SignedMessage.java +++ b/src/main/java/com/fireblocks/sdk/model/SignedMessage.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,16 +33,18 @@ SignedMessage.JSON_PROPERTY_SIGNATURE, SignedMessage.JSON_PROPERTY_PUBLIC_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SignedMessage { public static final String JSON_PROPERTY_CONTENT = "content"; - private String content; + @jakarta.annotation.Nullable private String content; /** Gets or Sets algorithm */ public enum AlgorithmEnum { - ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"), + MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - EDDSA_ED25519("MPC_EDDSA_ED25519"); + MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); private String value; @@ -73,20 +74,20 @@ public static AlgorithmEnum fromValue(String value) { } public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private AlgorithmEnum algorithm; + @jakarta.annotation.Nullable private AlgorithmEnum algorithm; public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - private List derivationPath; + @jakarta.annotation.Nullable private List derivationPath = new ArrayList<>(); public static final String JSON_PROPERTY_SIGNATURE = "signature"; - private SignedMessageSignature signature; + @jakarta.annotation.Nullable private SignedMessageSignature signature; public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - private String publicKey; + @jakarta.annotation.Nullable private String publicKey; public SignedMessage() {} - public SignedMessage content(String content) { + public SignedMessage content(@jakarta.annotation.Nullable String content) { this.content = content; return this; } @@ -105,11 +106,11 @@ public String getContent() { @JsonProperty(JSON_PROPERTY_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContent(String content) { + public void setContent(@jakarta.annotation.Nullable String content) { this.content = content; } - public SignedMessage algorithm(AlgorithmEnum algorithm) { + public SignedMessage algorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { this.algorithm = algorithm; return this; } @@ -128,11 +129,12 @@ public AlgorithmEnum getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(AlgorithmEnum algorithm) { + public void setAlgorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { this.algorithm = algorithm; } - public SignedMessage derivationPath(List derivationPath) { + public SignedMessage derivationPath( + @jakarta.annotation.Nullable List derivationPath) { this.derivationPath = derivationPath; return this; } @@ -159,11 +161,11 @@ public List getDerivationPath() { @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDerivationPath(List derivationPath) { + public void setDerivationPath(@jakarta.annotation.Nullable List derivationPath) { this.derivationPath = derivationPath; } - public SignedMessage signature(SignedMessageSignature signature) { + public SignedMessage signature(@jakarta.annotation.Nullable SignedMessageSignature signature) { this.signature = signature; return this; } @@ -182,11 +184,11 @@ public SignedMessageSignature getSignature() { @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignature(SignedMessageSignature signature) { + public void setSignature(@jakarta.annotation.Nullable SignedMessageSignature signature) { this.signature = signature; } - public SignedMessage publicKey(String publicKey) { + public SignedMessage publicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; return this; } @@ -205,7 +207,7 @@ public String getPublicKey() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublicKey(String publicKey) { + public void setPublicKey(@jakarta.annotation.Nullable String publicKey) { this.publicKey = publicKey; } @@ -294,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%scontent%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getContent()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContent())))); } // add `algorithm` to the URL query string @@ -305,9 +306,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); } // add `derivationPath` to the URL query string @@ -323,10 +322,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDerivationPath().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDerivationPath().get(i))))); } } } @@ -343,9 +340,7 @@ public String toUrlQueryString(String prefix) { "%spublicKey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SignedMessageSignature.java b/src/main/java/com/fireblocks/sdk/model/SignedMessageSignature.java index 38ad2e33..28fc7a11 100644 --- a/src/main/java/com/fireblocks/sdk/model/SignedMessageSignature.java +++ b/src/main/java/com/fireblocks/sdk/model/SignedMessageSignature.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -29,23 +28,25 @@ SignedMessageSignature.JSON_PROPERTY_S, SignedMessageSignature.JSON_PROPERTY_V }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SignedMessageSignature { public static final String JSON_PROPERTY_FULL_SIG = "fullSig"; - private String fullSig; + @jakarta.annotation.Nullable private String fullSig; public static final String JSON_PROPERTY_R = "r"; - private String r; + @jakarta.annotation.Nullable private String r; public static final String JSON_PROPERTY_S = "s"; - private String s; + @jakarta.annotation.Nullable private String s; public static final String JSON_PROPERTY_V = "v"; - private BigDecimal v; + @jakarta.annotation.Nullable private BigDecimal v; public SignedMessageSignature() {} - public SignedMessageSignature fullSig(String fullSig) { + public SignedMessageSignature fullSig(@jakarta.annotation.Nullable String fullSig) { this.fullSig = fullSig; return this; } @@ -64,11 +65,11 @@ public String getFullSig() { @JsonProperty(JSON_PROPERTY_FULL_SIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFullSig(String fullSig) { + public void setFullSig(@jakarta.annotation.Nullable String fullSig) { this.fullSig = fullSig; } - public SignedMessageSignature r(String r) { + public SignedMessageSignature r(@jakarta.annotation.Nullable String r) { this.r = r; return this; } @@ -87,11 +88,11 @@ public String getR() { @JsonProperty(JSON_PROPERTY_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setR(String r) { + public void setR(@jakarta.annotation.Nullable String r) { this.r = r; } - public SignedMessageSignature s(String s) { + public SignedMessageSignature s(@jakarta.annotation.Nullable String s) { this.s = s; return this; } @@ -110,11 +111,11 @@ public String getS() { @JsonProperty(JSON_PROPERTY_S) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setS(String s) { + public void setS(@jakarta.annotation.Nullable String s) { this.s = s; } - public SignedMessageSignature v(BigDecimal v) { + public SignedMessageSignature v(@jakarta.annotation.Nullable BigDecimal v) { this.v = v; return this; } @@ -133,7 +134,7 @@ public BigDecimal getV() { @JsonProperty(JSON_PROPERTY_V) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setV(BigDecimal v) { + public void setV(@jakarta.annotation.Nullable BigDecimal v) { this.v = v; } @@ -220,8 +221,7 @@ public String toUrlQueryString(String prefix) { "%sfullSig%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFullSig()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFullSig())))); } // add `r` to the URL query string @@ -229,10 +229,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sr%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getR()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getR())))); } // add `s` to the URL query string @@ -240,10 +237,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%ss%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getS()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getS())))); } // add `v` to the URL query string @@ -251,10 +245,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sv%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getV()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getV())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SigningKeyDto.java b/src/main/java/com/fireblocks/sdk/model/SigningKeyDto.java index 283c101a..6f58feed 100644 --- a/src/main/java/com/fireblocks/sdk/model/SigningKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/SigningKeyDto.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -33,35 +33,60 @@ SigningKeyDto.JSON_PROPERTY_AGENT_USER_ID, SigningKeyDto.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SigningKeyDto { public static final String JSON_PROPERTY_KEY_ID = "keyId"; - private String keyId; + @jakarta.annotation.Nonnull private String keyId; public static final String JSON_PROPERTY_SIGNING_DEVICE_KEY_ID = "signingDeviceKeyId"; - private String signingDeviceKeyId; + @jakarta.annotation.Nonnull private String signingDeviceKeyId; public static final String JSON_PROPERTY_PUBLIC_KEY_PEM = "publicKeyPem"; - private String publicKeyPem; + @jakarta.annotation.Nonnull private String publicKeyPem; public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - private String algorithm; + @jakarta.annotation.Nonnull private String algorithm; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nonnull private Boolean enabled; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private BigDecimal vaultAccountId; + @jakarta.annotation.Nullable private BigDecimal vaultAccountId; public static final String JSON_PROPERTY_AGENT_USER_ID = "agentUserId"; - private String agentUserId; + @jakarta.annotation.Nonnull private String agentUserId; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private BigDecimal createdAt; + @jakarta.annotation.Nonnull private BigDecimal createdAt; public SigningKeyDto() {} - public SigningKeyDto keyId(String keyId) { + @JsonCreator + public SigningKeyDto( + @JsonProperty(value = JSON_PROPERTY_KEY_ID, required = true) String keyId, + @JsonProperty(value = JSON_PROPERTY_SIGNING_DEVICE_KEY_ID, required = true) + String signingDeviceKeyId, + @JsonProperty(value = JSON_PROPERTY_PUBLIC_KEY_PEM, required = true) + String publicKeyPem, + @JsonProperty(value = JSON_PROPERTY_ALGORITHM, required = true) String algorithm, + @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled, + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + BigDecimal vaultAccountId, + @JsonProperty(value = JSON_PROPERTY_AGENT_USER_ID, required = true) String agentUserId, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) BigDecimal createdAt) { + this.keyId = keyId; + this.signingDeviceKeyId = signingDeviceKeyId; + this.publicKeyPem = publicKeyPem; + this.algorithm = algorithm; + this.enabled = enabled; + this.vaultAccountId = vaultAccountId; + this.agentUserId = agentUserId; + this.createdAt = createdAt; + } + + public SigningKeyDto keyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; return this; } @@ -80,11 +105,11 @@ public String getKeyId() { @JsonProperty(JSON_PROPERTY_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyId(String keyId) { + public void setKeyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; } - public SigningKeyDto signingDeviceKeyId(String signingDeviceKeyId) { + public SigningKeyDto signingDeviceKeyId(@jakarta.annotation.Nonnull String signingDeviceKeyId) { this.signingDeviceKeyId = signingDeviceKeyId; return this; } @@ -103,11 +128,11 @@ public String getSigningDeviceKeyId() { @JsonProperty(JSON_PROPERTY_SIGNING_DEVICE_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigningDeviceKeyId(String signingDeviceKeyId) { + public void setSigningDeviceKeyId(@jakarta.annotation.Nonnull String signingDeviceKeyId) { this.signingDeviceKeyId = signingDeviceKeyId; } - public SigningKeyDto publicKeyPem(String publicKeyPem) { + public SigningKeyDto publicKeyPem(@jakarta.annotation.Nonnull String publicKeyPem) { this.publicKeyPem = publicKeyPem; return this; } @@ -126,11 +151,11 @@ public String getPublicKeyPem() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_PEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKeyPem(String publicKeyPem) { + public void setPublicKeyPem(@jakarta.annotation.Nonnull String publicKeyPem) { this.publicKeyPem = publicKeyPem; } - public SigningKeyDto algorithm(String algorithm) { + public SigningKeyDto algorithm(@jakarta.annotation.Nonnull String algorithm) { this.algorithm = algorithm; return this; } @@ -149,11 +174,11 @@ public String getAlgorithm() { @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(String algorithm) { + public void setAlgorithm(@jakarta.annotation.Nonnull String algorithm) { this.algorithm = algorithm; } - public SigningKeyDto enabled(Boolean enabled) { + public SigningKeyDto enabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -172,11 +197,11 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } - public SigningKeyDto vaultAccountId(BigDecimal vaultAccountId) { + public SigningKeyDto vaultAccountId(@jakarta.annotation.Nullable BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -195,11 +220,11 @@ public BigDecimal getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(BigDecimal vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nullable BigDecimal vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public SigningKeyDto agentUserId(String agentUserId) { + public SigningKeyDto agentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; return this; } @@ -218,11 +243,11 @@ public String getAgentUserId() { @JsonProperty(JSON_PROPERTY_AGENT_USER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAgentUserId(String agentUserId) { + public void setAgentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; } - public SigningKeyDto createdAt(BigDecimal createdAt) { + public SigningKeyDto createdAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; return this; } @@ -241,7 +266,7 @@ public BigDecimal getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; } @@ -346,8 +371,7 @@ public String toUrlQueryString(String prefix) { "%skeyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getKeyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getKeyId())))); } // add `signingDeviceKeyId` to the URL query string @@ -357,10 +381,7 @@ public String toUrlQueryString(String prefix) { "%ssigningDeviceKeyId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSigningDeviceKeyId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSigningDeviceKeyId())))); } // add `publicKeyPem` to the URL query string @@ -370,10 +391,7 @@ public String toUrlQueryString(String prefix) { "%spublicKeyPem%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKeyPem()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKeyPem())))); } // add `algorithm` to the URL query string @@ -383,9 +401,7 @@ public String toUrlQueryString(String prefix) { "%salgorithm%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); } // add `enabled` to the URL query string @@ -395,8 +411,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } // add `vaultAccountId` to the URL query string @@ -406,10 +421,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `agentUserId` to the URL query string @@ -419,10 +431,7 @@ public String toUrlQueryString(String prefix) { "%sagentUserId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAgentUserId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAgentUserId())))); } // add `createdAt` to the URL query string @@ -432,9 +441,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java index a42c6647..45bd5db3 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,27 +31,29 @@ SmartTransferApproveTerm.JSON_PROPERTY_FEE_LEVEL, SmartTransferApproveTerm.JSON_PROPERTY_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_SRC_ID = "srcId"; - private String srcId; + @jakarta.annotation.Nonnull private String srcId; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; /** Transaction fee level. */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -82,14 +83,24 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public SmartTransferApproveTerm() {} - public SmartTransferApproveTerm asset(String asset) { + @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; } @@ -108,11 +119,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public SmartTransferApproveTerm amount(String amount) { + public SmartTransferApproveTerm amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -131,11 +142,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SmartTransferApproveTerm srcId(String srcId) { + public SmartTransferApproveTerm srcId(@jakarta.annotation.Nonnull String srcId) { this.srcId = srcId; return this; } @@ -154,11 +165,11 @@ public String getSrcId() { @JsonProperty(JSON_PROPERTY_SRC_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSrcId(String srcId) { + public void setSrcId(@jakarta.annotation.Nonnull String srcId) { this.srcId = srcId; } - public SmartTransferApproveTerm fee(String fee) { + public SmartTransferApproveTerm fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -177,11 +188,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public SmartTransferApproveTerm feeLevel(FeeLevelEnum feeLevel) { + public SmartTransferApproveTerm feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -200,11 +211,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public SmartTransferApproveTerm note(String note) { + public SmartTransferApproveTerm note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -223,7 +234,7 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } @@ -314,8 +325,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -325,8 +335,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `srcId` to the URL query string @@ -336,8 +345,7 @@ public String toUrlQueryString(String prefix) { "%ssrcId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSrcId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcId())))); } // add `fee` to the URL query string @@ -347,8 +355,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -358,8 +365,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `note` to the URL query string @@ -369,8 +375,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponse.java index 86a844ab..a5a341aa 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ SmartTransferBadRequestResponse.JSON_PROPERTY_MESSAGE, SmartTransferBadRequestResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferBadRequestResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private String code; + @jakarta.annotation.Nonnull private String code; public SmartTransferBadRequestResponse() {} - public SmartTransferBadRequestResponse message(String message) { + @JsonCreator + public SmartTransferBadRequestResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { + this.message = message; + this.code = code; + } + + public SmartTransferBadRequestResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -55,11 +65,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public SmartTransferBadRequestResponse code(String code) { + public SmartTransferBadRequestResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -78,7 +88,7 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(String code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } 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 index f68e078a..71e6c49e 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ SmartTransferCoinStatistic.JSON_PROPERTY_ASSET, SmartTransferCoinStatistic.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String asset; + @jakarta.annotation.Nullable private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public SmartTransferCoinStatistic() {} - public SmartTransferCoinStatistic asset(String asset) { + public SmartTransferCoinStatistic asset(@jakarta.annotation.Nullable String asset) { this.asset = asset; return this; } @@ -55,11 +56,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nullable String asset) { this.asset = asset; } - public SmartTransferCoinStatistic amount(String amount) { + public SmartTransferCoinStatistic amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -78,7 +79,7 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -172,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 6a709584..55d55a80 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -36,16 +35,18 @@ SmartTransferCreateTicket.JSON_PROPERTY_NOTE, SmartTransferCreateTicket.JSON_PROPERTY_SUBMIT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferCreateTicket { public static final String JSON_PROPERTY_CREATED_BY_NETWORK_ID = "createdByNetworkId"; - private String createdByNetworkId; + @jakarta.annotation.Nonnull private String createdByNetworkId; /** Gets or Sets type */ public enum TypeEnum { - ASYNC("ASYNC"), + ASYNC(String.valueOf("ASYNC")), - DVP("DVP"); + DVP(String.valueOf("DVP")); private String value; @@ -75,26 +76,38 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_EXPIRES_IN = "expiresIn"; - private BigDecimal expiresIn; + @jakarta.annotation.Nullable private BigDecimal expiresIn; public static final String JSON_PROPERTY_TERMS = "terms"; - private List terms; + + @jakarta.annotation.Nullable + private List terms = new ArrayList<>(); public static final String JSON_PROPERTY_EXTERNAL_REF_ID = "externalRefId"; - private String externalRefId; + @jakarta.annotation.Nullable private String externalRefId; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public static final String JSON_PROPERTY_SUBMIT = "submit"; - private Boolean submit; + @jakarta.annotation.Nullable private Boolean submit; public SmartTransferCreateTicket() {} - public SmartTransferCreateTicket createdByNetworkId(String createdByNetworkId) { + @JsonCreator + public SmartTransferCreateTicket( + @JsonProperty(value = JSON_PROPERTY_CREATED_BY_NETWORK_ID, required = true) + String createdByNetworkId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { + this.createdByNetworkId = createdByNetworkId; + this.type = type; + } + + public SmartTransferCreateTicket createdByNetworkId( + @jakarta.annotation.Nonnull String createdByNetworkId) { this.createdByNetworkId = createdByNetworkId; return this; } @@ -113,11 +126,11 @@ public String getCreatedByNetworkId() { @JsonProperty(JSON_PROPERTY_CREATED_BY_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedByNetworkId(String createdByNetworkId) { + public void setCreatedByNetworkId(@jakarta.annotation.Nonnull String createdByNetworkId) { this.createdByNetworkId = createdByNetworkId; } - public SmartTransferCreateTicket type(TypeEnum type) { + public SmartTransferCreateTicket type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -136,11 +149,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public SmartTransferCreateTicket expiresIn(BigDecimal expiresIn) { + public SmartTransferCreateTicket expiresIn(@jakarta.annotation.Nullable BigDecimal expiresIn) { this.expiresIn = expiresIn; return this; } @@ -160,11 +173,12 @@ public BigDecimal getExpiresIn() { @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresIn(BigDecimal expiresIn) { + public void setExpiresIn(@jakarta.annotation.Nullable BigDecimal expiresIn) { this.expiresIn = expiresIn; } - public SmartTransferCreateTicket terms(List terms) { + public SmartTransferCreateTicket terms( + @jakarta.annotation.Nullable List terms) { this.terms = terms; return this; } @@ -191,11 +205,12 @@ public List getTerms() { @JsonProperty(JSON_PROPERTY_TERMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTerms(List terms) { + public void setTerms(@jakarta.annotation.Nullable List terms) { this.terms = terms; } - public SmartTransferCreateTicket externalRefId(String externalRefId) { + public SmartTransferCreateTicket externalRefId( + @jakarta.annotation.Nullable String externalRefId) { this.externalRefId = externalRefId; return this; } @@ -214,11 +229,11 @@ public String getExternalRefId() { @JsonProperty(JSON_PROPERTY_EXTERNAL_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalRefId(String externalRefId) { + public void setExternalRefId(@jakarta.annotation.Nullable String externalRefId) { this.externalRefId = externalRefId; } - public SmartTransferCreateTicket note(String note) { + public SmartTransferCreateTicket note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -237,11 +252,11 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public SmartTransferCreateTicket submit(Boolean submit) { + public SmartTransferCreateTicket submit(@jakarta.annotation.Nullable Boolean submit) { this.submit = submit; return this; } @@ -260,7 +275,7 @@ public Boolean getSubmit() { @JsonProperty(JSON_PROPERTY_SUBMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubmit(Boolean submit) { + public void setSubmit(@jakarta.annotation.Nullable Boolean submit) { this.submit = submit; } @@ -356,10 +371,7 @@ public String toUrlQueryString(String prefix) { "%screatedByNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedByNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedByNetworkId())))); } // add `type` to the URL query string @@ -369,8 +381,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `expiresIn` to the URL query string @@ -380,9 +391,7 @@ public String toUrlQueryString(String prefix) { "%sexpiresIn%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiresIn()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiresIn())))); } // add `terms` to the URL query string @@ -415,10 +424,7 @@ public String toUrlQueryString(String prefix) { "%sexternalRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalRefId())))); } // add `note` to the URL query string @@ -428,8 +434,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } // add `submit` to the URL query string @@ -439,8 +444,7 @@ public String toUrlQueryString(String prefix) { "%ssubmit%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSubmit()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubmit())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTerm.java index d115f95d..5cdfaaa1 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTerm.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,39 @@ SmartTransferCreateTicketTerm.JSON_PROPERTY_FROM_NETWORK_ID, SmartTransferCreateTicketTerm.JSON_PROPERTY_TO_NETWORK_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferCreateTicketTerm { public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_FROM_NETWORK_ID = "fromNetworkId"; - private String fromNetworkId; + @jakarta.annotation.Nonnull private String fromNetworkId; public static final String JSON_PROPERTY_TO_NETWORK_ID = "toNetworkId"; - private String toNetworkId; + @jakarta.annotation.Nonnull private String toNetworkId; public SmartTransferCreateTicketTerm() {} - public SmartTransferCreateTicketTerm asset(String asset) { + @JsonCreator + public SmartTransferCreateTicketTerm( + @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, + @JsonProperty(value = JSON_PROPERTY_FROM_NETWORK_ID, required = true) + String fromNetworkId, + @JsonProperty(value = JSON_PROPERTY_TO_NETWORK_ID, required = true) + String toNetworkId) { + this.asset = asset; + this.amount = amount; + this.fromNetworkId = fromNetworkId; + this.toNetworkId = toNetworkId; + } + + public SmartTransferCreateTicketTerm asset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; return this; } @@ -63,11 +79,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public SmartTransferCreateTicketTerm amount(String amount) { + public SmartTransferCreateTicketTerm amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -86,11 +102,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SmartTransferCreateTicketTerm fromNetworkId(String fromNetworkId) { + public SmartTransferCreateTicketTerm fromNetworkId( + @jakarta.annotation.Nonnull String fromNetworkId) { this.fromNetworkId = fromNetworkId; return this; } @@ -109,11 +126,12 @@ public String getFromNetworkId() { @JsonProperty(JSON_PROPERTY_FROM_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFromNetworkId(String fromNetworkId) { + public void setFromNetworkId(@jakarta.annotation.Nonnull String fromNetworkId) { this.fromNetworkId = fromNetworkId; } - public SmartTransferCreateTicketTerm toNetworkId(String toNetworkId) { + public SmartTransferCreateTicketTerm toNetworkId( + @jakarta.annotation.Nonnull String toNetworkId) { this.toNetworkId = toNetworkId; return this; } @@ -132,7 +150,7 @@ public String getToNetworkId() { @JsonProperty(JSON_PROPERTY_TO_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setToNetworkId(String toNetworkId) { + public void setToNetworkId(@jakarta.annotation.Nonnull String toNetworkId) { this.toNetworkId = toNetworkId; } @@ -220,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -231,8 +248,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `fromNetworkId` to the URL query string @@ -242,10 +258,7 @@ public String toUrlQueryString(String prefix) { "%sfromNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFromNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFromNetworkId())))); } // add `toNetworkId` to the URL query string @@ -255,10 +268,7 @@ public String toUrlQueryString(String prefix) { "%stoNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getToNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getToNetworkId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponse.java index 93320e6b..bd8d6780 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ SmartTransferForbiddenResponse.JSON_PROPERTY_MESSAGE, SmartTransferForbiddenResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferForbiddenResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private String code; + @jakarta.annotation.Nonnull private String code; public SmartTransferForbiddenResponse() {} - public SmartTransferForbiddenResponse message(String message) { + @JsonCreator + public SmartTransferForbiddenResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { + this.message = message; + this.code = code; + } + + public SmartTransferForbiddenResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -55,11 +65,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public SmartTransferForbiddenResponse code(String code) { + public SmartTransferForbiddenResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -78,7 +88,7 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(String code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java index 412ca1b5..09459bd0 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,18 +28,20 @@ SmartTransferFundDvpTicket.JSON_PROPERTY_FEE_LEVEL, SmartTransferFundDvpTicket.JSON_PROPERTY_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String fee; + @jakarta.annotation.Nullable private String fee; /** Transaction fee level. */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -70,14 +71,14 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public SmartTransferFundDvpTicket() {} - public SmartTransferFundDvpTicket fee(String fee) { + public SmartTransferFundDvpTicket fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -96,11 +97,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public SmartTransferFundDvpTicket feeLevel(FeeLevelEnum feeLevel) { + public SmartTransferFundDvpTicket feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -119,11 +120,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public SmartTransferFundDvpTicket note(String note) { + public SmartTransferFundDvpTicket note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -142,7 +143,7 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } @@ -227,8 +228,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -238,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `note` to the URL query string @@ -249,8 +248,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferFundTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferFundTerm.java index 30d01cf9..29c5a896 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferFundTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferFundTerm.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,35 +32,52 @@ SmartTransferFundTerm.JSON_PROPERTY_FEE_LEVEL, SmartTransferFundTerm.JSON_PROPERTY_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferFundTerm { public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_NETWORK_CONNECTION_ID = "networkConnectionId"; - private String networkConnectionId; + @jakarta.annotation.Nonnull private String networkConnectionId; public static final String JSON_PROPERTY_SRC_ID = "srcId"; - private String srcId; + @jakarta.annotation.Nonnull private String srcId; public static final String JSON_PROPERTY_SRC_TYPE = "srcType"; - private String srcType; + @jakarta.annotation.Nonnull private String srcType; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private String feeLevel; + @jakarta.annotation.Nullable private String feeLevel; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public SmartTransferFundTerm() {} - public SmartTransferFundTerm asset(String asset) { + @JsonCreator + public SmartTransferFundTerm( + @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, + @JsonProperty(value = JSON_PROPERTY_NETWORK_CONNECTION_ID, required = true) + String networkConnectionId, + @JsonProperty(value = JSON_PROPERTY_SRC_ID, required = true) String srcId, + @JsonProperty(value = JSON_PROPERTY_SRC_TYPE, required = true) String srcType) { + this.asset = asset; + this.amount = amount; + this.networkConnectionId = networkConnectionId; + this.srcId = srcId; + this.srcType = srcType; + } + + public SmartTransferFundTerm asset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; return this; } @@ -79,11 +96,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public SmartTransferFundTerm amount(String amount) { + public SmartTransferFundTerm amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -102,11 +119,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SmartTransferFundTerm networkConnectionId(String networkConnectionId) { + public SmartTransferFundTerm networkConnectionId( + @jakarta.annotation.Nonnull String networkConnectionId) { this.networkConnectionId = networkConnectionId; return this; } @@ -125,11 +143,11 @@ public String getNetworkConnectionId() { @JsonProperty(JSON_PROPERTY_NETWORK_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkConnectionId(String networkConnectionId) { + public void setNetworkConnectionId(@jakarta.annotation.Nonnull String networkConnectionId) { this.networkConnectionId = networkConnectionId; } - public SmartTransferFundTerm srcId(String srcId) { + public SmartTransferFundTerm srcId(@jakarta.annotation.Nonnull String srcId) { this.srcId = srcId; return this; } @@ -148,11 +166,11 @@ public String getSrcId() { @JsonProperty(JSON_PROPERTY_SRC_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSrcId(String srcId) { + public void setSrcId(@jakarta.annotation.Nonnull String srcId) { this.srcId = srcId; } - public SmartTransferFundTerm srcType(String srcType) { + public SmartTransferFundTerm srcType(@jakarta.annotation.Nonnull String srcType) { this.srcType = srcType; return this; } @@ -171,11 +189,11 @@ public String getSrcType() { @JsonProperty(JSON_PROPERTY_SRC_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSrcType(String srcType) { + public void setSrcType(@jakarta.annotation.Nonnull String srcType) { this.srcType = srcType; } - public SmartTransferFundTerm fee(String fee) { + public SmartTransferFundTerm fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -194,11 +212,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public SmartTransferFundTerm feeLevel(String feeLevel) { + public SmartTransferFundTerm feeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; return this; } @@ -217,11 +235,11 @@ public String getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(String feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; } - public SmartTransferFundTerm note(String note) { + public SmartTransferFundTerm note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -240,7 +258,7 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } @@ -339,8 +357,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -350,8 +367,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `networkConnectionId` to the URL query string @@ -361,10 +377,8 @@ public String toUrlQueryString(String prefix) { "%snetworkConnectionId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkConnectionId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getNetworkConnectionId())))); } // add `srcId` to the URL query string @@ -374,8 +388,7 @@ public String toUrlQueryString(String prefix) { "%ssrcId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSrcId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcId())))); } // add `srcType` to the URL query string @@ -385,8 +398,7 @@ public String toUrlQueryString(String prefix) { "%ssrcType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSrcType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcType())))); } // add `fee` to the URL query string @@ -396,8 +408,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -407,8 +418,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `note` to the URL query string @@ -418,8 +428,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTerm.java index 44697f9a..7e2e3fac 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTerm.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SmartTransferManuallyFundTerm */ @JsonPropertyOrder({SmartTransferManuallyFundTerm.JSON_PROPERTY_TX_HASH}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferManuallyFundTerm { public static final String JSON_PROPERTY_TX_HASH = "txHash"; - private String txHash; + @jakarta.annotation.Nonnull private String txHash; public SmartTransferManuallyFundTerm() {} - public SmartTransferManuallyFundTerm txHash(String txHash) { + @JsonCreator + public SmartTransferManuallyFundTerm( + @JsonProperty(value = JSON_PROPERTY_TX_HASH, required = true) String txHash) { + this.txHash = txHash; + } + + public SmartTransferManuallyFundTerm txHash(@jakarta.annotation.Nonnull String txHash) { this.txHash = txHash; return this; } @@ -49,7 +57,7 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nonnull String txHash) { this.txHash = txHash; } @@ -131,8 +139,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponse.java index afbb6f2f..928496a8 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ SmartTransferNotFoundResponse.JSON_PROPERTY_MESSAGE, SmartTransferNotFoundResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferNotFoundResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private String code; + @jakarta.annotation.Nonnull private String code; public SmartTransferNotFoundResponse() {} - public SmartTransferNotFoundResponse message(String message) { + @JsonCreator + public SmartTransferNotFoundResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { + this.message = message; + this.code = code; + } + + public SmartTransferNotFoundResponse message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -55,11 +65,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public SmartTransferNotFoundResponse code(String code) { + public SmartTransferNotFoundResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -78,7 +88,7 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(String code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpiration.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpiration.java index 09d29432..13d637e8 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpiration.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpiration.java @@ -13,25 +13,34 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** SmartTransferSetTicketExpiration */ @JsonPropertyOrder({SmartTransferSetTicketExpiration.JSON_PROPERTY_EXPIRES_IN}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferSetTicketExpiration { public static final String JSON_PROPERTY_EXPIRES_IN = "expiresIn"; - private BigDecimal expiresIn; + @jakarta.annotation.Nonnull private BigDecimal expiresIn; public SmartTransferSetTicketExpiration() {} - public SmartTransferSetTicketExpiration expiresIn(BigDecimal expiresIn) { + @JsonCreator + public SmartTransferSetTicketExpiration( + @JsonProperty(value = JSON_PROPERTY_EXPIRES_IN, required = true) BigDecimal expiresIn) { + this.expiresIn = expiresIn; + } + + public SmartTransferSetTicketExpiration expiresIn( + @jakarta.annotation.Nonnull BigDecimal expiresIn) { this.expiresIn = expiresIn; return this; } @@ -52,7 +61,7 @@ public BigDecimal getExpiresIn() { @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExpiresIn(BigDecimal expiresIn) { + public void setExpiresIn(@jakarta.annotation.Nonnull BigDecimal expiresIn) { this.expiresIn = expiresIn; } @@ -134,9 +143,7 @@ public String toUrlQueryString(String prefix) { "%sexpiresIn%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiresIn()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiresIn())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalId.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalId.java index 88869449..49b6894e 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalId.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalId.java @@ -13,24 +13,34 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SmartTransferSetTicketExternalId */ @JsonPropertyOrder({SmartTransferSetTicketExternalId.JSON_PROPERTY_EXTERNAL_REF_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferSetTicketExternalId { public static final String JSON_PROPERTY_EXTERNAL_REF_ID = "externalRefId"; - private String externalRefId; + @jakarta.annotation.Nonnull private String externalRefId; public SmartTransferSetTicketExternalId() {} - public SmartTransferSetTicketExternalId externalRefId(String externalRefId) { + @JsonCreator + public SmartTransferSetTicketExternalId( + @JsonProperty(value = JSON_PROPERTY_EXTERNAL_REF_ID, required = true) + String externalRefId) { + this.externalRefId = externalRefId; + } + + public SmartTransferSetTicketExternalId externalRefId( + @jakarta.annotation.Nonnull String externalRefId) { this.externalRefId = externalRefId; return this; } @@ -49,7 +59,7 @@ public String getExternalRefId() { @JsonProperty(JSON_PROPERTY_EXTERNAL_REF_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExternalRefId(String externalRefId) { + public void setExternalRefId(@jakarta.annotation.Nonnull String externalRefId) { this.externalRefId = externalRefId; } @@ -131,10 +141,7 @@ public String toUrlQueryString(String prefix) { "%sexternalRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalRefId())))); } 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 4776d8f1..076ef547 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -25,14 +25,24 @@ /** SmartTransferSetUserGroups */ @JsonPropertyOrder({SmartTransferSetUserGroups.JSON_PROPERTY_USER_GROUP_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferSetUserGroups { public static final String JSON_PROPERTY_USER_GROUP_IDS = "userGroupIds"; - private List userGroupIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List userGroupIds = new ArrayList<>(); public SmartTransferSetUserGroups() {} - public SmartTransferSetUserGroups userGroupIds(List userGroupIds) { + @JsonCreator + public SmartTransferSetUserGroups( + @JsonProperty(value = JSON_PROPERTY_USER_GROUP_IDS, required = true) + List userGroupIds) { + this.userGroupIds = userGroupIds; + } + + public SmartTransferSetUserGroups userGroupIds( + @jakarta.annotation.Nonnull List userGroupIds) { this.userGroupIds = userGroupIds; return this; } @@ -59,7 +69,7 @@ public List getUserGroupIds() { @JsonProperty(JSON_PROPERTY_USER_GROUP_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserGroupIds(List userGroupIds) { + public void setUserGroupIds(@jakarta.annotation.Nonnull List userGroupIds) { this.userGroupIds = userGroupIds; } @@ -145,10 +155,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUserGroupIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUserGroupIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java index 72a77df9..591dcbbc 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,42 @@ SmartTransferStatistic.JSON_PROPERTY_TOTAL_ACTIVE_TICKETS, SmartTransferStatistic.JSON_PROPERTY_TOTAL_INACTIVE_TICKETS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private SmartTransferStatisticInflow inflow; + @jakarta.annotation.Nonnull private SmartTransferStatisticInflow inflow; public static final String JSON_PROPERTY_OUTFLOW = "outflow"; - private SmartTransferStatisticOutflow outflow; + @jakarta.annotation.Nonnull private SmartTransferStatisticOutflow outflow; public static final String JSON_PROPERTY_TOTAL_ACTIVE_TICKETS = "totalActiveTickets"; - private Integer totalActiveTickets; + @jakarta.annotation.Nonnull private Integer totalActiveTickets; public static final String JSON_PROPERTY_TOTAL_INACTIVE_TICKETS = "totalInactiveTickets"; - private Integer totalInactiveTickets; + @jakarta.annotation.Nonnull private Integer totalInactiveTickets; public SmartTransferStatistic() {} - public SmartTransferStatistic inflow(SmartTransferStatisticInflow inflow) { + @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; } @@ -63,11 +82,12 @@ public SmartTransferStatisticInflow getInflow() { @JsonProperty(JSON_PROPERTY_INFLOW) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInflow(SmartTransferStatisticInflow inflow) { + public void setInflow(@jakarta.annotation.Nonnull SmartTransferStatisticInflow inflow) { this.inflow = inflow; } - public SmartTransferStatistic outflow(SmartTransferStatisticOutflow outflow) { + public SmartTransferStatistic outflow( + @jakarta.annotation.Nonnull SmartTransferStatisticOutflow outflow) { this.outflow = outflow; return this; } @@ -86,11 +106,12 @@ public SmartTransferStatisticOutflow getOutflow() { @JsonProperty(JSON_PROPERTY_OUTFLOW) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutflow(SmartTransferStatisticOutflow outflow) { + public void setOutflow(@jakarta.annotation.Nonnull SmartTransferStatisticOutflow outflow) { this.outflow = outflow; } - public SmartTransferStatistic totalActiveTickets(Integer totalActiveTickets) { + public SmartTransferStatistic totalActiveTickets( + @jakarta.annotation.Nonnull Integer totalActiveTickets) { this.totalActiveTickets = totalActiveTickets; return this; } @@ -109,11 +130,12 @@ public Integer getTotalActiveTickets() { @JsonProperty(JSON_PROPERTY_TOTAL_ACTIVE_TICKETS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalActiveTickets(Integer totalActiveTickets) { + public void setTotalActiveTickets(@jakarta.annotation.Nonnull Integer totalActiveTickets) { this.totalActiveTickets = totalActiveTickets; } - public SmartTransferStatistic totalInactiveTickets(Integer totalInactiveTickets) { + public SmartTransferStatistic totalInactiveTickets( + @jakarta.annotation.Nonnull Integer totalInactiveTickets) { this.totalInactiveTickets = totalInactiveTickets; return this; } @@ -132,7 +154,7 @@ public Integer getTotalInactiveTickets() { @JsonProperty(JSON_PROPERTY_TOTAL_INACTIVE_TICKETS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalInactiveTickets(Integer totalInactiveTickets) { + public void setTotalInactiveTickets(@jakarta.annotation.Nonnull Integer totalInactiveTickets) { this.totalInactiveTickets = totalInactiveTickets; } @@ -235,10 +257,7 @@ public String toUrlQueryString(String prefix) { "%stotalActiveTickets%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTotalActiveTickets()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotalActiveTickets())))); } // add `totalInactiveTickets` to the URL query string @@ -248,10 +267,8 @@ public String toUrlQueryString(String prefix) { "%stotalInactiveTickets%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTotalInactiveTickets()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 00b59077..3c9c512c 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,20 @@ SmartTransferStatisticInflow.JSON_PROPERTY_COINS, SmartTransferStatisticInflow.JSON_PROPERTY_TICKET_COUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List coins; + @jakarta.annotation.Nullable private List coins = new ArrayList<>(); public static final String JSON_PROPERTY_TICKET_COUNT = "ticketCount"; - private Integer ticketCount; + @jakarta.annotation.Nullable private Integer ticketCount; public SmartTransferStatisticInflow() {} - public SmartTransferStatisticInflow coins(List coins) { + public SmartTransferStatisticInflow coins( + @jakarta.annotation.Nullable List coins) { this.coins = coins; return this; } @@ -65,11 +67,12 @@ public List getCoins() { @JsonProperty(JSON_PROPERTY_COINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoins(List coins) { + public void setCoins(@jakarta.annotation.Nullable List coins) { this.coins = coins; } - public SmartTransferStatisticInflow ticketCount(Integer ticketCount) { + public SmartTransferStatisticInflow ticketCount( + @jakarta.annotation.Nullable Integer ticketCount) { this.ticketCount = ticketCount; return this; } @@ -88,7 +91,7 @@ public Integer getTicketCount() { @JsonProperty(JSON_PROPERTY_TICKET_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTicketCount(Integer ticketCount) { + public void setTicketCount(@jakarta.annotation.Nullable Integer ticketCount) { this.ticketCount = ticketCount; } @@ -195,10 +198,7 @@ public String toUrlQueryString(String prefix) { "%sticketCount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTicketCount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 5e1258c9..359c2fd8 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,20 @@ SmartTransferStatisticOutflow.JSON_PROPERTY_COINS, SmartTransferStatisticOutflow.JSON_PROPERTY_TICKET_COUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List coins; + @jakarta.annotation.Nullable private List coins = new ArrayList<>(); public static final String JSON_PROPERTY_TICKET_COUNT = "ticketCount"; - private Integer ticketCount; + @jakarta.annotation.Nullable private Integer ticketCount; public SmartTransferStatisticOutflow() {} - public SmartTransferStatisticOutflow coins(List coins) { + public SmartTransferStatisticOutflow coins( + @jakarta.annotation.Nullable List coins) { this.coins = coins; return this; } @@ -65,11 +67,12 @@ public List getCoins() { @JsonProperty(JSON_PROPERTY_COINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoins(List coins) { + public void setCoins(@jakarta.annotation.Nullable List coins) { this.coins = coins; } - public SmartTransferStatisticOutflow ticketCount(Integer ticketCount) { + public SmartTransferStatisticOutflow ticketCount( + @jakarta.annotation.Nullable Integer ticketCount) { this.ticketCount = ticketCount; return this; } @@ -88,7 +91,7 @@ public Integer getTicketCount() { @JsonProperty(JSON_PROPERTY_TICKET_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTicketCount(Integer ticketCount) { + public void setTicketCount(@jakarta.annotation.Nullable Integer ticketCount) { this.ticketCount = ticketCount; } @@ -195,10 +198,7 @@ public String toUrlQueryString(String prefix) { "%sticketCount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTicketCount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTicketCount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferSubmitTicket.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferSubmitTicket.java index c0837138..abbdfed9 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferSubmitTicket.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferSubmitTicket.java @@ -16,22 +16,23 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** SmartTransferSubmitTicket */ @JsonPropertyOrder({SmartTransferSubmitTicket.JSON_PROPERTY_EXPIRES_IN}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferSubmitTicket { public static final String JSON_PROPERTY_EXPIRES_IN = "expiresIn"; - private BigDecimal expiresIn; + @jakarta.annotation.Nullable private BigDecimal expiresIn; public SmartTransferSubmitTicket() {} - public SmartTransferSubmitTicket expiresIn(BigDecimal expiresIn) { + public SmartTransferSubmitTicket expiresIn(@jakarta.annotation.Nullable BigDecimal expiresIn) { this.expiresIn = expiresIn; return this; } @@ -52,7 +53,7 @@ public BigDecimal getExpiresIn() { @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresIn(BigDecimal expiresIn) { + public void setExpiresIn(@jakarta.annotation.Nullable BigDecimal expiresIn) { this.expiresIn = expiresIn; } @@ -133,9 +134,7 @@ public String toUrlQueryString(String prefix) { "%sexpiresIn%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiresIn()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiresIn())))); } 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 8033516f..f3c91110 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -52,16 +51,18 @@ SmartTransferTicket.JSON_PROPERTY_CANCELED_BY_ME, SmartTransferTicket.JSON_PROPERTY_CREATED_BY_ME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferTicket { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; /** Kind of Smart Transfer. Can be either `ASYNC` or `DVP` */ public enum TypeEnum { - ASYNC("ASYNC"), + ASYNC(String.valueOf("ASYNC")), - DVP("DVP"); + DVP(String.valueOf("DVP")); private String value; @@ -91,17 +92,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; /** Direction of Smart Transfer. */ public enum DirectionEnum { - EXCHANGE("EXCHANGE"), + EXCHANGE(String.valueOf("EXCHANGE")), - SEND("SEND"), + SEND(String.valueOf("SEND")), - RECEIVE("RECEIVE"), + RECEIVE(String.valueOf("RECEIVE")), - INTERMEDIATE("INTERMEDIATE"); + INTERMEDIATE(String.valueOf("INTERMEDIATE")); private String value; @@ -131,23 +132,23 @@ public static DirectionEnum fromValue(String value) { } public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + @jakarta.annotation.Nullable private DirectionEnum direction; /** Current status of Smart Transfer ticket */ public enum StatusEnum { - DRAFT("DRAFT"), + DRAFT(String.valueOf("DRAFT")), - PENDING_APPROVAL("PENDING_APPROVAL"), + PENDING_APPROVAL(String.valueOf("PENDING_APPROVAL")), - OPEN("OPEN"), + OPEN(String.valueOf("OPEN")), - IN_SETTLEMENT("IN_SETTLEMENT"), + IN_SETTLEMENT(String.valueOf("IN_SETTLEMENT")), - FULFILLED("FULFILLED"), + FULFILLED(String.valueOf("FULFILLED")), - EXPIRED("EXPIRED"), + EXPIRED(String.valueOf("EXPIRED")), - CANCELED("CANCELED"); + CANCELED(String.valueOf("CANCELED")); private String value; @@ -177,23 +178,23 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; /** Current status of DVP execution */ public enum DvpExecutionStatusEnum { - STARTED("STARTED"), + STARTED(String.valueOf("STARTED")), - CREATING_ORDER("CREATING_ORDER"), + CREATING_ORDER(String.valueOf("CREATING_ORDER")), - ORDER_CREATED("ORDER_CREATED"), + ORDER_CREATED(String.valueOf("ORDER_CREATED")), - FULFILLING("FULFILLING"), + FULFILLING(String.valueOf("FULFILLING")), - FULFILLING_ORDER_FAILED("FULFILLING_ORDER_FAILED"), + FULFILLING_ORDER_FAILED(String.valueOf("FULFILLING_ORDER_FAILED")), - CREATING_ORDER_FAILED("CREATING_ORDER_FAILED"), + CREATING_ORDER_FAILED(String.valueOf("CREATING_ORDER_FAILED")), - FULFILLED("FULFILLED"); + FULFILLED(String.valueOf("FULFILLED")); private String value; @@ -223,64 +224,86 @@ public static DvpExecutionStatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_DVP_EXECUTION_STATUS = "dvpExecutionStatus"; - private DvpExecutionStatusEnum dvpExecutionStatus; + @jakarta.annotation.Nullable private DvpExecutionStatusEnum dvpExecutionStatus; public static final String JSON_PROPERTY_ORDER_CREATED_BY_NETWORK_ID = "orderCreatedByNetworkId"; - private String orderCreatedByNetworkId; + @jakarta.annotation.Nullable private String orderCreatedByNetworkId; public static final String JSON_PROPERTY_TERMS = "terms"; - private List terms; + @jakarta.annotation.Nullable private List terms = new ArrayList<>(); public static final String JSON_PROPERTY_EXPIRES_IN = "expiresIn"; - private BigDecimal expiresIn; + @jakarta.annotation.Nullable private BigDecimal expiresIn; public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; - private OffsetDateTime expiresAt; + @jakarta.annotation.Nullable private OffsetDateTime expiresAt; public static final String JSON_PROPERTY_SUBMITTED_AT = "submittedAt"; - private OffsetDateTime submittedAt; + @jakarta.annotation.Nullable private OffsetDateTime submittedAt; public static final String JSON_PROPERTY_EXPIRED_AT = "expiredAt"; - private OffsetDateTime expiredAt; + @jakarta.annotation.Nullable private OffsetDateTime expiredAt; public static final String JSON_PROPERTY_CANCELED_AT = "canceledAt"; - private OffsetDateTime canceledAt; + @jakarta.annotation.Nullable private OffsetDateTime canceledAt; public static final String JSON_PROPERTY_FULFILLED_AT = "fulfilledAt"; - private OffsetDateTime fulfilledAt; + @jakarta.annotation.Nullable private OffsetDateTime fulfilledAt; public static final String JSON_PROPERTY_EXTERNAL_REF_ID = "externalRefId"; - private String externalRefId; + @jakarta.annotation.Nullable private String externalRefId; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public static final String JSON_PROPERTY_CREATED_BY_NETWORK_ID = "createdByNetworkId"; - private String createdByNetworkId; + @jakarta.annotation.Nonnull private String createdByNetworkId; public static final String JSON_PROPERTY_CREATED_BY_NETWORK_ID_NAME = "createdByNetworkIdName"; - private String createdByNetworkIdName; + @jakarta.annotation.Nonnull private String createdByNetworkIdName; public static final String JSON_PROPERTY_CANCELED_BY_NETWORK_ID_NAME = "canceledByNetworkIdName"; - private String canceledByNetworkIdName; + @jakarta.annotation.Nullable private String canceledByNetworkIdName; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private OffsetDateTime createdAt; + @jakarta.annotation.Nonnull private OffsetDateTime createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private OffsetDateTime updatedAt; + @jakarta.annotation.Nonnull private OffsetDateTime updatedAt; public static final String JSON_PROPERTY_CANCELED_BY_ME = "canceledByMe"; - private Boolean canceledByMe; + @jakarta.annotation.Nullable private Boolean canceledByMe; public static final String JSON_PROPERTY_CREATED_BY_ME = "createdByMe"; - private Boolean createdByMe; + @jakarta.annotation.Nullable private Boolean createdByMe; public SmartTransferTicket() {} - public SmartTransferTicket id(String id) { + @JsonCreator + public SmartTransferTicket( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, + @JsonProperty(value = JSON_PROPERTY_CREATED_BY_NETWORK_ID, required = true) + String createdByNetworkId, + @JsonProperty(value = JSON_PROPERTY_CREATED_BY_NETWORK_ID_NAME, required = true) + String createdByNetworkIdName, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) + OffsetDateTime createdAt, + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) + OffsetDateTime updatedAt) { + this.id = id; + this.type = type; + this.status = status; + this.createdByNetworkId = createdByNetworkId; + this.createdByNetworkIdName = createdByNetworkIdName; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public SmartTransferTicket id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -299,11 +322,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SmartTransferTicket type(TypeEnum type) { + public SmartTransferTicket type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -322,11 +345,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public SmartTransferTicket direction(DirectionEnum direction) { + public SmartTransferTicket direction(@jakarta.annotation.Nullable DirectionEnum direction) { this.direction = direction; return this; } @@ -345,11 +368,11 @@ public DirectionEnum getDirection() { @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(@jakarta.annotation.Nullable DirectionEnum direction) { this.direction = direction; } - public SmartTransferTicket status(StatusEnum status) { + public SmartTransferTicket status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -368,11 +391,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public SmartTransferTicket dvpExecutionStatus(DvpExecutionStatusEnum dvpExecutionStatus) { + public SmartTransferTicket dvpExecutionStatus( + @jakarta.annotation.Nullable DvpExecutionStatusEnum dvpExecutionStatus) { this.dvpExecutionStatus = dvpExecutionStatus; return this; } @@ -391,11 +415,13 @@ public DvpExecutionStatusEnum getDvpExecutionStatus() { @JsonProperty(JSON_PROPERTY_DVP_EXECUTION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDvpExecutionStatus(DvpExecutionStatusEnum dvpExecutionStatus) { + public void setDvpExecutionStatus( + @jakarta.annotation.Nullable DvpExecutionStatusEnum dvpExecutionStatus) { this.dvpExecutionStatus = dvpExecutionStatus; } - public SmartTransferTicket orderCreatedByNetworkId(String orderCreatedByNetworkId) { + public SmartTransferTicket orderCreatedByNetworkId( + @jakarta.annotation.Nullable String orderCreatedByNetworkId) { this.orderCreatedByNetworkId = orderCreatedByNetworkId; return this; } @@ -414,11 +440,13 @@ public String getOrderCreatedByNetworkId() { @JsonProperty(JSON_PROPERTY_ORDER_CREATED_BY_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrderCreatedByNetworkId(String orderCreatedByNetworkId) { + public void setOrderCreatedByNetworkId( + @jakarta.annotation.Nullable String orderCreatedByNetworkId) { this.orderCreatedByNetworkId = orderCreatedByNetworkId; } - public SmartTransferTicket terms(List terms) { + public SmartTransferTicket terms( + @jakarta.annotation.Nullable List terms) { this.terms = terms; return this; } @@ -445,11 +473,11 @@ public List getTerms() { @JsonProperty(JSON_PROPERTY_TERMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTerms(List terms) { + public void setTerms(@jakarta.annotation.Nullable List terms) { this.terms = terms; } - public SmartTransferTicket expiresIn(BigDecimal expiresIn) { + public SmartTransferTicket expiresIn(@jakarta.annotation.Nullable BigDecimal expiresIn) { this.expiresIn = expiresIn; return this; } @@ -469,11 +497,11 @@ public BigDecimal getExpiresIn() { @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresIn(BigDecimal expiresIn) { + public void setExpiresIn(@jakarta.annotation.Nullable BigDecimal expiresIn) { this.expiresIn = expiresIn; } - public SmartTransferTicket expiresAt(OffsetDateTime expiresAt) { + public SmartTransferTicket expiresAt(@jakarta.annotation.Nullable OffsetDateTime expiresAt) { this.expiresAt = expiresAt; return this; } @@ -492,11 +520,12 @@ public OffsetDateTime getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(OffsetDateTime expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } - public SmartTransferTicket submittedAt(OffsetDateTime submittedAt) { + public SmartTransferTicket submittedAt( + @jakarta.annotation.Nullable OffsetDateTime submittedAt) { this.submittedAt = submittedAt; return this; } @@ -515,11 +544,11 @@ public OffsetDateTime getSubmittedAt() { @JsonProperty(JSON_PROPERTY_SUBMITTED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubmittedAt(OffsetDateTime submittedAt) { + public void setSubmittedAt(@jakarta.annotation.Nullable OffsetDateTime submittedAt) { this.submittedAt = submittedAt; } - public SmartTransferTicket expiredAt(OffsetDateTime expiredAt) { + public SmartTransferTicket expiredAt(@jakarta.annotation.Nullable OffsetDateTime expiredAt) { this.expiredAt = expiredAt; return this; } @@ -538,11 +567,11 @@ public OffsetDateTime getExpiredAt() { @JsonProperty(JSON_PROPERTY_EXPIRED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiredAt(OffsetDateTime expiredAt) { + public void setExpiredAt(@jakarta.annotation.Nullable OffsetDateTime expiredAt) { this.expiredAt = expiredAt; } - public SmartTransferTicket canceledAt(OffsetDateTime canceledAt) { + public SmartTransferTicket canceledAt(@jakarta.annotation.Nullable OffsetDateTime canceledAt) { this.canceledAt = canceledAt; return this; } @@ -561,11 +590,12 @@ public OffsetDateTime getCanceledAt() { @JsonProperty(JSON_PROPERTY_CANCELED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanceledAt(OffsetDateTime canceledAt) { + public void setCanceledAt(@jakarta.annotation.Nullable OffsetDateTime canceledAt) { this.canceledAt = canceledAt; } - public SmartTransferTicket fulfilledAt(OffsetDateTime fulfilledAt) { + public SmartTransferTicket fulfilledAt( + @jakarta.annotation.Nullable OffsetDateTime fulfilledAt) { this.fulfilledAt = fulfilledAt; return this; } @@ -584,11 +614,11 @@ public OffsetDateTime getFulfilledAt() { @JsonProperty(JSON_PROPERTY_FULFILLED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFulfilledAt(OffsetDateTime fulfilledAt) { + public void setFulfilledAt(@jakarta.annotation.Nullable OffsetDateTime fulfilledAt) { this.fulfilledAt = fulfilledAt; } - public SmartTransferTicket externalRefId(String externalRefId) { + public SmartTransferTicket externalRefId(@jakarta.annotation.Nullable String externalRefId) { this.externalRefId = externalRefId; return this; } @@ -607,11 +637,11 @@ public String getExternalRefId() { @JsonProperty(JSON_PROPERTY_EXTERNAL_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalRefId(String externalRefId) { + public void setExternalRefId(@jakarta.annotation.Nullable String externalRefId) { this.externalRefId = externalRefId; } - public SmartTransferTicket note(String note) { + public SmartTransferTicket note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -630,11 +660,12 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public SmartTransferTicket createdByNetworkId(String createdByNetworkId) { + public SmartTransferTicket createdByNetworkId( + @jakarta.annotation.Nonnull String createdByNetworkId) { this.createdByNetworkId = createdByNetworkId; return this; } @@ -653,11 +684,12 @@ public String getCreatedByNetworkId() { @JsonProperty(JSON_PROPERTY_CREATED_BY_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedByNetworkId(String createdByNetworkId) { + public void setCreatedByNetworkId(@jakarta.annotation.Nonnull String createdByNetworkId) { this.createdByNetworkId = createdByNetworkId; } - public SmartTransferTicket createdByNetworkIdName(String createdByNetworkIdName) { + public SmartTransferTicket createdByNetworkIdName( + @jakarta.annotation.Nonnull String createdByNetworkIdName) { this.createdByNetworkIdName = createdByNetworkIdName; return this; } @@ -676,11 +708,13 @@ public String getCreatedByNetworkIdName() { @JsonProperty(JSON_PROPERTY_CREATED_BY_NETWORK_ID_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedByNetworkIdName(String createdByNetworkIdName) { + public void setCreatedByNetworkIdName( + @jakarta.annotation.Nonnull String createdByNetworkIdName) { this.createdByNetworkIdName = createdByNetworkIdName; } - public SmartTransferTicket canceledByNetworkIdName(String canceledByNetworkIdName) { + public SmartTransferTicket canceledByNetworkIdName( + @jakarta.annotation.Nullable String canceledByNetworkIdName) { this.canceledByNetworkIdName = canceledByNetworkIdName; return this; } @@ -699,11 +733,12 @@ public String getCanceledByNetworkIdName() { @JsonProperty(JSON_PROPERTY_CANCELED_BY_NETWORK_ID_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanceledByNetworkIdName(String canceledByNetworkIdName) { + public void setCanceledByNetworkIdName( + @jakarta.annotation.Nullable String canceledByNetworkIdName) { this.canceledByNetworkIdName = canceledByNetworkIdName; } - public SmartTransferTicket createdAt(OffsetDateTime createdAt) { + public SmartTransferTicket createdAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } @@ -722,11 +757,11 @@ public OffsetDateTime getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(OffsetDateTime createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; } - public SmartTransferTicket updatedAt(OffsetDateTime updatedAt) { + public SmartTransferTicket updatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } @@ -745,11 +780,11 @@ public OffsetDateTime getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(OffsetDateTime updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - public SmartTransferTicket canceledByMe(Boolean canceledByMe) { + public SmartTransferTicket canceledByMe(@jakarta.annotation.Nullable Boolean canceledByMe) { this.canceledByMe = canceledByMe; return this; } @@ -768,11 +803,11 @@ public Boolean getCanceledByMe() { @JsonProperty(JSON_PROPERTY_CANCELED_BY_ME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanceledByMe(Boolean canceledByMe) { + public void setCanceledByMe(@jakarta.annotation.Nullable Boolean canceledByMe) { this.canceledByMe = canceledByMe; } - public SmartTransferTicket createdByMe(Boolean createdByMe) { + public SmartTransferTicket createdByMe(@jakarta.annotation.Nullable Boolean createdByMe) { this.createdByMe = createdByMe; return this; } @@ -791,7 +826,7 @@ public Boolean getCreatedByMe() { @JsonProperty(JSON_PROPERTY_CREATED_BY_ME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedByMe(Boolean createdByMe) { + public void setCreatedByMe(@jakarta.annotation.Nullable Boolean createdByMe) { this.createdByMe = createdByMe; } @@ -947,10 +982,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `type` to the URL query string @@ -960,8 +992,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `direction` to the URL query string @@ -971,9 +1002,7 @@ public String toUrlQueryString(String prefix) { "%sdirection%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDirection()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDirection())))); } // add `status` to the URL query string @@ -983,8 +1012,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `dvpExecutionStatus` to the URL query string @@ -994,10 +1022,7 @@ public String toUrlQueryString(String prefix) { "%sdvpExecutionStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDvpExecutionStatus()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDvpExecutionStatus())))); } // add `orderCreatedByNetworkId` to the URL query string @@ -1007,10 +1032,8 @@ public String toUrlQueryString(String prefix) { "%sorderCreatedByNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOrderCreatedByNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getOrderCreatedByNetworkId())))); } // add `terms` to the URL query string @@ -1043,9 +1066,7 @@ public String toUrlQueryString(String prefix) { "%sexpiresIn%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiresIn()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiresIn())))); } // add `expiresAt` to the URL query string @@ -1055,9 +1076,7 @@ public String toUrlQueryString(String prefix) { "%sexpiresAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiresAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiresAt())))); } // add `submittedAt` to the URL query string @@ -1067,10 +1086,7 @@ public String toUrlQueryString(String prefix) { "%ssubmittedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSubmittedAt()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubmittedAt())))); } // add `expiredAt` to the URL query string @@ -1080,9 +1096,7 @@ public String toUrlQueryString(String prefix) { "%sexpiredAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiredAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiredAt())))); } // add `canceledAt` to the URL query string @@ -1092,9 +1106,7 @@ public String toUrlQueryString(String prefix) { "%scanceledAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCanceledAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCanceledAt())))); } // add `fulfilledAt` to the URL query string @@ -1104,10 +1116,7 @@ public String toUrlQueryString(String prefix) { "%sfulfilledAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFulfilledAt()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFulfilledAt())))); } // add `externalRefId` to the URL query string @@ -1117,10 +1126,7 @@ public String toUrlQueryString(String prefix) { "%sexternalRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalRefId())))); } // add `note` to the URL query string @@ -1130,8 +1136,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } // add `createdByNetworkId` to the URL query string @@ -1141,10 +1146,7 @@ public String toUrlQueryString(String prefix) { "%screatedByNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedByNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedByNetworkId())))); } // add `createdByNetworkIdName` to the URL query string @@ -1154,10 +1156,8 @@ public String toUrlQueryString(String prefix) { "%screatedByNetworkIdName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedByNetworkIdName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCreatedByNetworkIdName())))); } // add `canceledByNetworkIdName` to the URL query string @@ -1167,10 +1167,8 @@ public String toUrlQueryString(String prefix) { "%scanceledByNetworkIdName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCanceledByNetworkIdName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCanceledByNetworkIdName())))); } // add `createdAt` to the URL query string @@ -1180,9 +1178,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `updatedAt` to the URL query string @@ -1192,9 +1188,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } // add `canceledByMe` to the URL query string @@ -1204,10 +1198,7 @@ public String toUrlQueryString(String prefix) { "%scanceledByMe%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCanceledByMe()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCanceledByMe())))); } // add `createdByMe` to the URL query string @@ -1217,10 +1208,7 @@ public String toUrlQueryString(String prefix) { "%screatedByMe%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedByMe()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedByMe())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java index 8d7e1f78..3a29b948 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,34 @@ SmartTransferTicketFilteredResponse.JSON_PROPERTY_AFTER, SmartTransferTicketFilteredResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferTicketFilteredResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_AFTER = "after"; - private String after; + @jakarta.annotation.Nonnull private String after; public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public SmartTransferTicketFilteredResponse() {} - public SmartTransferTicketFilteredResponse message(String message) { + @JsonCreator + public SmartTransferTicketFilteredResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, + @JsonProperty(value = JSON_PROPERTY_AFTER, required = true) String after, + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) + List data) { + this.message = message; + this.after = after; + this.data = data; + } + + public SmartTransferTicketFilteredResponse message( + @jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -61,11 +75,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SmartTransferTicketFilteredResponse after(String after) { + public SmartTransferTicketFilteredResponse after(@jakarta.annotation.Nonnull String after) { this.after = after; return this; } @@ -84,11 +98,12 @@ public String getAfter() { @JsonProperty(JSON_PROPERTY_AFTER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAfter(String after) { + public void setAfter(@jakarta.annotation.Nonnull String after) { this.after = after; } - public SmartTransferTicketFilteredResponse data(List data) { + public SmartTransferTicketFilteredResponse data( + @jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -115,7 +130,7 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } @@ -201,8 +216,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `after` to the URL query string @@ -212,8 +226,7 @@ public String toUrlQueryString(String prefix) { "%safter%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAfter()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAfter())))); } // add `data` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketResponse.java index c16097ac..085be585 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ SmartTransferTicketResponse.JSON_PROPERTY_MESSAGE, SmartTransferTicketResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferTicketResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_DATA = "data"; - private SmartTransferTicket data; + @jakarta.annotation.Nullable private SmartTransferTicket data; public SmartTransferTicketResponse() {} - public SmartTransferTicketResponse message(String message) { + @JsonCreator + public SmartTransferTicketResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { + this.message = message; + } + + public SmartTransferTicketResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -55,11 +63,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SmartTransferTicketResponse data(SmartTransferTicket data) { + public SmartTransferTicketResponse data(@jakarta.annotation.Nullable SmartTransferTicket data) { this.data = data; return this; } @@ -78,7 +86,7 @@ public SmartTransferTicket getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(SmartTransferTicket data) { + public void setData(@jakarta.annotation.Nullable SmartTransferTicket data) { this.data = data; } @@ -161,8 +169,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `data` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java index 2366e2de..2c099bfc 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.time.OffsetDateTime; import java.util.Objects; import java.util.StringJoiner; @@ -43,77 +42,79 @@ SmartTransferTicketTerm.JSON_PROPERTY_CREATED_AT, SmartTransferTicketTerm.JSON_PROPERTY_UPDATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferTicketTerm { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TICKET_ID = "ticketId"; - private String ticketId; + @jakarta.annotation.Nonnull private String ticketId; public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_DVP_SRC_DST_VAULT_ID = "dvpSrcDstVaultId"; - private String dvpSrcDstVaultId; + @jakarta.annotation.Nullable private String dvpSrcDstVaultId; public static final String JSON_PROPERTY_AMOUNT_USD = "amountUsd"; - private String amountUsd; + @jakarta.annotation.Nullable private String amountUsd; public static final String JSON_PROPERTY_FROM_NETWORK_ID = "fromNetworkId"; - private String fromNetworkId; + @jakarta.annotation.Nonnull private String fromNetworkId; public static final String JSON_PROPERTY_FROM_NETWORK_ID_NAME = "fromNetworkIdName"; - private String fromNetworkIdName; + @jakarta.annotation.Nonnull private String fromNetworkIdName; public static final String JSON_PROPERTY_TO_NETWORK_ID = "toNetworkId"; - private String toNetworkId; + @jakarta.annotation.Nonnull private String toNetworkId; public static final String JSON_PROPERTY_TO_NETWORK_ID_NAME = "toNetworkIdName"; - private String toNetworkIdName; + @jakarta.annotation.Nonnull private String toNetworkIdName; public static final String JSON_PROPERTY_TX_HASH = "txHash"; - private String txHash; + @jakarta.annotation.Nullable private String txHash; public static final String JSON_PROPERTY_FB_TX_ID = "fbTxId"; - private String fbTxId; + @jakarta.annotation.Nullable private String fbTxId; /** Ticket term transaction status */ public enum TxStatusEnum { - QUEUED("queued"), + QUEUED(String.valueOf("queued")), - SUBMITTED("submitted"), + SUBMITTED(String.valueOf("submitted")), - PENDINGSIGNATURE("pendingSignature"), + PENDING_SIGNATURE(String.valueOf("pendingSignature")), - PENDINGAUTHORIZATION("pendingAuthorization"), + PENDING_AUTHORIZATION(String.valueOf("pendingAuthorization")), - BROADCASTING("broadcasting"), + BROADCASTING(String.valueOf("broadcasting")), - CONFIRMING("confirming"), + CONFIRMING(String.valueOf("confirming")), - PENDINGAMLSCREENING("pendingAmlScreening"), + PENDING_AML_SCREENING(String.valueOf("pendingAmlScreening")), - COMPLETED("completed"), + COMPLETED(String.valueOf("completed")), - CANCELLED("cancelled"), + CANCELLED(String.valueOf("cancelled")), - FAILED("failed"), + FAILED(String.valueOf("failed")), - REJECTED("rejected"), + REJECTED(String.valueOf("rejected")), - BLOCKED("blocked"), + BLOCKED(String.valueOf("blocked")), - THIRDPARTYPENDINGMANUALAPPROVAL("thirdPartyPendingManualApproval"), + THIRD_PARTY_PENDING_MANUAL_APPROVAL(String.valueOf("thirdPartyPendingManualApproval")), - THIRDPARTYPENDING("thirdPartyPending"), + THIRD_PARTY_PENDING(String.valueOf("thirdPartyPending")), - PARTIALLYCOMPLETED("partiallyCompleted"), + PARTIALLY_COMPLETED(String.valueOf("partiallyCompleted")), - CANCELLING("cancelling"); + CANCELLING(String.valueOf("cancelling")); private String value; @@ -143,19 +144,19 @@ public static TxStatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_TX_STATUS = "txStatus"; - private TxStatusEnum txStatus; + @jakarta.annotation.Nullable private TxStatusEnum txStatus; /** Ticket term status */ public enum StatusEnum { - CREATED("CREATED"), + CREATED(String.valueOf("CREATED")), - FUNDING("FUNDING"), + FUNDING(String.valueOf("FUNDING")), - FUNDING_FAILED("FUNDING_FAILED"), + FUNDING_FAILED(String.valueOf("FUNDING_FAILED")), - FUNDED("FUNDED"), + FUNDED(String.valueOf("FUNDED")), - REJECTED("REJECTED"); + REJECTED(String.valueOf("REJECTED")); private String value; @@ -185,17 +186,54 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private OffsetDateTime createdAt; + @jakarta.annotation.Nonnull private OffsetDateTime createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private OffsetDateTime updatedAt; + @jakarta.annotation.Nonnull private OffsetDateTime updatedAt; public SmartTransferTicketTerm() {} - public SmartTransferTicketTerm id(String id) { + @JsonCreator + public SmartTransferTicketTerm( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_TICKET_ID, required = true) String ticketId, + @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, + @JsonProperty(value = JSON_PROPERTY_FROM_NETWORK_ID, required = true) + String fromNetworkId, + @JsonProperty(value = JSON_PROPERTY_FROM_NETWORK_ID_NAME, required = true) + String fromNetworkIdName, + @JsonProperty(value = JSON_PROPERTY_TO_NETWORK_ID, required = true) String toNetworkId, + @JsonProperty(value = JSON_PROPERTY_TO_NETWORK_ID_NAME, required = true) + String toNetworkIdName, + @JsonProperty(value = JSON_PROPERTY_TX_HASH, required = true) String txHash, + @JsonProperty(value = JSON_PROPERTY_FB_TX_ID, required = true) String fbTxId, + @JsonProperty(value = JSON_PROPERTY_TX_STATUS, required = true) TxStatusEnum txStatus, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) + OffsetDateTime createdAt, + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) + OffsetDateTime updatedAt) { + this.id = id; + this.ticketId = ticketId; + this.asset = asset; + this.amount = amount; + this.fromNetworkId = fromNetworkId; + this.fromNetworkIdName = fromNetworkIdName; + this.toNetworkId = toNetworkId; + this.toNetworkIdName = toNetworkIdName; + this.txHash = txHash; + this.fbTxId = fbTxId; + this.txStatus = txStatus; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public SmartTransferTicketTerm id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -214,11 +252,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SmartTransferTicketTerm ticketId(String ticketId) { + public SmartTransferTicketTerm ticketId(@jakarta.annotation.Nonnull String ticketId) { this.ticketId = ticketId; return this; } @@ -237,11 +275,11 @@ public String getTicketId() { @JsonProperty(JSON_PROPERTY_TICKET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTicketId(String ticketId) { + public void setTicketId(@jakarta.annotation.Nonnull String ticketId) { this.ticketId = ticketId; } - public SmartTransferTicketTerm asset(String asset) { + public SmartTransferTicketTerm asset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; return this; } @@ -260,11 +298,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public SmartTransferTicketTerm amount(String amount) { + public SmartTransferTicketTerm amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -283,11 +321,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SmartTransferTicketTerm dvpSrcDstVaultId(String dvpSrcDstVaultId) { + public SmartTransferTicketTerm dvpSrcDstVaultId( + @jakarta.annotation.Nullable String dvpSrcDstVaultId) { this.dvpSrcDstVaultId = dvpSrcDstVaultId; return this; } @@ -306,11 +345,11 @@ public String getDvpSrcDstVaultId() { @JsonProperty(JSON_PROPERTY_DVP_SRC_DST_VAULT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDvpSrcDstVaultId(String dvpSrcDstVaultId) { + public void setDvpSrcDstVaultId(@jakarta.annotation.Nullable String dvpSrcDstVaultId) { this.dvpSrcDstVaultId = dvpSrcDstVaultId; } - public SmartTransferTicketTerm amountUsd(String amountUsd) { + public SmartTransferTicketTerm amountUsd(@jakarta.annotation.Nullable String amountUsd) { this.amountUsd = amountUsd; return this; } @@ -329,11 +368,11 @@ public String getAmountUsd() { @JsonProperty(JSON_PROPERTY_AMOUNT_USD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUsd(String amountUsd) { + public void setAmountUsd(@jakarta.annotation.Nullable String amountUsd) { this.amountUsd = amountUsd; } - public SmartTransferTicketTerm fromNetworkId(String fromNetworkId) { + public SmartTransferTicketTerm fromNetworkId(@jakarta.annotation.Nonnull String fromNetworkId) { this.fromNetworkId = fromNetworkId; return this; } @@ -352,11 +391,12 @@ public String getFromNetworkId() { @JsonProperty(JSON_PROPERTY_FROM_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFromNetworkId(String fromNetworkId) { + public void setFromNetworkId(@jakarta.annotation.Nonnull String fromNetworkId) { this.fromNetworkId = fromNetworkId; } - public SmartTransferTicketTerm fromNetworkIdName(String fromNetworkIdName) { + public SmartTransferTicketTerm fromNetworkIdName( + @jakarta.annotation.Nonnull String fromNetworkIdName) { this.fromNetworkIdName = fromNetworkIdName; return this; } @@ -375,11 +415,11 @@ public String getFromNetworkIdName() { @JsonProperty(JSON_PROPERTY_FROM_NETWORK_ID_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFromNetworkIdName(String fromNetworkIdName) { + public void setFromNetworkIdName(@jakarta.annotation.Nonnull String fromNetworkIdName) { this.fromNetworkIdName = fromNetworkIdName; } - public SmartTransferTicketTerm toNetworkId(String toNetworkId) { + public SmartTransferTicketTerm toNetworkId(@jakarta.annotation.Nonnull String toNetworkId) { this.toNetworkId = toNetworkId; return this; } @@ -398,11 +438,12 @@ public String getToNetworkId() { @JsonProperty(JSON_PROPERTY_TO_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setToNetworkId(String toNetworkId) { + public void setToNetworkId(@jakarta.annotation.Nonnull String toNetworkId) { this.toNetworkId = toNetworkId; } - public SmartTransferTicketTerm toNetworkIdName(String toNetworkIdName) { + public SmartTransferTicketTerm toNetworkIdName( + @jakarta.annotation.Nonnull String toNetworkIdName) { this.toNetworkIdName = toNetworkIdName; return this; } @@ -421,11 +462,11 @@ public String getToNetworkIdName() { @JsonProperty(JSON_PROPERTY_TO_NETWORK_ID_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setToNetworkIdName(String toNetworkIdName) { + public void setToNetworkIdName(@jakarta.annotation.Nonnull String toNetworkIdName) { this.toNetworkIdName = toNetworkIdName; } - public SmartTransferTicketTerm txHash(String txHash) { + public SmartTransferTicketTerm txHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; return this; } @@ -444,11 +485,11 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; } - public SmartTransferTicketTerm fbTxId(String fbTxId) { + public SmartTransferTicketTerm fbTxId(@jakarta.annotation.Nullable String fbTxId) { this.fbTxId = fbTxId; return this; } @@ -467,11 +508,11 @@ public String getFbTxId() { @JsonProperty(JSON_PROPERTY_FB_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFbTxId(String fbTxId) { + public void setFbTxId(@jakarta.annotation.Nullable String fbTxId) { this.fbTxId = fbTxId; } - public SmartTransferTicketTerm txStatus(TxStatusEnum txStatus) { + public SmartTransferTicketTerm txStatus(@jakarta.annotation.Nullable TxStatusEnum txStatus) { this.txStatus = txStatus; return this; } @@ -490,11 +531,11 @@ public TxStatusEnum getTxStatus() { @JsonProperty(JSON_PROPERTY_TX_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxStatus(TxStatusEnum txStatus) { + public void setTxStatus(@jakarta.annotation.Nullable TxStatusEnum txStatus) { this.txStatus = txStatus; } - public SmartTransferTicketTerm status(StatusEnum status) { + public SmartTransferTicketTerm status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -513,11 +554,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public SmartTransferTicketTerm createdAt(OffsetDateTime createdAt) { + public SmartTransferTicketTerm createdAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } @@ -536,11 +577,11 @@ public OffsetDateTime getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(OffsetDateTime createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; } - public SmartTransferTicketTerm updatedAt(OffsetDateTime updatedAt) { + public SmartTransferTicketTerm updatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } @@ -559,7 +600,7 @@ public OffsetDateTime getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(OffsetDateTime updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } @@ -686,10 +727,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `ticketId` to the URL query string @@ -699,8 +737,7 @@ public String toUrlQueryString(String prefix) { "%sticketId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTicketId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTicketId())))); } // add `asset` to the URL query string @@ -710,8 +747,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -721,8 +757,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `dvpSrcDstVaultId` to the URL query string @@ -732,10 +767,7 @@ public String toUrlQueryString(String prefix) { "%sdvpSrcDstVaultId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDvpSrcDstVaultId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDvpSrcDstVaultId())))); } // add `amountUsd` to the URL query string @@ -745,9 +777,7 @@ public String toUrlQueryString(String prefix) { "%samountUsd%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUsd()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUsd())))); } // add `fromNetworkId` to the URL query string @@ -757,10 +787,7 @@ public String toUrlQueryString(String prefix) { "%sfromNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFromNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFromNetworkId())))); } // add `fromNetworkIdName` to the URL query string @@ -770,10 +797,7 @@ public String toUrlQueryString(String prefix) { "%sfromNetworkIdName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFromNetworkIdName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFromNetworkIdName())))); } // add `toNetworkId` to the URL query string @@ -783,10 +807,7 @@ public String toUrlQueryString(String prefix) { "%stoNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getToNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getToNetworkId())))); } // add `toNetworkIdName` to the URL query string @@ -796,10 +817,7 @@ public String toUrlQueryString(String prefix) { "%stoNetworkIdName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getToNetworkIdName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getToNetworkIdName())))); } // add `txHash` to the URL query string @@ -809,8 +827,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } // add `fbTxId` to the URL query string @@ -820,8 +837,7 @@ public String toUrlQueryString(String prefix) { "%sfbTxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFbTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFbTxId())))); } // add `txStatus` to the URL query string @@ -831,8 +847,7 @@ public String toUrlQueryString(String prefix) { "%stxStatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxStatus())))); } // add `status` to the URL query string @@ -842,8 +857,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `createdAt` to the URL query string @@ -853,9 +867,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `updatedAt` to the URL query string @@ -865,9 +877,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponse.java index 40fc0906..4c128e55 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ SmartTransferTicketTermResponse.JSON_PROPERTY_MESSAGE, SmartTransferTicketTermResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferTicketTermResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_DATA = "data"; - private SmartTransferTicketTerm data; + @jakarta.annotation.Nullable private SmartTransferTicketTerm data; public SmartTransferTicketTermResponse() {} - public SmartTransferTicketTermResponse message(String message) { + @JsonCreator + public SmartTransferTicketTermResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { + this.message = message; + } + + public SmartTransferTicketTermResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -55,11 +63,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SmartTransferTicketTermResponse data(SmartTransferTicketTerm data) { + public SmartTransferTicketTermResponse data( + @jakarta.annotation.Nullable SmartTransferTicketTerm data) { this.data = data; return this; } @@ -78,7 +87,7 @@ public SmartTransferTicketTerm getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(SmartTransferTicketTerm data) { + public void setData(@jakarta.annotation.Nullable SmartTransferTicketTerm data) { this.data = data; } @@ -162,8 +171,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `data` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTerm.java index 338b3643..d337ec4a 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTerm.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,39 @@ SmartTransferUpdateTicketTerm.JSON_PROPERTY_FROM_NETWORK_ID, SmartTransferUpdateTicketTerm.JSON_PROPERTY_TO_NETWORK_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferUpdateTicketTerm { public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nonnull private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_FROM_NETWORK_ID = "fromNetworkId"; - private String fromNetworkId; + @jakarta.annotation.Nonnull private String fromNetworkId; public static final String JSON_PROPERTY_TO_NETWORK_ID = "toNetworkId"; - private String toNetworkId; + @jakarta.annotation.Nonnull private String toNetworkId; public SmartTransferUpdateTicketTerm() {} - public SmartTransferUpdateTicketTerm asset(String asset) { + @JsonCreator + public SmartTransferUpdateTicketTerm( + @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, + @JsonProperty(value = JSON_PROPERTY_FROM_NETWORK_ID, required = true) + String fromNetworkId, + @JsonProperty(value = JSON_PROPERTY_TO_NETWORK_ID, required = true) + String toNetworkId) { + this.asset = asset; + this.amount = amount; + this.fromNetworkId = fromNetworkId; + this.toNetworkId = toNetworkId; + } + + public SmartTransferUpdateTicketTerm asset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; return this; } @@ -63,11 +79,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public SmartTransferUpdateTicketTerm amount(String amount) { + public SmartTransferUpdateTicketTerm amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -86,11 +102,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SmartTransferUpdateTicketTerm fromNetworkId(String fromNetworkId) { + public SmartTransferUpdateTicketTerm fromNetworkId( + @jakarta.annotation.Nonnull String fromNetworkId) { this.fromNetworkId = fromNetworkId; return this; } @@ -109,11 +126,12 @@ public String getFromNetworkId() { @JsonProperty(JSON_PROPERTY_FROM_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFromNetworkId(String fromNetworkId) { + public void setFromNetworkId(@jakarta.annotation.Nonnull String fromNetworkId) { this.fromNetworkId = fromNetworkId; } - public SmartTransferUpdateTicketTerm toNetworkId(String toNetworkId) { + public SmartTransferUpdateTicketTerm toNetworkId( + @jakarta.annotation.Nonnull String toNetworkId) { this.toNetworkId = toNetworkId; return this; } @@ -132,7 +150,7 @@ public String getToNetworkId() { @JsonProperty(JSON_PROPERTY_TO_NETWORK_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setToNetworkId(String toNetworkId) { + public void setToNetworkId(@jakarta.annotation.Nonnull String toNetworkId) { this.toNetworkId = toNetworkId; } @@ -220,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -231,8 +248,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `fromNetworkId` to the URL query string @@ -242,10 +258,7 @@ public String toUrlQueryString(String prefix) { "%sfromNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFromNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFromNetworkId())))); } // add `toNetworkId` to the URL query string @@ -255,10 +268,7 @@ public String toUrlQueryString(String prefix) { "%stoNetworkId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getToNetworkId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getToNetworkId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroups.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroups.java index f46a490d..7014deb6 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroups.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -25,14 +25,24 @@ /** Data object with result data */ @JsonPropertyOrder({SmartTransferUserGroups.JSON_PROPERTY_USER_GROUP_IDS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferUserGroups { public static final String JSON_PROPERTY_USER_GROUP_IDS = "userGroupIds"; - private List userGroupIds; + @jakarta.annotation.Nullable private List userGroupIds; public SmartTransferUserGroups() {} - public SmartTransferUserGroups userGroupIds(List userGroupIds) { + @JsonCreator + public SmartTransferUserGroups( + @JsonProperty(value = JSON_PROPERTY_USER_GROUP_IDS, required = true) + List userGroupIds) { + this.userGroupIds = userGroupIds; + } + + public SmartTransferUserGroups userGroupIds( + @jakarta.annotation.Nullable List userGroupIds) { this.userGroupIds = userGroupIds; return this; } @@ -59,7 +69,7 @@ public List getUserGroupIds() { @JsonProperty(JSON_PROPERTY_USER_GROUP_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserGroupIds(List userGroupIds) { + public void setUserGroupIds(@jakarta.annotation.Nullable List userGroupIds) { this.userGroupIds = userGroupIds; } @@ -145,10 +155,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getUserGroupIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getUserGroupIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponse.java index bf0f918a..03633b96 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,25 @@ SmartTransferUserGroupsResponse.JSON_PROPERTY_MESSAGE, SmartTransferUserGroupsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SmartTransferUserGroupsResponse { public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_DATA = "data"; - private SmartTransferUserGroups data; + @jakarta.annotation.Nullable private SmartTransferUserGroups data; public SmartTransferUserGroupsResponse() {} - public SmartTransferUserGroupsResponse message(String message) { + @JsonCreator + public SmartTransferUserGroupsResponse( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { + this.message = message; + } + + public SmartTransferUserGroupsResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -55,11 +63,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SmartTransferUserGroupsResponse data(SmartTransferUserGroups data) { + public SmartTransferUserGroupsResponse data( + @jakarta.annotation.Nullable SmartTransferUserGroups data) { this.data = data; return this; } @@ -78,7 +87,7 @@ public SmartTransferUserGroups getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(SmartTransferUserGroups data) { + public void setData(@jakarta.annotation.Nullable SmartTransferUserGroups data) { this.data = data; } @@ -162,8 +171,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `data` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/SolParameter.java b/src/main/java/com/fireblocks/sdk/model/SolParameter.java index 8f35cab7..7dcf0a45 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolParameter.java +++ b/src/main/java/com/fireblocks/sdk/model/SolParameter.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_TYPE = "type"; - private IdlType type; + @jakarta.annotation.Nonnull private IdlType type; public SolParameter() {} - public SolParameter name(String name) { + @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; } @@ -52,11 +62,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SolParameter type(IdlType type) { + public SolParameter type(@jakarta.annotation.Nonnull IdlType type) { this.type = type; return this; } @@ -75,7 +85,7 @@ public IdlType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(IdlType type) { + public void setType(@jakarta.annotation.Nonnull IdlType type) { this.type = type; } @@ -158,8 +168,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `type` to the URL query string @@ -169,8 +178,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index c0b5cf37..babb36e9 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java +++ b/src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,32 @@ SolParameterWithValue.JSON_PROPERTY_NAME, SolParameterWithValue.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String value; + @jakarta.annotation.Nonnull private String value; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_TYPE = "type"; - private IdlType type; + @jakarta.annotation.Nonnull private IdlType type; public SolParameterWithValue() {} - public SolParameterWithValue value(String value) { + @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; } @@ -59,11 +71,11 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nonnull String value) { this.value = value; } - public SolParameterWithValue name(String name) { + public SolParameterWithValue name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -82,11 +94,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SolParameterWithValue type(IdlType type) { + public SolParameterWithValue type(@jakarta.annotation.Nonnull IdlType type) { this.type = type; return this; } @@ -105,7 +117,7 @@ public IdlType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(IdlType type) { + public void setType(@jakarta.annotation.Nonnull IdlType type) { this.type = type; } @@ -190,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%svalue%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getValue()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getValue())))); } // add `name` to the URL query string @@ -201,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `type` to the URL query string @@ -212,8 +222,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 9e1c6850..f30595fc 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,18 +31,33 @@ SolanaBlockchainData.JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS, SolanaBlockchainData.JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String stakeAccountAddress; + @jakarta.annotation.Nonnull private String stakeAccountAddress; public static final String JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE = "stakeAccountDerivationChangeValue"; - private BigDecimal stakeAccountDerivationChangeValue; + @jakarta.annotation.Nonnull private BigDecimal stakeAccountDerivationChangeValue; public SolanaBlockchainData() {} - public SolanaBlockchainData stakeAccountAddress(String stakeAccountAddress) { + @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; } @@ -61,12 +76,12 @@ public String getStakeAccountAddress() { @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStakeAccountAddress(String stakeAccountAddress) { + public void setStakeAccountAddress(@jakarta.annotation.Nonnull String stakeAccountAddress) { this.stakeAccountAddress = stakeAccountAddress; } public SolanaBlockchainData stakeAccountDerivationChangeValue( - BigDecimal stakeAccountDerivationChangeValue) { + @jakarta.annotation.Nonnull BigDecimal stakeAccountDerivationChangeValue) { this.stakeAccountDerivationChangeValue = stakeAccountDerivationChangeValue; return this; } @@ -86,7 +101,8 @@ public BigDecimal getStakeAccountDerivationChangeValue() { @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStakeAccountDerivationChangeValue(BigDecimal stakeAccountDerivationChangeValue) { + public void setStakeAccountDerivationChangeValue( + @jakarta.annotation.Nonnull BigDecimal stakeAccountDerivationChangeValue) { this.stakeAccountDerivationChangeValue = stakeAccountDerivationChangeValue; } @@ -175,10 +191,8 @@ public String toUrlQueryString(String prefix) { "%sstakeAccountAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStakeAccountAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getStakeAccountAddress())))); } // add `stakeAccountDerivationChangeValue` to the URL query string @@ -188,10 +202,9 @@ public String toUrlQueryString(String prefix) { "%sstakeAccountDerivationChangeValue%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStakeAccountDerivationChangeValue()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString( + getStakeAccountDerivationChangeValue())))); } 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 index c8acba7b..e6f2f0b0 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolanaConfig.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaConfig.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -27,18 +26,20 @@ /** The Solana configuration of the contract */ @JsonPropertyOrder({SolanaConfig.JSON_PROPERTY_EXTENSIONS, SolanaConfig.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List extensions; + @jakarta.annotation.Nullable private List extensions = new ArrayList<>(); /** The type of the contract. */ public enum TypeEnum { - SPL("SPL"), + SPL(String.valueOf("SPL")), - TOKEN2022("TOKEN2022"), + TOKEN2022(String.valueOf("TOKEN2022")), - PROGRAM("PROGRAM"); + PROGRAM(String.valueOf("PROGRAM")); private String value; @@ -68,11 +69,11 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public SolanaConfig() {} - public SolanaConfig extensions(List extensions) { + public SolanaConfig extensions(@jakarta.annotation.Nullable List extensions) { this.extensions = extensions; return this; } @@ -99,11 +100,11 @@ public List getExtensions() { @JsonProperty(JSON_PROPERTY_EXTENSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExtensions(List extensions) { + public void setExtensions(@jakarta.annotation.Nullable List extensions) { this.extensions = extensions; } - public SolanaConfig type(TypeEnum type) { + public SolanaConfig type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -122,7 +123,7 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } @@ -210,10 +211,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getExtensions().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getExtensions().get(i))))); } } @@ -224,8 +223,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 525f1245..2d8dcebc 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,23 +31,39 @@ SolanaInstruction.JSON_PROPERTY_ACCOUNTS, SolanaInstruction.JSON_PROPERTY_ARGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DISCRIMINATOR = "discriminator"; - private List discriminator = new ArrayList<>(); + @jakarta.annotation.Nonnull private List discriminator = new ArrayList<>(); public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - private List accounts = new ArrayList<>(); + @jakarta.annotation.Nonnull private List accounts = new ArrayList<>(); public static final String JSON_PROPERTY_ARGS = "args"; - private List args = new ArrayList<>(); + @jakarta.annotation.Nonnull private List args = new ArrayList<>(); public SolanaInstruction() {} - public SolanaInstruction name(String name) { + @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; } @@ -66,11 +82,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SolanaInstruction discriminator(List discriminator) { + public SolanaInstruction discriminator( + @jakarta.annotation.Nonnull List discriminator) { this.discriminator = discriminator; return this; } @@ -97,11 +114,11 @@ public List getDiscriminator() { @JsonProperty(JSON_PROPERTY_DISCRIMINATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDiscriminator(List discriminator) { + public void setDiscriminator(@jakarta.annotation.Nonnull List discriminator) { this.discriminator = discriminator; } - public SolanaInstruction accounts(List accounts) { + public SolanaInstruction accounts(@jakarta.annotation.Nonnull List accounts) { this.accounts = accounts; return this; } @@ -128,11 +145,11 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccounts(List accounts) { + public void setAccounts(@jakarta.annotation.Nonnull List accounts) { this.accounts = accounts; } - public SolanaInstruction args(List args) { + public SolanaInstruction args(@jakarta.annotation.Nonnull List args) { this.args = args; return this; } @@ -159,7 +176,7 @@ public List getArgs() { @JsonProperty(JSON_PROPERTY_ARGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArgs(List args) { + public void setArgs(@jakarta.annotation.Nonnull List args) { this.args = args; } @@ -246,8 +263,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `discriminator` to the URL query string @@ -263,10 +279,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDiscriminator().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDiscriminator().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java b/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java index 7d63bb8c..e1eaea2b 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -31,23 +31,40 @@ SolanaInstructionWithValue.JSON_PROPERTY_ACCOUNTS, SolanaInstructionWithValue.JSON_PROPERTY_ARGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_DISCRIMINATOR = "discriminator"; - private List discriminator = new ArrayList<>(); + @jakarta.annotation.Nonnull private List discriminator = new ArrayList<>(); public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - private List accounts = new ArrayList<>(); + @jakarta.annotation.Nonnull private List accounts = new ArrayList<>(); public static final String JSON_PROPERTY_ARGS = "args"; - private List args = new ArrayList<>(); + @jakarta.annotation.Nonnull private List args = new ArrayList<>(); public SolanaInstructionWithValue() {} - public SolanaInstructionWithValue name(String name) { + @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; } @@ -66,11 +83,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SolanaInstructionWithValue discriminator(List discriminator) { + public SolanaInstructionWithValue discriminator( + @jakarta.annotation.Nonnull List discriminator) { this.discriminator = discriminator; return this; } @@ -97,11 +115,12 @@ public List getDiscriminator() { @JsonProperty(JSON_PROPERTY_DISCRIMINATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDiscriminator(List discriminator) { + public void setDiscriminator(@jakarta.annotation.Nonnull List discriminator) { this.discriminator = discriminator; } - public SolanaInstructionWithValue accounts(List accounts) { + public SolanaInstructionWithValue accounts( + @jakarta.annotation.Nonnull List accounts) { this.accounts = accounts; return this; } @@ -128,11 +147,12 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccounts(List accounts) { + public void setAccounts(@jakarta.annotation.Nonnull List accounts) { this.accounts = accounts; } - public SolanaInstructionWithValue args(List args) { + public SolanaInstructionWithValue args( + @jakarta.annotation.Nonnull List args) { this.args = args; return this; } @@ -159,7 +179,7 @@ public List getArgs() { @JsonProperty(JSON_PROPERTY_ARGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArgs(List args) { + public void setArgs(@jakarta.annotation.Nonnull List args) { this.args = args; } @@ -246,8 +266,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `discriminator` to the URL query string @@ -263,10 +282,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getDiscriminator().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDiscriminator().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java b/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java index 3c0333a6..4fa53f65 100644 --- a/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,32 @@ SolanaSimpleCreateParams.JSON_PROPERTY_SYMBOL, SolanaSimpleCreateParams.JSON_PROPERTY_DECIMALS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nonnull private String symbol; public static final String JSON_PROPERTY_DECIMALS = "decimals"; - private Integer decimals; + @jakarta.annotation.Nonnull private Integer decimals; public SolanaSimpleCreateParams() {} - public SolanaSimpleCreateParams name(String name) { + @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; } @@ -59,11 +71,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SolanaSimpleCreateParams symbol(String symbol) { + public SolanaSimpleCreateParams symbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; return this; } @@ -82,11 +94,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public SolanaSimpleCreateParams decimals(Integer decimals) { + public SolanaSimpleCreateParams decimals(@jakarta.annotation.Nonnull Integer decimals) { this.decimals = decimals; return this; } @@ -105,7 +117,7 @@ public Integer getDecimals() { @JsonProperty(JSON_PROPERTY_DECIMALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(Integer decimals) { + public void setDecimals(@jakarta.annotation.Nonnull Integer decimals) { this.decimals = decimals; } @@ -190,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `symbol` to the URL query string @@ -201,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `decimals` to the URL query string @@ -212,8 +222,7 @@ public String toUrlQueryString(String prefix) { "%sdecimals%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 870ee666..4e627027 100644 --- a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java +++ b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -31,29 +31,37 @@ SourceTransferPeerPath.JSON_PROPERTY_WALLET_ID, SourceTransferPeerPath.JSON_PROPERTY_IS_COLLATERAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SourceTransferPeerPath { public static final String JSON_PROPERTY_TYPE = "type"; - private TransferPeerPathType type; + @jakarta.annotation.Nonnull private TransferPeerPathType type; public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - private TransferPeerPathSubType subType; + @jakarta.annotation.Nullable private TransferPeerPathSubType subType; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - private UUID walletId; + @jakarta.annotation.Nullable private UUID walletId; public static final String JSON_PROPERTY_IS_COLLATERAL = "isCollateral"; - private Boolean isCollateral; + @jakarta.annotation.Nullable private Boolean isCollateral; public SourceTransferPeerPath() {} - public SourceTransferPeerPath type(TransferPeerPathType type) { + @JsonCreator + public SourceTransferPeerPath( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferPeerPathType type) { + this.type = type; + } + + public SourceTransferPeerPath type(@jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; return this; } @@ -72,11 +80,12 @@ public TransferPeerPathType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferPeerPathType type) { + public void setType(@jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; } - public SourceTransferPeerPath subType(TransferPeerPathSubType subType) { + public SourceTransferPeerPath subType( + @jakarta.annotation.Nullable TransferPeerPathSubType subType) { this.subType = subType; return this; } @@ -95,11 +104,11 @@ public TransferPeerPathSubType getSubType() { @JsonProperty(JSON_PROPERTY_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(TransferPeerPathSubType subType) { + public void setSubType(@jakarta.annotation.Nullable TransferPeerPathSubType subType) { this.subType = subType; } - public SourceTransferPeerPath id(String id) { + public SourceTransferPeerPath id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -118,11 +127,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public SourceTransferPeerPath name(String name) { + public SourceTransferPeerPath name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -141,11 +150,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public SourceTransferPeerPath walletId(UUID walletId) { + public SourceTransferPeerPath walletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; return this; } @@ -164,11 +173,11 @@ public UUID getWalletId() { @JsonProperty(JSON_PROPERTY_WALLET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletId(UUID walletId) { + public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public SourceTransferPeerPath isCollateral(Boolean isCollateral) { + public SourceTransferPeerPath isCollateral(@jakarta.annotation.Nullable Boolean isCollateral) { this.isCollateral = isCollateral; return this; } @@ -187,7 +196,7 @@ public Boolean getIsCollateral() { @JsonProperty(JSON_PROPERTY_IS_COLLATERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsCollateral(Boolean isCollateral) { + public void setIsCollateral(@jakarta.annotation.Nullable Boolean isCollateral) { this.isCollateral = isCollateral; } @@ -278,8 +287,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `subType` to the URL query string @@ -289,8 +297,7 @@ public String toUrlQueryString(String prefix) { "%ssubType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSubType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); } // add `id` to the URL query string @@ -298,10 +305,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -311,8 +315,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `walletId` to the URL query string @@ -322,8 +325,7 @@ public String toUrlQueryString(String prefix) { "%swalletId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } // add `isCollateral` to the URL query string @@ -333,10 +335,7 @@ public String toUrlQueryString(String prefix) { "%sisCollateral%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsCollateral()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 d3db6831..3e9caeac 100644 --- a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -31,29 +31,38 @@ SourceTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID, SourceTransferPeerPathResponse.JSON_PROPERTY_TRADING_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SourceTransferPeerPathResponse { public static final String JSON_PROPERTY_TYPE = "type"; - private TransferPeerPathType type; + @jakarta.annotation.Nonnull private TransferPeerPathType type; public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - private String subType; + @jakarta.annotation.Nullable private String subType; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - private UUID walletId; + @jakarta.annotation.Nullable private UUID walletId; public static final String JSON_PROPERTY_TRADING_ACCOUNT = "tradingAccount"; - private String tradingAccount; + @jakarta.annotation.Nullable private String tradingAccount; public SourceTransferPeerPathResponse() {} - public SourceTransferPeerPathResponse type(TransferPeerPathType type) { + @JsonCreator + public SourceTransferPeerPathResponse( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferPeerPathType type) { + this.type = type; + } + + public SourceTransferPeerPathResponse type( + @jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; return this; } @@ -72,11 +81,11 @@ public TransferPeerPathType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferPeerPathType type) { + public void setType(@jakarta.annotation.Nonnull TransferPeerPathType type) { this.type = type; } - public SourceTransferPeerPathResponse subType(String subType) { + public SourceTransferPeerPathResponse subType(@jakarta.annotation.Nullable String subType) { this.subType = subType; return this; } @@ -98,11 +107,11 @@ public String getSubType() { @JsonProperty(JSON_PROPERTY_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(String subType) { + public void setSubType(@jakarta.annotation.Nullable String subType) { this.subType = subType; } - public SourceTransferPeerPathResponse id(String id) { + public SourceTransferPeerPathResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -129,11 +138,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public SourceTransferPeerPathResponse name(String name) { + public SourceTransferPeerPathResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -152,11 +161,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public SourceTransferPeerPathResponse walletId(UUID walletId) { + public SourceTransferPeerPathResponse walletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; return this; } @@ -175,11 +184,12 @@ public UUID getWalletId() { @JsonProperty(JSON_PROPERTY_WALLET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletId(UUID walletId) { + public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public SourceTransferPeerPathResponse tradingAccount(String tradingAccount) { + public SourceTransferPeerPathResponse tradingAccount( + @jakarta.annotation.Nullable String tradingAccount) { this.tradingAccount = tradingAccount; return this; } @@ -199,7 +209,7 @@ public String getTradingAccount() { @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTradingAccount(String tradingAccount) { + public void setTradingAccount(@jakarta.annotation.Nullable String tradingAccount) { this.tradingAccount = tradingAccount; } @@ -292,8 +302,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `subType` to the URL query string @@ -303,8 +312,7 @@ public String toUrlQueryString(String prefix) { "%ssubType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSubType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); } // add `id` to the URL query string @@ -312,10 +320,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -325,8 +330,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `walletId` to the URL query string @@ -336,8 +340,7 @@ public String toUrlQueryString(String prefix) { "%swalletId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } // add `tradingAccount` to the URL query string @@ -347,10 +350,7 @@ public String toUrlQueryString(String prefix) { "%stradingAccount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTradingAccount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTradingAccount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SpamOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/SpamOwnershipResponse.java index 3e779b33..558eca49 100644 --- a/src/main/java/com/fireblocks/sdk/model/SpamOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SpamOwnershipResponse.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,16 +27,18 @@ SpamOwnershipResponse.JSON_PROPERTY_RESULT, SpamOwnershipResponse.JSON_PROPERTY_SOURCE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SpamOwnershipResponse { public static final String JSON_PROPERTY_RESULT = "result"; - private Boolean result; + @jakarta.annotation.Nonnull private Boolean result; /** Source of Token's Spam status value */ public enum SourceEnum { - OWNER("OWNER"), + OWNER(String.valueOf("OWNER")), - SYSTEM("SYSTEM"); + SYSTEM(String.valueOf("SYSTEM")); private String value; @@ -67,11 +68,19 @@ public static SourceEnum fromValue(String value) { } public static final String JSON_PROPERTY_SOURCE = "source"; - private SourceEnum source; + @jakarta.annotation.Nonnull private SourceEnum source; public SpamOwnershipResponse() {} - public SpamOwnershipResponse result(Boolean result) { + @JsonCreator + public SpamOwnershipResponse( + @JsonProperty(value = JSON_PROPERTY_RESULT, required = true) Boolean result, + @JsonProperty(value = JSON_PROPERTY_SOURCE, required = true) SourceEnum source) { + this.result = result; + this.source = source; + } + + public SpamOwnershipResponse result(@jakarta.annotation.Nonnull Boolean result) { this.result = result; return this; } @@ -90,11 +99,11 @@ public Boolean getResult() { @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult(Boolean result) { + public void setResult(@jakarta.annotation.Nonnull Boolean result) { this.result = result; } - public SpamOwnershipResponse source(SourceEnum source) { + public SpamOwnershipResponse source(@jakarta.annotation.Nonnull SourceEnum source) { this.source = source; return this; } @@ -113,7 +122,7 @@ public SourceEnum getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSource(SourceEnum source) { + public void setSource(@jakarta.annotation.Nonnull SourceEnum source) { this.source = source; } @@ -196,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%sresult%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getResult()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getResult())))); } // add `source` to the URL query string @@ -207,8 +215,7 @@ public String toUrlQueryString(String prefix) { "%ssource%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSource()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSource())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SpamTokenResponse.java b/src/main/java/com/fireblocks/sdk/model/SpamTokenResponse.java index 64a3b895..2a11a89d 100644 --- a/src/main/java/com/fireblocks/sdk/model/SpamTokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SpamTokenResponse.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SpamTokenResponse */ @JsonPropertyOrder({SpamTokenResponse.JSON_PROPERTY_RESULT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SpamTokenResponse { public static final String JSON_PROPERTY_RESULT = "result"; - private Boolean result; + @jakarta.annotation.Nonnull private Boolean result; public SpamTokenResponse() {} - public SpamTokenResponse result(Boolean result) { + @JsonCreator + public SpamTokenResponse( + @JsonProperty(value = JSON_PROPERTY_RESULT, required = true) Boolean result) { + this.result = result; + } + + public SpamTokenResponse result(@jakarta.annotation.Nonnull Boolean result) { this.result = result; return this; } @@ -49,7 +57,7 @@ public Boolean getResult() { @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult(Boolean result) { + public void setResult(@jakarta.annotation.Nonnull Boolean result) { this.result = result; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%sresult%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getResult()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getResult())))); } 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 new file mode 100644 index 00000000..399f8a6a --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java @@ -0,0 +1,560 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java b/src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java similarity index 66% rename from src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java rename to src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java index 41f281d3..363b3ad3 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java +++ b/src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java @@ -13,36 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; -/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 */ +/** Basic SPEI payment information for Mexican bank transfers */ @JsonPropertyOrder({ - AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.JSON_PROPERTY_SPEI_CLABE, - AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.JSON_PROPERTY_SPEI_NAME + SpeiBasicPaymentInfo.JSON_PROPERTY_SPEI_CLABE, + SpeiBasicPaymentInfo.JSON_PROPERTY_SPEI_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 { +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class SpeiBasicPaymentInfo { public static final String JSON_PROPERTY_SPEI_CLABE = "speiClabe"; - private String speiClabe; + @jakarta.annotation.Nonnull private String speiClabe; public static final String JSON_PROPERTY_SPEI_NAME = "speiName"; - private String speiName; + @jakarta.annotation.Nullable private String speiName; - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2() {} + public SpeiBasicPaymentInfo() {} - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 speiClabe(String speiClabe) { + @JsonCreator + public SpeiBasicPaymentInfo( + @JsonProperty(value = JSON_PROPERTY_SPEI_CLABE, required = true) String speiClabe) { + this.speiClabe = speiClabe; + } + + public SpeiBasicPaymentInfo speiClabe(@jakarta.annotation.Nonnull String speiClabe) { this.speiClabe = speiClabe; return this; } /** - * Get speiClabe + * The CLABE (Clave Bancaria Estandarizada) number for SPEI transfers * * @return speiClabe */ @@ -55,17 +63,17 @@ public String getSpeiClabe() { @JsonProperty(JSON_PROPERTY_SPEI_CLABE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSpeiClabe(String speiClabe) { + public void setSpeiClabe(@jakarta.annotation.Nonnull String speiClabe) { this.speiClabe = speiClabe; } - public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 speiName(String speiName) { + public SpeiBasicPaymentInfo speiName(@jakarta.annotation.Nullable String speiName) { this.speiName = speiName; return this; } /** - * Get speiName + * The name associated with the SPEI account * * @return speiName */ @@ -78,14 +86,11 @@ public String getSpeiName() { @JsonProperty(JSON_PROPERTY_SPEI_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpeiName(String speiName) { + public void setSpeiName(@jakarta.annotation.Nullable String speiName) { this.speiName = speiName; } - /** - * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_2 object is - * equal to o. - */ + /** Return true if this SpeiBasicPaymentInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,15 +99,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 - addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 = - (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) o; - return Objects.equals( - this.speiClabe, - addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.speiClabe) - && Objects.equals( - this.speiName, - addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.speiName); + SpeiBasicPaymentInfo speiBasicPaymentInfo = (SpeiBasicPaymentInfo) o; + return Objects.equals(this.speiClabe, speiBasicPaymentInfo.speiClabe) + && Objects.equals(this.speiName, speiBasicPaymentInfo.speiName); } @Override @@ -113,7 +112,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 {\n"); + sb.append("class SpeiBasicPaymentInfo {\n"); sb.append(" speiClabe: ").append(toIndentedString(speiClabe)).append("\n"); sb.append(" speiName: ").append(toIndentedString(speiName)).append("\n"); sb.append("}"); @@ -170,9 +169,7 @@ public String toUrlQueryString(String prefix) { "%sspeiClabe%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSpeiClabe()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSpeiClabe())))); } // add `speiName` to the URL query string @@ -182,8 +179,7 @@ public String toUrlQueryString(String prefix) { "%sspeiName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSpeiName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSpeiName())))); } 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 index 8be8f799..1a8624ca 100644 --- a/src/main/java/com/fireblocks/sdk/model/SplitRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SplitRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,36 @@ SplitRequest.JSON_PROPERTY_FEE_LEVEL, SplitRequest.JSON_PROPERTY_TX_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nonnull private String amount; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevel feeLevel; + @jakarta.annotation.Nullable private FeeLevel feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public SplitRequest() {} - public SplitRequest id(String id) { + @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; } @@ -67,11 +77,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SplitRequest amount(String amount) { + public SplitRequest amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -90,11 +100,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SplitRequest fee(String fee) { + public SplitRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -114,11 +124,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public SplitRequest feeLevel(FeeLevel feeLevel) { + public SplitRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; return this; } @@ -137,11 +147,11 @@ public FeeLevel getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; } - public SplitRequest txNote(String txNote) { + public SplitRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -160,7 +170,7 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } @@ -247,10 +257,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `amount` to the URL query string @@ -260,8 +267,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `fee` to the URL query string @@ -271,8 +277,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -282,8 +287,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `txNote` to the URL query string @@ -293,8 +297,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 1c46d8db..4fd7879c 100644 --- a/src/main/java/com/fireblocks/sdk/model/SplitResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SplitResponse.java @@ -13,24 +13,31 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public SplitResponse() {} - public SplitResponse id(String id) { + @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; } @@ -49,7 +56,7 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } @@ -128,10 +135,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/StakeRequest.java b/src/main/java/com/fireblocks/sdk/model/StakeRequest.java index efd1d904..2493ae1c 100644 --- a/src/main/java/com/fireblocks/sdk/model/StakeRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/StakeRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +30,43 @@ StakeRequest.JSON_PROPERTY_FEE, StakeRequest.JSON_PROPERTY_FEE_LEVEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class StakeRequest { public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - private StakingProvider providerId; + @jakarta.annotation.Nonnull private StakingProvider providerId; public static final String JSON_PROPERTY_STAKE_AMOUNT = "stakeAmount"; - private String stakeAmount; + @jakarta.annotation.Nonnull private String stakeAmount; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevel feeLevel; + @jakarta.annotation.Nullable private FeeLevel feeLevel; public StakeRequest() {} - public StakeRequest vaultAccountId(String vaultAccountId) { + @JsonCreator + public StakeRequest( + @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_STAKE_AMOUNT, required = true) String stakeAmount) { + this.vaultAccountId = vaultAccountId; + this.providerId = providerId; + this.stakeAmount = stakeAmount; + } + + public StakeRequest vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -71,11 +85,11 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public StakeRequest providerId(StakingProvider providerId) { + public StakeRequest providerId(@jakarta.annotation.Nonnull StakingProvider providerId) { this.providerId = providerId; return this; } @@ -94,11 +108,11 @@ public StakingProvider getProviderId() { @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(StakingProvider providerId) { + public void setProviderId(@jakarta.annotation.Nonnull StakingProvider providerId) { this.providerId = providerId; } - public StakeRequest stakeAmount(String stakeAmount) { + public StakeRequest stakeAmount(@jakarta.annotation.Nonnull String stakeAmount) { this.stakeAmount = stakeAmount; return this; } @@ -117,11 +131,11 @@ public String getStakeAmount() { @JsonProperty(JSON_PROPERTY_STAKE_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStakeAmount(String stakeAmount) { + public void setStakeAmount(@jakarta.annotation.Nonnull String stakeAmount) { this.stakeAmount = stakeAmount; } - public StakeRequest txNote(String txNote) { + public StakeRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -140,11 +154,11 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } - public StakeRequest fee(String fee) { + public StakeRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -164,11 +178,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public StakeRequest feeLevel(FeeLevel feeLevel) { + public StakeRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; return this; } @@ -187,7 +201,7 @@ public FeeLevel getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; } @@ -278,10 +292,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `providerId` to the URL query string @@ -291,9 +302,7 @@ public String toUrlQueryString(String prefix) { "%sproviderId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); } // add `stakeAmount` to the URL query string @@ -303,10 +312,7 @@ public String toUrlQueryString(String prefix) { "%sstakeAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStakeAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStakeAmount())))); } // add `txNote` to the URL query string @@ -316,8 +322,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); } // add `fee` to the URL query string @@ -327,8 +332,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -338,8 +342,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/StakeResponse.java b/src/main/java/com/fireblocks/sdk/model/StakeResponse.java index e544e3b6..3b55fc2d 100644 --- a/src/main/java/com/fireblocks/sdk/model/StakeResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/StakeResponse.java @@ -13,24 +13,31 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** StakeResponse */ @JsonPropertyOrder({StakeResponse.JSON_PROPERTY_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class StakeResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public StakeResponse() {} - public StakeResponse id(String id) { + @JsonCreator + public StakeResponse(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + this.id = id; + } + + public StakeResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -49,7 +56,7 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } @@ -128,10 +135,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Status.java b/src/main/java/com/fireblocks/sdk/model/Status.java index d123b674..b3c8efaf 100644 --- a/src/main/java/com/fireblocks/sdk/model/Status.java +++ b/src/main/java/com/fireblocks/sdk/model/Status.java @@ -18,26 +18,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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("WAITING_FOR_APPROVAL"), + WAITING_FOR_APPROVAL(String.valueOf("WAITING_FOR_APPROVAL")), - APPROVED("APPROVED"), + APPROVED(String.valueOf("APPROVED")), - CANCELLED("CANCELLED"), + CANCELLED(String.valueOf("CANCELLED")), - REJECTED("REJECTED"), + REJECTED(String.valueOf("REJECTED")), - COMPLETED("COMPLETED"); + COMPLETED(String.valueOf("COMPLETED")); private String value; @@ -67,15 +68,15 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; /** The type of the command */ public enum TypeEnum { - PAIR_API_KEY("PAIR_API_KEY"), + PAIR_API_KEY(String.valueOf("PAIR_API_KEY")), - UPDATE_CALLBACK_HANDLER("UPDATE_CALLBACK_HANDLER"), + UPDATE_CALLBACK_HANDLER(String.valueOf("UPDATE_CALLBACK_HANDLER")), - UNPAIR_API_KEY("UNPAIR_API_KEY"); + UNPAIR_API_KEY(String.valueOf("UNPAIR_API_KEY")); private String value; @@ -105,11 +106,19 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public Status() {} - public Status status(StatusEnum 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; } @@ -128,11 +137,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public Status type(TypeEnum type) { + public Status type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -151,7 +160,7 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } @@ -233,8 +242,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `type` to the URL query string @@ -244,8 +252,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDto.java b/src/main/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDto.java index e2029667..bc98bd79 100644 --- a/src/main/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDto.java +++ b/src/main/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDto.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,33 @@ StellarRippleCreateParamsDto.JSON_PROPERTY_NAME, StellarRippleCreateParamsDto.JSON_PROPERTY_ISSUER_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class StellarRippleCreateParamsDto { public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nonnull private String symbol; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ISSUER_ADDRESS = "issuerAddress"; - private String issuerAddress; + @jakarta.annotation.Nonnull private String issuerAddress; public StellarRippleCreateParamsDto() {} - public StellarRippleCreateParamsDto symbol(String symbol) { + @JsonCreator + public StellarRippleCreateParamsDto( + @JsonProperty(value = JSON_PROPERTY_SYMBOL, required = true) String symbol, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_ISSUER_ADDRESS, required = true) + String issuerAddress) { + this.symbol = symbol; + this.name = name; + this.issuerAddress = issuerAddress; + } + + public StellarRippleCreateParamsDto symbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; return this; } @@ -59,11 +72,11 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public StellarRippleCreateParamsDto name(String name) { + public StellarRippleCreateParamsDto name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -82,11 +95,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public StellarRippleCreateParamsDto issuerAddress(String issuerAddress) { + public StellarRippleCreateParamsDto issuerAddress( + @jakarta.annotation.Nonnull String issuerAddress) { this.issuerAddress = issuerAddress; return this; } @@ -106,7 +120,7 @@ public String getIssuerAddress() { @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIssuerAddress(String issuerAddress) { + public void setIssuerAddress(@jakarta.annotation.Nonnull String issuerAddress) { this.issuerAddress = issuerAddress; } @@ -192,8 +206,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } // add `name` to the URL query string @@ -203,8 +216,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `issuerAddress` to the URL query string @@ -214,10 +226,7 @@ public String toUrlQueryString(String prefix) { "%sissuerAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIssuerAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIssuerAddress())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapFlowError.java b/src/main/java/com/fireblocks/sdk/model/SwapFlowError.java index 91987ee0..fd8bcbcb 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapFlowError.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapFlowError.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** The error message for the swap */ @JsonPropertyOrder({SwapFlowError.JSON_PROPERTY_CODE, SwapFlowError.JSON_PROPERTY_MESSAGE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapFlowError { public static final String JSON_PROPERTY_CODE = "code"; - private String code; + @jakarta.annotation.Nonnull private String code; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nonnull private String message; public SwapFlowError() {} - public SwapFlowError code(String code) { + @JsonCreator + public SwapFlowError( + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code, + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { + this.code = code; + this.message = message; + } + + public SwapFlowError code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -52,11 +62,11 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(String code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } - public SwapFlowError message(String message) { + public SwapFlowError message(@jakarta.annotation.Nonnull String message) { this.message = message; return this; } @@ -75,7 +85,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } @@ -158,8 +168,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); } // add `message` to the URL query string @@ -169,8 +178,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapOperation.java b/src/main/java/com/fireblocks/sdk/model/SwapOperation.java index 93585949..b56dd66a 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapOperation.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -49,22 +48,24 @@ SwapOperation.JSON_PROPERTY_UPDATED_AT, SwapOperation.JSON_PROPERTY_CREATED_BY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapOperation { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - private String accountId; + @jakarta.annotation.Nonnull private String accountId; public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - private UUID providerId; + @jakarta.annotation.Nonnull private UUID providerId; public static final String JSON_PROPERTY_CATEGORY = "category"; - private ProviderCategoryEnum category; + @jakarta.annotation.Nonnull private ProviderCategoryEnum category; public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private SwapProviderProtocolsEnum protocol; + @jakarta.annotation.Nonnull private SwapProviderProtocolsEnum protocol; /** * **CREATED** – The swap request has been created but not yet started. **PENDING_USER_ACTION** @@ -75,17 +76,17 @@ public class SwapOperation { * encountered an error. */ public enum StatusEnum { - CREATED("CREATED"), + CREATED(String.valueOf("CREATED")), - TRANSACTION_IN_PROGRESS("TRANSACTION_IN_PROGRESS"), + TRANSACTION_IN_PROGRESS(String.valueOf("TRANSACTION_IN_PROGRESS")), - PENDING_PROVIDER_ACTION("PENDING_PROVIDER_ACTION"), + PENDING_PROVIDER_ACTION(String.valueOf("PENDING_PROVIDER_ACTION")), - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - CANCELED("CANCELED"), + CANCELED(String.valueOf("CANCELED")), - FAILED("FAILED"); + FAILED(String.valueOf("FAILED")); private String value; @@ -115,47 +116,93 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_INPUT_AMOUNT = "inputAmount"; - private String inputAmount; + @jakarta.annotation.Nonnull private String inputAmount; public static final String JSON_PROPERTY_INPUT_ASSET = "inputAsset"; - private String inputAsset; + @jakarta.annotation.Nonnull private String inputAsset; public static final String JSON_PROPERTY_SLIPPAGE_TOLERANCE = "slippageTolerance"; - private BigDecimal slippageTolerance; + @jakarta.annotation.Nonnull private BigDecimal slippageTolerance; public static final String JSON_PROPERTY_OUTPUT_MIN_AMOUNT = "outputMinAmount"; - private String outputMinAmount; + @jakarta.annotation.Nonnull private String outputMinAmount; public static final String JSON_PROPERTY_OUTPUT_MAX_AMOUNT = "outputMaxAmount"; - private String outputMaxAmount; + @jakarta.annotation.Nonnull private String outputMaxAmount; public static final String JSON_PROPERTY_OUTPUT_ASSET = "outputAsset"; - private String outputAsset; + @jakarta.annotation.Nonnull private String outputAsset; public static final String JSON_PROPERTY_OUTPUT_FINAL_AMOUNT = "outputFinalAmount"; - private String outputFinalAmount; + @jakarta.annotation.Nullable private String outputFinalAmount; public static final String JSON_PROPERTY_REQUIRED_ACTIONS = "requiredActions"; + + @jakarta.annotation.Nonnull private List requiredActions = new ArrayList<>(); public static final String JSON_PROPERTY_ERROR = "error"; - private SwapFlowError error; + @jakarta.annotation.Nullable private SwapFlowError error; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private OffsetDateTime createdAt; + @jakarta.annotation.Nonnull private OffsetDateTime createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private OffsetDateTime updatedAt; + @jakarta.annotation.Nonnull private OffsetDateTime updatedAt; public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; - private UUID createdBy; + @jakarta.annotation.Nonnull private UUID createdBy; public SwapOperation() {} - public SwapOperation id(String id) { + @JsonCreator + public SwapOperation( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) UUID providerId, + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = true) + ProviderCategoryEnum category, + @JsonProperty(value = JSON_PROPERTY_PROTOCOL, required = true) + SwapProviderProtocolsEnum protocol, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, + @JsonProperty(value = JSON_PROPERTY_INPUT_AMOUNT, required = true) String inputAmount, + @JsonProperty(value = JSON_PROPERTY_INPUT_ASSET, required = true) String inputAsset, + @JsonProperty(value = JSON_PROPERTY_SLIPPAGE_TOLERANCE, required = true) + BigDecimal slippageTolerance, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_MIN_AMOUNT, required = true) + String outputMinAmount, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_MAX_AMOUNT, required = true) + String outputMaxAmount, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_ASSET, required = true) String outputAsset, + @JsonProperty(value = JSON_PROPERTY_REQUIRED_ACTIONS, required = true) + List requiredActions, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) + OffsetDateTime createdAt, + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) + OffsetDateTime updatedAt, + @JsonProperty(value = JSON_PROPERTY_CREATED_BY, required = true) UUID createdBy) { + this.id = id; + this.accountId = accountId; + this.providerId = providerId; + this.category = category; + this.protocol = protocol; + this.status = status; + this.inputAmount = inputAmount; + this.inputAsset = inputAsset; + this.slippageTolerance = slippageTolerance; + this.outputMinAmount = outputMinAmount; + this.outputMaxAmount = outputMaxAmount; + this.outputAsset = outputAsset; + this.requiredActions = requiredActions; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.createdBy = createdBy; + } + + public SwapOperation id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -174,11 +221,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SwapOperation accountId(String accountId) { + public SwapOperation accountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; return this; } @@ -197,11 +244,11 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; } - public SwapOperation providerId(UUID providerId) { + public SwapOperation providerId(@jakarta.annotation.Nonnull UUID providerId) { this.providerId = providerId; return this; } @@ -220,11 +267,11 @@ public UUID getProviderId() { @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(UUID providerId) { + public void setProviderId(@jakarta.annotation.Nonnull UUID providerId) { this.providerId = providerId; } - public SwapOperation category(ProviderCategoryEnum category) { + public SwapOperation category(@jakarta.annotation.Nonnull ProviderCategoryEnum category) { this.category = category; return this; } @@ -243,11 +290,11 @@ public ProviderCategoryEnum getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCategory(ProviderCategoryEnum category) { + public void setCategory(@jakarta.annotation.Nonnull ProviderCategoryEnum category) { this.category = category; } - public SwapOperation protocol(SwapProviderProtocolsEnum protocol) { + public SwapOperation protocol(@jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; return this; } @@ -266,11 +313,11 @@ public SwapProviderProtocolsEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocol(SwapProviderProtocolsEnum protocol) { + public void setProtocol(@jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; } - public SwapOperation status(StatusEnum status) { + public SwapOperation status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -294,11 +341,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public SwapOperation inputAmount(String inputAmount) { + public SwapOperation inputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; return this; } @@ -317,11 +364,11 @@ public String getInputAmount() { @JsonProperty(JSON_PROPERTY_INPUT_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAmount(String inputAmount) { + public void setInputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; } - public SwapOperation inputAsset(String inputAsset) { + public SwapOperation inputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; return this; } @@ -340,11 +387,12 @@ public String getInputAsset() { @JsonProperty(JSON_PROPERTY_INPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAsset(String inputAsset) { + public void setInputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; } - public SwapOperation slippageTolerance(BigDecimal slippageTolerance) { + public SwapOperation slippageTolerance( + @jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; return this; } @@ -364,11 +412,11 @@ public BigDecimal getSlippageTolerance() { @JsonProperty(JSON_PROPERTY_SLIPPAGE_TOLERANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSlippageTolerance(BigDecimal slippageTolerance) { + public void setSlippageTolerance(@jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; } - public SwapOperation outputMinAmount(String outputMinAmount) { + public SwapOperation outputMinAmount(@jakarta.annotation.Nonnull String outputMinAmount) { this.outputMinAmount = outputMinAmount; return this; } @@ -387,11 +435,11 @@ public String getOutputMinAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputMinAmount(String outputMinAmount) { + public void setOutputMinAmount(@jakarta.annotation.Nonnull String outputMinAmount) { this.outputMinAmount = outputMinAmount; } - public SwapOperation outputMaxAmount(String outputMaxAmount) { + public SwapOperation outputMaxAmount(@jakarta.annotation.Nonnull String outputMaxAmount) { this.outputMaxAmount = outputMaxAmount; return this; } @@ -410,11 +458,11 @@ public String getOutputMaxAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputMaxAmount(String outputMaxAmount) { + public void setOutputMaxAmount(@jakarta.annotation.Nonnull String outputMaxAmount) { this.outputMaxAmount = outputMaxAmount; } - public SwapOperation outputAsset(String outputAsset) { + public SwapOperation outputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; return this; } @@ -433,11 +481,11 @@ public String getOutputAsset() { @JsonProperty(JSON_PROPERTY_OUTPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputAsset(String outputAsset) { + public void setOutputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; } - public SwapOperation outputFinalAmount(String outputFinalAmount) { + public SwapOperation outputFinalAmount(@jakarta.annotation.Nullable String outputFinalAmount) { this.outputFinalAmount = outputFinalAmount; return this; } @@ -456,11 +504,12 @@ public String getOutputFinalAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_FINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutputFinalAmount(String outputFinalAmount) { + public void setOutputFinalAmount(@jakarta.annotation.Nullable String outputFinalAmount) { this.outputFinalAmount = outputFinalAmount; } - public SwapOperation requiredActions(List requiredActions) { + public SwapOperation requiredActions( + @jakarta.annotation.Nonnull List requiredActions) { this.requiredActions = requiredActions; return this; } @@ -488,11 +537,12 @@ public List getRequiredActions() { @JsonProperty(JSON_PROPERTY_REQUIRED_ACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequiredActions(List requiredActions) { + public void setRequiredActions( + @jakarta.annotation.Nonnull List requiredActions) { this.requiredActions = requiredActions; } - public SwapOperation error(SwapFlowError error) { + public SwapOperation error(@jakarta.annotation.Nullable SwapFlowError error) { this.error = error; return this; } @@ -511,11 +561,11 @@ public SwapFlowError getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(SwapFlowError error) { + public void setError(@jakarta.annotation.Nullable SwapFlowError error) { this.error = error; } - public SwapOperation createdAt(OffsetDateTime createdAt) { + public SwapOperation createdAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } @@ -534,11 +584,11 @@ public OffsetDateTime getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(OffsetDateTime createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; } - public SwapOperation updatedAt(OffsetDateTime updatedAt) { + public SwapOperation updatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } @@ -557,11 +607,11 @@ public OffsetDateTime getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(OffsetDateTime updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - public SwapOperation createdBy(UUID createdBy) { + public SwapOperation createdBy(@jakarta.annotation.Nonnull UUID createdBy) { this.createdBy = createdBy; return this; } @@ -580,7 +630,7 @@ public UUID getCreatedBy() { @JsonProperty(JSON_PROPERTY_CREATED_BY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedBy(UUID createdBy) { + public void setCreatedBy(@jakarta.annotation.Nonnull UUID createdBy) { this.createdBy = createdBy; } @@ -715,10 +765,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `accountId` to the URL query string @@ -728,9 +775,7 @@ public String toUrlQueryString(String prefix) { "%saccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); } // add `providerId` to the URL query string @@ -740,9 +785,7 @@ public String toUrlQueryString(String prefix) { "%sproviderId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); } // add `category` to the URL query string @@ -752,8 +795,7 @@ public String toUrlQueryString(String prefix) { "%scategory%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCategory()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCategory())))); } // add `protocol` to the URL query string @@ -763,8 +805,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } // add `status` to the URL query string @@ -774,8 +815,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `inputAmount` to the URL query string @@ -785,10 +825,7 @@ public String toUrlQueryString(String prefix) { "%sinputAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAmount())))); } // add `inputAsset` to the URL query string @@ -798,9 +835,7 @@ public String toUrlQueryString(String prefix) { "%sinputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAsset())))); } // add `slippageTolerance` to the URL query string @@ -810,10 +845,7 @@ public String toUrlQueryString(String prefix) { "%sslippageTolerance%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSlippageTolerance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSlippageTolerance())))); } // add `outputMinAmount` to the URL query string @@ -823,10 +855,7 @@ public String toUrlQueryString(String prefix) { "%soutputMinAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputMinAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputMinAmount())))); } // add `outputMaxAmount` to the URL query string @@ -836,10 +865,7 @@ public String toUrlQueryString(String prefix) { "%soutputMaxAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputMaxAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputMaxAmount())))); } // add `outputAsset` to the URL query string @@ -849,10 +875,7 @@ public String toUrlQueryString(String prefix) { "%soutputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputAsset())))); } // add `outputFinalAmount` to the URL query string @@ -862,10 +885,7 @@ public String toUrlQueryString(String prefix) { "%soutputFinalAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputFinalAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputFinalAmount())))); } // add `requiredActions` to the URL query string @@ -903,9 +923,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `updatedAt` to the URL query string @@ -915,9 +933,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } // add `createdBy` to the URL query string @@ -927,9 +943,7 @@ public String toUrlQueryString(String prefix) { "%screatedBy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedBy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedBy())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapOperationRequest.java b/src/main/java/com/fireblocks/sdk/model/SwapOperationRequest.java index 45757fc2..c2ec0779 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapOperationRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapOperationRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -30,18 +29,20 @@ SwapOperationRequest.JSON_PROPERTY_FEE_LEVEL, SwapOperationRequest.JSON_PROPERTY_TX_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapOperationRequest { public static final String JSON_PROPERTY_PROVIDER_QUOTE_ID = "providerQuoteId"; - private UUID providerQuoteId; + @jakarta.annotation.Nonnull private UUID providerQuoteId; /** The fee level of the transaction */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -71,14 +72,21 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public SwapOperationRequest() {} - public SwapOperationRequest providerQuoteId(UUID providerQuoteId) { + @JsonCreator + public SwapOperationRequest( + @JsonProperty(value = JSON_PROPERTY_PROVIDER_QUOTE_ID, required = true) + UUID providerQuoteId) { + this.providerQuoteId = providerQuoteId; + } + + public SwapOperationRequest providerQuoteId(@jakarta.annotation.Nonnull UUID providerQuoteId) { this.providerQuoteId = providerQuoteId; return this; } @@ -97,11 +105,11 @@ public UUID getProviderQuoteId() { @JsonProperty(JSON_PROPERTY_PROVIDER_QUOTE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderQuoteId(UUID providerQuoteId) { + public void setProviderQuoteId(@jakarta.annotation.Nonnull UUID providerQuoteId) { this.providerQuoteId = providerQuoteId; } - public SwapOperationRequest feeLevel(FeeLevelEnum feeLevel) { + public SwapOperationRequest feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -120,11 +128,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public SwapOperationRequest txNote(String txNote) { + public SwapOperationRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -143,7 +151,7 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } @@ -228,10 +236,7 @@ public String toUrlQueryString(String prefix) { "%sproviderQuoteId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderQuoteId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderQuoteId())))); } // add `feeLevel` to the URL query string @@ -241,8 +246,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `txNote` to the URL query string @@ -252,8 +256,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponse.java index e3fe1a92..e3cd04ee 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,26 @@ SwapOperationsPaginatedResponse.JSON_PROPERTY_DATA, SwapOperationsPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapOperationsPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public SwapOperationsPaginatedResponse() {} - public SwapOperationsPaginatedResponse data(List data) { + @JsonCreator + public SwapOperationsPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public SwapOperationsPaginatedResponse data( + @jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +74,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public SwapOperationsPaginatedResponse next(String next) { + public SwapOperationsPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -89,7 +98,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -196,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapProvider.java b/src/main/java/com/fireblocks/sdk/model/SwapProvider.java index 7317b13b..e1144ae9 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapProvider.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapProvider.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,33 +34,54 @@ SwapProvider.JSON_PROPERTY_TERMS_OF_SERVICE_URL, SwapProvider.JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapProvider { public static final String JSON_PROPERTY_ID = "id"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PROTOCOLS = "protocols"; + + @jakarta.annotation.Nonnull private List protocols = new ArrayList<>(); public static final String JSON_PROPERTY_CATEGORY = "category"; - private ProviderCategoryEnum category; + @jakarta.annotation.Nonnull private ProviderCategoryEnum category; public static final String JSON_PROPERTY_IS_TERMS_APPROVAL_REQUIRED = "isTermsApprovalRequired"; - private Boolean isTermsApprovalRequired; + @jakarta.annotation.Nonnull private Boolean isTermsApprovalRequired; public static final String JSON_PROPERTY_TERMS_OF_SERVICE_URL = "termsOfServiceUrl"; - private String termsOfServiceUrl; + @jakarta.annotation.Nullable private String termsOfServiceUrl; public static final String JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED = "isTermsOfServiceApproved"; - private Boolean isTermsOfServiceApproved; + @jakarta.annotation.Nullable private Boolean isTermsOfServiceApproved; public SwapProvider() {} - public SwapProvider id(UUID id) { + @JsonCreator + public SwapProvider( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_PROTOCOLS, required = true) + List protocols, + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = true) + ProviderCategoryEnum category, + @JsonProperty(value = JSON_PROPERTY_IS_TERMS_APPROVAL_REQUIRED, required = true) + Boolean isTermsApprovalRequired) { + this.id = id; + this.name = name; + this.protocols = protocols; + this.category = category; + this.isTermsApprovalRequired = isTermsApprovalRequired; + } + + public SwapProvider id(@jakarta.annotation.Nonnull UUID id) { this.id = id; return this; } @@ -79,11 +100,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public SwapProvider name(String name) { + public SwapProvider name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -102,11 +123,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SwapProvider protocols(List protocols) { + public SwapProvider protocols( + @jakarta.annotation.Nonnull List protocols) { this.protocols = protocols; return this; } @@ -133,11 +155,12 @@ public List getProtocols() { @JsonProperty(JSON_PROPERTY_PROTOCOLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocols(List protocols) { + public void setProtocols( + @jakarta.annotation.Nonnull List protocols) { this.protocols = protocols; } - public SwapProvider category(ProviderCategoryEnum category) { + public SwapProvider category(@jakarta.annotation.Nonnull ProviderCategoryEnum category) { this.category = category; return this; } @@ -156,11 +179,12 @@ public ProviderCategoryEnum getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCategory(ProviderCategoryEnum category) { + public void setCategory(@jakarta.annotation.Nonnull ProviderCategoryEnum category) { this.category = category; } - public SwapProvider isTermsApprovalRequired(Boolean isTermsApprovalRequired) { + public SwapProvider isTermsApprovalRequired( + @jakarta.annotation.Nonnull Boolean isTermsApprovalRequired) { this.isTermsApprovalRequired = isTermsApprovalRequired; return this; } @@ -182,11 +206,12 @@ public Boolean getIsTermsApprovalRequired() { @JsonProperty(JSON_PROPERTY_IS_TERMS_APPROVAL_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsTermsApprovalRequired(Boolean isTermsApprovalRequired) { + public void setIsTermsApprovalRequired( + @jakarta.annotation.Nonnull Boolean isTermsApprovalRequired) { this.isTermsApprovalRequired = isTermsApprovalRequired; } - public SwapProvider termsOfServiceUrl(String termsOfServiceUrl) { + public SwapProvider termsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { this.termsOfServiceUrl = termsOfServiceUrl; return this; } @@ -205,11 +230,12 @@ public String getTermsOfServiceUrl() { @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTermsOfServiceUrl(String termsOfServiceUrl) { + public void setTermsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { this.termsOfServiceUrl = termsOfServiceUrl; } - public SwapProvider isTermsOfServiceApproved(Boolean isTermsOfServiceApproved) { + public SwapProvider isTermsOfServiceApproved( + @jakarta.annotation.Nullable Boolean isTermsOfServiceApproved) { this.isTermsOfServiceApproved = isTermsOfServiceApproved; return this; } @@ -228,7 +254,8 @@ public Boolean getIsTermsOfServiceApproved() { @JsonProperty(JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsTermsOfServiceApproved(Boolean isTermsOfServiceApproved) { + public void setIsTermsOfServiceApproved( + @jakarta.annotation.Nullable Boolean isTermsOfServiceApproved) { this.isTermsOfServiceApproved = isTermsOfServiceApproved; } @@ -334,10 +361,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -347,8 +371,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `protocols` to the URL query string @@ -364,10 +387,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getProtocols().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getProtocols().get(i))))); } } } @@ -379,8 +400,7 @@ public String toUrlQueryString(String prefix) { "%scategory%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCategory()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCategory())))); } // add `isTermsApprovalRequired` to the URL query string @@ -390,10 +410,8 @@ public String toUrlQueryString(String prefix) { "%sisTermsApprovalRequired%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsTermsApprovalRequired()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getIsTermsApprovalRequired())))); } // add `termsOfServiceUrl` to the URL query string @@ -403,10 +421,7 @@ public String toUrlQueryString(String prefix) { "%stermsOfServiceUrl%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTermsOfServiceUrl()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTermsOfServiceUrl())))); } // add `isTermsOfServiceApproved` to the URL query string @@ -416,10 +431,8 @@ public String toUrlQueryString(String prefix) { "%sisTermsOfServiceApproved%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsTermsOfServiceApproved()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getIsTermsOfServiceApproved())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponse.java index f6260075..339e305e 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,26 @@ SwapProvidersPaginatedResponse.JSON_PROPERTY_DATA, SwapProvidersPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapProvidersPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public SwapProvidersPaginatedResponse() {} - public SwapProvidersPaginatedResponse data(List data) { + @JsonCreator + public SwapProvidersPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public SwapProvidersPaginatedResponse data( + @jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +74,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public SwapProvidersPaginatedResponse next(String next) { + public SwapProvidersPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -89,7 +98,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -196,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SwapRequiredAction.java b/src/main/java/com/fireblocks/sdk/model/SwapRequiredAction.java index 43fb5190..36bc394b 100644 --- a/src/main/java/com/fireblocks/sdk/model/SwapRequiredAction.java +++ b/src/main/java/com/fireblocks/sdk/model/SwapRequiredAction.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,22 +28,24 @@ SwapRequiredAction.JSON_PROPERTY_STATUS, SwapRequiredAction.JSON_PROPERTY_TX_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SwapRequiredAction { public static final String JSON_PROPERTY_TYPE = "type"; - private SwapRequiredActionsEnum type; + @jakarta.annotation.Nonnull private SwapRequiredActionsEnum type; /** The status of the required action */ public enum StatusEnum { - WAITING("WAITING"), + WAITING(String.valueOf("WAITING")), - PROCESSING("PROCESSING"), + PROCESSING(String.valueOf("PROCESSING")), - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - FAILED("FAILED"), + FAILED(String.valueOf("FAILED")), - CANCELED("CANCELED"); + CANCELED(String.valueOf("CANCELED")); private String value; @@ -74,14 +75,22 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nullable private String txId; public SwapRequiredAction() {} - public SwapRequiredAction type(SwapRequiredActionsEnum type) { + @JsonCreator + public SwapRequiredAction( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) SwapRequiredActionsEnum type, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { + this.type = type; + this.status = status; + } + + public SwapRequiredAction type(@jakarta.annotation.Nonnull SwapRequiredActionsEnum type) { this.type = type; return this; } @@ -100,11 +109,11 @@ public SwapRequiredActionsEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(SwapRequiredActionsEnum type) { + public void setType(@jakarta.annotation.Nonnull SwapRequiredActionsEnum type) { this.type = type; } - public SwapRequiredAction status(StatusEnum status) { + public SwapRequiredAction status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -123,11 +132,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public SwapRequiredAction txId(String txId) { + public SwapRequiredAction txId(@jakarta.annotation.Nullable String txId) { this.txId = txId; return this; } @@ -146,7 +155,7 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nullable String txId) { this.txId = txId; } @@ -231,8 +240,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `status` to the URL query string @@ -242,8 +250,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `txId` to the URL query string @@ -253,8 +260,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SystemMessageInfo.java b/src/main/java/com/fireblocks/sdk/model/SystemMessageInfo.java index 414f71ab..3bf55ad1 100644 --- a/src/main/java/com/fireblocks/sdk/model/SystemMessageInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/SystemMessageInfo.java @@ -18,20 +18,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** SystemMessageInfo */ @JsonPropertyOrder({SystemMessageInfo.JSON_PROPERTY_TYPE, SystemMessageInfo.JSON_PROPERTY_MESSAGE}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class SystemMessageInfo { /** Gets or Sets type */ public enum TypeEnum { - WARN("WARN"), + WARN(String.valueOf("WARN")), - BLOCK("BLOCK"); + BLOCK(String.valueOf("BLOCK")); private String value; @@ -61,14 +62,14 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public SystemMessageInfo() {} - public SystemMessageInfo type(TypeEnum type) { + public SystemMessageInfo type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -87,11 +88,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public SystemMessageInfo message(String message) { + public SystemMessageInfo message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -112,7 +113,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } @@ -195,8 +196,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `message` to the URL query string @@ -206,8 +206,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } 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 index 7efca3a7..d1e04470 100644 --- a/src/main/java/com/fireblocks/sdk/model/Tag.java +++ b/src/main/java/com/fireblocks/sdk/model/Tag.java @@ -13,31 +13,41 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_LABEL = "label"; - private String label; + @jakarta.annotation.Nonnull private String label; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public Tag() {} - public Tag id(UUID id) { + @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; } @@ -56,11 +66,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public Tag label(String label) { + public Tag label(@jakarta.annotation.Nonnull String label) { this.label = label; return this; } @@ -79,11 +89,11 @@ public String getLabel() { @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLabel(String label) { + public void setLabel(@jakarta.annotation.Nonnull String label) { this.label = label; } - public Tag description(String description) { + public Tag description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -102,7 +112,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -185,10 +195,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `label` to the URL query string @@ -198,8 +205,7 @@ public String toUrlQueryString(String prefix) { "%slabel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLabel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); } // add `description` to the URL query string @@ -209,10 +215,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 27b81033..caf3e8c7 100644 --- a/src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -25,17 +25,27 @@ /** TagsPagedResponse */ @JsonPropertyOrder({TagsPagedResponse.JSON_PROPERTY_DATA, TagsPagedResponse.JSON_PROPERTY_NEXT}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public TagsPagedResponse() {} - public TagsPagedResponse data(List data) { + @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; } @@ -62,11 +72,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public TagsPagedResponse next(String next) { + public TagsPagedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -85,7 +95,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -191,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Task.java b/src/main/java/com/fireblocks/sdk/model/Task.java index a5ad0c80..01307ac4 100644 --- a/src/main/java/com/fireblocks/sdk/model/Task.java +++ b/src/main/java/com/fireblocks/sdk/model/Task.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -32,32 +31,34 @@ Task.JSON_PROPERTY_UPDATED, Task.JSON_PROPERTY_STATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Task { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_JOB_ID = "jobId"; - private String jobId; + @jakarta.annotation.Nullable private String jobId; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; - private String tenantId; + @jakarta.annotation.Nullable private String tenantId; public static final String JSON_PROPERTY_CREATED = "created"; - private BigDecimal created; + @jakarta.annotation.Nullable private BigDecimal created; public static final String JSON_PROPERTY_UPDATED = "updated"; - private BigDecimal updated; + @jakarta.annotation.Nullable private BigDecimal updated; public static final String JSON_PROPERTY_STATE = "state"; - private String state; + @jakarta.annotation.Nullable private String state; public Task() {} - public Task id(String id) { + public Task id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -76,11 +77,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public Task jobId(String jobId) { + public Task jobId(@jakarta.annotation.Nullable String jobId) { this.jobId = jobId; return this; } @@ -99,11 +100,11 @@ public String getJobId() { @JsonProperty(JSON_PROPERTY_JOB_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJobId(String jobId) { + public void setJobId(@jakarta.annotation.Nullable String jobId) { this.jobId = jobId; } - public Task type(String type) { + public Task type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -122,11 +123,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public Task tenantId(String tenantId) { + public Task tenantId(@jakarta.annotation.Nullable String tenantId) { this.tenantId = tenantId; return this; } @@ -145,11 +146,11 @@ public String getTenantId() { @JsonProperty(JSON_PROPERTY_TENANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTenantId(String tenantId) { + public void setTenantId(@jakarta.annotation.Nullable String tenantId) { this.tenantId = tenantId; } - public Task created(BigDecimal created) { + public Task created(@jakarta.annotation.Nullable BigDecimal created) { this.created = created; return this; } @@ -168,11 +169,11 @@ public BigDecimal getCreated() { @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreated(BigDecimal created) { + public void setCreated(@jakarta.annotation.Nullable BigDecimal created) { this.created = created; } - public Task updated(BigDecimal updated) { + public Task updated(@jakarta.annotation.Nullable BigDecimal updated) { this.updated = updated; return this; } @@ -191,11 +192,11 @@ public BigDecimal getUpdated() { @JsonProperty(JSON_PROPERTY_UPDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdated(BigDecimal updated) { + public void setUpdated(@jakarta.annotation.Nullable BigDecimal updated) { this.updated = updated; } - public Task state(String state) { + public Task state(@jakarta.annotation.Nullable String state) { this.state = state; return this; } @@ -214,7 +215,7 @@ public String getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(String state) { + public void setState(@jakarta.annotation.Nullable String state) { this.state = state; } @@ -305,10 +306,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `jobId` to the URL query string @@ -318,8 +316,7 @@ public String toUrlQueryString(String prefix) { "%sjobId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getJobId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getJobId())))); } // add `type` to the URL query string @@ -329,8 +326,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `tenantId` to the URL query string @@ -340,8 +336,7 @@ public String toUrlQueryString(String prefix) { "%stenantId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTenantId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); } // add `created` to the URL query string @@ -351,8 +346,7 @@ public String toUrlQueryString(String prefix) { "%screated%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCreated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreated())))); } // add `updated` to the URL query string @@ -362,8 +356,7 @@ public String toUrlQueryString(String prefix) { "%supdated%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUpdated()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdated())))); } // add `state` to the URL query string @@ -373,8 +366,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } 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 0c4f5730..e3b9ad19 100644 --- a/src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,25 @@ TemplatesPaginatedResponse.JSON_PROPERTY_DATA, TemplatesPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TemplatesPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public TemplatesPaginatedResponse() {} - public TemplatesPaginatedResponse data(List data) { + @JsonCreator + public TemplatesPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public TemplatesPaginatedResponse data(@jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +73,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public TemplatesPaginatedResponse next(String next) { + public TemplatesPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +96,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ThirdPartyRouting.java b/src/main/java/com/fireblocks/sdk/model/ThirdPartyRouting.java index 29f0f644..59a22139 100644 --- a/src/main/java/com/fireblocks/sdk/model/ThirdPartyRouting.java +++ b/src/main/java/com/fireblocks/sdk/model/ThirdPartyRouting.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ ThirdPartyRouting.JSON_PROPERTY_IS_THIRD_PARTY_ROUTING, ThirdPartyRouting.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ThirdPartyRouting { public static final String JSON_PROPERTY_IS_THIRD_PARTY_ROUTING = "isThirdPartyRouting"; - private Boolean isThirdPartyRouting; + @jakarta.annotation.Nullable private Boolean isThirdPartyRouting; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public ThirdPartyRouting() {} - public ThirdPartyRouting isThirdPartyRouting(Boolean isThirdPartyRouting) { + public ThirdPartyRouting isThirdPartyRouting( + @jakarta.annotation.Nullable Boolean isThirdPartyRouting) { this.isThirdPartyRouting = isThirdPartyRouting; return this; } @@ -55,11 +57,11 @@ public Boolean getIsThirdPartyRouting() { @JsonProperty(JSON_PROPERTY_IS_THIRD_PARTY_ROUTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsThirdPartyRouting(Boolean isThirdPartyRouting) { + public void setIsThirdPartyRouting(@jakarta.annotation.Nullable Boolean isThirdPartyRouting) { this.isThirdPartyRouting = isThirdPartyRouting; } - public ThirdPartyRouting description(String description) { + public ThirdPartyRouting description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -78,7 +80,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -163,10 +165,8 @@ public String toUrlQueryString(String prefix) { "%sisThirdPartyRouting%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsThirdPartyRouting()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getIsThirdPartyRouting())))); } // add `description` to the URL query string @@ -176,10 +176,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java b/src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java new file mode 100644 index 00000000..624bdb80 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java @@ -0,0 +1,274 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 new file mode 100644 index 00000000..54054c9a --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java @@ -0,0 +1,64 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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/ToCollateralTransaction.java b/src/main/java/com/fireblocks/sdk/model/ToCollateralTransaction.java index c8ff5cd4..03cbe44d 100644 --- a/src/main/java/com/fireblocks/sdk/model/ToCollateralTransaction.java +++ b/src/main/java/com/fireblocks/sdk/model/ToCollateralTransaction.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +28,28 @@ ToCollateralTransaction.JSON_PROPERTY_SRC_TAG, ToCollateralTransaction.JSON_PROPERTY_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ToCollateralTransaction { public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nullable private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_SRC_ADDRESS = "srcAddress"; - private String srcAddress; + @jakarta.annotation.Nullable private String srcAddress; public static final String JSON_PROPERTY_SRC_TAG = "srcTag"; - private String srcTag; + @jakarta.annotation.Nullable private String srcTag; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public ToCollateralTransaction() {} - public ToCollateralTransaction asset(String asset) { + public ToCollateralTransaction asset(@jakarta.annotation.Nullable String asset) { this.asset = asset; return this; } @@ -67,11 +68,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nullable String asset) { this.asset = asset; } - public ToCollateralTransaction amount(String amount) { + public ToCollateralTransaction amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -90,11 +91,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public ToCollateralTransaction srcAddress(String srcAddress) { + public ToCollateralTransaction srcAddress(@jakarta.annotation.Nullable String srcAddress) { this.srcAddress = srcAddress; return this; } @@ -113,11 +114,11 @@ public String getSrcAddress() { @JsonProperty(JSON_PROPERTY_SRC_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcAddress(String srcAddress) { + public void setSrcAddress(@jakarta.annotation.Nullable String srcAddress) { this.srcAddress = srcAddress; } - public ToCollateralTransaction srcTag(String srcTag) { + public ToCollateralTransaction srcTag(@jakarta.annotation.Nullable String srcTag) { this.srcTag = srcTag; return this; } @@ -136,11 +137,11 @@ public String getSrcTag() { @JsonProperty(JSON_PROPERTY_SRC_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcTag(String srcTag) { + public void setSrcTag(@jakarta.annotation.Nullable String srcTag) { this.srcTag = srcTag; } - public ToCollateralTransaction fee(String fee) { + public ToCollateralTransaction fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -159,7 +160,7 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } @@ -248,8 +249,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `amount` to the URL query string @@ -259,8 +259,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `srcAddress` to the URL query string @@ -270,9 +269,7 @@ public String toUrlQueryString(String prefix) { "%ssrcAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSrcAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcAddress())))); } // add `srcTag` to the URL query string @@ -282,8 +279,7 @@ public String toUrlQueryString(String prefix) { "%ssrcTag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSrcTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSrcTag())))); } // add `fee` to the URL query string @@ -293,8 +289,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ToExchangeTransaction.java b/src/main/java/com/fireblocks/sdk/model/ToExchangeTransaction.java index 4ef625e7..40c0941d 100644 --- a/src/main/java/com/fireblocks/sdk/model/ToExchangeTransaction.java +++ b/src/main/java/com/fireblocks/sdk/model/ToExchangeTransaction.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ ToExchangeTransaction.JSON_PROPERTY_DST_ADDRESS, ToExchangeTransaction.JSON_PROPERTY_DST_TAG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ToExchangeTransaction { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_DST_ADDRESS = "dstAddress"; - private String dstAddress; + @jakarta.annotation.Nullable private String dstAddress; public static final String JSON_PROPERTY_DST_TAG = "dstTag"; - private String dstTag; + @jakarta.annotation.Nullable private String dstTag; public ToExchangeTransaction() {} - public ToExchangeTransaction assetId(String assetId) { + public ToExchangeTransaction assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -63,11 +64,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public ToExchangeTransaction amount(String amount) { + public ToExchangeTransaction amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -86,11 +87,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public ToExchangeTransaction dstAddress(String dstAddress) { + public ToExchangeTransaction dstAddress(@jakarta.annotation.Nullable String dstAddress) { this.dstAddress = dstAddress; return this; } @@ -109,11 +110,11 @@ public String getDstAddress() { @JsonProperty(JSON_PROPERTY_DST_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstAddress(String dstAddress) { + public void setDstAddress(@jakarta.annotation.Nullable String dstAddress) { this.dstAddress = dstAddress; } - public ToExchangeTransaction dstTag(String dstTag) { + public ToExchangeTransaction dstTag(@jakarta.annotation.Nullable String dstTag) { this.dstTag = dstTag; return this; } @@ -132,7 +133,7 @@ public String getDstTag() { @JsonProperty(JSON_PROPERTY_DST_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstTag(String dstTag) { + public void setDstTag(@jakarta.annotation.Nullable String dstTag) { this.dstTag = dstTag; } @@ -219,8 +220,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `amount` to the URL query string @@ -230,8 +230,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `dstAddress` to the URL query string @@ -241,9 +240,7 @@ public String toUrlQueryString(String prefix) { "%sdstAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDstAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDstAddress())))); } // add `dstTag` to the URL query string @@ -253,8 +250,7 @@ public String toUrlQueryString(String prefix) { "%sdstTag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDstTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDstTag())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokenCollectionResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenCollectionResponse.java index 7beba630..d76e8a75 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenCollectionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenCollectionResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,28 @@ TokenCollectionResponse.JSON_PROPERTY_NAME, TokenCollectionResponse.JSON_PROPERTY_SYMBOL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenCollectionResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SYMBOL = "symbol"; - private String symbol; + @jakarta.annotation.Nullable private String symbol; public TokenCollectionResponse() {} - public TokenCollectionResponse id(String id) { + @JsonCreator + public TokenCollectionResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + this.id = id; + } + + public TokenCollectionResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -59,11 +67,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public TokenCollectionResponse name(String name) { + public TokenCollectionResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -82,11 +90,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TokenCollectionResponse symbol(String symbol) { + public TokenCollectionResponse symbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; return this; } @@ -105,7 +113,7 @@ public String getSymbol() { @JsonProperty(JSON_PROPERTY_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSymbol(String symbol) { + public void setSymbol(@jakarta.annotation.Nullable String symbol) { this.symbol = symbol; } @@ -188,10 +196,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -201,8 +206,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `symbol` to the URL query string @@ -212,8 +216,7 @@ public String toUrlQueryString(String prefix) { "%ssymbol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java index da35af34..e4b14b0f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,27 @@ TokenInfoNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, TokenInfoNotFoundErrorResponse.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public TokenInfoNotFoundErrorResponse() {} - public TokenInfoNotFoundErrorResponse message(String message) { + @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; } @@ -56,11 +66,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public TokenInfoNotFoundErrorResponse code(BigDecimal code) { + public TokenInfoNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +89,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 c783a97a..8572a5b1 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -32,16 +31,18 @@ TokenLinkDto.JSON_PROPERTY_DISPLAY_NAME, TokenLinkDto.JSON_PROPERTY_TOKEN_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenLinkDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; /** The token status */ public enum StatusEnum { - PENDING("PENDING"), + PENDING(String.valueOf("PENDING")), - COMPLETED("COMPLETED"); + COMPLETED(String.valueOf("COMPLETED")); private String value; @@ -71,17 +72,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; /** The type of token */ public enum TypeEnum { - FUNGIBLE_TOKEN("FUNGIBLE_TOKEN"), + FUNGIBLE_TOKEN(String.valueOf("FUNGIBLE_TOKEN")), - NON_FUNGIBLE_TOKEN("NON_FUNGIBLE_TOKEN"), + NON_FUNGIBLE_TOKEN(String.valueOf("NON_FUNGIBLE_TOKEN")), - TOKEN_UTILITY("TOKEN_UTILITY"), + TOKEN_UTILITY(String.valueOf("TOKEN_UTILITY")), - TOKEN_EXTENSION("TOKEN_EXTENSION"); + TOKEN_EXTENSION(String.valueOf("TOKEN_EXTENSION")); private String value; @@ -111,20 +112,28 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_REF_ID = "refId"; - private String refId; + @jakarta.annotation.Nullable private String refId; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_TOKEN_METADATA = "tokenMetadata"; - private TokenLinkDtoTokenMetadata tokenMetadata; + @jakarta.annotation.Nullable private TokenLinkDtoTokenMetadata tokenMetadata; public TokenLinkDto() {} - public TokenLinkDto id(String id) { + @JsonCreator + public TokenLinkDto( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { + this.id = id; + this.status = status; + } + + public TokenLinkDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -143,11 +152,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public TokenLinkDto status(StatusEnum status) { + public TokenLinkDto status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -166,11 +175,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public TokenLinkDto type(TypeEnum type) { + public TokenLinkDto type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -189,11 +198,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public TokenLinkDto refId(String refId) { + public TokenLinkDto refId(@jakarta.annotation.Nullable String refId) { this.refId = refId; return this; } @@ -212,11 +221,11 @@ public String getRefId() { @JsonProperty(JSON_PROPERTY_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRefId(String refId) { + public void setRefId(@jakarta.annotation.Nullable String refId) { this.refId = refId; } - public TokenLinkDto displayName(String displayName) { + public TokenLinkDto displayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -235,11 +244,12 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public TokenLinkDto tokenMetadata(TokenLinkDtoTokenMetadata tokenMetadata) { + public TokenLinkDto tokenMetadata( + @jakarta.annotation.Nullable TokenLinkDtoTokenMetadata tokenMetadata) { this.tokenMetadata = tokenMetadata; return this; } @@ -258,7 +268,8 @@ public TokenLinkDtoTokenMetadata getTokenMetadata() { @JsonProperty(JSON_PROPERTY_TOKEN_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenMetadata(TokenLinkDtoTokenMetadata tokenMetadata) { + public void setTokenMetadata( + @jakarta.annotation.Nullable TokenLinkDtoTokenMetadata tokenMetadata) { this.tokenMetadata = tokenMetadata; } @@ -347,10 +358,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `status` to the URL query string @@ -360,8 +368,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `type` to the URL query string @@ -371,8 +378,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `refId` to the URL query string @@ -382,8 +388,7 @@ public String toUrlQueryString(String prefix) { "%srefId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRefId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRefId())))); } // add `displayName` to the URL query string @@ -393,10 +398,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `tokenMetadata` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadata.java b/src/main/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadata.java index 9a58a41e..77c5ebc8 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadata.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = TokenLinkDtoTokenMetadata.TokenLinkDtoTokenMetadataDeserializer.class) @JsonSerialize(using = TokenLinkDtoTokenMetadata.TokenLinkDtoTokenMetadataSerializer.class) public class TokenLinkDtoTokenMetadata extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/TokenLinkExistsHttpError.java b/src/main/java/com/fireblocks/sdk/model/TokenLinkExistsHttpError.java index 29db851a..753a2460 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkExistsHttpError.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkExistsHttpError.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ TokenLinkExistsHttpError.JSON_PROPERTY_MESSAGE, TokenLinkExistsHttpError.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenLinkExistsHttpError { public static final String JSON_PROPERTY_STATUS_CODE = "statusCode"; - private Integer statusCode; + @jakarta.annotation.Nullable private Integer statusCode; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_ERROR = "error"; - private String error; + @jakarta.annotation.Nullable private String error; public TokenLinkExistsHttpError() {} - public TokenLinkExistsHttpError statusCode(Integer statusCode) { + public TokenLinkExistsHttpError statusCode(@jakarta.annotation.Nullable Integer statusCode) { this.statusCode = statusCode; return this; } @@ -59,11 +60,11 @@ public Integer getStatusCode() { @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatusCode(Integer statusCode) { + public void setStatusCode(@jakarta.annotation.Nullable Integer statusCode) { this.statusCode = statusCode; } - public TokenLinkExistsHttpError message(String message) { + public TokenLinkExistsHttpError message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -82,11 +83,11 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public TokenLinkExistsHttpError error(String error) { + public TokenLinkExistsHttpError error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } @@ -105,7 +106,7 @@ public String getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } @@ -190,9 +191,7 @@ public String toUrlQueryString(String prefix) { "%sstatusCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStatusCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatusCode())))); } // add `message` to the URL query string @@ -202,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `error` to the URL query string @@ -213,8 +211,7 @@ public String toUrlQueryString(String prefix) { "%serror%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getError()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getError())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java b/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java index e67798f5..6860840c 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -27,17 +27,28 @@ TokenLinkNotMultichainCompatibleHttpError.JSON_PROPERTY_MESSAGE, TokenLinkNotMultichainCompatibleHttpError.JSON_PROPERTY_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String message; + @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - private BigDecimal code; + @jakarta.annotation.Nonnull private BigDecimal code; public TokenLinkNotMultichainCompatibleHttpError() {} - public TokenLinkNotMultichainCompatibleHttpError message(String message) { + @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; } @@ -56,11 +67,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public TokenLinkNotMultichainCompatibleHttpError code(BigDecimal code) { + public TokenLinkNotMultichainCompatibleHttpError code( + @jakarta.annotation.Nonnull BigDecimal code) { this.code = code; return this; } @@ -79,7 +91,7 @@ public BigDecimal getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { this.code = code; } @@ -163,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%smessage%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } // add `code` to the URL query string @@ -174,8 +185,7 @@ public String toUrlQueryString(String prefix) { "%scode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 e61ba331..2dd3b432 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -31,17 +30,19 @@ TokenLinkRequestDto.JSON_PROPERTY_BASE_ASSET_ID, TokenLinkRequestDto.JSON_PROPERTY_CONTRACT_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenLinkRequestDto { /** The type of token being linked */ public enum TypeEnum { - FUNGIBLE_TOKEN("FUNGIBLE_TOKEN"), + FUNGIBLE_TOKEN(String.valueOf("FUNGIBLE_TOKEN")), - NON_FUNGIBLE_TOKEN("NON_FUNGIBLE_TOKEN"), + NON_FUNGIBLE_TOKEN(String.valueOf("NON_FUNGIBLE_TOKEN")), - TOKEN_UTILITY("TOKEN_UTILITY"), + TOKEN_UTILITY(String.valueOf("TOKEN_UTILITY")), - TOKEN_EXTENSION("TOKEN_EXTENSION"); + TOKEN_EXTENSION(String.valueOf("TOKEN_EXTENSION")); private String value; @@ -71,23 +72,29 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_REF_ID = "refId"; - private String refId; + @jakarta.annotation.Nullable private String refId; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - private String displayName; + @jakarta.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - private String baseAssetId; + @jakarta.annotation.Nullable private String baseAssetId; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nullable private String contractAddress; public TokenLinkRequestDto() {} - public TokenLinkRequestDto type(TypeEnum type) { + @JsonCreator + public TokenLinkRequestDto( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { + this.type = type; + } + + public TokenLinkRequestDto type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -106,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public TokenLinkRequestDto refId(String refId) { + public TokenLinkRequestDto refId(@jakarta.annotation.Nullable String refId) { this.refId = refId; return this; } @@ -130,11 +137,11 @@ public String getRefId() { @JsonProperty(JSON_PROPERTY_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRefId(String refId) { + public void setRefId(@jakarta.annotation.Nullable String refId) { this.refId = refId; } - public TokenLinkRequestDto displayName(String displayName) { + public TokenLinkRequestDto displayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -153,11 +160,11 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(String displayName) { + public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public TokenLinkRequestDto baseAssetId(String baseAssetId) { + public TokenLinkRequestDto baseAssetId(@jakarta.annotation.Nullable String baseAssetId) { this.baseAssetId = baseAssetId; return this; } @@ -176,11 +183,12 @@ public String getBaseAssetId() { @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetId(String baseAssetId) { + public void setBaseAssetId(@jakarta.annotation.Nullable String baseAssetId) { this.baseAssetId = baseAssetId; } - public TokenLinkRequestDto contractAddress(String contractAddress) { + public TokenLinkRequestDto contractAddress( + @jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -199,7 +207,7 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; } @@ -288,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `refId` to the URL query string @@ -299,8 +306,7 @@ public String toUrlQueryString(String prefix) { "%srefId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRefId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRefId())))); } // add `displayName` to the URL query string @@ -310,10 +316,7 @@ public String toUrlQueryString(String prefix) { "%sdisplayName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDisplayName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } // add `baseAssetId` to the URL query string @@ -323,10 +326,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAssetId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAssetId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); } // add `contractAddress` to the URL query string @@ -336,10 +336,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 155c7f8b..fd2ea266 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -47,95 +46,97 @@ TokenOwnershipResponse.JSON_PROPERTY_NCW_ACCOUNT_ID, TokenOwnershipResponse.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenOwnershipResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TOKEN_ID = "tokenId"; - private String tokenId; + @jakarta.annotation.Nonnull private String tokenId; public static final String JSON_PROPERTY_STANDARD = "standard"; - private String standard; + @jakarta.annotation.Nonnull private String standard; public static final String JSON_PROPERTY_METADATA_U_R_I = "metadataURI"; - private String metadataURI; + @jakarta.annotation.Nullable private String metadataURI; public static final String JSON_PROPERTY_CACHED_METADATA_U_R_I = "cachedMetadataURI"; - private String cachedMetadataURI; + @jakarta.annotation.Nullable private String cachedMetadataURI; public static final String JSON_PROPERTY_MEDIA = "media"; - private List media; + @jakarta.annotation.Nullable private List media = new ArrayList<>(); public static final String JSON_PROPERTY_SPAM = "spam"; - private SpamOwnershipResponse spam; + @jakarta.annotation.Nullable private SpamOwnershipResponse spam; public static final String JSON_PROPERTY_COLLECTION = "collection"; - private TokenCollectionResponse collection; + @jakarta.annotation.Nullable private TokenCollectionResponse collection; public static final String JSON_PROPERTY_BALANCE = "balance"; - private String balance; + @jakarta.annotation.Nonnull private String balance; public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nullable private String vaultAccountId; public static final String JSON_PROPERTY_OWNERSHIP_START_TIME = "ownershipStartTime"; - private BigDecimal ownershipStartTime; + @jakarta.annotation.Nonnull private BigDecimal ownershipStartTime; public static final String JSON_PROPERTY_OWNERSHIP_LAST_UPDATE_TIME = "ownershipLastUpdateTime"; - private BigDecimal ownershipLastUpdateTime; + @jakarta.annotation.Nonnull private BigDecimal ownershipLastUpdateTime; /** Gets or Sets blockchainDescriptor */ public enum BlockchainDescriptorEnum { - ETH("ETH"), + ETH(String.valueOf("ETH")), - ETH_TEST3("ETH_TEST3"), + ETH_TEST3(String.valueOf("ETH_TEST3")), - ETH_TEST5("ETH_TEST5"), + ETH_TEST5(String.valueOf("ETH_TEST5")), - ETH_TEST6("ETH_TEST6"), + ETH_TEST6(String.valueOf("ETH_TEST6")), - POLYGON("POLYGON"), + POLYGON(String.valueOf("POLYGON")), - POLYGON_TEST_MUMBAI("POLYGON_TEST_MUMBAI"), + POLYGON_TEST_MUMBAI(String.valueOf("POLYGON_TEST_MUMBAI")), - AMOY_POLYGON_TEST("AMOY_POLYGON_TEST"), + AMOY_POLYGON_TEST(String.valueOf("AMOY_POLYGON_TEST")), - XTZ("XTZ"), + XTZ(String.valueOf("XTZ")), - XTZ_TEST("XTZ_TEST"), + XTZ_TEST(String.valueOf("XTZ_TEST")), - BASECHAIN_ETH("BASECHAIN_ETH"), + BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")), - BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"), + BASECHAIN_ETH_TEST3(String.valueOf("BASECHAIN_ETH_TEST3")), - BASECHAIN_ETH_TEST5("BASECHAIN_ETH_TEST5"), + BASECHAIN_ETH_TEST5(String.valueOf("BASECHAIN_ETH_TEST5")), - ETHERLINK("ETHERLINK"), + ETHERLINK(String.valueOf("ETHERLINK")), - ETHERLINK_TEST("ETHERLINK_TEST"), + ETHERLINK_TEST(String.valueOf("ETHERLINK_TEST")), - MANTLE("MANTLE"), + MANTLE(String.valueOf("MANTLE")), - MANTLE_TEST("MANTLE_TEST"), + MANTLE_TEST(String.valueOf("MANTLE_TEST")), - GUN_GUNZILLA("GUN_GUNZILLA"), + GUN_GUNZILLA(String.valueOf("GUN_GUNZILLA")), - GUN_GUNZILLA_TEST("GUN_GUNZILLA_TEST"), + GUN_GUNZILLA_TEST(String.valueOf("GUN_GUNZILLA_TEST")), - ETH_SONEIUM("ETH_SONEIUM"), + ETH_SONEIUM(String.valueOf("ETH_SONEIUM")), - SONEIUM_MINATO_TEST("SONEIUM_MINATO_TEST"), + SONEIUM_MINATO_TEST(String.valueOf("SONEIUM_MINATO_TEST")), - IOTX_IOTEX("IOTX_IOTEX"), + IOTX_IOTEX(String.valueOf("IOTX_IOTEX")), - KLAY_KAIA("KLAY_KAIA"), + KLAY_KAIA(String.valueOf("KLAY_KAIA")), - KLAY_KAIA_TEST("KLAY_KAIA_TEST"), + KLAY_KAIA_TEST(String.valueOf("KLAY_KAIA_TEST")), - APECHAIN("APECHAIN"), + APECHAIN(String.valueOf("APECHAIN")), - APECHAIN_TEST("APECHAIN_TEST"); + APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); private String value; @@ -165,25 +166,25 @@ public static BlockchainDescriptorEnum fromValue(String value) { } public static final String JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR = "blockchainDescriptor"; - private BlockchainDescriptorEnum blockchainDescriptor; + @jakarta.annotation.Nonnull private BlockchainDescriptorEnum blockchainDescriptor; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_NCW_ID = "ncwId"; - private String ncwId; + @jakarta.annotation.Nullable private String ncwId; public static final String JSON_PROPERTY_NCW_ACCOUNT_ID = "ncwAccountId"; - private String ncwAccountId; + @jakarta.annotation.Nullable private String ncwAccountId; /** Owned Token's status */ public enum StatusEnum { - LISTED("LISTED"), + LISTED(String.valueOf("LISTED")), - ARCHIVED("ARCHIVED"); + ARCHIVED(String.valueOf("ARCHIVED")); private String value; @@ -213,11 +214,34 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public TokenOwnershipResponse() {} - public TokenOwnershipResponse id(String id) { + @JsonCreator + public TokenOwnershipResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_TOKEN_ID, required = true) String tokenId, + @JsonProperty(value = JSON_PROPERTY_STANDARD, required = true) String standard, + @JsonProperty(value = JSON_PROPERTY_BALANCE, required = true) String balance, + @JsonProperty(value = JSON_PROPERTY_OWNERSHIP_START_TIME, required = true) + BigDecimal ownershipStartTime, + @JsonProperty(value = JSON_PROPERTY_OWNERSHIP_LAST_UPDATE_TIME, required = true) + BigDecimal ownershipLastUpdateTime, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR, required = true) + BlockchainDescriptorEnum blockchainDescriptor, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { + this.id = id; + this.tokenId = tokenId; + this.standard = standard; + this.balance = balance; + this.ownershipStartTime = ownershipStartTime; + this.ownershipLastUpdateTime = ownershipLastUpdateTime; + this.blockchainDescriptor = blockchainDescriptor; + this.status = status; + } + + public TokenOwnershipResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -236,11 +260,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public TokenOwnershipResponse tokenId(String tokenId) { + public TokenOwnershipResponse tokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; return this; } @@ -259,11 +283,11 @@ public String getTokenId() { @JsonProperty(JSON_PROPERTY_TOKEN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenId(String tokenId) { + public void setTokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; } - public TokenOwnershipResponse standard(String standard) { + public TokenOwnershipResponse standard(@jakarta.annotation.Nonnull String standard) { this.standard = standard; return this; } @@ -282,11 +306,11 @@ public String getStandard() { @JsonProperty(JSON_PROPERTY_STANDARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStandard(String standard) { + public void setStandard(@jakarta.annotation.Nonnull String standard) { this.standard = standard; } - public TokenOwnershipResponse metadataURI(String metadataURI) { + public TokenOwnershipResponse metadataURI(@jakarta.annotation.Nullable String metadataURI) { this.metadataURI = metadataURI; return this; } @@ -305,11 +329,12 @@ public String getMetadataURI() { @JsonProperty(JSON_PROPERTY_METADATA_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadataURI(String metadataURI) { + public void setMetadataURI(@jakarta.annotation.Nullable String metadataURI) { this.metadataURI = metadataURI; } - public TokenOwnershipResponse cachedMetadataURI(String cachedMetadataURI) { + public TokenOwnershipResponse cachedMetadataURI( + @jakarta.annotation.Nullable String cachedMetadataURI) { this.cachedMetadataURI = cachedMetadataURI; return this; } @@ -328,11 +353,12 @@ public String getCachedMetadataURI() { @JsonProperty(JSON_PROPERTY_CACHED_METADATA_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCachedMetadataURI(String cachedMetadataURI) { + public void setCachedMetadataURI(@jakarta.annotation.Nullable String cachedMetadataURI) { this.cachedMetadataURI = cachedMetadataURI; } - public TokenOwnershipResponse media(List media) { + public TokenOwnershipResponse media( + @jakarta.annotation.Nullable List media) { this.media = media; return this; } @@ -359,11 +385,11 @@ public List getMedia() { @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(List media) { + public void setMedia(@jakarta.annotation.Nullable List media) { this.media = media; } - public TokenOwnershipResponse spam(SpamOwnershipResponse spam) { + public TokenOwnershipResponse spam(@jakarta.annotation.Nullable SpamOwnershipResponse spam) { this.spam = spam; return this; } @@ -382,11 +408,12 @@ public SpamOwnershipResponse getSpam() { @JsonProperty(JSON_PROPERTY_SPAM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpam(SpamOwnershipResponse spam) { + public void setSpam(@jakarta.annotation.Nullable SpamOwnershipResponse spam) { this.spam = spam; } - public TokenOwnershipResponse collection(TokenCollectionResponse collection) { + public TokenOwnershipResponse collection( + @jakarta.annotation.Nullable TokenCollectionResponse collection) { this.collection = collection; return this; } @@ -405,11 +432,11 @@ public TokenCollectionResponse getCollection() { @JsonProperty(JSON_PROPERTY_COLLECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCollection(TokenCollectionResponse collection) { + public void setCollection(@jakarta.annotation.Nullable TokenCollectionResponse collection) { this.collection = collection; } - public TokenOwnershipResponse balance(String balance) { + public TokenOwnershipResponse balance(@jakarta.annotation.Nonnull String balance) { this.balance = balance; return this; } @@ -428,11 +455,12 @@ public String getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBalance(String balance) { + public void setBalance(@jakarta.annotation.Nonnull String balance) { this.balance = balance; } - public TokenOwnershipResponse vaultAccountId(String vaultAccountId) { + public TokenOwnershipResponse vaultAccountId( + @jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -451,11 +479,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nullable String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public TokenOwnershipResponse ownershipStartTime(BigDecimal ownershipStartTime) { + public TokenOwnershipResponse ownershipStartTime( + @jakarta.annotation.Nonnull BigDecimal ownershipStartTime) { this.ownershipStartTime = ownershipStartTime; return this; } @@ -474,11 +503,12 @@ public BigDecimal getOwnershipStartTime() { @JsonProperty(JSON_PROPERTY_OWNERSHIP_START_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOwnershipStartTime(BigDecimal ownershipStartTime) { + public void setOwnershipStartTime(@jakarta.annotation.Nonnull BigDecimal ownershipStartTime) { this.ownershipStartTime = ownershipStartTime; } - public TokenOwnershipResponse ownershipLastUpdateTime(BigDecimal ownershipLastUpdateTime) { + public TokenOwnershipResponse ownershipLastUpdateTime( + @jakarta.annotation.Nonnull BigDecimal ownershipLastUpdateTime) { this.ownershipLastUpdateTime = ownershipLastUpdateTime; return this; } @@ -497,12 +527,13 @@ public BigDecimal getOwnershipLastUpdateTime() { @JsonProperty(JSON_PROPERTY_OWNERSHIP_LAST_UPDATE_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOwnershipLastUpdateTime(BigDecimal ownershipLastUpdateTime) { + public void setOwnershipLastUpdateTime( + @jakarta.annotation.Nonnull BigDecimal ownershipLastUpdateTime) { this.ownershipLastUpdateTime = ownershipLastUpdateTime; } public TokenOwnershipResponse blockchainDescriptor( - BlockchainDescriptorEnum blockchainDescriptor) { + @jakarta.annotation.Nonnull BlockchainDescriptorEnum blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; return this; } @@ -521,11 +552,12 @@ public BlockchainDescriptorEnum getBlockchainDescriptor() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainDescriptor(BlockchainDescriptorEnum blockchainDescriptor) { + public void setBlockchainDescriptor( + @jakarta.annotation.Nonnull BlockchainDescriptorEnum blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; } - public TokenOwnershipResponse description(String description) { + public TokenOwnershipResponse description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -544,11 +576,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public TokenOwnershipResponse name(String name) { + public TokenOwnershipResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -567,11 +599,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TokenOwnershipResponse ncwId(String ncwId) { + public TokenOwnershipResponse ncwId(@jakarta.annotation.Nullable String ncwId) { this.ncwId = ncwId; return this; } @@ -590,11 +622,11 @@ public String getNcwId() { @JsonProperty(JSON_PROPERTY_NCW_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNcwId(String ncwId) { + public void setNcwId(@jakarta.annotation.Nullable String ncwId) { this.ncwId = ncwId; } - public TokenOwnershipResponse ncwAccountId(String ncwAccountId) { + public TokenOwnershipResponse ncwAccountId(@jakarta.annotation.Nullable String ncwAccountId) { this.ncwAccountId = ncwAccountId; return this; } @@ -613,11 +645,11 @@ public String getNcwAccountId() { @JsonProperty(JSON_PROPERTY_NCW_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNcwAccountId(String ncwAccountId) { + public void setNcwAccountId(@jakarta.annotation.Nullable String ncwAccountId) { this.ncwAccountId = ncwAccountId; } - public TokenOwnershipResponse status(StatusEnum status) { + public TokenOwnershipResponse status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -636,7 +668,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } @@ -779,10 +811,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `tokenId` to the URL query string @@ -792,8 +821,7 @@ public String toUrlQueryString(String prefix) { "%stokenId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTokenId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTokenId())))); } // add `standard` to the URL query string @@ -803,8 +831,7 @@ public String toUrlQueryString(String prefix) { "%sstandard%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStandard()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStandard())))); } // add `metadataURI` to the URL query string @@ -814,10 +841,7 @@ public String toUrlQueryString(String prefix) { "%smetadataURI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMetadataURI()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMetadataURI())))); } // add `cachedMetadataURI` to the URL query string @@ -827,10 +851,7 @@ public String toUrlQueryString(String prefix) { "%scachedMetadataURI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCachedMetadataURI()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCachedMetadataURI())))); } // add `media` to the URL query string @@ -873,8 +894,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } // add `vaultAccountId` to the URL query string @@ -884,10 +904,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `ownershipStartTime` to the URL query string @@ -897,10 +914,7 @@ public String toUrlQueryString(String prefix) { "%sownershipStartTime%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOwnershipStartTime()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOwnershipStartTime())))); } // add `ownershipLastUpdateTime` to the URL query string @@ -910,10 +924,8 @@ public String toUrlQueryString(String prefix) { "%sownershipLastUpdateTime%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOwnershipLastUpdateTime()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getOwnershipLastUpdateTime())))); } // add `blockchainDescriptor` to the URL query string @@ -923,10 +935,8 @@ public String toUrlQueryString(String prefix) { "%sblockchainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBlockchainDescriptor())))); } // add `description` to the URL query string @@ -936,10 +946,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `name` to the URL query string @@ -949,8 +956,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `ncwId` to the URL query string @@ -960,8 +966,7 @@ public String toUrlQueryString(String prefix) { "%sncwId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNcwId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNcwId())))); } // add `ncwAccountId` to the URL query string @@ -971,10 +976,7 @@ public String toUrlQueryString(String prefix) { "%sncwAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNcwAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNcwAccountId())))); } // add `status` to the URL query string @@ -984,8 +986,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayload.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayload.java index 295fd519..b6dc99e5 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayload.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayload.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ TokenOwnershipSpamUpdatePayload.JSON_PROPERTY_ASSET_ID, TokenOwnershipSpamUpdatePayload.JSON_PROPERTY_SPAM }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenOwnershipSpamUpdatePayload { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; public static final String JSON_PROPERTY_SPAM = "spam"; - private Boolean spam; + @jakarta.annotation.Nonnull private Boolean spam; public TokenOwnershipSpamUpdatePayload() {} - public TokenOwnershipSpamUpdatePayload assetId(String assetId) { + @JsonCreator + public TokenOwnershipSpamUpdatePayload( + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, + @JsonProperty(value = JSON_PROPERTY_SPAM, required = true) Boolean spam) { + this.assetId = assetId; + this.spam = spam; + } + + public TokenOwnershipSpamUpdatePayload assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -55,11 +65,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public TokenOwnershipSpamUpdatePayload spam(Boolean spam) { + public TokenOwnershipSpamUpdatePayload spam(@jakarta.annotation.Nonnull Boolean spam) { this.spam = spam; return this; } @@ -78,7 +88,7 @@ public Boolean getSpam() { @JsonProperty(JSON_PROPERTY_SPAM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSpam(Boolean spam) { + public void setSpam(@jakarta.annotation.Nonnull Boolean spam) { this.spam = spam; } @@ -162,8 +172,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `spam` to the URL query string @@ -173,8 +182,7 @@ public String toUrlQueryString(String prefix) { "%sspam%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSpam()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSpam())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayload.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayload.java index 7829cd79..0592d0f7 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayload.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayload.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,16 +27,18 @@ TokenOwnershipStatusUpdatePayload.JSON_PROPERTY_ASSET_ID, TokenOwnershipStatusUpdatePayload.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenOwnershipStatusUpdatePayload { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nonnull private String assetId; /** Token's ownership new status */ public enum StatusEnum { - LISTED("LISTED"), + LISTED(String.valueOf("LISTED")), - ARCHIVED("ARCHIVED"); + ARCHIVED(String.valueOf("ARCHIVED")); private String value; @@ -67,11 +68,19 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public TokenOwnershipStatusUpdatePayload() {} - public TokenOwnershipStatusUpdatePayload assetId(String assetId) { + @JsonCreator + public TokenOwnershipStatusUpdatePayload( + @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { + this.assetId = assetId; + this.status = status; + } + + public TokenOwnershipStatusUpdatePayload assetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; return this; } @@ -90,11 +99,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nonnull String assetId) { this.assetId = assetId; } - public TokenOwnershipStatusUpdatePayload status(StatusEnum status) { + public TokenOwnershipStatusUpdatePayload status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -113,7 +122,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } @@ -197,8 +206,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `status` to the URL query string @@ -208,8 +216,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java index c21a0eaf..f5c70eb9 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -39,83 +38,85 @@ TokenResponse.JSON_PROPERTY_DESCRIPTION, TokenResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokenResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TOKEN_ID = "tokenId"; - private String tokenId; + @jakarta.annotation.Nonnull private String tokenId; public static final String JSON_PROPERTY_STANDARD = "standard"; - private String standard; + @jakarta.annotation.Nonnull private String standard; public static final String JSON_PROPERTY_METADATA_U_R_I = "metadataURI"; - private String metadataURI; + @jakarta.annotation.Nullable private String metadataURI; public static final String JSON_PROPERTY_CACHED_METADATA_U_R_I = "cachedMetadataURI"; - private String cachedMetadataURI; + @jakarta.annotation.Nullable private String cachedMetadataURI; public static final String JSON_PROPERTY_MEDIA = "media"; - private List media; + @jakarta.annotation.Nullable private List media = new ArrayList<>(); public static final String JSON_PROPERTY_SPAM = "spam"; - private SpamTokenResponse spam; + @jakarta.annotation.Nullable private SpamTokenResponse spam; public static final String JSON_PROPERTY_COLLECTION = "collection"; - private TokenCollectionResponse collection; + @jakarta.annotation.Nullable private TokenCollectionResponse collection; /** Gets or Sets blockchainDescriptor */ public enum BlockchainDescriptorEnum { - ETH("ETH"), + ETH(String.valueOf("ETH")), - ETH_TEST3("ETH_TEST3"), + ETH_TEST3(String.valueOf("ETH_TEST3")), - ETH_TEST5("ETH_TEST5"), + ETH_TEST5(String.valueOf("ETH_TEST5")), - ETH_TEST6("ETH_TEST6"), + ETH_TEST6(String.valueOf("ETH_TEST6")), - POLYGON("POLYGON"), + POLYGON(String.valueOf("POLYGON")), - POLYGON_TEST_MUMBAI("POLYGON_TEST_MUMBAI"), + POLYGON_TEST_MUMBAI(String.valueOf("POLYGON_TEST_MUMBAI")), - AMOY_POLYGON_TEST("AMOY_POLYGON_TEST"), + AMOY_POLYGON_TEST(String.valueOf("AMOY_POLYGON_TEST")), - XTZ("XTZ"), + XTZ(String.valueOf("XTZ")), - XTZ_TEST("XTZ_TEST"), + XTZ_TEST(String.valueOf("XTZ_TEST")), - BASECHAIN_ETH("BASECHAIN_ETH"), + BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")), - BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"), + BASECHAIN_ETH_TEST3(String.valueOf("BASECHAIN_ETH_TEST3")), - BASECHAIN_ETH_TEST5("BASECHAIN_ETH_TEST5"), + BASECHAIN_ETH_TEST5(String.valueOf("BASECHAIN_ETH_TEST5")), - ETHERLINK("ETHERLINK"), + ETHERLINK(String.valueOf("ETHERLINK")), - ETHERLINK_TEST("ETHERLINK_TEST"), + ETHERLINK_TEST(String.valueOf("ETHERLINK_TEST")), - MANTLE("MANTLE"), + MANTLE(String.valueOf("MANTLE")), - MANTLE_TEST("MANTLE_TEST"), + MANTLE_TEST(String.valueOf("MANTLE_TEST")), - GUN_GUNZILLA("GUN_GUNZILLA"), + GUN_GUNZILLA(String.valueOf("GUN_GUNZILLA")), - GUN_GUNZILLA_TEST("GUN_GUNZILLA_TEST"), + GUN_GUNZILLA_TEST(String.valueOf("GUN_GUNZILLA_TEST")), - ETH_SONEIUM("ETH_SONEIUM"), + ETH_SONEIUM(String.valueOf("ETH_SONEIUM")), - SONEIUM_MINATO_TEST("SONEIUM_MINATO_TEST"), + SONEIUM_MINATO_TEST(String.valueOf("SONEIUM_MINATO_TEST")), - IOTX_IOTEX("IOTX_IOTEX"), + IOTX_IOTEX(String.valueOf("IOTX_IOTEX")), - KLAY_KAIA("KLAY_KAIA"), + KLAY_KAIA(String.valueOf("KLAY_KAIA")), - KLAY_KAIA_TEST("KLAY_KAIA_TEST"), + KLAY_KAIA_TEST(String.valueOf("KLAY_KAIA_TEST")), - APECHAIN("APECHAIN"), + APECHAIN(String.valueOf("APECHAIN")), - APECHAIN_TEST("APECHAIN_TEST"); + APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); private String value; @@ -145,17 +146,30 @@ public static BlockchainDescriptorEnum fromValue(String value) { } public static final String JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR = "blockchainDescriptor"; - private BlockchainDescriptorEnum blockchainDescriptor; + @jakarta.annotation.Nonnull private BlockchainDescriptorEnum blockchainDescriptor; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public TokenResponse() {} - public TokenResponse id(String id) { + @JsonCreator + public TokenResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_TOKEN_ID, required = true) String tokenId, + @JsonProperty(value = JSON_PROPERTY_STANDARD, required = true) String standard, + @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR, required = true) + BlockchainDescriptorEnum blockchainDescriptor) { + this.id = id; + this.tokenId = tokenId; + this.standard = standard; + this.blockchainDescriptor = blockchainDescriptor; + } + + public TokenResponse id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -174,11 +188,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public TokenResponse tokenId(String tokenId) { + public TokenResponse tokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; return this; } @@ -197,11 +211,11 @@ public String getTokenId() { @JsonProperty(JSON_PROPERTY_TOKEN_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenId(String tokenId) { + public void setTokenId(@jakarta.annotation.Nonnull String tokenId) { this.tokenId = tokenId; } - public TokenResponse standard(String standard) { + public TokenResponse standard(@jakarta.annotation.Nonnull String standard) { this.standard = standard; return this; } @@ -220,11 +234,11 @@ public String getStandard() { @JsonProperty(JSON_PROPERTY_STANDARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStandard(String standard) { + public void setStandard(@jakarta.annotation.Nonnull String standard) { this.standard = standard; } - public TokenResponse metadataURI(String metadataURI) { + public TokenResponse metadataURI(@jakarta.annotation.Nullable String metadataURI) { this.metadataURI = metadataURI; return this; } @@ -243,11 +257,11 @@ public String getMetadataURI() { @JsonProperty(JSON_PROPERTY_METADATA_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadataURI(String metadataURI) { + public void setMetadataURI(@jakarta.annotation.Nullable String metadataURI) { this.metadataURI = metadataURI; } - public TokenResponse cachedMetadataURI(String cachedMetadataURI) { + public TokenResponse cachedMetadataURI(@jakarta.annotation.Nullable String cachedMetadataURI) { this.cachedMetadataURI = cachedMetadataURI; return this; } @@ -266,11 +280,11 @@ public String getCachedMetadataURI() { @JsonProperty(JSON_PROPERTY_CACHED_METADATA_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCachedMetadataURI(String cachedMetadataURI) { + public void setCachedMetadataURI(@jakarta.annotation.Nullable String cachedMetadataURI) { this.cachedMetadataURI = cachedMetadataURI; } - public TokenResponse media(List media) { + public TokenResponse media(@jakarta.annotation.Nullable List media) { this.media = media; return this; } @@ -297,11 +311,11 @@ public List getMedia() { @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(List media) { + public void setMedia(@jakarta.annotation.Nullable List media) { this.media = media; } - public TokenResponse spam(SpamTokenResponse spam) { + public TokenResponse spam(@jakarta.annotation.Nullable SpamTokenResponse spam) { this.spam = spam; return this; } @@ -320,11 +334,12 @@ public SpamTokenResponse getSpam() { @JsonProperty(JSON_PROPERTY_SPAM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpam(SpamTokenResponse spam) { + public void setSpam(@jakarta.annotation.Nullable SpamTokenResponse spam) { this.spam = spam; } - public TokenResponse collection(TokenCollectionResponse collection) { + public TokenResponse collection( + @jakarta.annotation.Nullable TokenCollectionResponse collection) { this.collection = collection; return this; } @@ -343,11 +358,12 @@ public TokenCollectionResponse getCollection() { @JsonProperty(JSON_PROPERTY_COLLECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCollection(TokenCollectionResponse collection) { + public void setCollection(@jakarta.annotation.Nullable TokenCollectionResponse collection) { this.collection = collection; } - public TokenResponse blockchainDescriptor(BlockchainDescriptorEnum blockchainDescriptor) { + public TokenResponse blockchainDescriptor( + @jakarta.annotation.Nonnull BlockchainDescriptorEnum blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; return this; } @@ -366,11 +382,12 @@ public BlockchainDescriptorEnum getBlockchainDescriptor() { @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchainDescriptor(BlockchainDescriptorEnum blockchainDescriptor) { + public void setBlockchainDescriptor( + @jakarta.annotation.Nonnull BlockchainDescriptorEnum blockchainDescriptor) { this.blockchainDescriptor = blockchainDescriptor; } - public TokenResponse description(String description) { + public TokenResponse description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -389,11 +406,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public TokenResponse name(String name) { + public TokenResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -412,7 +429,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -526,10 +543,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `tokenId` to the URL query string @@ -539,8 +553,7 @@ public String toUrlQueryString(String prefix) { "%stokenId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTokenId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTokenId())))); } // add `standard` to the URL query string @@ -550,8 +563,7 @@ public String toUrlQueryString(String prefix) { "%sstandard%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStandard()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStandard())))); } // add `metadataURI` to the URL query string @@ -561,10 +573,7 @@ public String toUrlQueryString(String prefix) { "%smetadataURI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMetadataURI()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMetadataURI())))); } // add `cachedMetadataURI` to the URL query string @@ -574,10 +583,7 @@ public String toUrlQueryString(String prefix) { "%scachedMetadataURI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCachedMetadataURI()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCachedMetadataURI())))); } // add `media` to the URL query string @@ -620,10 +626,8 @@ public String toUrlQueryString(String prefix) { "%sblockchainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockchainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBlockchainDescriptor())))); } // add `description` to the URL query string @@ -633,10 +637,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `name` to the URL query string @@ -646,8 +647,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java index adbf6892..32334e29 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,25 @@ TokensPaginatedResponse.JSON_PROPERTY_DATA, TokensPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TokensPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public TokensPaginatedResponse() {} - public TokensPaginatedResponse data(List data) { + @JsonCreator + public TokensPaginatedResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public TokensPaginatedResponse data(@jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -65,11 +73,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public TokensPaginatedResponse next(String next) { + public TokensPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +96,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Transaction.java b/src/main/java/com/fireblocks/sdk/model/Transaction.java index e08b4c51..02d0835d 100644 --- a/src/main/java/com/fireblocks/sdk/model/Transaction.java +++ b/src/main/java/com/fireblocks/sdk/model/Transaction.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,50 +30,52 @@ Transaction.JSON_PROPERTY_TIMESTAMP, Transaction.JSON_PROPERTY_INSTRUCTION_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Transaction { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; /** Gets or Sets state */ public enum StateEnum { - SUBMITTED("SUBMITTED"), + SUBMITTED(String.valueOf("SUBMITTED")), - QUEUED("QUEUED"), + QUEUED(String.valueOf("QUEUED")), - PENDING_AUTHORIZATION("PENDING_AUTHORIZATION"), + PENDING_AUTHORIZATION(String.valueOf("PENDING_AUTHORIZATION")), - PENDING_SIGNATURE("PENDING_SIGNATURE"), + PENDING_SIGNATURE(String.valueOf("PENDING_SIGNATURE")), - BROADCASTING("BROADCASTING"), + BROADCASTING(String.valueOf("BROADCASTING")), - PENDING_3RD_PARTY_MANUAL_APPROVAL("PENDING_3RD_PARTY_MANUAL_APPROVAL"), + PENDING_3_RD_PARTY_MANUAL_APPROVAL(String.valueOf("PENDING_3RD_PARTY_MANUAL_APPROVAL")), - PENDING_3RD_PARTY("PENDING_3RD_PARTY"), + PENDING_3_RD_PARTY(String.valueOf("PENDING_3RD_PARTY")), - PENDING("PENDING"), + PENDING(String.valueOf("PENDING")), - CONFIRMING("CONFIRMING"), + CONFIRMING(String.valueOf("CONFIRMING")), - CONFIRMED("CONFIRMED"), + CONFIRMED(String.valueOf("CONFIRMED")), - COMPLETED("COMPLETED"), + COMPLETED(String.valueOf("COMPLETED")), - PARTIALLY_COMPLETED("PARTIALLY_COMPLETED"), + PARTIALLY_COMPLETED(String.valueOf("PARTIALLY_COMPLETED")), - PENDING_AML_SCREENING("PENDING_AML_SCREENING"), + PENDING_AML_SCREENING(String.valueOf("PENDING_AML_SCREENING")), - CANCELLING("CANCELLING"), + CANCELLING(String.valueOf("CANCELLING")), - CANCELLED("CANCELLED"), + CANCELLED(String.valueOf("CANCELLED")), - REJECTED("REJECTED"), + REJECTED(String.valueOf("REJECTED")), - BLOCKED("BLOCKED"), + BLOCKED(String.valueOf("BLOCKED")), - FAILED("FAILED"), + FAILED(String.valueOf("FAILED")), - TIMEOUT("TIMEOUT"); + TIMEOUT(String.valueOf("TIMEOUT")); private String value; @@ -104,17 +105,25 @@ public static StateEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATE = "state"; - private StateEnum state; + @jakarta.annotation.Nonnull private StateEnum state; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private BigDecimal timestamp; + @jakarta.annotation.Nullable private BigDecimal timestamp; public static final String JSON_PROPERTY_INSTRUCTION_ID = "instructionId"; - private String instructionId; + @jakarta.annotation.Nullable private String instructionId; public Transaction() {} - public Transaction id(String id) { + @JsonCreator + public Transaction( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) StateEnum state) { + this.id = id; + this.state = state; + } + + public Transaction id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -133,11 +142,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Transaction state(StateEnum state) { + public Transaction state(@jakarta.annotation.Nonnull StateEnum state) { this.state = state; return this; } @@ -156,11 +165,11 @@ public StateEnum getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setState(StateEnum state) { + public void setState(@jakarta.annotation.Nonnull StateEnum state) { this.state = state; } - public Transaction timestamp(BigDecimal timestamp) { + public Transaction timestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; return this; } @@ -179,11 +188,11 @@ public BigDecimal getTimestamp() { @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { this.timestamp = timestamp; } - public Transaction instructionId(String instructionId) { + public Transaction instructionId(@jakarta.annotation.Nullable String instructionId) { this.instructionId = instructionId; return this; } @@ -202,7 +211,7 @@ public String getInstructionId() { @JsonProperty(JSON_PROPERTY_INSTRUCTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstructionId(String instructionId) { + public void setInstructionId(@jakarta.annotation.Nullable String instructionId) { this.instructionId = instructionId; } @@ -287,10 +296,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `state` to the URL query string @@ -300,8 +306,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } // add `timestamp` to the URL query string @@ -311,9 +316,7 @@ public String toUrlQueryString(String prefix) { "%stimestamp%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimestamp()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); } // add `instructionId` to the URL query string @@ -323,10 +326,7 @@ public String toUrlQueryString(String prefix) { "%sinstructionId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInstructionId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInstructionId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionFee.java b/src/main/java/com/fireblocks/sdk/model/TransactionFee.java index 9b4d3bcc..9624b9b5 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionFee.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionFee.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -33,35 +32,37 @@ TransactionFee.JSON_PROPERTY_MAX_FEE_PER_GAS_DELTA, TransactionFee.JSON_PROPERTY_L1_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionFee { public static final String JSON_PROPERTY_FEE_PER_BYTE = "feePerByte"; - private String feePerByte; + @jakarta.annotation.Nullable private String feePerByte; public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice"; - private BigDecimal gasPrice; + @jakarta.annotation.Nullable private BigDecimal gasPrice; public static final String JSON_PROPERTY_GAS_LIMIT = "gasLimit"; - private String gasLimit; + @jakarta.annotation.Nullable private String gasLimit; public static final String JSON_PROPERTY_NETWORK_FEE = "networkFee"; - private String networkFee; + @jakarta.annotation.Nullable private String networkFee; public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; - private BigDecimal baseFee; + @jakarta.annotation.Nullable private BigDecimal baseFee; public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - private BigDecimal priorityFee; + @jakarta.annotation.Nullable private BigDecimal priorityFee; public static final String JSON_PROPERTY_MAX_FEE_PER_GAS_DELTA = "maxFeePerGasDelta"; - private String maxFeePerGasDelta; + @jakarta.annotation.Nullable private String maxFeePerGasDelta; public static final String JSON_PROPERTY_L1_FEE = "l1Fee"; - private String l1Fee; + @jakarta.annotation.Nullable private String l1Fee; public TransactionFee() {} - public TransactionFee feePerByte(String feePerByte) { + public TransactionFee feePerByte(@jakarta.annotation.Nullable String feePerByte) { this.feePerByte = feePerByte; return this; } @@ -80,11 +81,11 @@ public String getFeePerByte() { @JsonProperty(JSON_PROPERTY_FEE_PER_BYTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeePerByte(String feePerByte) { + public void setFeePerByte(@jakarta.annotation.Nullable String feePerByte) { this.feePerByte = feePerByte; } - public TransactionFee gasPrice(BigDecimal gasPrice) { + public TransactionFee gasPrice(@jakarta.annotation.Nullable BigDecimal gasPrice) { this.gasPrice = gasPrice; return this; } @@ -103,11 +104,11 @@ public BigDecimal getGasPrice() { @JsonProperty(JSON_PROPERTY_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasPrice(BigDecimal gasPrice) { + public void setGasPrice(@jakarta.annotation.Nullable BigDecimal gasPrice) { this.gasPrice = gasPrice; } - public TransactionFee gasLimit(String gasLimit) { + public TransactionFee gasLimit(@jakarta.annotation.Nullable String gasLimit) { this.gasLimit = gasLimit; return this; } @@ -126,11 +127,11 @@ public String getGasLimit() { @JsonProperty(JSON_PROPERTY_GAS_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasLimit(String gasLimit) { + public void setGasLimit(@jakarta.annotation.Nullable String gasLimit) { this.gasLimit = gasLimit; } - public TransactionFee networkFee(String networkFee) { + public TransactionFee networkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; return this; } @@ -149,11 +150,11 @@ public String getNetworkFee() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkFee(String networkFee) { + public void setNetworkFee(@jakarta.annotation.Nullable String networkFee) { this.networkFee = networkFee; } - public TransactionFee baseFee(BigDecimal baseFee) { + public TransactionFee baseFee(@jakarta.annotation.Nullable BigDecimal baseFee) { this.baseFee = baseFee; return this; } @@ -172,11 +173,11 @@ public BigDecimal getBaseFee() { @JsonProperty(JSON_PROPERTY_BASE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(BigDecimal baseFee) { + public void setBaseFee(@jakarta.annotation.Nullable BigDecimal baseFee) { this.baseFee = baseFee; } - public TransactionFee priorityFee(BigDecimal priorityFee) { + public TransactionFee priorityFee(@jakarta.annotation.Nullable BigDecimal priorityFee) { this.priorityFee = priorityFee; return this; } @@ -195,11 +196,11 @@ public BigDecimal getPriorityFee() { @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(BigDecimal priorityFee) { + public void setPriorityFee(@jakarta.annotation.Nullable BigDecimal priorityFee) { this.priorityFee = priorityFee; } - public TransactionFee maxFeePerGasDelta(String maxFeePerGasDelta) { + public TransactionFee maxFeePerGasDelta(@jakarta.annotation.Nullable String maxFeePerGasDelta) { this.maxFeePerGasDelta = maxFeePerGasDelta; return this; } @@ -218,11 +219,11 @@ public String getMaxFeePerGasDelta() { @JsonProperty(JSON_PROPERTY_MAX_FEE_PER_GAS_DELTA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxFeePerGasDelta(String maxFeePerGasDelta) { + public void setMaxFeePerGasDelta(@jakarta.annotation.Nullable String maxFeePerGasDelta) { this.maxFeePerGasDelta = maxFeePerGasDelta; } - public TransactionFee l1Fee(String l1Fee) { + public TransactionFee l1Fee(@jakarta.annotation.Nullable String l1Fee) { this.l1Fee = l1Fee; return this; } @@ -241,7 +242,7 @@ public String getL1Fee() { @JsonProperty(JSON_PROPERTY_L1_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setL1Fee(String l1Fee) { + public void setL1Fee(@jakarta.annotation.Nullable String l1Fee) { this.l1Fee = l1Fee; } @@ -346,9 +347,7 @@ public String toUrlQueryString(String prefix) { "%sfeePerByte%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFeePerByte()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeePerByte())))); } // add `gasPrice` to the URL query string @@ -358,8 +357,7 @@ public String toUrlQueryString(String prefix) { "%sgasPrice%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasPrice()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasPrice())))); } // add `gasLimit` to the URL query string @@ -369,8 +367,7 @@ public String toUrlQueryString(String prefix) { "%sgasLimit%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasLimit()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasLimit())))); } // add `networkFee` to the URL query string @@ -380,9 +377,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFee())))); } // add `baseFee` to the URL query string @@ -392,8 +387,7 @@ public String toUrlQueryString(String prefix) { "%sbaseFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBaseFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); } // add `priorityFee` to the URL query string @@ -403,10 +397,7 @@ public String toUrlQueryString(String prefix) { "%spriorityFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPriorityFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); } // add `maxFeePerGasDelta` to the URL query string @@ -416,10 +407,7 @@ public String toUrlQueryString(String prefix) { "%smaxFeePerGasDelta%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMaxFeePerGasDelta()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMaxFeePerGasDelta())))); } // add `l1Fee` to the URL query string @@ -429,8 +417,7 @@ public String toUrlQueryString(String prefix) { "%sl1Fee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getL1Fee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getL1Fee())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java index de15c14a..2eea130f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -40,53 +40,87 @@ TransactionReceiptResponse.JSON_PROPERTY_TRANSACTION_INDEX, TransactionReceiptResponse.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String blockHash; + @jakarta.annotation.Nonnull private String blockHash; public static final String JSON_PROPERTY_BLOCK_NUMBER = "blockNumber"; - private Integer blockNumber; + @jakarta.annotation.Nonnull private Integer blockNumber; public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - private String contractAddress; + @jakarta.annotation.Nullable private String contractAddress; public static final String JSON_PROPERTY_CUMULATIVE_GAS_USED = "cumulativeGasUsed"; - private Integer cumulativeGasUsed; + @jakarta.annotation.Nonnull private Integer cumulativeGasUsed; public static final String JSON_PROPERTY_EFFECTIVE_GAS_PRICE = "effectiveGasPrice"; - private Integer effectiveGasPrice; + @jakarta.annotation.Nonnull private Integer effectiveGasPrice; public static final String JSON_PROPERTY_FROM = "from"; - private String from; + @jakarta.annotation.Nonnull private String from; public static final String JSON_PROPERTY_GAS_USED = "gasUsed"; - private Integer gasUsed; + @jakarta.annotation.Nonnull private Integer gasUsed; public static final String JSON_PROPERTY_LOGS = "logs"; - private List logs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List logs = new ArrayList<>(); public static final String JSON_PROPERTY_LOGS_BLOOM = "logsBloom"; - private String logsBloom; + @jakarta.annotation.Nonnull private String logsBloom; public static final String JSON_PROPERTY_STATUS = "status"; - private Integer status; + @jakarta.annotation.Nonnull private Integer status; public static final String JSON_PROPERTY_TO = "to"; - private String to; + @jakarta.annotation.Nullable private String to; public static final String JSON_PROPERTY_TRANSACTION_HASH = "transactionHash"; - private String transactionHash; + @jakarta.annotation.Nonnull private String transactionHash; public static final String JSON_PROPERTY_TRANSACTION_INDEX = "transactionIndex"; - private Integer transactionIndex; + @jakarta.annotation.Nonnull private Integer transactionIndex; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nonnull private String type; public TransactionReceiptResponse() {} - public TransactionReceiptResponse blockHash(String blockHash) { + @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; } @@ -105,11 +139,11 @@ public String getBlockHash() { @JsonProperty(JSON_PROPERTY_BLOCK_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockHash(String blockHash) { + public void setBlockHash(@jakarta.annotation.Nonnull String blockHash) { this.blockHash = blockHash; } - public TransactionReceiptResponse blockNumber(Integer blockNumber) { + public TransactionReceiptResponse blockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { this.blockNumber = blockNumber; return this; } @@ -128,11 +162,12 @@ public Integer getBlockNumber() { @JsonProperty(JSON_PROPERTY_BLOCK_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockNumber(Integer blockNumber) { + public void setBlockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { this.blockNumber = blockNumber; } - public TransactionReceiptResponse contractAddress(String contractAddress) { + public TransactionReceiptResponse contractAddress( + @jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; return this; } @@ -151,11 +186,12 @@ public String getContractAddress() { @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(String contractAddress) { + public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { this.contractAddress = contractAddress; } - public TransactionReceiptResponse cumulativeGasUsed(Integer cumulativeGasUsed) { + public TransactionReceiptResponse cumulativeGasUsed( + @jakarta.annotation.Nonnull Integer cumulativeGasUsed) { this.cumulativeGasUsed = cumulativeGasUsed; return this; } @@ -174,11 +210,12 @@ public Integer getCumulativeGasUsed() { @JsonProperty(JSON_PROPERTY_CUMULATIVE_GAS_USED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCumulativeGasUsed(Integer cumulativeGasUsed) { + public void setCumulativeGasUsed(@jakarta.annotation.Nonnull Integer cumulativeGasUsed) { this.cumulativeGasUsed = cumulativeGasUsed; } - public TransactionReceiptResponse effectiveGasPrice(Integer effectiveGasPrice) { + public TransactionReceiptResponse effectiveGasPrice( + @jakarta.annotation.Nonnull Integer effectiveGasPrice) { this.effectiveGasPrice = effectiveGasPrice; return this; } @@ -197,11 +234,11 @@ public Integer getEffectiveGasPrice() { @JsonProperty(JSON_PROPERTY_EFFECTIVE_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEffectiveGasPrice(Integer effectiveGasPrice) { + public void setEffectiveGasPrice(@jakarta.annotation.Nonnull Integer effectiveGasPrice) { this.effectiveGasPrice = effectiveGasPrice; } - public TransactionReceiptResponse from(String from) { + public TransactionReceiptResponse from(@jakarta.annotation.Nonnull String from) { this.from = from; return this; } @@ -220,11 +257,11 @@ public String getFrom() { @JsonProperty(JSON_PROPERTY_FROM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFrom(String from) { + public void setFrom(@jakarta.annotation.Nonnull String from) { this.from = from; } - public TransactionReceiptResponse gasUsed(Integer gasUsed) { + public TransactionReceiptResponse gasUsed(@jakarta.annotation.Nonnull Integer gasUsed) { this.gasUsed = gasUsed; return this; } @@ -243,11 +280,11 @@ public Integer getGasUsed() { @JsonProperty(JSON_PROPERTY_GAS_USED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGasUsed(Integer gasUsed) { + public void setGasUsed(@jakarta.annotation.Nonnull Integer gasUsed) { this.gasUsed = gasUsed; } - public TransactionReceiptResponse logs(List logs) { + public TransactionReceiptResponse logs(@jakarta.annotation.Nonnull List logs) { this.logs = logs; return this; } @@ -274,11 +311,11 @@ public List getLogs() { @JsonProperty(JSON_PROPERTY_LOGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogs(List logs) { + public void setLogs(@jakarta.annotation.Nonnull List logs) { this.logs = logs; } - public TransactionReceiptResponse logsBloom(String logsBloom) { + public TransactionReceiptResponse logsBloom(@jakarta.annotation.Nonnull String logsBloom) { this.logsBloom = logsBloom; return this; } @@ -297,11 +334,11 @@ public String getLogsBloom() { @JsonProperty(JSON_PROPERTY_LOGS_BLOOM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogsBloom(String logsBloom) { + public void setLogsBloom(@jakarta.annotation.Nonnull String logsBloom) { this.logsBloom = logsBloom; } - public TransactionReceiptResponse status(Integer status) { + public TransactionReceiptResponse status(@jakarta.annotation.Nonnull Integer status) { this.status = status; return this; } @@ -320,11 +357,11 @@ public Integer getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(Integer status) { + public void setStatus(@jakarta.annotation.Nonnull Integer status) { this.status = status; } - public TransactionReceiptResponse to(String to) { + public TransactionReceiptResponse to(@jakarta.annotation.Nullable String to) { this.to = to; return this; } @@ -343,11 +380,12 @@ public String getTo() { @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTo(String to) { + public void setTo(@jakarta.annotation.Nullable String to) { this.to = to; } - public TransactionReceiptResponse transactionHash(String transactionHash) { + public TransactionReceiptResponse transactionHash( + @jakarta.annotation.Nonnull String transactionHash) { this.transactionHash = transactionHash; return this; } @@ -366,11 +404,12 @@ public String getTransactionHash() { @JsonProperty(JSON_PROPERTY_TRANSACTION_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionHash(String transactionHash) { + public void setTransactionHash(@jakarta.annotation.Nonnull String transactionHash) { this.transactionHash = transactionHash; } - public TransactionReceiptResponse transactionIndex(Integer transactionIndex) { + public TransactionReceiptResponse transactionIndex( + @jakarta.annotation.Nonnull Integer transactionIndex) { this.transactionIndex = transactionIndex; return this; } @@ -389,11 +428,11 @@ public Integer getTransactionIndex() { @JsonProperty(JSON_PROPERTY_TRANSACTION_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionIndex(Integer transactionIndex) { + public void setTransactionIndex(@jakarta.annotation.Nonnull Integer transactionIndex) { this.transactionIndex = transactionIndex; } - public TransactionReceiptResponse type(String type) { + public TransactionReceiptResponse type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -412,7 +451,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -540,9 +579,7 @@ public String toUrlQueryString(String prefix) { "%sblockHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); } // add `blockNumber` to the URL query string @@ -552,10 +589,7 @@ public String toUrlQueryString(String prefix) { "%sblockNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockNumber())))); } // add `contractAddress` to the URL query string @@ -565,10 +599,7 @@ public String toUrlQueryString(String prefix) { "%scontractAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); } // add `cumulativeGasUsed` to the URL query string @@ -578,10 +609,7 @@ public String toUrlQueryString(String prefix) { "%scumulativeGasUsed%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCumulativeGasUsed()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCumulativeGasUsed())))); } // add `effectiveGasPrice` to the URL query string @@ -591,10 +619,7 @@ public String toUrlQueryString(String prefix) { "%seffectiveGasPrice%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEffectiveGasPrice()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEffectiveGasPrice())))); } // add `from` to the URL query string @@ -604,8 +629,7 @@ public String toUrlQueryString(String prefix) { "%sfrom%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFrom()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFrom())))); } // add `gasUsed` to the URL query string @@ -615,8 +639,7 @@ public String toUrlQueryString(String prefix) { "%sgasUsed%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getGasUsed()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGasUsed())))); } // add `logs` to the URL query string @@ -649,9 +672,7 @@ public String toUrlQueryString(String prefix) { "%slogsBloom%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLogsBloom()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLogsBloom())))); } // add `status` to the URL query string @@ -661,8 +682,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `to` to the URL query string @@ -670,10 +690,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sto%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getTo()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTo())))); } // add `transactionHash` to the URL query string @@ -683,10 +700,7 @@ public String toUrlQueryString(String prefix) { "%stransactionHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionHash()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionHash())))); } // add `transactionIndex` to the URL query string @@ -696,10 +710,7 @@ public String toUrlQueryString(String prefix) { "%stransactionIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionIndex())))); } // add `type` to the URL query string @@ -709,8 +720,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 a09c0fc2..487ae87f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -56,48 +55,54 @@ TransactionRequest.JSON_PROPERTY_CPU_STAKING, TransactionRequest.JSON_PROPERTY_USE_GASLESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionRequest { public static final String JSON_PROPERTY_OPERATION = "operation"; + + @jakarta.annotation.Nullable private TransactionOperation operation = TransactionOperation.TRANSFER; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public static final String JSON_PROPERTY_EXTERNAL_TX_ID = "externalTxId"; - private String externalTxId; + @jakarta.annotation.Nullable private String externalTxId; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_SOURCE = "source"; - private SourceTransferPeerPath source; + @jakarta.annotation.Nullable private SourceTransferPeerPath source; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private DestinationTransferPeerPath destination; + @jakarta.annotation.Nullable private DestinationTransferPeerPath destination; public static final String JSON_PROPERTY_DESTINATIONS = "destinations"; - private List destinations; + + @jakarta.annotation.Nullable + private List destinations = new ArrayList<>(); public static final String JSON_PROPERTY_AMOUNT = "amount"; - private TransactionRequestAmount amount; + @jakarta.annotation.Nullable private TransactionRequestAmount amount; public static final String JSON_PROPERTY_TREAT_AS_GROSS_AMOUNT = "treatAsGrossAmount"; - private Boolean treatAsGrossAmount; + @jakarta.annotation.Nullable private Boolean treatAsGrossAmount; public static final String JSON_PROPERTY_FORCE_SWEEP = "forceSweep"; - private Boolean forceSweep; + @jakarta.annotation.Nullable private Boolean forceSweep; /** * 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. */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -127,62 +132,63 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_FEE = "fee"; - private TransactionRequestFee fee; + @jakarta.annotation.Nullable private TransactionRequestFee fee; public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - private TransactionRequestPriorityFee priorityFee; + @jakarta.annotation.Nullable private TransactionRequestPriorityFee priorityFee; public static final String JSON_PROPERTY_FAIL_ON_LOW_FEE = "failOnLowFee"; - private Boolean failOnLowFee; + @jakarta.annotation.Nullable private Boolean failOnLowFee; public static final String JSON_PROPERTY_MAX_FEE = "maxFee"; - private String maxFee; + @jakarta.annotation.Nullable private String maxFee; public static final String JSON_PROPERTY_MAX_TOTAL_FEE = "maxTotalFee"; - private String maxTotalFee; + @jakarta.annotation.Nullable private String maxTotalFee; public static final String JSON_PROPERTY_GAS_LIMIT = "gasLimit"; - private TransactionRequestGasLimit gasLimit; + @jakarta.annotation.Nullable private TransactionRequestGasLimit gasLimit; public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice"; - private TransactionRequestGasPrice gasPrice; + @jakarta.annotation.Nullable private TransactionRequestGasPrice gasPrice; public static final String JSON_PROPERTY_NETWORK_FEE = "networkFee"; - private TransactionRequestNetworkFee networkFee; + @jakarta.annotation.Nullable private TransactionRequestNetworkFee networkFee; public static final String JSON_PROPERTY_REPLACE_TX_BY_HASH = "replaceTxByHash"; - private String replaceTxByHash; + @jakarta.annotation.Nullable private String replaceTxByHash; public static final String JSON_PROPERTY_EXTRA_PARAMETERS = "extraParameters"; - private Object extraParameters; + @jakarta.annotation.Nullable private Object extraParameters; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE = "travelRuleMessage"; - private TravelRuleCreateTransactionRequest travelRuleMessage; + @jakarta.annotation.Nullable private TravelRuleCreateTransactionRequest travelRuleMessage; public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID = "travelRuleMessageId"; - private String travelRuleMessageId; + @jakarta.annotation.Nullable private String travelRuleMessageId; public static final String JSON_PROPERTY_AUTO_STAKING = "autoStaking"; - private Boolean autoStaking; + @jakarta.annotation.Nullable private Boolean autoStaking; public static final String JSON_PROPERTY_NETWORK_STAKING = "networkStaking"; - private TransactionRequestNetworkStaking networkStaking; + @jakarta.annotation.Nullable private TransactionRequestNetworkStaking networkStaking; public static final String JSON_PROPERTY_CPU_STAKING = "cpuStaking"; - private TransactionRequestNetworkStaking cpuStaking; + @jakarta.annotation.Nullable private TransactionRequestNetworkStaking cpuStaking; public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; public TransactionRequest() {} - public TransactionRequest operation(TransactionOperation operation) { + public TransactionRequest operation( + @jakarta.annotation.Nullable TransactionOperation operation) { this.operation = operation; return this; } @@ -201,11 +207,11 @@ public TransactionOperation getOperation() { @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperation(TransactionOperation operation) { + public void setOperation(@jakarta.annotation.Nullable TransactionOperation operation) { this.operation = operation; } - public TransactionRequest note(String note) { + public TransactionRequest note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -225,24 +231,25 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public TransactionRequest externalTxId(String externalTxId) { + public TransactionRequest externalTxId(@jakarta.annotation.Nullable String externalTxId) { this.externalTxId = externalTxId; return this; } /** - * 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. + * **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. * * @return externalTxId */ @@ -255,11 +262,11 @@ public String getExternalTxId() { @JsonProperty(JSON_PROPERTY_EXTERNAL_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalTxId(String externalTxId) { + public void setExternalTxId(@jakarta.annotation.Nullable String externalTxId) { this.externalTxId = externalTxId; } - public TransactionRequest assetId(String assetId) { + public TransactionRequest assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -280,11 +287,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public TransactionRequest source(SourceTransferPeerPath source) { + public TransactionRequest source(@jakarta.annotation.Nullable SourceTransferPeerPath source) { this.source = source; return this; } @@ -303,11 +310,12 @@ public SourceTransferPeerPath getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(SourceTransferPeerPath source) { + public void setSource(@jakarta.annotation.Nullable SourceTransferPeerPath source) { this.source = source; } - public TransactionRequest destination(DestinationTransferPeerPath destination) { + public TransactionRequest destination( + @jakarta.annotation.Nullable DestinationTransferPeerPath destination) { this.destination = destination; return this; } @@ -326,11 +334,13 @@ public DestinationTransferPeerPath getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(DestinationTransferPeerPath destination) { + public void setDestination( + @jakarta.annotation.Nullable DestinationTransferPeerPath destination) { this.destination = destination; } - public TransactionRequest destinations(List destinations) { + public TransactionRequest destinations( + @jakarta.annotation.Nullable List destinations) { this.destinations = destinations; return this; } @@ -357,11 +367,12 @@ public List getDestinations() { @JsonProperty(JSON_PROPERTY_DESTINATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinations(List destinations) { + public void setDestinations( + @jakarta.annotation.Nullable List destinations) { this.destinations = destinations; } - public TransactionRequest amount(TransactionRequestAmount amount) { + public TransactionRequest amount(@jakarta.annotation.Nullable TransactionRequestAmount amount) { this.amount = amount; return this; } @@ -380,11 +391,12 @@ public TransactionRequestAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(TransactionRequestAmount amount) { + public void setAmount(@jakarta.annotation.Nullable TransactionRequestAmount amount) { this.amount = amount; } - public TransactionRequest treatAsGrossAmount(Boolean treatAsGrossAmount) { + public TransactionRequest treatAsGrossAmount( + @jakarta.annotation.Nullable Boolean treatAsGrossAmount) { this.treatAsGrossAmount = treatAsGrossAmount; return this; } @@ -407,11 +419,11 @@ public Boolean getTreatAsGrossAmount() { @JsonProperty(JSON_PROPERTY_TREAT_AS_GROSS_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTreatAsGrossAmount(Boolean treatAsGrossAmount) { + public void setTreatAsGrossAmount(@jakarta.annotation.Nullable Boolean treatAsGrossAmount) { this.treatAsGrossAmount = treatAsGrossAmount; } - public TransactionRequest forceSweep(Boolean forceSweep) { + public TransactionRequest forceSweep(@jakarta.annotation.Nullable Boolean forceSweep) { this.forceSweep = forceSweep; return this; } @@ -433,11 +445,11 @@ public Boolean getForceSweep() { @JsonProperty(JSON_PROPERTY_FORCE_SWEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSweep(Boolean forceSweep) { + public void setForceSweep(@jakarta.annotation.Nullable Boolean forceSweep) { this.forceSweep = forceSweep; } - public TransactionRequest feeLevel(FeeLevelEnum feeLevel) { + public TransactionRequest feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -457,11 +469,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public TransactionRequest fee(TransactionRequestFee fee) { + public TransactionRequest fee(@jakarta.annotation.Nullable TransactionRequestFee fee) { this.fee = fee; return this; } @@ -480,11 +492,12 @@ public TransactionRequestFee getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(TransactionRequestFee fee) { + public void setFee(@jakarta.annotation.Nullable TransactionRequestFee fee) { this.fee = fee; } - public TransactionRequest priorityFee(TransactionRequestPriorityFee priorityFee) { + public TransactionRequest priorityFee( + @jakarta.annotation.Nullable TransactionRequestPriorityFee priorityFee) { this.priorityFee = priorityFee; return this; } @@ -503,11 +516,12 @@ public TransactionRequestPriorityFee getPriorityFee() { @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(TransactionRequestPriorityFee priorityFee) { + public void setPriorityFee( + @jakarta.annotation.Nullable TransactionRequestPriorityFee priorityFee) { this.priorityFee = priorityFee; } - public TransactionRequest failOnLowFee(Boolean failOnLowFee) { + public TransactionRequest failOnLowFee(@jakarta.annotation.Nullable Boolean failOnLowFee) { this.failOnLowFee = failOnLowFee; return this; } @@ -528,11 +542,11 @@ public Boolean getFailOnLowFee() { @JsonProperty(JSON_PROPERTY_FAIL_ON_LOW_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailOnLowFee(Boolean failOnLowFee) { + public void setFailOnLowFee(@jakarta.annotation.Nullable Boolean failOnLowFee) { this.failOnLowFee = failOnLowFee; } - public TransactionRequest maxFee(String maxFee) { + public TransactionRequest maxFee(@jakarta.annotation.Nullable String maxFee) { this.maxFee = maxFee; return this; } @@ -553,11 +567,11 @@ public String getMaxFee() { @JsonProperty(JSON_PROPERTY_MAX_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxFee(String maxFee) { + public void setMaxFee(@jakarta.annotation.Nullable String maxFee) { this.maxFee = maxFee; } - public TransactionRequest maxTotalFee(String maxTotalFee) { + public TransactionRequest maxTotalFee(@jakarta.annotation.Nullable String maxTotalFee) { this.maxTotalFee = maxTotalFee; return this; } @@ -577,11 +591,12 @@ public String getMaxTotalFee() { @JsonProperty(JSON_PROPERTY_MAX_TOTAL_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxTotalFee(String maxTotalFee) { + public void setMaxTotalFee(@jakarta.annotation.Nullable String maxTotalFee) { this.maxTotalFee = maxTotalFee; } - public TransactionRequest gasLimit(TransactionRequestGasLimit gasLimit) { + public TransactionRequest gasLimit( + @jakarta.annotation.Nullable TransactionRequestGasLimit gasLimit) { this.gasLimit = gasLimit; return this; } @@ -600,11 +615,12 @@ public TransactionRequestGasLimit getGasLimit() { @JsonProperty(JSON_PROPERTY_GAS_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasLimit(TransactionRequestGasLimit gasLimit) { + public void setGasLimit(@jakarta.annotation.Nullable TransactionRequestGasLimit gasLimit) { this.gasLimit = gasLimit; } - public TransactionRequest gasPrice(TransactionRequestGasPrice gasPrice) { + public TransactionRequest gasPrice( + @jakarta.annotation.Nullable TransactionRequestGasPrice gasPrice) { this.gasPrice = gasPrice; return this; } @@ -623,11 +639,12 @@ public TransactionRequestGasPrice getGasPrice() { @JsonProperty(JSON_PROPERTY_GAS_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGasPrice(TransactionRequestGasPrice gasPrice) { + public void setGasPrice(@jakarta.annotation.Nullable TransactionRequestGasPrice gasPrice) { this.gasPrice = gasPrice; } - public TransactionRequest networkFee(TransactionRequestNetworkFee networkFee) { + public TransactionRequest networkFee( + @jakarta.annotation.Nullable TransactionRequestNetworkFee networkFee) { this.networkFee = networkFee; return this; } @@ -646,11 +663,12 @@ public TransactionRequestNetworkFee getNetworkFee() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkFee(TransactionRequestNetworkFee networkFee) { + public void setNetworkFee( + @jakarta.annotation.Nullable TransactionRequestNetworkFee networkFee) { this.networkFee = networkFee; } - public TransactionRequest replaceTxByHash(String replaceTxByHash) { + public TransactionRequest replaceTxByHash(@jakarta.annotation.Nullable String replaceTxByHash) { this.replaceTxByHash = replaceTxByHash; return this; } @@ -671,11 +689,11 @@ public String getReplaceTxByHash() { @JsonProperty(JSON_PROPERTY_REPLACE_TX_BY_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReplaceTxByHash(String replaceTxByHash) { + public void setReplaceTxByHash(@jakarta.annotation.Nullable String replaceTxByHash) { this.replaceTxByHash = replaceTxByHash; } - public TransactionRequest extraParameters(Object extraParameters) { + public TransactionRequest extraParameters(@jakarta.annotation.Nullable Object extraParameters) { this.extraParameters = extraParameters; return this; } @@ -714,11 +732,11 @@ public Object getExtraParameters() { @JsonProperty(JSON_PROPERTY_EXTRA_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExtraParameters(Object extraParameters) { + public void setExtraParameters(@jakarta.annotation.Nullable Object extraParameters) { this.extraParameters = extraParameters; } - public TransactionRequest customerRefId(String customerRefId) { + public TransactionRequest customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -737,12 +755,12 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } public TransactionRequest travelRuleMessage( - TravelRuleCreateTransactionRequest travelRuleMessage) { + @jakarta.annotation.Nullable TravelRuleCreateTransactionRequest travelRuleMessage) { this.travelRuleMessage = travelRuleMessage; return this; } @@ -761,11 +779,13 @@ public TravelRuleCreateTransactionRequest getTravelRuleMessage() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleMessage(TravelRuleCreateTransactionRequest travelRuleMessage) { + public void setTravelRuleMessage( + @jakarta.annotation.Nullable TravelRuleCreateTransactionRequest travelRuleMessage) { this.travelRuleMessage = travelRuleMessage; } - public TransactionRequest travelRuleMessageId(String travelRuleMessageId) { + public TransactionRequest travelRuleMessageId( + @jakarta.annotation.Nullable String travelRuleMessageId) { this.travelRuleMessageId = travelRuleMessageId; return this; } @@ -785,11 +805,11 @@ public String getTravelRuleMessageId() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleMessageId(String travelRuleMessageId) { + public void setTravelRuleMessageId(@jakarta.annotation.Nullable String travelRuleMessageId) { this.travelRuleMessageId = travelRuleMessageId; } - public TransactionRequest autoStaking(Boolean autoStaking) { + public TransactionRequest autoStaking(@jakarta.annotation.Nullable Boolean autoStaking) { this.autoStaking = autoStaking; return this; } @@ -810,11 +830,12 @@ public Boolean getAutoStaking() { @JsonProperty(JSON_PROPERTY_AUTO_STAKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoStaking(Boolean autoStaking) { + public void setAutoStaking(@jakarta.annotation.Nullable Boolean autoStaking) { this.autoStaking = autoStaking; } - public TransactionRequest networkStaking(TransactionRequestNetworkStaking networkStaking) { + public TransactionRequest networkStaking( + @jakarta.annotation.Nullable TransactionRequestNetworkStaking networkStaking) { this.networkStaking = networkStaking; return this; } @@ -835,11 +856,13 @@ public TransactionRequestNetworkStaking getNetworkStaking() { @JsonProperty(JSON_PROPERTY_NETWORK_STAKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkStaking(TransactionRequestNetworkStaking networkStaking) { + public void setNetworkStaking( + @jakarta.annotation.Nullable TransactionRequestNetworkStaking networkStaking) { this.networkStaking = networkStaking; } - public TransactionRequest cpuStaking(TransactionRequestNetworkStaking cpuStaking) { + public TransactionRequest cpuStaking( + @jakarta.annotation.Nullable TransactionRequestNetworkStaking cpuStaking) { this.cpuStaking = cpuStaking; return this; } @@ -860,11 +883,12 @@ public TransactionRequestNetworkStaking getCpuStaking() { @JsonProperty(JSON_PROPERTY_CPU_STAKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCpuStaking(TransactionRequestNetworkStaking cpuStaking) { + public void setCpuStaking( + @jakarta.annotation.Nullable TransactionRequestNetworkStaking cpuStaking) { this.cpuStaking = cpuStaking; } - public TransactionRequest useGasless(Boolean useGasless) { + public TransactionRequest useGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -883,7 +907,7 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } @@ -1052,9 +1076,7 @@ public String toUrlQueryString(String prefix) { "%soperation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperation()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperation())))); } // add `note` to the URL query string @@ -1064,8 +1086,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } // add `externalTxId` to the URL query string @@ -1075,10 +1096,7 @@ public String toUrlQueryString(String prefix) { "%sexternalTxId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalTxId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalTxId())))); } // add `assetId` to the URL query string @@ -1088,8 +1106,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `source` to the URL query string @@ -1137,10 +1154,7 @@ public String toUrlQueryString(String prefix) { "%streatAsGrossAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTreatAsGrossAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTreatAsGrossAmount())))); } // add `forceSweep` to the URL query string @@ -1150,9 +1164,7 @@ public String toUrlQueryString(String prefix) { "%sforceSweep%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getForceSweep()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getForceSweep())))); } // add `feeLevel` to the URL query string @@ -1162,8 +1174,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `fee` to the URL query string @@ -1183,10 +1194,7 @@ public String toUrlQueryString(String prefix) { "%sfailOnLowFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFailOnLowFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFailOnLowFee())))); } // add `maxFee` to the URL query string @@ -1196,8 +1204,7 @@ public String toUrlQueryString(String prefix) { "%smaxFee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getMaxFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMaxFee())))); } // add `maxTotalFee` to the URL query string @@ -1207,10 +1214,7 @@ public String toUrlQueryString(String prefix) { "%smaxTotalFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getMaxTotalFee()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getMaxTotalFee())))); } // add `gasLimit` to the URL query string @@ -1235,10 +1239,7 @@ public String toUrlQueryString(String prefix) { "%sreplaceTxByHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getReplaceTxByHash()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReplaceTxByHash())))); } // add `extraParameters` to the URL query string @@ -1248,10 +1249,7 @@ public String toUrlQueryString(String prefix) { "%sextraParameters%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExtraParameters()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExtraParameters())))); } // add `customerRefId` to the URL query string @@ -1261,10 +1259,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `travelRuleMessage` to the URL query string @@ -1280,10 +1275,8 @@ public String toUrlQueryString(String prefix) { "%stravelRuleMessageId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleMessageId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTravelRuleMessageId())))); } // add `autoStaking` to the URL query string @@ -1293,10 +1286,7 @@ public String toUrlQueryString(String prefix) { "%sautoStaking%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAutoStaking()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAutoStaking())))); } // add `networkStaking` to the URL query string @@ -1316,9 +1306,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestAmount.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestAmount.java index 3c8b9968..a009fb63 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestAmount.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestAmount.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = TransactionRequestAmount.TransactionRequestAmountDeserializer.class) @JsonSerialize(using = TransactionRequestAmount.TransactionRequestAmountSerializer.class) public class TransactionRequestAmount extends AbstractOpenApiSchema { @@ -308,10 +309,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -322,10 +320,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } 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 3ede58fd..e7ddd44b 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ TransactionRequestDestination.JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID, TransactionRequestDestination.JSON_PROPERTY_CUSTOMER_REF_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionRequestDestination { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private DestinationTransferPeerPath destination; + @jakarta.annotation.Nullable private DestinationTransferPeerPath destination; public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID = "travelRuleMessageId"; - private String travelRuleMessageId; + @jakarta.annotation.Nullable private String travelRuleMessageId; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public TransactionRequestDestination() {} - public TransactionRequestDestination amount(String amount) { + public TransactionRequestDestination amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -63,11 +64,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public TransactionRequestDestination destination(DestinationTransferPeerPath destination) { + public TransactionRequestDestination destination( + @jakarta.annotation.Nullable DestinationTransferPeerPath destination) { this.destination = destination; return this; } @@ -86,11 +88,13 @@ public DestinationTransferPeerPath getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(DestinationTransferPeerPath destination) { + public void setDestination( + @jakarta.annotation.Nullable DestinationTransferPeerPath destination) { this.destination = destination; } - public TransactionRequestDestination travelRuleMessageId(String travelRuleMessageId) { + public TransactionRequestDestination travelRuleMessageId( + @jakarta.annotation.Nullable String travelRuleMessageId) { this.travelRuleMessageId = travelRuleMessageId; return this; } @@ -110,11 +114,12 @@ public String getTravelRuleMessageId() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleMessageId(String travelRuleMessageId) { + public void setTravelRuleMessageId(@jakarta.annotation.Nullable String travelRuleMessageId) { this.travelRuleMessageId = travelRuleMessageId; } - public TransactionRequestDestination customerRefId(String customerRefId) { + public TransactionRequestDestination customerRefId( + @jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -133,7 +138,7 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } @@ -224,8 +229,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `destination` to the URL query string @@ -240,10 +244,8 @@ public String toUrlQueryString(String prefix) { "%stravelRuleMessageId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleMessageId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTravelRuleMessageId())))); } // add `customerRefId` to the URL query string @@ -253,10 +255,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestFee.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestFee.java index 83d19905..fc29933f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestFee.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestFee.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = TransactionRequestFee.TransactionRequestFeeDeserializer.class) @JsonSerialize(using = TransactionRequestFee.TransactionRequestFeeSerializer.class) public class TransactionRequestFee extends AbstractOpenApiSchema { @@ -307,10 +308,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -321,10 +319,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasLimit.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasLimit.java index d1fb4ab9..b9f85218 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasLimit.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasLimit.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = TransactionRequestGasLimit.TransactionRequestGasLimitDeserializer.class) @JsonSerialize(using = TransactionRequestGasLimit.TransactionRequestGasLimitSerializer.class) public class TransactionRequestGasLimit extends AbstractOpenApiSchema { @@ -308,10 +309,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -322,10 +320,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasPrice.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasPrice.java index d50338bb..7fe65765 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasPrice.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestGasPrice.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = TransactionRequestGasPrice.TransactionRequestGasPriceDeserializer.class) @JsonSerialize(using = TransactionRequestGasPrice.TransactionRequestGasPriceSerializer.class) public class TransactionRequestGasPrice extends AbstractOpenApiSchema { @@ -308,10 +309,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -322,10 +320,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkFee.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkFee.java index bb2a7cf4..c6584f7d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkFee.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkFee.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = TransactionRequestNetworkFee.TransactionRequestNetworkFeeDeserializer.class) @JsonSerialize(using = TransactionRequestNetworkFee.TransactionRequestNetworkFeeSerializer.class) @@ -310,10 +311,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -324,10 +322,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkStaking.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkStaking.java index d7cdf201..1ec370a1 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkStaking.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestNetworkStaking.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = TransactionRequestNetworkStaking.TransactionRequestNetworkStakingDeserializer.class) @JsonSerialize( @@ -315,10 +316,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -329,10 +327,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestPriorityFee.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestPriorityFee.java index d4ac8897..fff1f1c1 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestPriorityFee.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestPriorityFee.java @@ -26,11 +26,10 @@ 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.math.BigDecimal; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -39,7 +38,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = TransactionRequestPriorityFee.TransactionRequestPriorityFeeDeserializer.class) @JsonSerialize(using = TransactionRequestPriorityFee.TransactionRequestPriorityFeeSerializer.class) @@ -312,10 +313,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_0%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } @@ -326,10 +324,7 @@ public String toUrlQueryString(String prefix) { "%sone_of_1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActualInstance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } 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 00fcc5c6..1c0c6ac7 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -77,133 +76,139 @@ TransactionResponse.JSON_PROPERTY_NETWORK_FEE, TransactionResponse.JSON_PROPERTY_ERROR_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_EXTERNAL_TX_ID = "externalTxId"; - private String externalTxId; + @jakarta.annotation.Nullable private String externalTxId; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_SUB_STATUS = "subStatus"; - private String subStatus; + @jakarta.annotation.Nullable private String subStatus; public static final String JSON_PROPERTY_TX_HASH = "txHash"; - private String txHash; + @jakarta.annotation.Nullable private String txHash; public static final String JSON_PROPERTY_OPERATION = "operation"; - private GetTransactionOperation operation; + @jakarta.annotation.Nullable private GetTransactionOperation operation; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_SOURCE = "source"; - private SourceTransferPeerPathResponse source; + @jakarta.annotation.Nullable private SourceTransferPeerPathResponse source; public static final String JSON_PROPERTY_SOURCE_ADDRESS = "sourceAddress"; - private String sourceAddress; + @jakarta.annotation.Nullable private String sourceAddress; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private DestinationTransferPeerPathResponse destination; + @jakarta.annotation.Nullable private DestinationTransferPeerPathResponse destination; public static final String JSON_PROPERTY_DESTINATIONS = "destinations"; - private List destinations; + + @jakarta.annotation.Nullable + private List destinations = new ArrayList<>(); public static final String JSON_PROPERTY_DESTINATION_ADDRESS = "destinationAddress"; - private String destinationAddress; + @jakarta.annotation.Nullable private String destinationAddress; public static final String JSON_PROPERTY_DESTINATION_ADDRESS_DESCRIPTION = "destinationAddressDescription"; - private String destinationAddressDescription; + @jakarta.annotation.Nullable private String destinationAddressDescription; public static final String JSON_PROPERTY_DESTINATION_TAG = "destinationTag"; - private String destinationTag; + @jakarta.annotation.Nullable private String destinationTag; public static final String JSON_PROPERTY_CONTRACT_CALL_DECODED_DATA = "contractCallDecodedData"; + + @jakarta.annotation.Nullable private TransactionResponseContractCallDecodedData contractCallDecodedData; public static final String JSON_PROPERTY_AMOUNT_INFO = "amountInfo"; - private AmountInfo amountInfo; + @jakarta.annotation.Nullable private AmountInfo amountInfo; public static final String JSON_PROPERTY_TREAT_AS_GROSS_AMOUNT = "treatAsGrossAmount"; - private Boolean treatAsGrossAmount; + @jakarta.annotation.Nullable private Boolean treatAsGrossAmount; public static final String JSON_PROPERTY_FEE_INFO = "feeInfo"; - private FeeInfo feeInfo; + @jakarta.annotation.Nullable private FeeInfo feeInfo; public static final String JSON_PROPERTY_FEE_CURRENCY = "feeCurrency"; - private String feeCurrency; + @jakarta.annotation.Nullable private String feeCurrency; public static final String JSON_PROPERTY_NETWORK_RECORDS = "networkRecords"; - private List networkRecords; + @jakarta.annotation.Nullable private List networkRecords = new ArrayList<>(); public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private BigDecimal createdAt; + @jakarta.annotation.Nullable private BigDecimal createdAt; public static final String JSON_PROPERTY_LAST_UPDATED = "lastUpdated"; - private BigDecimal lastUpdated; + @jakarta.annotation.Nullable private BigDecimal lastUpdated; public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; - private String createdBy; + @jakarta.annotation.Nullable private String createdBy; public static final String JSON_PROPERTY_SIGNED_BY = "signedBy"; - private List signedBy; + @jakarta.annotation.Nullable private List signedBy = new ArrayList<>(); public static final String JSON_PROPERTY_REJECTED_BY = "rejectedBy"; - private String rejectedBy; + @jakarta.annotation.Nullable private String rejectedBy; public static final String JSON_PROPERTY_AUTHORIZATION_INFO = "authorizationInfo"; - private AuthorizationInfo authorizationInfo; + @jakarta.annotation.Nullable private AuthorizationInfo authorizationInfo; public static final String JSON_PROPERTY_EXCHANGE_TX_ID = "exchangeTxId"; - private String exchangeTxId; + @jakarta.annotation.Nullable private String exchangeTxId; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_AML_SCREENING_RESULT = "amlScreeningResult"; - private AmlScreeningResult amlScreeningResult; + @jakarta.annotation.Nullable private AmlScreeningResult amlScreeningResult; public static final String JSON_PROPERTY_COMPLIANCE_RESULTS = "complianceResults"; - private ComplianceResults complianceResults; + @jakarta.annotation.Nullable private ComplianceResults complianceResults; public static final String JSON_PROPERTY_EXTRA_PARAMETERS = "extraParameters"; - private Object extraParameters; + @jakarta.annotation.Nullable private Object extraParameters; public static final String JSON_PROPERTY_SIGNED_MESSAGES = "signedMessages"; - private List signedMessages; + @jakarta.annotation.Nullable private List signedMessages = new ArrayList<>(); public static final String JSON_PROPERTY_NUM_OF_CONFIRMATIONS = "numOfConfirmations"; - private BigDecimal numOfConfirmations; + @jakarta.annotation.Nullable private BigDecimal numOfConfirmations; public static final String JSON_PROPERTY_BLOCK_INFO = "blockInfo"; - private BlockInfo blockInfo; + @jakarta.annotation.Nullable private BlockInfo blockInfo; public static final String JSON_PROPERTY_INDEX = "index"; - private BigDecimal index; + @jakarta.annotation.Nullable private BigDecimal index; public static final String JSON_PROPERTY_REWARD_INFO = "rewardInfo"; - private RewardInfo rewardInfo; + @jakarta.annotation.Nullable private RewardInfo rewardInfo; public static final String JSON_PROPERTY_SYSTEM_MESSAGES = "systemMessages"; - private SystemMessageInfo systemMessages; + @jakarta.annotation.Nullable private SystemMessageInfo systemMessages; /** Gets or Sets addressType */ public enum AddressTypeEnum { - EMPTY(""), + EMPTY(String.valueOf("")), - WHITELISTED("WHITELISTED"), + WHITELISTED(String.valueOf("WHITELISTED")), - ONE_TIME("ONE_TIME"); + ONE_TIME(String.valueOf("ONE_TIME")); private String value; @@ -233,35 +238,35 @@ public static AddressTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - private AddressTypeEnum addressType; + @jakarta.annotation.Nullable private AddressTypeEnum addressType; public static final String JSON_PROPERTY_REQUESTED_AMOUNT = "requestedAmount"; - private BigDecimal requestedAmount; + @jakarta.annotation.Nullable private BigDecimal requestedAmount; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private BigDecimal amount; + @jakarta.annotation.Nullable private BigDecimal amount; public static final String JSON_PROPERTY_NET_AMOUNT = "netAmount"; - private BigDecimal netAmount; + @jakarta.annotation.Nullable private BigDecimal netAmount; public static final String JSON_PROPERTY_AMOUNT_U_S_D = "amountUSD"; - private BigDecimal amountUSD; + @jakarta.annotation.Nullable private BigDecimal amountUSD; public static final String JSON_PROPERTY_SERVICE_FEE = "serviceFee"; - private BigDecimal serviceFee; + @jakarta.annotation.Nullable private BigDecimal serviceFee; public static final String JSON_PROPERTY_FEE = "fee"; - private BigDecimal fee; + @jakarta.annotation.Nullable private BigDecimal fee; public static final String JSON_PROPERTY_NETWORK_FEE = "networkFee"; - private BigDecimal networkFee; + @jakarta.annotation.Nullable private BigDecimal networkFee; public static final String JSON_PROPERTY_ERROR_DESCRIPTION = "errorDescription"; - private String errorDescription; + @jakarta.annotation.Nullable private String errorDescription; public TransactionResponse() {} - public TransactionResponse id(String id) { + public TransactionResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -280,11 +285,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public TransactionResponse externalTxId(String externalTxId) { + public TransactionResponse externalTxId(@jakarta.annotation.Nullable String externalTxId) { this.externalTxId = externalTxId; return this; } @@ -305,11 +310,11 @@ public String getExternalTxId() { @JsonProperty(JSON_PROPERTY_EXTERNAL_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalTxId(String externalTxId) { + public void setExternalTxId(@jakarta.annotation.Nullable String externalTxId) { this.externalTxId = externalTxId; } - public TransactionResponse status(String status) { + public TransactionResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -329,11 +334,11 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public TransactionResponse subStatus(String subStatus) { + public TransactionResponse subStatus(@jakarta.annotation.Nullable String subStatus) { this.subStatus = subStatus; return this; } @@ -354,11 +359,11 @@ public String getSubStatus() { @JsonProperty(JSON_PROPERTY_SUB_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubStatus(String subStatus) { + public void setSubStatus(@jakarta.annotation.Nullable String subStatus) { this.subStatus = subStatus; } - public TransactionResponse txHash(String txHash) { + public TransactionResponse txHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; return this; } @@ -389,11 +394,12 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; } - public TransactionResponse operation(GetTransactionOperation operation) { + public TransactionResponse operation( + @jakarta.annotation.Nullable GetTransactionOperation operation) { this.operation = operation; return this; } @@ -412,11 +418,11 @@ public GetTransactionOperation getOperation() { @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperation(GetTransactionOperation operation) { + public void setOperation(@jakarta.annotation.Nullable GetTransactionOperation operation) { this.operation = operation; } - public TransactionResponse note(String note) { + public TransactionResponse note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -436,11 +442,11 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public TransactionResponse assetId(String assetId) { + public TransactionResponse assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -462,11 +468,12 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public TransactionResponse source(SourceTransferPeerPathResponse source) { + public TransactionResponse source( + @jakarta.annotation.Nullable SourceTransferPeerPathResponse source) { this.source = source; return this; } @@ -485,11 +492,11 @@ public SourceTransferPeerPathResponse getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(SourceTransferPeerPathResponse source) { + public void setSource(@jakarta.annotation.Nullable SourceTransferPeerPathResponse source) { this.source = source; } - public TransactionResponse sourceAddress(String sourceAddress) { + public TransactionResponse sourceAddress(@jakarta.annotation.Nullable String sourceAddress) { this.sourceAddress = sourceAddress; return this; } @@ -511,11 +518,11 @@ public String getSourceAddress() { @JsonProperty(JSON_PROPERTY_SOURCE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceAddress(String sourceAddress) { + public void setSourceAddress(@jakarta.annotation.Nullable String sourceAddress) { this.sourceAddress = sourceAddress; } - public TransactionResponse tag(String tag) { + public TransactionResponse tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -535,11 +542,12 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - public TransactionResponse destination(DestinationTransferPeerPathResponse destination) { + public TransactionResponse destination( + @jakarta.annotation.Nullable DestinationTransferPeerPathResponse destination) { this.destination = destination; return this; } @@ -558,11 +566,13 @@ public DestinationTransferPeerPathResponse getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(DestinationTransferPeerPathResponse destination) { + public void setDestination( + @jakarta.annotation.Nullable DestinationTransferPeerPathResponse destination) { this.destination = destination; } - public TransactionResponse destinations(List destinations) { + public TransactionResponse destinations( + @jakarta.annotation.Nullable List destinations) { this.destinations = destinations; return this; } @@ -591,11 +601,13 @@ public List getDestinations() { @JsonProperty(JSON_PROPERTY_DESTINATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinations(List destinations) { + public void setDestinations( + @jakarta.annotation.Nullable List destinations) { this.destinations = destinations; } - public TransactionResponse destinationAddress(String destinationAddress) { + public TransactionResponse destinationAddress( + @jakarta.annotation.Nullable String destinationAddress) { this.destinationAddress = destinationAddress; return this; } @@ -620,11 +632,12 @@ public String getDestinationAddress() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinationAddress(String destinationAddress) { + public void setDestinationAddress(@jakarta.annotation.Nullable String destinationAddress) { this.destinationAddress = destinationAddress; } - public TransactionResponse destinationAddressDescription(String destinationAddressDescription) { + public TransactionResponse destinationAddressDescription( + @jakarta.annotation.Nullable String destinationAddressDescription) { this.destinationAddressDescription = destinationAddressDescription; return this; } @@ -643,11 +656,12 @@ public String getDestinationAddressDescription() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADDRESS_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinationAddressDescription(String destinationAddressDescription) { + public void setDestinationAddressDescription( + @jakarta.annotation.Nullable String destinationAddressDescription) { this.destinationAddressDescription = destinationAddressDescription; } - public TransactionResponse destinationTag(String destinationTag) { + public TransactionResponse destinationTag(@jakarta.annotation.Nullable String destinationTag) { this.destinationTag = destinationTag; return this; } @@ -667,12 +681,13 @@ public String getDestinationTag() { @JsonProperty(JSON_PROPERTY_DESTINATION_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinationTag(String destinationTag) { + public void setDestinationTag(@jakarta.annotation.Nullable String destinationTag) { this.destinationTag = destinationTag; } public TransactionResponse contractCallDecodedData( - TransactionResponseContractCallDecodedData contractCallDecodedData) { + @jakarta.annotation.Nullable + TransactionResponseContractCallDecodedData contractCallDecodedData) { this.contractCallDecodedData = contractCallDecodedData; return this; } @@ -692,11 +707,12 @@ public TransactionResponseContractCallDecodedData getContractCallDecodedData() { @JsonProperty(JSON_PROPERTY_CONTRACT_CALL_DECODED_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContractCallDecodedData( - TransactionResponseContractCallDecodedData contractCallDecodedData) { + @jakarta.annotation.Nullable + TransactionResponseContractCallDecodedData contractCallDecodedData) { this.contractCallDecodedData = contractCallDecodedData; } - public TransactionResponse amountInfo(AmountInfo amountInfo) { + public TransactionResponse amountInfo(@jakarta.annotation.Nullable AmountInfo amountInfo) { this.amountInfo = amountInfo; return this; } @@ -715,11 +731,12 @@ public AmountInfo getAmountInfo() { @JsonProperty(JSON_PROPERTY_AMOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountInfo(AmountInfo amountInfo) { + public void setAmountInfo(@jakarta.annotation.Nullable AmountInfo amountInfo) { this.amountInfo = amountInfo; } - public TransactionResponse treatAsGrossAmount(Boolean treatAsGrossAmount) { + public TransactionResponse treatAsGrossAmount( + @jakarta.annotation.Nullable Boolean treatAsGrossAmount) { this.treatAsGrossAmount = treatAsGrossAmount; return this; } @@ -742,11 +759,11 @@ public Boolean getTreatAsGrossAmount() { @JsonProperty(JSON_PROPERTY_TREAT_AS_GROSS_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTreatAsGrossAmount(Boolean treatAsGrossAmount) { + public void setTreatAsGrossAmount(@jakarta.annotation.Nullable Boolean treatAsGrossAmount) { this.treatAsGrossAmount = treatAsGrossAmount; } - public TransactionResponse feeInfo(FeeInfo feeInfo) { + public TransactionResponse feeInfo(@jakarta.annotation.Nullable FeeInfo feeInfo) { this.feeInfo = feeInfo; return this; } @@ -765,11 +782,11 @@ public FeeInfo getFeeInfo() { @JsonProperty(JSON_PROPERTY_FEE_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeInfo(FeeInfo feeInfo) { + public void setFeeInfo(@jakarta.annotation.Nullable FeeInfo feeInfo) { this.feeInfo = feeInfo; } - public TransactionResponse feeCurrency(String feeCurrency) { + public TransactionResponse feeCurrency(@jakarta.annotation.Nullable String feeCurrency) { this.feeCurrency = feeCurrency; return this; } @@ -789,11 +806,12 @@ public String getFeeCurrency() { @JsonProperty(JSON_PROPERTY_FEE_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeCurrency(String feeCurrency) { + public void setFeeCurrency(@jakarta.annotation.Nullable String feeCurrency) { this.feeCurrency = feeCurrency; } - public TransactionResponse networkRecords(List networkRecords) { + public TransactionResponse networkRecords( + @jakarta.annotation.Nullable List networkRecords) { this.networkRecords = networkRecords; return this; } @@ -822,11 +840,11 @@ public List getNetworkRecords() { @JsonProperty(JSON_PROPERTY_NETWORK_RECORDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkRecords(List networkRecords) { + public void setNetworkRecords(@jakarta.annotation.Nullable List networkRecords) { this.networkRecords = networkRecords; } - public TransactionResponse createdAt(BigDecimal createdAt) { + public TransactionResponse createdAt(@jakarta.annotation.Nullable BigDecimal createdAt) { this.createdAt = createdAt; return this; } @@ -845,11 +863,11 @@ public BigDecimal getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable BigDecimal createdAt) { this.createdAt = createdAt; } - public TransactionResponse lastUpdated(BigDecimal lastUpdated) { + public TransactionResponse lastUpdated(@jakarta.annotation.Nullable BigDecimal lastUpdated) { this.lastUpdated = lastUpdated; return this; } @@ -868,11 +886,11 @@ public BigDecimal getLastUpdated() { @JsonProperty(JSON_PROPERTY_LAST_UPDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastUpdated(BigDecimal lastUpdated) { + public void setLastUpdated(@jakarta.annotation.Nullable BigDecimal lastUpdated) { this.lastUpdated = lastUpdated; } - public TransactionResponse createdBy(String createdBy) { + public TransactionResponse createdBy(@jakarta.annotation.Nullable String createdBy) { this.createdBy = createdBy; return this; } @@ -891,11 +909,11 @@ public String getCreatedBy() { @JsonProperty(JSON_PROPERTY_CREATED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedBy(String createdBy) { + public void setCreatedBy(@jakarta.annotation.Nullable String createdBy) { this.createdBy = createdBy; } - public TransactionResponse signedBy(List signedBy) { + public TransactionResponse signedBy(@jakarta.annotation.Nullable List signedBy) { this.signedBy = signedBy; return this; } @@ -922,11 +940,11 @@ public List getSignedBy() { @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedBy(List signedBy) { + public void setSignedBy(@jakarta.annotation.Nullable List signedBy) { this.signedBy = signedBy; } - public TransactionResponse rejectedBy(String rejectedBy) { + public TransactionResponse rejectedBy(@jakarta.annotation.Nullable String rejectedBy) { this.rejectedBy = rejectedBy; return this; } @@ -945,11 +963,12 @@ public String getRejectedBy() { @JsonProperty(JSON_PROPERTY_REJECTED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRejectedBy(String rejectedBy) { + public void setRejectedBy(@jakarta.annotation.Nullable String rejectedBy) { this.rejectedBy = rejectedBy; } - public TransactionResponse authorizationInfo(AuthorizationInfo authorizationInfo) { + public TransactionResponse authorizationInfo( + @jakarta.annotation.Nullable AuthorizationInfo authorizationInfo) { this.authorizationInfo = authorizationInfo; return this; } @@ -968,11 +987,12 @@ public AuthorizationInfo getAuthorizationInfo() { @JsonProperty(JSON_PROPERTY_AUTHORIZATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizationInfo(AuthorizationInfo authorizationInfo) { + public void setAuthorizationInfo( + @jakarta.annotation.Nullable AuthorizationInfo authorizationInfo) { this.authorizationInfo = authorizationInfo; } - public TransactionResponse exchangeTxId(String exchangeTxId) { + public TransactionResponse exchangeTxId(@jakarta.annotation.Nullable String exchangeTxId) { this.exchangeTxId = exchangeTxId; return this; } @@ -992,11 +1012,11 @@ public String getExchangeTxId() { @JsonProperty(JSON_PROPERTY_EXCHANGE_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExchangeTxId(String exchangeTxId) { + public void setExchangeTxId(@jakarta.annotation.Nullable String exchangeTxId) { this.exchangeTxId = exchangeTxId; } - public TransactionResponse customerRefId(String customerRefId) { + public TransactionResponse customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -1015,11 +1035,12 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } - public TransactionResponse amlScreeningResult(AmlScreeningResult amlScreeningResult) { + public TransactionResponse amlScreeningResult( + @jakarta.annotation.Nullable AmlScreeningResult amlScreeningResult) { this.amlScreeningResult = amlScreeningResult; return this; } @@ -1038,11 +1059,13 @@ public AmlScreeningResult getAmlScreeningResult() { @JsonProperty(JSON_PROPERTY_AML_SCREENING_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlScreeningResult(AmlScreeningResult amlScreeningResult) { + public void setAmlScreeningResult( + @jakarta.annotation.Nullable AmlScreeningResult amlScreeningResult) { this.amlScreeningResult = amlScreeningResult; } - public TransactionResponse complianceResults(ComplianceResults complianceResults) { + public TransactionResponse complianceResults( + @jakarta.annotation.Nullable ComplianceResults complianceResults) { this.complianceResults = complianceResults; return this; } @@ -1061,11 +1084,13 @@ public ComplianceResults getComplianceResults() { @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplianceResults(ComplianceResults complianceResults) { + public void setComplianceResults( + @jakarta.annotation.Nullable ComplianceResults complianceResults) { this.complianceResults = complianceResults; } - public TransactionResponse extraParameters(Object extraParameters) { + public TransactionResponse extraParameters( + @jakarta.annotation.Nullable Object extraParameters) { this.extraParameters = extraParameters; return this; } @@ -1104,11 +1129,12 @@ public Object getExtraParameters() { @JsonProperty(JSON_PROPERTY_EXTRA_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExtraParameters(Object extraParameters) { + public void setExtraParameters(@jakarta.annotation.Nullable Object extraParameters) { this.extraParameters = extraParameters; } - public TransactionResponse signedMessages(List signedMessages) { + public TransactionResponse signedMessages( + @jakarta.annotation.Nullable List signedMessages) { this.signedMessages = signedMessages; return this; } @@ -1135,11 +1161,12 @@ public List getSignedMessages() { @JsonProperty(JSON_PROPERTY_SIGNED_MESSAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedMessages(List signedMessages) { + public void setSignedMessages(@jakarta.annotation.Nullable List signedMessages) { this.signedMessages = signedMessages; } - public TransactionResponse numOfConfirmations(BigDecimal numOfConfirmations) { + public TransactionResponse numOfConfirmations( + @jakarta.annotation.Nullable BigDecimal numOfConfirmations) { this.numOfConfirmations = numOfConfirmations; return this; } @@ -1159,11 +1186,11 @@ public BigDecimal getNumOfConfirmations() { @JsonProperty(JSON_PROPERTY_NUM_OF_CONFIRMATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumOfConfirmations(BigDecimal numOfConfirmations) { + public void setNumOfConfirmations(@jakarta.annotation.Nullable BigDecimal numOfConfirmations) { this.numOfConfirmations = numOfConfirmations; } - public TransactionResponse blockInfo(BlockInfo blockInfo) { + public TransactionResponse blockInfo(@jakarta.annotation.Nullable BlockInfo blockInfo) { this.blockInfo = blockInfo; return this; } @@ -1182,11 +1209,11 @@ public BlockInfo getBlockInfo() { @JsonProperty(JSON_PROPERTY_BLOCK_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockInfo(BlockInfo blockInfo) { + public void setBlockInfo(@jakarta.annotation.Nullable BlockInfo blockInfo) { this.blockInfo = blockInfo; } - public TransactionResponse index(BigDecimal index) { + public TransactionResponse index(@jakarta.annotation.Nullable BigDecimal index) { this.index = index; return this; } @@ -1207,11 +1234,11 @@ public BigDecimal getIndex() { @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndex(BigDecimal index) { + public void setIndex(@jakarta.annotation.Nullable BigDecimal index) { this.index = index; } - public TransactionResponse rewardInfo(RewardInfo rewardInfo) { + public TransactionResponse rewardInfo(@jakarta.annotation.Nullable RewardInfo rewardInfo) { this.rewardInfo = rewardInfo; return this; } @@ -1230,11 +1257,12 @@ public RewardInfo getRewardInfo() { @JsonProperty(JSON_PROPERTY_REWARD_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewardInfo(RewardInfo rewardInfo) { + public void setRewardInfo(@jakarta.annotation.Nullable RewardInfo rewardInfo) { this.rewardInfo = rewardInfo; } - public TransactionResponse systemMessages(SystemMessageInfo systemMessages) { + public TransactionResponse systemMessages( + @jakarta.annotation.Nullable SystemMessageInfo systemMessages) { this.systemMessages = systemMessages; return this; } @@ -1253,11 +1281,12 @@ public SystemMessageInfo getSystemMessages() { @JsonProperty(JSON_PROPERTY_SYSTEM_MESSAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSystemMessages(SystemMessageInfo systemMessages) { + public void setSystemMessages(@jakarta.annotation.Nullable SystemMessageInfo systemMessages) { this.systemMessages = systemMessages; } - public TransactionResponse addressType(AddressTypeEnum addressType) { + public TransactionResponse addressType( + @jakarta.annotation.Nullable AddressTypeEnum addressType) { this.addressType = addressType; return this; } @@ -1276,11 +1305,12 @@ public AddressTypeEnum getAddressType() { @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressType(AddressTypeEnum addressType) { + public void setAddressType(@jakarta.annotation.Nullable AddressTypeEnum addressType) { this.addressType = addressType; } - public TransactionResponse requestedAmount(BigDecimal requestedAmount) { + public TransactionResponse requestedAmount( + @jakarta.annotation.Nullable BigDecimal requestedAmount) { this.requestedAmount = requestedAmount; return this; } @@ -1302,11 +1332,11 @@ public BigDecimal getRequestedAmount() { @JsonProperty(JSON_PROPERTY_REQUESTED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequestedAmount(BigDecimal requestedAmount) { + public void setRequestedAmount(@jakarta.annotation.Nullable BigDecimal requestedAmount) { this.requestedAmount = requestedAmount; } - public TransactionResponse amount(BigDecimal amount) { + public TransactionResponse amount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; return this; } @@ -1329,11 +1359,11 @@ public BigDecimal getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(BigDecimal amount) { + public void setAmount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; } - public TransactionResponse netAmount(BigDecimal netAmount) { + public TransactionResponse netAmount(@jakarta.annotation.Nullable BigDecimal netAmount) { this.netAmount = netAmount; return this; } @@ -1355,11 +1385,11 @@ public BigDecimal getNetAmount() { @JsonProperty(JSON_PROPERTY_NET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetAmount(BigDecimal netAmount) { + public void setNetAmount(@jakarta.annotation.Nullable BigDecimal netAmount) { this.netAmount = netAmount; } - public TransactionResponse amountUSD(BigDecimal amountUSD) { + public TransactionResponse amountUSD(@jakarta.annotation.Nullable BigDecimal amountUSD) { this.amountUSD = amountUSD; return this; } @@ -1381,11 +1411,11 @@ public BigDecimal getAmountUSD() { @JsonProperty(JSON_PROPERTY_AMOUNT_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUSD(BigDecimal amountUSD) { + public void setAmountUSD(@jakarta.annotation.Nullable BigDecimal amountUSD) { this.amountUSD = amountUSD; } - public TransactionResponse serviceFee(BigDecimal serviceFee) { + public TransactionResponse serviceFee(@jakarta.annotation.Nullable BigDecimal serviceFee) { this.serviceFee = serviceFee; return this; } @@ -1408,11 +1438,11 @@ public BigDecimal getServiceFee() { @JsonProperty(JSON_PROPERTY_SERVICE_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setServiceFee(BigDecimal serviceFee) { + public void setServiceFee(@jakarta.annotation.Nullable BigDecimal serviceFee) { this.serviceFee = serviceFee; } - public TransactionResponse fee(BigDecimal fee) { + public TransactionResponse fee(@jakarta.annotation.Nullable BigDecimal fee) { this.fee = fee; return this; } @@ -1433,11 +1463,11 @@ public BigDecimal getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(BigDecimal fee) { + public void setFee(@jakarta.annotation.Nullable BigDecimal fee) { this.fee = fee; } - public TransactionResponse networkFee(BigDecimal networkFee) { + public TransactionResponse networkFee(@jakarta.annotation.Nullable BigDecimal networkFee) { this.networkFee = networkFee; return this; } @@ -1459,11 +1489,12 @@ public BigDecimal getNetworkFee() { @JsonProperty(JSON_PROPERTY_NETWORK_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkFee(BigDecimal networkFee) { + public void setNetworkFee(@jakarta.annotation.Nullable BigDecimal networkFee) { this.networkFee = networkFee; } - public TransactionResponse errorDescription(String errorDescription) { + public TransactionResponse errorDescription( + @jakarta.annotation.Nullable String errorDescription) { this.errorDescription = errorDescription; return this; } @@ -1483,7 +1514,7 @@ public String getErrorDescription() { @JsonProperty(JSON_PROPERTY_ERROR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorDescription(String errorDescription) { + public void setErrorDescription(@jakarta.annotation.Nullable String errorDescription) { this.errorDescription = errorDescription; } @@ -1723,10 +1754,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `externalTxId` to the URL query string @@ -1736,10 +1764,7 @@ public String toUrlQueryString(String prefix) { "%sexternalTxId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalTxId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalTxId())))); } // add `status` to the URL query string @@ -1749,8 +1774,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `subStatus` to the URL query string @@ -1760,9 +1784,7 @@ public String toUrlQueryString(String prefix) { "%ssubStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSubStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubStatus())))); } // add `txHash` to the URL query string @@ -1772,8 +1794,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } // add `operation` to the URL query string @@ -1783,9 +1804,7 @@ public String toUrlQueryString(String prefix) { "%soperation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperation()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperation())))); } // add `note` to the URL query string @@ -1795,8 +1814,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } // add `assetId` to the URL query string @@ -1806,8 +1824,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `source` to the URL query string @@ -1822,10 +1839,7 @@ public String toUrlQueryString(String prefix) { "%ssourceAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceAddress())))); } // add `tag` to the URL query string @@ -1835,8 +1849,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `destination` to the URL query string @@ -1874,10 +1887,7 @@ public String toUrlQueryString(String prefix) { "%sdestinationAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestinationAddress())))); } // add `destinationAddressDescription` to the URL query string @@ -1887,10 +1897,8 @@ public String toUrlQueryString(String prefix) { "%sdestinationAddressDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationAddressDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDestinationAddressDescription())))); } // add `destinationTag` to the URL query string @@ -1900,10 +1908,7 @@ public String toUrlQueryString(String prefix) { "%sdestinationTag%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationTag()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestinationTag())))); } // add `contractCallDecodedData` to the URL query string @@ -1925,10 +1930,7 @@ public String toUrlQueryString(String prefix) { "%streatAsGrossAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTreatAsGrossAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTreatAsGrossAmount())))); } // add `feeInfo` to the URL query string @@ -1943,10 +1945,7 @@ public String toUrlQueryString(String prefix) { "%sfeeCurrency%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFeeCurrency()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeCurrency())))); } // add `networkRecords` to the URL query string @@ -1979,9 +1978,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `lastUpdated` to the URL query string @@ -1991,10 +1988,7 @@ public String toUrlQueryString(String prefix) { "%slastUpdated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastUpdated()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastUpdated())))); } // add `createdBy` to the URL query string @@ -2004,9 +1998,7 @@ public String toUrlQueryString(String prefix) { "%screatedBy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedBy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedBy())))); } // add `signedBy` to the URL query string @@ -2021,10 +2013,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getSignedBy().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSignedBy().get(i))))); } } @@ -2035,9 +2025,7 @@ public String toUrlQueryString(String prefix) { "%srejectedBy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRejectedBy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRejectedBy())))); } // add `authorizationInfo` to the URL query string @@ -2053,10 +2041,7 @@ public String toUrlQueryString(String prefix) { "%sexchangeTxId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExchangeTxId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExchangeTxId())))); } // add `customerRefId` to the URL query string @@ -2066,10 +2051,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `amlScreeningResult` to the URL query string @@ -2092,10 +2074,7 @@ public String toUrlQueryString(String prefix) { "%sextraParameters%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExtraParameters()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExtraParameters())))); } // add `signedMessages` to the URL query string @@ -2128,10 +2107,7 @@ public String toUrlQueryString(String prefix) { "%snumOfConfirmations%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNumOfConfirmations()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNumOfConfirmations())))); } // add `blockInfo` to the URL query string @@ -2146,8 +2122,7 @@ public String toUrlQueryString(String prefix) { "%sindex%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIndex()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); } // add `rewardInfo` to the URL query string @@ -2167,10 +2142,7 @@ public String toUrlQueryString(String prefix) { "%saddressType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); } // add `requestedAmount` to the URL query string @@ -2180,10 +2152,7 @@ public String toUrlQueryString(String prefix) { "%srequestedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRequestedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRequestedAmount())))); } // add `amount` to the URL query string @@ -2193,8 +2162,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `netAmount` to the URL query string @@ -2204,9 +2172,7 @@ public String toUrlQueryString(String prefix) { "%snetAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetAmount())))); } // add `amountUSD` to the URL query string @@ -2216,9 +2182,7 @@ public String toUrlQueryString(String prefix) { "%samountUSD%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUSD())))); } // add `serviceFee` to the URL query string @@ -2228,9 +2192,7 @@ public String toUrlQueryString(String prefix) { "%sserviceFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getServiceFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getServiceFee())))); } // add `fee` to the URL query string @@ -2240,8 +2202,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `networkFee` to the URL query string @@ -2251,9 +2212,7 @@ public String toUrlQueryString(String prefix) { "%snetworkFee%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkFee())))); } // add `errorDescription` to the URL query string @@ -2263,10 +2222,7 @@ public String toUrlQueryString(String prefix) { "%serrorDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getErrorDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrorDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java index f91d4a44..09e01cfc 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,17 +31,20 @@ TransactionResponseContractCallDecodedData.JSON_PROPERTY_CONTRACT_NAME, TransactionResponseContractCallDecodedData.JSON_PROPERTY_FUNCTION_CALLS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionResponseContractCallDecodedData { public static final String JSON_PROPERTY_CONTRACT_NAME = "contractName"; - private String contractName; + @jakarta.annotation.Nullable private String contractName; public static final String JSON_PROPERTY_FUNCTION_CALLS = "functionCalls"; - private List functionCalls; + @jakarta.annotation.Nullable private List functionCalls = new ArrayList<>(); public TransactionResponseContractCallDecodedData() {} - public TransactionResponseContractCallDecodedData contractName(String contractName) { + public TransactionResponseContractCallDecodedData contractName( + @jakarta.annotation.Nullable String contractName) { this.contractName = contractName; return this; } @@ -61,11 +63,12 @@ public String getContractName() { @JsonProperty(JSON_PROPERTY_CONTRACT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractName(String contractName) { + public void setContractName(@jakarta.annotation.Nullable String contractName) { this.contractName = contractName; } - public TransactionResponseContractCallDecodedData functionCalls(List functionCalls) { + public TransactionResponseContractCallDecodedData functionCalls( + @jakarta.annotation.Nullable List functionCalls) { this.functionCalls = functionCalls; return this; } @@ -93,7 +96,7 @@ public List getFunctionCalls() { @JsonProperty(JSON_PROPERTY_FUNCTION_CALLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFunctionCalls(List functionCalls) { + public void setFunctionCalls(@jakarta.annotation.Nullable List functionCalls) { this.functionCalls = functionCalls; } @@ -180,10 +183,7 @@ public String toUrlQueryString(String prefix) { "%scontractName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getContractName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getContractName())))); } // add `functionCalls` to the URL query string @@ -198,10 +198,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getFunctionCalls().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getFunctionCalls().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java index 4c54c702..f2374803 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -31,33 +30,36 @@ TransactionResponseDestination.JSON_PROPERTY_DESTINATION, TransactionResponseDestination.JSON_PROPERTY_AUTHORIZATION_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransactionResponseDestination { public static final String JSON_PROPERTY_DESTINATION_ADDRESS = "destinationAddress"; - private Object destinationAddress = null; + @jakarta.annotation.Nullable private Object destinationAddress = null; public static final String JSON_PROPERTY_DESTINATION_ADDRESS_DESCRIPTION = "destinationAddressDescription"; - private Object destinationAddressDescription = null; + @jakarta.annotation.Nullable private Object destinationAddressDescription = null; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_AMOUNT_U_S_D = "amountUSD"; - private String amountUSD; + @jakarta.annotation.Nullable private String amountUSD; public static final String JSON_PROPERTY_AML_SCREENING_RESULT = "amlScreeningResult"; - private AmlScreeningResult amlScreeningResult; + @jakarta.annotation.Nullable private AmlScreeningResult amlScreeningResult; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private DestinationTransferPeerPathResponse destination; + @jakarta.annotation.Nullable private DestinationTransferPeerPathResponse destination; public static final String JSON_PROPERTY_AUTHORIZATION_INFO = "authorizationInfo"; - private AuthorizationInfo authorizationInfo; + @jakarta.annotation.Nullable private AuthorizationInfo authorizationInfo; public TransactionResponseDestination() {} - public TransactionResponseDestination destinationAddress(Object destinationAddress) { + public TransactionResponseDestination destinationAddress( + @jakarta.annotation.Nullable Object destinationAddress) { this.destinationAddress = destinationAddress; return this; } @@ -76,12 +78,12 @@ public Object getDestinationAddress() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinationAddress(Object destinationAddress) { + public void setDestinationAddress(@jakarta.annotation.Nullable Object destinationAddress) { this.destinationAddress = destinationAddress; } public TransactionResponseDestination destinationAddressDescription( - Object destinationAddressDescription) { + @jakarta.annotation.Nullable Object destinationAddressDescription) { this.destinationAddressDescription = destinationAddressDescription; return this; } @@ -100,11 +102,12 @@ public Object getDestinationAddressDescription() { @JsonProperty(JSON_PROPERTY_DESTINATION_ADDRESS_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestinationAddressDescription(Object destinationAddressDescription) { + public void setDestinationAddressDescription( + @jakarta.annotation.Nullable Object destinationAddressDescription) { this.destinationAddressDescription = destinationAddressDescription; } - public TransactionResponseDestination amount(String amount) { + public TransactionResponseDestination amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -123,11 +126,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public TransactionResponseDestination amountUSD(String amountUSD) { + public TransactionResponseDestination amountUSD(@jakarta.annotation.Nullable String amountUSD) { this.amountUSD = amountUSD; return this; } @@ -146,12 +149,12 @@ public String getAmountUSD() { @JsonProperty(JSON_PROPERTY_AMOUNT_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUSD(String amountUSD) { + public void setAmountUSD(@jakarta.annotation.Nullable String amountUSD) { this.amountUSD = amountUSD; } public TransactionResponseDestination amlScreeningResult( - AmlScreeningResult amlScreeningResult) { + @jakarta.annotation.Nullable AmlScreeningResult amlScreeningResult) { this.amlScreeningResult = amlScreeningResult; return this; } @@ -170,12 +173,13 @@ public AmlScreeningResult getAmlScreeningResult() { @JsonProperty(JSON_PROPERTY_AML_SCREENING_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlScreeningResult(AmlScreeningResult amlScreeningResult) { + public void setAmlScreeningResult( + @jakarta.annotation.Nullable AmlScreeningResult amlScreeningResult) { this.amlScreeningResult = amlScreeningResult; } public TransactionResponseDestination destination( - DestinationTransferPeerPathResponse destination) { + @jakarta.annotation.Nullable DestinationTransferPeerPathResponse destination) { this.destination = destination; return this; } @@ -194,11 +198,13 @@ public DestinationTransferPeerPathResponse getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(DestinationTransferPeerPathResponse destination) { + public void setDestination( + @jakarta.annotation.Nullable DestinationTransferPeerPathResponse destination) { this.destination = destination; } - public TransactionResponseDestination authorizationInfo(AuthorizationInfo authorizationInfo) { + public TransactionResponseDestination authorizationInfo( + @jakarta.annotation.Nullable AuthorizationInfo authorizationInfo) { this.authorizationInfo = authorizationInfo; return this; } @@ -217,7 +223,8 @@ public AuthorizationInfo getAuthorizationInfo() { @JsonProperty(JSON_PROPERTY_AUTHORIZATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizationInfo(AuthorizationInfo authorizationInfo) { + public void setAuthorizationInfo( + @jakarta.annotation.Nullable AuthorizationInfo authorizationInfo) { this.authorizationInfo = authorizationInfo; } @@ -331,10 +338,7 @@ public String toUrlQueryString(String prefix) { "%sdestinationAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestinationAddress())))); } // add `destinationAddressDescription` to the URL query string @@ -344,10 +348,8 @@ public String toUrlQueryString(String prefix) { "%sdestinationAddressDescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestinationAddressDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getDestinationAddressDescription())))); } // add `amount` to the URL query string @@ -357,8 +359,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `amountUSD` to the URL query string @@ -368,9 +369,7 @@ public String toUrlQueryString(String prefix) { "%samountUSD%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUSD())))); } // add `amlScreeningResult` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferConfigOperation.java b/src/main/java/com/fireblocks/sdk/model/TransferConfigOperation.java index 4e99bcb7..c79fba77 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferConfigOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferConfigOperation.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,42 @@ TransferConfigOperation.JSON_PROPERTY_STATUS, TransferConfigOperation.JSON_PROPERTY_VALIDATION_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferConfigOperation { public static final String JSON_PROPERTY_OPERATION_ID = "operationId"; - private String operationId; + @jakarta.annotation.Nonnull private String operationId; public static final String JSON_PROPERTY_TYPE = "type"; - private TransferOperationType type; + @jakarta.annotation.Nonnull private TransferOperationType type; public static final String JSON_PROPERTY_PARAMS = "params"; - private TransferOperationConfigParams params; + @jakarta.annotation.Nonnull private TransferOperationConfigParams params; public static final String JSON_PROPERTY_STATUS = "status"; - private ConfigOperationStatus status; + @jakarta.annotation.Nonnull private ConfigOperationStatus status; public static final String JSON_PROPERTY_VALIDATION_FAILURE = "validationFailure"; - private TransferValidationFailure validationFailure; + @jakarta.annotation.Nullable private TransferValidationFailure validationFailure; public TransferConfigOperation() {} - public TransferConfigOperation operationId(String operationId) { + @JsonCreator + public TransferConfigOperation( + @JsonProperty(value = JSON_PROPERTY_OPERATION_ID, required = true) String operationId, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TransferOperationType type, + @JsonProperty(value = JSON_PROPERTY_PARAMS, required = true) + TransferOperationConfigParams params, + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) + ConfigOperationStatus status) { + this.operationId = operationId; + this.type = type; + this.params = params; + this.status = status; + } + + public TransferConfigOperation operationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; return this; } @@ -67,11 +83,11 @@ public String getOperationId() { @JsonProperty(JSON_PROPERTY_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperationId(String operationId) { + public void setOperationId(@jakarta.annotation.Nonnull String operationId) { this.operationId = operationId; } - public TransferConfigOperation type(TransferOperationType type) { + public TransferConfigOperation type(@jakarta.annotation.Nonnull TransferOperationType type) { this.type = type; return this; } @@ -90,11 +106,12 @@ public TransferOperationType getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TransferOperationType type) { + public void setType(@jakarta.annotation.Nonnull TransferOperationType type) { this.type = type; } - public TransferConfigOperation params(TransferOperationConfigParams params) { + public TransferConfigOperation params( + @jakarta.annotation.Nonnull TransferOperationConfigParams params) { this.params = params; return this; } @@ -113,11 +130,12 @@ public TransferOperationConfigParams getParams() { @JsonProperty(JSON_PROPERTY_PARAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParams(TransferOperationConfigParams params) { + public void setParams(@jakarta.annotation.Nonnull TransferOperationConfigParams params) { this.params = params; } - public TransferConfigOperation status(ConfigOperationStatus status) { + public TransferConfigOperation status( + @jakarta.annotation.Nonnull ConfigOperationStatus status) { this.status = status; return this; } @@ -136,11 +154,12 @@ public ConfigOperationStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(ConfigOperationStatus status) { + public void setStatus(@jakarta.annotation.Nonnull ConfigOperationStatus status) { this.status = status; } - public TransferConfigOperation validationFailure(TransferValidationFailure validationFailure) { + public TransferConfigOperation validationFailure( + @jakarta.annotation.Nullable TransferValidationFailure validationFailure) { this.validationFailure = validationFailure; return this; } @@ -159,7 +178,8 @@ public TransferValidationFailure getValidationFailure() { @JsonProperty(JSON_PROPERTY_VALIDATION_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationFailure(TransferValidationFailure validationFailure) { + public void setValidationFailure( + @jakarta.annotation.Nullable TransferValidationFailure validationFailure) { this.validationFailure = validationFailure; } @@ -251,10 +271,7 @@ public String toUrlQueryString(String prefix) { "%soperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperationId())))); } // add `type` to the URL query string @@ -264,8 +281,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `params` to the URL query string @@ -280,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `validationFailure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationConfigParams.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationConfigParams.java index 4ce6386e..410c9b81 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationConfigParams.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationConfigParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,32 @@ TransferOperationConfigParams.JSON_PROPERTY_SOURCE, TransferOperationConfigParams.JSON_PROPERTY_DESTINATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationConfigParams { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_SOURCE = "source"; - private Account source; + @jakarta.annotation.Nullable private Account source; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private Destination destination; + @jakarta.annotation.Nonnull private Destination destination; public TransferOperationConfigParams() {} - public TransferOperationConfigParams amount(String amount) { + @JsonCreator + public TransferOperationConfigParams( + @JsonProperty(value = JSON_PROPERTY_DESTINATION, required = true) + Destination destination) { + this.destination = destination; + } + + public TransferOperationConfigParams amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -63,11 +72,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public TransferOperationConfigParams assetId(String assetId) { + public TransferOperationConfigParams assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -86,11 +95,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public TransferOperationConfigParams source(Account source) { + public TransferOperationConfigParams source(@jakarta.annotation.Nullable Account source) { this.source = source; return this; } @@ -109,11 +118,12 @@ public Account getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(Account source) { + public void setSource(@jakarta.annotation.Nullable Account source) { this.source = source; } - public TransferOperationConfigParams destination(Destination destination) { + public TransferOperationConfigParams destination( + @jakarta.annotation.Nonnull Destination destination) { this.destination = destination; return this; } @@ -132,7 +142,7 @@ public Destination getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestination(Destination destination) { + public void setDestination(@jakarta.annotation.Nonnull Destination destination) { this.destination = destination; } @@ -220,8 +230,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `assetId` to the URL query string @@ -231,8 +240,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `source` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecution.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecution.java index 6f20072f..90a94ee6 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecution.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecution.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -31,29 +31,41 @@ TransferOperationExecution.JSON_PROPERTY_FINISHED_AT, TransferOperationExecution.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationExecution { public static final String JSON_PROPERTY_INPUT = "input"; - private TransferOperationConfigParams input; + @jakarta.annotation.Nonnull private TransferOperationConfigParams input; public static final String JSON_PROPERTY_OUTPUT = "output"; - private TransferOperationExecutionOutput output; + @jakarta.annotation.Nullable private TransferOperationExecutionOutput output; public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nullable private String txId; public static final String JSON_PROPERTY_STARTED_AT = "startedAt"; - private BigDecimal startedAt; + @jakarta.annotation.Nonnull private BigDecimal startedAt; public static final String JSON_PROPERTY_FINISHED_AT = "finishedAt"; - private BigDecimal finishedAt; + @jakarta.annotation.Nullable private BigDecimal finishedAt; public static final String JSON_PROPERTY_FAILURE = "failure"; - private TransferOperationFailure failure; + @jakarta.annotation.Nullable private TransferOperationFailure failure; public TransferOperationExecution() {} - public TransferOperationExecution input(TransferOperationConfigParams input) { + @JsonCreator + public TransferOperationExecution( + @JsonProperty(value = JSON_PROPERTY_INPUT, required = true) + TransferOperationConfigParams input, + @JsonProperty(value = JSON_PROPERTY_STARTED_AT, required = true) BigDecimal startedAt) { + this.input = input; + this.startedAt = startedAt; + } + + public TransferOperationExecution input( + @jakarta.annotation.Nonnull TransferOperationConfigParams input) { this.input = input; return this; } @@ -72,11 +84,12 @@ public TransferOperationConfigParams getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInput(TransferOperationConfigParams input) { + public void setInput(@jakarta.annotation.Nonnull TransferOperationConfigParams input) { this.input = input; } - public TransferOperationExecution output(TransferOperationExecutionOutput output) { + public TransferOperationExecution output( + @jakarta.annotation.Nullable TransferOperationExecutionOutput output) { this.output = output; return this; } @@ -95,11 +108,11 @@ public TransferOperationExecutionOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(TransferOperationExecutionOutput output) { + public void setOutput(@jakarta.annotation.Nullable TransferOperationExecutionOutput output) { this.output = output; } - public TransferOperationExecution txId(String txId) { + public TransferOperationExecution txId(@jakarta.annotation.Nullable String txId) { this.txId = txId; return this; } @@ -118,11 +131,11 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nullable String txId) { this.txId = txId; } - public TransferOperationExecution startedAt(BigDecimal startedAt) { + public TransferOperationExecution startedAt(@jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; return this; } @@ -141,11 +154,12 @@ public BigDecimal getStartedAt() { @JsonProperty(JSON_PROPERTY_STARTED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStartedAt(BigDecimal startedAt) { + public void setStartedAt(@jakarta.annotation.Nonnull BigDecimal startedAt) { this.startedAt = startedAt; } - public TransferOperationExecution finishedAt(BigDecimal finishedAt) { + public TransferOperationExecution finishedAt( + @jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; return this; } @@ -164,11 +178,12 @@ public BigDecimal getFinishedAt() { @JsonProperty(JSON_PROPERTY_FINISHED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinishedAt(BigDecimal finishedAt) { + public void setFinishedAt(@jakarta.annotation.Nullable BigDecimal finishedAt) { this.finishedAt = finishedAt; } - public TransferOperationExecution failure(TransferOperationFailure failure) { + public TransferOperationExecution failure( + @jakarta.annotation.Nullable TransferOperationFailure failure) { this.failure = failure; return this; } @@ -187,7 +202,7 @@ public TransferOperationFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(TransferOperationFailure failure) { + public void setFailure(@jakarta.annotation.Nullable TransferOperationFailure failure) { this.failure = failure; } @@ -288,8 +303,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } // add `startedAt` to the URL query string @@ -299,9 +313,7 @@ public String toUrlQueryString(String prefix) { "%sstartedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStartedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStartedAt())))); } // add `finishedAt` to the URL query string @@ -311,9 +323,7 @@ public String toUrlQueryString(String prefix) { "%sfinishedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFinishedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFinishedAt())))); } // add `failure` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionOutput.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionOutput.java index a28d1a52..bca04ac7 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionOutput.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,17 +25,27 @@ TransferOperationExecutionOutput.JSON_PROPERTY_AMOUNT, TransferOperationExecutionOutput.JSON_PROPERTY_FEE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationExecutionOutput { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private AssetAmount amount; + @jakarta.annotation.Nonnull private AssetAmount amount; public static final String JSON_PROPERTY_FEE = "fee"; - private AssetAmount fee; + @jakarta.annotation.Nonnull private AssetAmount fee; public TransferOperationExecutionOutput() {} - public TransferOperationExecutionOutput amount(AssetAmount amount) { + @JsonCreator + public TransferOperationExecutionOutput( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) AssetAmount amount, + @JsonProperty(value = JSON_PROPERTY_FEE, required = true) AssetAmount fee) { + this.amount = amount; + this.fee = fee; + } + + public TransferOperationExecutionOutput amount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; return this; } @@ -53,11 +64,11 @@ public AssetAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(AssetAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; } - public TransferOperationExecutionOutput fee(AssetAmount fee) { + public TransferOperationExecutionOutput fee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; return this; } @@ -76,7 +87,7 @@ public AssetAmount getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFee(AssetAmount fee) { + public void setFee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; } diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParams.java index 4a7a7f46..772785b8 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParams.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,29 @@ TransferOperationExecutionParams.JSON_PROPERTY_CONFIG_OPERATION_ID, TransferOperationExecutionParams.JSON_PROPERTY_EXECUTION_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationExecutionParams { public static final String JSON_PROPERTY_CONFIG_OPERATION_ID = "configOperationId"; - private String configOperationId; + @jakarta.annotation.Nonnull private String configOperationId; public static final String JSON_PROPERTY_EXECUTION_PARAMS = "executionParams"; + + @jakarta.annotation.Nullable private TransferOperationExecutionParamsExecutionParams executionParams; public TransferOperationExecutionParams() {} - public TransferOperationExecutionParams configOperationId(String configOperationId) { + @JsonCreator + public TransferOperationExecutionParams( + @JsonProperty(value = JSON_PROPERTY_CONFIG_OPERATION_ID, required = true) + String configOperationId) { + this.configOperationId = configOperationId; + } + + public TransferOperationExecutionParams configOperationId( + @jakarta.annotation.Nonnull String configOperationId) { this.configOperationId = configOperationId; return this; } @@ -55,12 +67,13 @@ public String getConfigOperationId() { @JsonProperty(JSON_PROPERTY_CONFIG_OPERATION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfigOperationId(String configOperationId) { + public void setConfigOperationId(@jakarta.annotation.Nonnull String configOperationId) { this.configOperationId = configOperationId; } public TransferOperationExecutionParams executionParams( - TransferOperationExecutionParamsExecutionParams executionParams) { + @jakarta.annotation.Nullable + TransferOperationExecutionParamsExecutionParams executionParams) { this.executionParams = executionParams; return this; } @@ -80,7 +93,8 @@ public TransferOperationExecutionParamsExecutionParams getExecutionParams() { @JsonProperty(JSON_PROPERTY_EXECUTION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExecutionParams( - TransferOperationExecutionParamsExecutionParams executionParams) { + @jakarta.annotation.Nullable + TransferOperationExecutionParamsExecutionParams executionParams) { this.executionParams = executionParams; } @@ -168,10 +182,7 @@ public String toUrlQueryString(String prefix) { "%sconfigOperationId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfigOperationId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConfigOperationId())))); } // add `executionParams` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParams.java index 7b470e5a..6472e2a0 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParams.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,26 @@ TransferOperationExecutionParamsExecutionParams.JSON_PROPERTY_SOURCE, TransferOperationExecutionParamsExecutionParams.JSON_PROPERTY_DESTINATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationExecutionParamsExecutionParams { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_SOURCE = "source"; - private Account source; + @jakarta.annotation.Nullable private Account source; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private Destination destination; + @jakarta.annotation.Nullable private Destination destination; public TransferOperationExecutionParamsExecutionParams() {} - public TransferOperationExecutionParamsExecutionParams amount(String amount) { + public TransferOperationExecutionParamsExecutionParams amount( + @jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -63,11 +65,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public TransferOperationExecutionParamsExecutionParams assetId(String assetId) { + public TransferOperationExecutionParamsExecutionParams assetId( + @jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -86,11 +89,12 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public TransferOperationExecutionParamsExecutionParams source(Account source) { + public TransferOperationExecutionParamsExecutionParams source( + @jakarta.annotation.Nullable Account source) { this.source = source; return this; } @@ -109,11 +113,12 @@ public Account getSource() { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(Account source) { + public void setSource(@jakarta.annotation.Nullable Account source) { this.source = source; } - public TransferOperationExecutionParamsExecutionParams destination(Destination destination) { + public TransferOperationExecutionParamsExecutionParams destination( + @jakarta.annotation.Nullable Destination destination) { this.destination = destination; return this; } @@ -132,7 +137,7 @@ public Destination getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(Destination destination) { + public void setDestination(@jakarta.annotation.Nullable Destination destination) { this.destination = destination; } @@ -227,8 +232,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `assetId` to the URL query string @@ -238,8 +242,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `source` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationFailure.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationFailure.java index 5b710c79..88b225d1 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,15 +27,17 @@ TransferOperationFailure.JSON_PROPERTY_REASON, TransferOperationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - INVALID_AMOUNT("INVALID_AMOUNT"), + INVALID_AMOUNT(String.valueOf("INVALID_AMOUNT")), - SUBMISSION_FAILED("SUBMISSION_FAILED"), + SUBMISSION_FAILED(String.valueOf("SUBMISSION_FAILED")), - TRANSACTION_FAILED("TRANSACTION_FAILED"); + TRANSACTION_FAILED(String.valueOf("TRANSACTION_FAILED")); private String value; @@ -66,14 +67,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private TransferOperationFailureData data; + @jakarta.annotation.Nullable private TransferOperationFailureData data; public TransferOperationFailure() {} - public TransferOperationFailure reason(ReasonEnum reason) { + @JsonCreator + public TransferOperationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public TransferOperationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -92,11 +99,12 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public TransferOperationFailure data(TransferOperationFailureData data) { + public TransferOperationFailure data( + @jakarta.annotation.Nullable TransferOperationFailureData data) { this.data = data; return this; } @@ -115,7 +123,7 @@ public TransferOperationFailureData getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(TransferOperationFailureData data) { + public void setData(@jakarta.annotation.Nullable TransferOperationFailureData data) { this.data = data; } @@ -198,8 +206,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationFailureData.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationFailureData.java index 0bcbbf69..04f1109a 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationFailureData.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationFailureData.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +27,30 @@ TransferOperationFailureData.JSON_PROPERTY_TX_STATUS, TransferOperationFailureData.JSON_PROPERTY_TX_SUB_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationFailureData { public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nonnull private String txId; public static final String JSON_PROPERTY_TX_STATUS = "txStatus"; - private String txStatus; + @jakarta.annotation.Nonnull private String txStatus; public static final String JSON_PROPERTY_TX_SUB_STATUS = "txSubStatus"; - private String txSubStatus; + @jakarta.annotation.Nullable private String txSubStatus; public TransferOperationFailureData() {} - public TransferOperationFailureData txId(String txId) { + @JsonCreator + public TransferOperationFailureData( + @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId, + @JsonProperty(value = JSON_PROPERTY_TX_STATUS, required = true) String txStatus) { + this.txId = txId; + this.txStatus = txStatus; + } + + public TransferOperationFailureData txId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; return this; } @@ -59,11 +69,11 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } - public TransferOperationFailureData txStatus(String txStatus) { + public TransferOperationFailureData txStatus(@jakarta.annotation.Nonnull String txStatus) { this.txStatus = txStatus; return this; } @@ -82,11 +92,12 @@ public String getTxStatus() { @JsonProperty(JSON_PROPERTY_TX_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxStatus(String txStatus) { + public void setTxStatus(@jakarta.annotation.Nonnull String txStatus) { this.txStatus = txStatus; } - public TransferOperationFailureData txSubStatus(String txSubStatus) { + public TransferOperationFailureData txSubStatus( + @jakarta.annotation.Nullable String txSubStatus) { this.txSubStatus = txSubStatus; return this; } @@ -105,7 +116,7 @@ public String getTxSubStatus() { @JsonProperty(JSON_PROPERTY_TX_SUB_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxSubStatus(String txSubStatus) { + public void setTxSubStatus(@jakarta.annotation.Nullable String txSubStatus) { this.txSubStatus = txSubStatus; } @@ -191,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } // add `txStatus` to the URL query string @@ -202,8 +212,7 @@ public String toUrlQueryString(String prefix) { "%stxStatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxStatus())))); } // add `txSubStatus` to the URL query string @@ -213,10 +222,7 @@ public String toUrlQueryString(String prefix) { "%stxSubStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTxSubStatus()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxSubStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationPreview.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationPreview.java index 30b2ccdb..b596ce98 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationPreview.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationPreview.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; @@ -25,20 +26,30 @@ TransferOperationPreview.JSON_PROPERTY_OUTPUT, TransferOperationPreview.JSON_PROPERTY_FAILURE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationPreview { public static final String JSON_PROPERTY_INPUT = "input"; - private TransferOperationConfigParams input; + @jakarta.annotation.Nonnull private TransferOperationConfigParams input; public static final String JSON_PROPERTY_OUTPUT = "output"; - private TransferOperationPreviewOutput output; + @jakarta.annotation.Nullable private TransferOperationPreviewOutput output; public static final String JSON_PROPERTY_FAILURE = "failure"; - private TransferOperationFailure failure; + @jakarta.annotation.Nullable private TransferOperationFailure failure; public TransferOperationPreview() {} - public TransferOperationPreview input(TransferOperationConfigParams input) { + @JsonCreator + public TransferOperationPreview( + @JsonProperty(value = JSON_PROPERTY_INPUT, required = true) + TransferOperationConfigParams input) { + this.input = input; + } + + public TransferOperationPreview input( + @jakarta.annotation.Nonnull TransferOperationConfigParams input) { this.input = input; return this; } @@ -57,11 +68,12 @@ public TransferOperationConfigParams getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInput(TransferOperationConfigParams input) { + public void setInput(@jakarta.annotation.Nonnull TransferOperationConfigParams input) { this.input = input; } - public TransferOperationPreview output(TransferOperationPreviewOutput output) { + public TransferOperationPreview output( + @jakarta.annotation.Nullable TransferOperationPreviewOutput output) { this.output = output; return this; } @@ -80,11 +92,12 @@ public TransferOperationPreviewOutput getOutput() { @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutput(TransferOperationPreviewOutput output) { + public void setOutput(@jakarta.annotation.Nullable TransferOperationPreviewOutput output) { this.output = output; } - public TransferOperationPreview failure(TransferOperationFailure failure) { + public TransferOperationPreview failure( + @jakarta.annotation.Nullable TransferOperationFailure failure) { this.failure = failure; return this; } @@ -103,7 +116,7 @@ public TransferOperationFailure getFailure() { @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailure(TransferOperationFailure failure) { + public void setFailure(@jakarta.annotation.Nullable TransferOperationFailure failure) { this.failure = failure; } diff --git a/src/main/java/com/fireblocks/sdk/model/TransferOperationPreviewOutput.java b/src/main/java/com/fireblocks/sdk/model/TransferOperationPreviewOutput.java index 3dc3e37f..b092342f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferOperationPreviewOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferOperationPreviewOutput.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -29,23 +29,39 @@ TransferOperationPreviewOutput.JSON_PROPERTY_IS_SIGN_REQUIRED, TransferOperationPreviewOutput.JSON_PROPERTY_TIME_SECONDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferOperationPreviewOutput { public static final String JSON_PROPERTY_AMOUNT = "amount"; - private AssetAmount amount; + @jakarta.annotation.Nonnull private AssetAmount amount; public static final String JSON_PROPERTY_FEE = "fee"; - private AssetAmount fee; + @jakarta.annotation.Nonnull private AssetAmount fee; public static final String JSON_PROPERTY_IS_SIGN_REQUIRED = "isSignRequired"; - private Boolean isSignRequired; + @jakarta.annotation.Nonnull private Boolean isSignRequired; public static final String JSON_PROPERTY_TIME_SECONDS = "timeSeconds"; - private BigDecimal timeSeconds; + @jakarta.annotation.Nonnull private BigDecimal timeSeconds; public TransferOperationPreviewOutput() {} - public TransferOperationPreviewOutput amount(AssetAmount amount) { + @JsonCreator + public TransferOperationPreviewOutput( + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) AssetAmount amount, + @JsonProperty(value = JSON_PROPERTY_FEE, required = true) AssetAmount fee, + @JsonProperty(value = JSON_PROPERTY_IS_SIGN_REQUIRED, required = true) + Boolean isSignRequired, + @JsonProperty(value = JSON_PROPERTY_TIME_SECONDS, required = true) + BigDecimal timeSeconds) { + this.amount = amount; + this.fee = fee; + this.isSignRequired = isSignRequired; + this.timeSeconds = timeSeconds; + } + + public TransferOperationPreviewOutput amount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; return this; } @@ -64,11 +80,11 @@ public AssetAmount getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(AssetAmount amount) { + public void setAmount(@jakarta.annotation.Nonnull AssetAmount amount) { this.amount = amount; } - public TransferOperationPreviewOutput fee(AssetAmount fee) { + public TransferOperationPreviewOutput fee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; return this; } @@ -87,11 +103,12 @@ public AssetAmount getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFee(AssetAmount fee) { + public void setFee(@jakarta.annotation.Nonnull AssetAmount fee) { this.fee = fee; } - public TransferOperationPreviewOutput isSignRequired(Boolean isSignRequired) { + public TransferOperationPreviewOutput isSignRequired( + @jakarta.annotation.Nonnull Boolean isSignRequired) { this.isSignRequired = isSignRequired; return this; } @@ -110,11 +127,12 @@ public Boolean getIsSignRequired() { @JsonProperty(JSON_PROPERTY_IS_SIGN_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsSignRequired(Boolean isSignRequired) { + public void setIsSignRequired(@jakarta.annotation.Nonnull Boolean isSignRequired) { this.isSignRequired = isSignRequired; } - public TransferOperationPreviewOutput timeSeconds(BigDecimal timeSeconds) { + public TransferOperationPreviewOutput timeSeconds( + @jakarta.annotation.Nonnull BigDecimal timeSeconds) { this.timeSeconds = timeSeconds; return this; } @@ -133,7 +151,7 @@ public BigDecimal getTimeSeconds() { @JsonProperty(JSON_PROPERTY_TIME_SECONDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimeSeconds(BigDecimal timeSeconds) { + public void setTimeSeconds(@jakarta.annotation.Nonnull BigDecimal timeSeconds) { this.timeSeconds = timeSeconds; } @@ -232,10 +250,7 @@ public String toUrlQueryString(String prefix) { "%sisSignRequired%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsSignRequired()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsSignRequired())))); } // add `timeSeconds` to the URL query string @@ -245,10 +260,7 @@ public String toUrlQueryString(String prefix) { "%stimeSeconds%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTimeSeconds()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTimeSeconds())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java index a16db69d..f1d1f8a0 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -30,35 +29,40 @@ TransferValidationFailure.JSON_PROPERTY_REASON, TransferValidationFailure.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TransferValidationFailure { /** Gets or Sets reason */ public enum ReasonEnum { - ACCOUNT_NOT_FOUND("ACCOUNT_NOT_FOUND"), + ACCOUNT_NOT_FOUND(String.valueOf("ACCOUNT_NOT_FOUND")), - ACCOUNT_TYPE_NOT_SUPPORTED("ACCOUNT_TYPE_NOT_SUPPORTED"), + ACCOUNT_TYPE_NOT_SUPPORTED(String.valueOf("ACCOUNT_TYPE_NOT_SUPPORTED")), - INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"), + INSUFFICIENT_BALANCE(String.valueOf("INSUFFICIENT_BALANCE")), - ASSET_NOT_FOUND("ASSET_NOT_FOUND"), + ASSET_NOT_FOUND(String.valueOf("ASSET_NOT_FOUND")), - ASSETS_CONTINUITY_MISMATCH("ASSETS_CONTINUITY_MISMATCH"), + ASSETS_CONTINUITY_MISMATCH(String.valueOf("ASSETS_CONTINUITY_MISMATCH")), - EXCHANGE_BASKETS_MISMATCH("EXCHANGE_BASKETS_MISMATCH"), + EXCHANGE_BASKETS_MISMATCH(String.valueOf("EXCHANGE_BASKETS_MISMATCH")), - ACCOUNTS_CONTINUITY_MISMATCH("ACCOUNTS_CONTINUITY_MISMATCH"), + ACCOUNTS_CONTINUITY_MISMATCH(String.valueOf("ACCOUNTS_CONTINUITY_MISMATCH")), - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED("ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED"), + ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED( + String.valueOf("ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED")), - EQUAL_ACCOUNTS_NOT_ALLOWED("EQUAL_ACCOUNTS_NOT_ALLOWED"), + EQUAL_ACCOUNTS_NOT_ALLOWED(String.valueOf("EQUAL_ACCOUNTS_NOT_ALLOWED")), - EQUAL_ASSETS_NOT_ALLOWED("EQUAL_ASSETS_NOT_ALLOWED"), + EQUAL_ASSETS_NOT_ALLOWED(String.valueOf("EQUAL_ASSETS_NOT_ALLOWED")), - INVALID_AMOUNT("INVALID_AMOUNT"), + INVALID_AMOUNT(String.valueOf("INVALID_AMOUNT")), - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED("UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED"), + UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED( + String.valueOf("UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED")), - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA("MANAGED_OPERATION_PARAMS_INVALID_SCHEMA"); + MANAGED_OPERATION_PARAMS_INVALID_SCHEMA( + String.valueOf("MANAGED_OPERATION_PARAMS_INVALID_SCHEMA")); private String value; @@ -88,14 +92,20 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason; + @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data = new HashMap<>(); public TransferValidationFailure() {} - public TransferValidationFailure reason(ReasonEnum reason) { + @JsonCreator + public TransferValidationFailure( + @JsonProperty(value = JSON_PROPERTY_REASON, required = true) ReasonEnum reason) { + this.reason = reason; + } + + public TransferValidationFailure reason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; return this; } @@ -114,11 +124,11 @@ public ReasonEnum getReason() { @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReason(ReasonEnum reason) { + public void setReason(@jakarta.annotation.Nonnull ReasonEnum reason) { this.reason = reason; } - public TransferValidationFailure data(Map data) { + public TransferValidationFailure data(@jakarta.annotation.Nullable Map data) { this.data = data; return this; } @@ -145,7 +155,7 @@ public Map getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(@jakarta.annotation.Nullable Map data) { this.data = data; } @@ -228,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sreason%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getReason())))); } // add `data` to the URL query string @@ -245,10 +254,7 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, _key, containerSuffix), getData().get(_key), - URLEncoder.encode( - String.valueOf(getData().get(_key)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData().get(_key))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java index df91f0bf..a19280aa 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,25 @@ TravelRuleAddress.JSON_PROPERTY_STATE, TravelRuleAddress.JSON_PROPERTY_POSTAL_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleAddress { public static final String JSON_PROPERTY_STREET = "street"; - private String street; + @jakarta.annotation.Nullable private String street; public static final String JSON_PROPERTY_CITY = "city"; - private String city; + @jakarta.annotation.Nullable private String city; public static final String JSON_PROPERTY_STATE = "state"; - private String state; + @jakarta.annotation.Nullable private String state; public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; - private String postalCode; + @jakarta.annotation.Nullable private String postalCode; public TravelRuleAddress() {} - public TravelRuleAddress street(String street) { + public TravelRuleAddress street(@jakarta.annotation.Nullable String street) { this.street = street; return this; } @@ -63,11 +64,11 @@ public String getStreet() { @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreet(String street) { + public void setStreet(@jakarta.annotation.Nullable String street) { this.street = street; } - public TravelRuleAddress city(String city) { + public TravelRuleAddress city(@jakarta.annotation.Nullable String city) { this.city = city; return this; } @@ -86,11 +87,11 @@ public String getCity() { @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCity(String city) { + public void setCity(@jakarta.annotation.Nullable String city) { this.city = city; } - public TravelRuleAddress state(String state) { + public TravelRuleAddress state(@jakarta.annotation.Nullable String state) { this.state = state; return this; } @@ -109,11 +110,11 @@ public String getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(String state) { + public void setState(@jakarta.annotation.Nullable String state) { this.state = state; } - public TravelRuleAddress postalCode(String postalCode) { + public TravelRuleAddress postalCode(@jakarta.annotation.Nullable String postalCode) { this.postalCode = postalCode; return this; } @@ -132,7 +133,7 @@ public String getPostalCode() { @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostalCode(String postalCode) { + public void setPostalCode(@jakarta.annotation.Nullable String postalCode) { this.postalCode = postalCode; } @@ -219,8 +220,7 @@ public String toUrlQueryString(String prefix) { "%sstreet%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStreet()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStreet())))); } // add `city` to the URL query string @@ -230,8 +230,7 @@ public String toUrlQueryString(String prefix) { "%scity%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCity()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCity())))); } // add `state` to the URL query string @@ -241,8 +240,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } // add `postalCode` to the URL query string @@ -252,9 +250,7 @@ public String toUrlQueryString(String prefix) { "%spostalCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPostalCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPostalCode())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java index 65786d23..bb980a22 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -47,47 +46,51 @@ TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR_DID, TravelRuleCreateTransactionRequest.JSON_PROPERTY_IS_NON_CUSTODIAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleCreateTransactionRequest { public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PDID = "originatorVASPdid"; - private String originatorVASPdid; + @jakarta.annotation.Nullable private String originatorVASPdid; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; - private String beneficiaryVASPdid; + @jakarta.annotation.Nullable private String beneficiaryVASPdid; public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME = "originatorVASPname"; - private String originatorVASPname; + @jakarta.annotation.Nullable private String originatorVASPname; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME = "beneficiaryVASPname"; - private String beneficiaryVASPname; + @jakarta.annotation.Nullable private String beneficiaryVASPname; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PWEBSITE = "beneficiaryVASPwebsite"; - private String beneficiaryVASPwebsite; + @jakarta.annotation.Nullable private String beneficiaryVASPwebsite; public static final String JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO = "transactionBlockchainInfo"; + + @jakarta.annotation.Nullable private TravelRuleTransactionBlockchainInfo transactionBlockchainInfo; public static final String JSON_PROPERTY_ORIGINATOR = "originator"; - private TravelRulePiiIVMS originator; + @jakarta.annotation.Nonnull private TravelRulePiiIVMS originator; public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary"; - private TravelRulePiiIVMS beneficiary; + @jakarta.annotation.Nonnull private TravelRulePiiIVMS beneficiary; public static final String JSON_PROPERTY_ENCRYPTED = "encrypted"; - private String encrypted; + @jakarta.annotation.Nullable private String encrypted; /** The protocol used to perform the travel rule. */ public enum ProtocolEnum { - IVMS101("IVMS101"), + IVMS101(String.valueOf("IVMS101")), - TRLIGHT("TRLight"), + TR_LIGHT(String.valueOf("TRLight")), - TRP("TRP"), + TRP(String.valueOf("TRP")), - OPENVASP("OpenVASP"), + OPEN_VASP(String.valueOf("OpenVASP")), - GTR("GTR"); + GTR(String.valueOf("GTR")); private String value; @@ -117,45 +120,56 @@ public static ProtocolEnum fromValue(String value) { } public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private ProtocolEnum protocol; + @jakarta.annotation.Nullable private ProtocolEnum protocol; public static final String JSON_PROPERTY_TARGET_PROTOCOL = "targetProtocol"; - private String targetProtocol; + @jakarta.annotation.Nullable private String targetProtocol; public static final String JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION = "skipBeneficiaryDataValidation"; - private Boolean skipBeneficiaryDataValidation; + @jakarta.annotation.Nullable private Boolean skipBeneficiaryDataValidation; public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR = "travelRuleBehavior"; - private Boolean travelRuleBehavior; + @jakarta.annotation.Nullable private Boolean travelRuleBehavior; public static final String JSON_PROPERTY_ORIGINATOR_REF = "originatorRef"; - private String originatorRef; + @jakarta.annotation.Nullable private String originatorRef; public static final String JSON_PROPERTY_BENEFICIARY_REF = "beneficiaryRef"; - private String beneficiaryRef; + @jakarta.annotation.Nullable private String beneficiaryRef; public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF = "travelRuleBehaviorRef"; - private String travelRuleBehaviorRef; + @jakarta.annotation.Nullable private String travelRuleBehaviorRef; public static final String JSON_PROPERTY_ORIGINATOR_PROOF = "originatorProof"; - private TravelRuleOwnershipProof originatorProof; + @jakarta.annotation.Nullable private TravelRuleOwnershipProof originatorProof; public static final String JSON_PROPERTY_BENEFICIARY_PROOF = "beneficiaryProof"; - private TravelRuleOwnershipProof beneficiaryProof; + @jakarta.annotation.Nullable private TravelRuleOwnershipProof beneficiaryProof; public static final String JSON_PROPERTY_BENEFICIARY_DID = "beneficiaryDid"; - private String beneficiaryDid; + @jakarta.annotation.Nullable private String beneficiaryDid; public static final String JSON_PROPERTY_ORIGINATOR_DID = "originatorDid"; - private String originatorDid; + @jakarta.annotation.Nullable private String originatorDid; public static final String JSON_PROPERTY_IS_NON_CUSTODIAL = "isNonCustodial"; - private Boolean isNonCustodial; + @jakarta.annotation.Nullable private Boolean isNonCustodial; public TravelRuleCreateTransactionRequest() {} - public TravelRuleCreateTransactionRequest originatorVASPdid(String originatorVASPdid) { + @JsonCreator + public TravelRuleCreateTransactionRequest( + @JsonProperty(value = JSON_PROPERTY_ORIGINATOR, required = true) + TravelRulePiiIVMS originator, + @JsonProperty(value = JSON_PROPERTY_BENEFICIARY, required = true) + TravelRulePiiIVMS beneficiary) { + this.originator = originator; + this.beneficiary = beneficiary; + } + + public TravelRuleCreateTransactionRequest originatorVASPdid( + @jakarta.annotation.Nullable String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; return this; } @@ -176,11 +190,12 @@ public String getOriginatorVASPdid() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPdid(String originatorVASPdid) { + public void setOriginatorVASPdid(@jakarta.annotation.Nullable String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; } - public TravelRuleCreateTransactionRequest beneficiaryVASPdid(String beneficiaryVASPdid) { + public TravelRuleCreateTransactionRequest beneficiaryVASPdid( + @jakarta.annotation.Nullable String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; return this; } @@ -201,11 +216,12 @@ public String getBeneficiaryVASPdid() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPdid(String beneficiaryVASPdid) { + public void setBeneficiaryVASPdid(@jakarta.annotation.Nullable String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; } - public TravelRuleCreateTransactionRequest originatorVASPname(String originatorVASPname) { + public TravelRuleCreateTransactionRequest originatorVASPname( + @jakarta.annotation.Nullable String originatorVASPname) { this.originatorVASPname = originatorVASPname; return this; } @@ -224,11 +240,12 @@ public String getOriginatorVASPname() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPname(String originatorVASPname) { + public void setOriginatorVASPname(@jakarta.annotation.Nullable String originatorVASPname) { this.originatorVASPname = originatorVASPname; } - public TravelRuleCreateTransactionRequest beneficiaryVASPname(String beneficiaryVASPname) { + public TravelRuleCreateTransactionRequest beneficiaryVASPname( + @jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; return this; } @@ -247,12 +264,12 @@ public String getBeneficiaryVASPname() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPname(String beneficiaryVASPname) { + public void setBeneficiaryVASPname(@jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; } public TravelRuleCreateTransactionRequest beneficiaryVASPwebsite( - String beneficiaryVASPwebsite) { + @jakarta.annotation.Nullable String beneficiaryVASPwebsite) { this.beneficiaryVASPwebsite = beneficiaryVASPwebsite; return this; } @@ -271,12 +288,14 @@ public String getBeneficiaryVASPwebsite() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PWEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPwebsite(String beneficiaryVASPwebsite) { + public void setBeneficiaryVASPwebsite( + @jakarta.annotation.Nullable String beneficiaryVASPwebsite) { this.beneficiaryVASPwebsite = beneficiaryVASPwebsite; } public TravelRuleCreateTransactionRequest transactionBlockchainInfo( - TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { + @jakarta.annotation.Nullable + TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { this.transactionBlockchainInfo = transactionBlockchainInfo; return this; } @@ -296,11 +315,13 @@ public TravelRuleTransactionBlockchainInfo getTransactionBlockchainInfo() { @JsonProperty(JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTransactionBlockchainInfo( - TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { + @jakarta.annotation.Nullable + TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { this.transactionBlockchainInfo = transactionBlockchainInfo; } - public TravelRuleCreateTransactionRequest originator(TravelRulePiiIVMS originator) { + public TravelRuleCreateTransactionRequest originator( + @jakarta.annotation.Nonnull TravelRulePiiIVMS originator) { this.originator = originator; return this; } @@ -319,11 +340,12 @@ public TravelRulePiiIVMS getOriginator() { @JsonProperty(JSON_PROPERTY_ORIGINATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOriginator(TravelRulePiiIVMS originator) { + public void setOriginator(@jakarta.annotation.Nonnull TravelRulePiiIVMS originator) { this.originator = originator; } - public TravelRuleCreateTransactionRequest beneficiary(TravelRulePiiIVMS beneficiary) { + public TravelRuleCreateTransactionRequest beneficiary( + @jakarta.annotation.Nonnull TravelRulePiiIVMS beneficiary) { this.beneficiary = beneficiary; return this; } @@ -342,11 +364,12 @@ public TravelRulePiiIVMS getBeneficiary() { @JsonProperty(JSON_PROPERTY_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBeneficiary(TravelRulePiiIVMS beneficiary) { + public void setBeneficiary(@jakarta.annotation.Nonnull TravelRulePiiIVMS beneficiary) { this.beneficiary = beneficiary; } - public TravelRuleCreateTransactionRequest encrypted(String encrypted) { + public TravelRuleCreateTransactionRequest encrypted( + @jakarta.annotation.Nullable String encrypted) { this.encrypted = encrypted; return this; } @@ -365,11 +388,12 @@ public String getEncrypted() { @JsonProperty(JSON_PROPERTY_ENCRYPTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEncrypted(String encrypted) { + public void setEncrypted(@jakarta.annotation.Nullable String encrypted) { this.encrypted = encrypted; } - public TravelRuleCreateTransactionRequest protocol(ProtocolEnum protocol) { + public TravelRuleCreateTransactionRequest protocol( + @jakarta.annotation.Nullable ProtocolEnum protocol) { this.protocol = protocol; return this; } @@ -388,11 +412,12 @@ public ProtocolEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProtocol(ProtocolEnum protocol) { + public void setProtocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { this.protocol = protocol; } - public TravelRuleCreateTransactionRequest targetProtocol(String targetProtocol) { + public TravelRuleCreateTransactionRequest targetProtocol( + @jakarta.annotation.Nullable String targetProtocol) { this.targetProtocol = targetProtocol; return this; } @@ -411,12 +436,12 @@ public String getTargetProtocol() { @JsonProperty(JSON_PROPERTY_TARGET_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTargetProtocol(String targetProtocol) { + public void setTargetProtocol(@jakarta.annotation.Nullable String targetProtocol) { this.targetProtocol = targetProtocol; } public TravelRuleCreateTransactionRequest skipBeneficiaryDataValidation( - Boolean skipBeneficiaryDataValidation) { + @jakarta.annotation.Nullable Boolean skipBeneficiaryDataValidation) { this.skipBeneficiaryDataValidation = skipBeneficiaryDataValidation; return this; } @@ -435,11 +460,13 @@ public Boolean getSkipBeneficiaryDataValidation() { @JsonProperty(JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSkipBeneficiaryDataValidation(Boolean skipBeneficiaryDataValidation) { + public void setSkipBeneficiaryDataValidation( + @jakarta.annotation.Nullable Boolean skipBeneficiaryDataValidation) { this.skipBeneficiaryDataValidation = skipBeneficiaryDataValidation; } - public TravelRuleCreateTransactionRequest travelRuleBehavior(Boolean travelRuleBehavior) { + public TravelRuleCreateTransactionRequest travelRuleBehavior( + @jakarta.annotation.Nullable Boolean travelRuleBehavior) { this.travelRuleBehavior = travelRuleBehavior; return this; } @@ -459,11 +486,12 @@ public Boolean getTravelRuleBehavior() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehavior(Boolean travelRuleBehavior) { + public void setTravelRuleBehavior(@jakarta.annotation.Nullable Boolean travelRuleBehavior) { this.travelRuleBehavior = travelRuleBehavior; } - public TravelRuleCreateTransactionRequest originatorRef(String originatorRef) { + public TravelRuleCreateTransactionRequest originatorRef( + @jakarta.annotation.Nullable String originatorRef) { this.originatorRef = originatorRef; return this; } @@ -482,11 +510,12 @@ public String getOriginatorRef() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorRef(String originatorRef) { + public void setOriginatorRef(@jakarta.annotation.Nullable String originatorRef) { this.originatorRef = originatorRef; } - public TravelRuleCreateTransactionRequest beneficiaryRef(String beneficiaryRef) { + public TravelRuleCreateTransactionRequest beneficiaryRef( + @jakarta.annotation.Nullable String beneficiaryRef) { this.beneficiaryRef = beneficiaryRef; return this; } @@ -505,11 +534,12 @@ public String getBeneficiaryRef() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryRef(String beneficiaryRef) { + public void setBeneficiaryRef(@jakarta.annotation.Nullable String beneficiaryRef) { this.beneficiaryRef = beneficiaryRef; } - public TravelRuleCreateTransactionRequest travelRuleBehaviorRef(String travelRuleBehaviorRef) { + public TravelRuleCreateTransactionRequest travelRuleBehaviorRef( + @jakarta.annotation.Nullable String travelRuleBehaviorRef) { this.travelRuleBehaviorRef = travelRuleBehaviorRef; return this; } @@ -528,12 +558,13 @@ public String getTravelRuleBehaviorRef() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehaviorRef(String travelRuleBehaviorRef) { + public void setTravelRuleBehaviorRef( + @jakarta.annotation.Nullable String travelRuleBehaviorRef) { this.travelRuleBehaviorRef = travelRuleBehaviorRef; } public TravelRuleCreateTransactionRequest originatorProof( - TravelRuleOwnershipProof originatorProof) { + @jakarta.annotation.Nullable TravelRuleOwnershipProof originatorProof) { this.originatorProof = originatorProof; return this; } @@ -552,12 +583,13 @@ public TravelRuleOwnershipProof getOriginatorProof() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_PROOF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorProof(TravelRuleOwnershipProof originatorProof) { + public void setOriginatorProof( + @jakarta.annotation.Nullable TravelRuleOwnershipProof originatorProof) { this.originatorProof = originatorProof; } public TravelRuleCreateTransactionRequest beneficiaryProof( - TravelRuleOwnershipProof beneficiaryProof) { + @jakarta.annotation.Nullable TravelRuleOwnershipProof beneficiaryProof) { this.beneficiaryProof = beneficiaryProof; return this; } @@ -576,11 +608,13 @@ public TravelRuleOwnershipProof getBeneficiaryProof() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_PROOF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryProof(TravelRuleOwnershipProof beneficiaryProof) { + public void setBeneficiaryProof( + @jakarta.annotation.Nullable TravelRuleOwnershipProof beneficiaryProof) { this.beneficiaryProof = beneficiaryProof; } - public TravelRuleCreateTransactionRequest beneficiaryDid(String beneficiaryDid) { + public TravelRuleCreateTransactionRequest beneficiaryDid( + @jakarta.annotation.Nullable String beneficiaryDid) { this.beneficiaryDid = beneficiaryDid; return this; } @@ -603,11 +637,12 @@ public String getBeneficiaryDid() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryDid(String beneficiaryDid) { + public void setBeneficiaryDid(@jakarta.annotation.Nullable String beneficiaryDid) { this.beneficiaryDid = beneficiaryDid; } - public TravelRuleCreateTransactionRequest originatorDid(String originatorDid) { + public TravelRuleCreateTransactionRequest originatorDid( + @jakarta.annotation.Nullable String originatorDid) { this.originatorDid = originatorDid; return this; } @@ -630,11 +665,12 @@ public String getOriginatorDid() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorDid(String originatorDid) { + public void setOriginatorDid(@jakarta.annotation.Nullable String originatorDid) { this.originatorDid = originatorDid; } - public TravelRuleCreateTransactionRequest isNonCustodial(Boolean isNonCustodial) { + public TravelRuleCreateTransactionRequest isNonCustodial( + @jakarta.annotation.Nullable Boolean isNonCustodial) { this.isNonCustodial = isNonCustodial; return this; } @@ -653,7 +689,7 @@ public Boolean getIsNonCustodial() { @JsonProperty(JSON_PROPERTY_IS_NON_CUSTODIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsNonCustodial(Boolean isNonCustodial) { + public void setIsNonCustodial(@jakarta.annotation.Nullable Boolean isNonCustodial) { this.isNonCustodial = isNonCustodial; } @@ -840,10 +876,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPdid())))); } // add `beneficiaryVASPdid` to the URL query string @@ -853,10 +886,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); } // add `originatorVASPname` to the URL query string @@ -866,10 +896,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorVASPname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorVASPname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPname())))); } // add `beneficiaryVASPname` to the URL query string @@ -879,10 +906,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryVASPname())))); } // add `beneficiaryVASPwebsite` to the URL query string @@ -892,10 +917,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPwebsite%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPwebsite()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryVASPwebsite())))); } // add `transactionBlockchainInfo` to the URL query string @@ -922,9 +945,7 @@ public String toUrlQueryString(String prefix) { "%sencrypted%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEncrypted()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEncrypted())))); } // add `protocol` to the URL query string @@ -934,8 +955,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } // add `targetProtocol` to the URL query string @@ -945,10 +965,7 @@ public String toUrlQueryString(String prefix) { "%stargetProtocol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTargetProtocol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTargetProtocol())))); } // add `skipBeneficiaryDataValidation` to the URL query string @@ -958,10 +975,8 @@ public String toUrlQueryString(String prefix) { "%sskipBeneficiaryDataValidation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSkipBeneficiaryDataValidation()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSkipBeneficiaryDataValidation())))); } // add `travelRuleBehavior` to the URL query string @@ -971,10 +986,7 @@ public String toUrlQueryString(String prefix) { "%stravelRuleBehavior%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleBehavior()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleBehavior())))); } // add `originatorRef` to the URL query string @@ -984,10 +996,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorRef%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorRef()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorRef())))); } // add `beneficiaryRef` to the URL query string @@ -997,10 +1006,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryRef%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryRef()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryRef())))); } // add `travelRuleBehaviorRef` to the URL query string @@ -1010,10 +1016,8 @@ public String toUrlQueryString(String prefix) { "%stravelRuleBehaviorRef%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleBehaviorRef()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTravelRuleBehaviorRef())))); } // add `originatorProof` to the URL query string @@ -1034,10 +1038,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryDid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryDid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryDid())))); } // add `originatorDid` to the URL query string @@ -1047,10 +1048,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorDid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorDid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorDid())))); } // add `isNonCustodial` to the URL query string @@ -1060,10 +1058,7 @@ public String toUrlQueryString(String prefix) { "%sisNonCustodial%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsNonCustodial()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsNonCustodial())))); } 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 index 6e9b18d4..f29da696 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ TravelRuleDateAndPlaceOfBirth.JSON_PROPERTY_DATE_OF_BIRTH, TravelRuleDateAndPlaceOfBirth.JSON_PROPERTY_PLACE_OF_BIRTH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String dateOfBirth; + @jakarta.annotation.Nullable private String dateOfBirth; public static final String JSON_PROPERTY_PLACE_OF_BIRTH = "placeOfBirth"; - private String placeOfBirth; + @jakarta.annotation.Nullable private String placeOfBirth; public TravelRuleDateAndPlaceOfBirth() {} - public TravelRuleDateAndPlaceOfBirth dateOfBirth(String dateOfBirth) { + public TravelRuleDateAndPlaceOfBirth dateOfBirth( + @jakarta.annotation.Nullable String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } @@ -55,11 +57,12 @@ public String getDateOfBirth() { @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateOfBirth(String dateOfBirth) { + public void setDateOfBirth(@jakarta.annotation.Nullable String dateOfBirth) { this.dateOfBirth = dateOfBirth; } - public TravelRuleDateAndPlaceOfBirth placeOfBirth(String placeOfBirth) { + public TravelRuleDateAndPlaceOfBirth placeOfBirth( + @jakarta.annotation.Nullable String placeOfBirth) { this.placeOfBirth = placeOfBirth; return this; } @@ -78,7 +81,7 @@ public String getPlaceOfBirth() { @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlaceOfBirth(String placeOfBirth) { + public void setPlaceOfBirth(@jakarta.annotation.Nullable String placeOfBirth) { this.placeOfBirth = placeOfBirth; } @@ -162,10 +165,7 @@ public String toUrlQueryString(String prefix) { "%sdateOfBirth%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDateOfBirth()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDateOfBirth())))); } // add `placeOfBirth` to the URL query string @@ -175,10 +175,7 @@ public String toUrlQueryString(String prefix) { "%splaceOfBirth%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPlaceOfBirth()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index bf67b65e..2d4b62eb 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -42,59 +41,61 @@ TravelRuleGeographicAddress.JSON_PROPERTY_COUNTRY_SUB_DIVISION, TravelRuleGeographicAddress.JSON_PROPERTY_ADDRESS_LINE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String streetName; + @jakarta.annotation.Nullable private String streetName; public static final String JSON_PROPERTY_TOWN_NAME = "townName"; - private String townName; + @jakarta.annotation.Nullable private String townName; public static final String JSON_PROPERTY_COUNTRY = "country"; - private String country; + @jakarta.annotation.Nullable private String country; public static final String JSON_PROPERTY_BUILDING_NUMBER = "buildingNumber"; - private String buildingNumber; + @jakarta.annotation.Nullable private String buildingNumber; public static final String JSON_PROPERTY_POST_CODE = "postCode"; - private String postCode; + @jakarta.annotation.Nullable private String postCode; public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - private String addressType; + @jakarta.annotation.Nullable private String addressType; public static final String JSON_PROPERTY_DEPARTMENT = "department"; - private String department; + @jakarta.annotation.Nullable private String department; public static final String JSON_PROPERTY_SUB_DEPARTMENT = "subDepartment"; - private String subDepartment; + @jakarta.annotation.Nullable private String subDepartment; public static final String JSON_PROPERTY_BUILDING_NAME = "buildingName"; - private String buildingName; + @jakarta.annotation.Nullable private String buildingName; public static final String JSON_PROPERTY_FLOOR = "floor"; - private String floor; + @jakarta.annotation.Nullable private String floor; public static final String JSON_PROPERTY_POST_BOX = "postBox"; - private String postBox; + @jakarta.annotation.Nullable private String postBox; public static final String JSON_PROPERTY_ROOM = "room"; - private String room; + @jakarta.annotation.Nullable private String room; public static final String JSON_PROPERTY_TOWN_LOCATION_NAME = "townLocationName"; - private String townLocationName; + @jakarta.annotation.Nullable private String townLocationName; public static final String JSON_PROPERTY_DISTRICT_NAME = "districtName"; - private String districtName; + @jakarta.annotation.Nullable private String districtName; public static final String JSON_PROPERTY_COUNTRY_SUB_DIVISION = "countrySubDivision"; - private String countrySubDivision; + @jakarta.annotation.Nullable private String countrySubDivision; public static final String JSON_PROPERTY_ADDRESS_LINE = "addressLine"; - private List addressLine; + @jakarta.annotation.Nullable private List addressLine = new ArrayList<>(); public TravelRuleGeographicAddress() {} - public TravelRuleGeographicAddress streetName(String streetName) { + public TravelRuleGeographicAddress streetName(@jakarta.annotation.Nullable String streetName) { this.streetName = streetName; return this; } @@ -113,11 +114,11 @@ public String getStreetName() { @JsonProperty(JSON_PROPERTY_STREET_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreetName(String streetName) { + public void setStreetName(@jakarta.annotation.Nullable String streetName) { this.streetName = streetName; } - public TravelRuleGeographicAddress townName(String townName) { + public TravelRuleGeographicAddress townName(@jakarta.annotation.Nullable String townName) { this.townName = townName; return this; } @@ -137,11 +138,11 @@ public String getTownName() { @JsonProperty(JSON_PROPERTY_TOWN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownName(String townName) { + public void setTownName(@jakarta.annotation.Nullable String townName) { this.townName = townName; } - public TravelRuleGeographicAddress country(String country) { + public TravelRuleGeographicAddress country(@jakarta.annotation.Nullable String country) { this.country = country; return this; } @@ -160,11 +161,12 @@ public String getCountry() { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(String country) { + public void setCountry(@jakarta.annotation.Nullable String country) { this.country = country; } - public TravelRuleGeographicAddress buildingNumber(String buildingNumber) { + public TravelRuleGeographicAddress buildingNumber( + @jakarta.annotation.Nullable String buildingNumber) { this.buildingNumber = buildingNumber; return this; } @@ -183,11 +185,11 @@ public String getBuildingNumber() { @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingNumber(String buildingNumber) { + public void setBuildingNumber(@jakarta.annotation.Nullable String buildingNumber) { this.buildingNumber = buildingNumber; } - public TravelRuleGeographicAddress postCode(String postCode) { + public TravelRuleGeographicAddress postCode(@jakarta.annotation.Nullable String postCode) { this.postCode = postCode; return this; } @@ -207,11 +209,12 @@ public String getPostCode() { @JsonProperty(JSON_PROPERTY_POST_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostCode(String postCode) { + public void setPostCode(@jakarta.annotation.Nullable String postCode) { this.postCode = postCode; } - public TravelRuleGeographicAddress addressType(String addressType) { + public TravelRuleGeographicAddress addressType( + @jakarta.annotation.Nullable String addressType) { this.addressType = addressType; return this; } @@ -232,11 +235,11 @@ public String getAddressType() { @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressType(String addressType) { + public void setAddressType(@jakarta.annotation.Nullable String addressType) { this.addressType = addressType; } - public TravelRuleGeographicAddress department(String department) { + public TravelRuleGeographicAddress department(@jakarta.annotation.Nullable String department) { this.department = department; return this; } @@ -256,11 +259,12 @@ public String getDepartment() { @JsonProperty(JSON_PROPERTY_DEPARTMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepartment(String department) { + public void setDepartment(@jakarta.annotation.Nullable String department) { this.department = department; } - public TravelRuleGeographicAddress subDepartment(String subDepartment) { + public TravelRuleGeographicAddress subDepartment( + @jakarta.annotation.Nullable String subDepartment) { this.subDepartment = subDepartment; return this; } @@ -280,11 +284,12 @@ public String getSubDepartment() { @JsonProperty(JSON_PROPERTY_SUB_DEPARTMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubDepartment(String subDepartment) { + public void setSubDepartment(@jakarta.annotation.Nullable String subDepartment) { this.subDepartment = subDepartment; } - public TravelRuleGeographicAddress buildingName(String buildingName) { + public TravelRuleGeographicAddress buildingName( + @jakarta.annotation.Nullable String buildingName) { this.buildingName = buildingName; return this; } @@ -303,11 +308,11 @@ public String getBuildingName() { @JsonProperty(JSON_PROPERTY_BUILDING_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingName(String buildingName) { + public void setBuildingName(@jakarta.annotation.Nullable String buildingName) { this.buildingName = buildingName; } - public TravelRuleGeographicAddress floor(String floor) { + public TravelRuleGeographicAddress floor(@jakarta.annotation.Nullable String floor) { this.floor = floor; return this; } @@ -326,11 +331,11 @@ public String getFloor() { @JsonProperty(JSON_PROPERTY_FLOOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloor(String floor) { + public void setFloor(@jakarta.annotation.Nullable String floor) { this.floor = floor; } - public TravelRuleGeographicAddress postBox(String postBox) { + public TravelRuleGeographicAddress postBox(@jakarta.annotation.Nullable String postBox) { this.postBox = postBox; return this; } @@ -349,11 +354,11 @@ public String getPostBox() { @JsonProperty(JSON_PROPERTY_POST_BOX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostBox(String postBox) { + public void setPostBox(@jakarta.annotation.Nullable String postBox) { this.postBox = postBox; } - public TravelRuleGeographicAddress room(String room) { + public TravelRuleGeographicAddress room(@jakarta.annotation.Nullable String room) { this.room = room; return this; } @@ -372,11 +377,12 @@ public String getRoom() { @JsonProperty(JSON_PROPERTY_ROOM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoom(String room) { + public void setRoom(@jakarta.annotation.Nullable String room) { this.room = room; } - public TravelRuleGeographicAddress townLocationName(String townLocationName) { + public TravelRuleGeographicAddress townLocationName( + @jakarta.annotation.Nullable String townLocationName) { this.townLocationName = townLocationName; return this; } @@ -395,11 +401,12 @@ public String getTownLocationName() { @JsonProperty(JSON_PROPERTY_TOWN_LOCATION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownLocationName(String townLocationName) { + public void setTownLocationName(@jakarta.annotation.Nullable String townLocationName) { this.townLocationName = townLocationName; } - public TravelRuleGeographicAddress districtName(String districtName) { + public TravelRuleGeographicAddress districtName( + @jakarta.annotation.Nullable String districtName) { this.districtName = districtName; return this; } @@ -418,11 +425,12 @@ public String getDistrictName() { @JsonProperty(JSON_PROPERTY_DISTRICT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDistrictName(String districtName) { + public void setDistrictName(@jakarta.annotation.Nullable String districtName) { this.districtName = districtName; } - public TravelRuleGeographicAddress countrySubDivision(String countrySubDivision) { + public TravelRuleGeographicAddress countrySubDivision( + @jakarta.annotation.Nullable String countrySubDivision) { this.countrySubDivision = countrySubDivision; return this; } @@ -442,11 +450,12 @@ public String getCountrySubDivision() { @JsonProperty(JSON_PROPERTY_COUNTRY_SUB_DIVISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountrySubDivision(String countrySubDivision) { + public void setCountrySubDivision(@jakarta.annotation.Nullable String countrySubDivision) { this.countrySubDivision = countrySubDivision; } - public TravelRuleGeographicAddress addressLine(List addressLine) { + public TravelRuleGeographicAddress addressLine( + @jakarta.annotation.Nullable List addressLine) { this.addressLine = addressLine; return this; } @@ -474,7 +483,7 @@ public List getAddressLine() { @JsonProperty(JSON_PROPERTY_ADDRESS_LINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressLine(List addressLine) { + public void setAddressLine(@jakarta.annotation.Nullable List addressLine) { this.addressLine = addressLine; } @@ -605,9 +614,7 @@ public String toUrlQueryString(String prefix) { "%sstreetName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStreetName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStreetName())))); } // add `townName` to the URL query string @@ -617,8 +624,7 @@ public String toUrlQueryString(String prefix) { "%stownName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTownName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTownName())))); } // add `country` to the URL query string @@ -628,8 +634,7 @@ public String toUrlQueryString(String prefix) { "%scountry%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCountry()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); } // add `buildingNumber` to the URL query string @@ -639,10 +644,7 @@ public String toUrlQueryString(String prefix) { "%sbuildingNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBuildingNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBuildingNumber())))); } // add `postCode` to the URL query string @@ -652,8 +654,7 @@ public String toUrlQueryString(String prefix) { "%spostCode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPostCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPostCode())))); } // add `addressType` to the URL query string @@ -663,10 +664,7 @@ public String toUrlQueryString(String prefix) { "%saddressType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); } // add `department` to the URL query string @@ -676,9 +674,7 @@ public String toUrlQueryString(String prefix) { "%sdepartment%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDepartment()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDepartment())))); } // add `subDepartment` to the URL query string @@ -688,10 +684,7 @@ public String toUrlQueryString(String prefix) { "%ssubDepartment%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSubDepartment()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubDepartment())))); } // add `buildingName` to the URL query string @@ -701,10 +694,7 @@ public String toUrlQueryString(String prefix) { "%sbuildingName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBuildingName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBuildingName())))); } // add `floor` to the URL query string @@ -714,8 +704,7 @@ public String toUrlQueryString(String prefix) { "%sfloor%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFloor()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFloor())))); } // add `postBox` to the URL query string @@ -725,8 +714,7 @@ public String toUrlQueryString(String prefix) { "%spostBox%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPostBox()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPostBox())))); } // add `room` to the URL query string @@ -736,8 +724,7 @@ public String toUrlQueryString(String prefix) { "%sroom%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRoom()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRoom())))); } // add `townLocationName` to the URL query string @@ -747,10 +734,7 @@ public String toUrlQueryString(String prefix) { "%stownLocationName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTownLocationName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTownLocationName())))); } // add `districtName` to the URL query string @@ -760,10 +744,7 @@ public String toUrlQueryString(String prefix) { "%sdistrictName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDistrictName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDistrictName())))); } // add `countrySubDivision` to the URL query string @@ -773,10 +754,7 @@ public String toUrlQueryString(String prefix) { "%scountrySubDivision%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountrySubDivision()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountrySubDivision())))); } // add `addressLine` to the URL query string @@ -791,10 +769,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAddressLine().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAddressLine().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java index aa2e2f13..b1aa9a4e 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +29,29 @@ TravelRuleGetAllVASPsResponse.JSON_PROPERTY_TOTAL, TravelRuleGetAllVASPsResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_TOTAL = "total"; - private Integer total; + @jakarta.annotation.Nullable private Integer total; public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public TravelRuleGetAllVASPsResponse() {} - public TravelRuleGetAllVASPsResponse data(List data) { + @JsonCreator + public TravelRuleGetAllVASPsResponse( + @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { + this.data = data; + } + + public TravelRuleGetAllVASPsResponse data( + @jakarta.annotation.Nonnull List data) { this.data = data; return this; } @@ -69,11 +78,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public TravelRuleGetAllVASPsResponse total(Integer total) { + public TravelRuleGetAllVASPsResponse total(@jakarta.annotation.Nullable Integer total) { this.total = total; return this; } @@ -92,11 +101,11 @@ public Integer getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(Integer total) { + public void setTotal(@jakarta.annotation.Nullable Integer total) { this.total = total; } - public TravelRuleGetAllVASPsResponse next(String next) { + public TravelRuleGetAllVASPsResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -115,7 +124,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -224,8 +233,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } // add `next` to the URL query string @@ -235,8 +243,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNext())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuer.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuer.java index 1488f1c1..976a18af 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuer.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuer.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** TravelRuleIssuer */ @JsonPropertyOrder({TravelRuleIssuer.JSON_PROPERTY_ISSUER_DID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleIssuer { public static final String JSON_PROPERTY_ISSUER_DID = "issuerDid"; - private String issuerDid; + @jakarta.annotation.Nonnull private String issuerDid; public TravelRuleIssuer() {} - public TravelRuleIssuer issuerDid(String issuerDid) { + @JsonCreator + public TravelRuleIssuer( + @JsonProperty(value = JSON_PROPERTY_ISSUER_DID, required = true) String issuerDid) { + this.issuerDid = issuerDid; + } + + public TravelRuleIssuer issuerDid(@jakarta.annotation.Nonnull String issuerDid) { this.issuerDid = issuerDid; return this; } @@ -49,7 +57,7 @@ public String getIssuerDid() { @JsonProperty(JSON_PROPERTY_ISSUER_DID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIssuerDid(String issuerDid) { + public void setIssuerDid(@jakarta.annotation.Nonnull String issuerDid) { this.issuerDid = issuerDid; } @@ -130,9 +138,7 @@ public String toUrlQueryString(String prefix) { "%sissuerDid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIssuerDid()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIssuerDid())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuers.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuers.java index 2f9a83f3..3ffdb3f9 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuers.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleIssuers.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; @@ -36,53 +37,96 @@ TravelRuleIssuers.JSON_PROPERTY_COUNTRY, TravelRuleIssuers.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleIssuers { public static final String JSON_PROPERTY_YEAR_FOUNDED = "yearFounded"; - private TravelRuleIssuer yearFounded; + @jakarta.annotation.Nonnull private TravelRuleIssuer yearFounded; public static final String JSON_PROPERTY_IS_REGULATED = "isRegulated"; - private TravelRuleIssuer isRegulated; + @jakarta.annotation.Nonnull private TravelRuleIssuer isRegulated; public static final String JSON_PROPERTY_REGULATORY_AUTHORITIES = "regulatoryAuthorities"; - private TravelRuleIssuer regulatoryAuthorities; + @jakarta.annotation.Nonnull private TravelRuleIssuer regulatoryAuthorities; public static final String JSON_PROPERTY_NAME = "name"; - private TravelRuleIssuer name; + @jakarta.annotation.Nonnull private TravelRuleIssuer name; public static final String JSON_PROPERTY_LOGO = "logo"; - private TravelRuleIssuer logo; + @jakarta.annotation.Nonnull private TravelRuleIssuer logo; public static final String JSON_PROPERTY_WEBSITE = "website"; - private TravelRuleIssuer website; + @jakarta.annotation.Nonnull private TravelRuleIssuer website; public static final String JSON_PROPERTY_LEGAL_NAME = "legalName"; - private TravelRuleIssuer legalName; + @jakarta.annotation.Nonnull private TravelRuleIssuer legalName; public static final String JSON_PROPERTY_LEGAL_STRUCTURE = "legalStructure"; - private TravelRuleIssuer legalStructure; + @jakarta.annotation.Nonnull private TravelRuleIssuer legalStructure; public static final String JSON_PROPERTY_INCORPORATION_COUNTRY = "incorporationCountry"; - private TravelRuleIssuer incorporationCountry; + @jakarta.annotation.Nonnull private TravelRuleIssuer incorporationCountry; public static final String JSON_PROPERTY_BUSINESS_NUMBER = "businessNumber"; - private TravelRuleIssuer businessNumber; + @jakarta.annotation.Nonnull private TravelRuleIssuer businessNumber; public static final String JSON_PROPERTY_ADDRESS_LINE1 = "addressLine1"; - private TravelRuleIssuer addressLine1; + @jakarta.annotation.Nonnull private TravelRuleIssuer addressLine1; public static final String JSON_PROPERTY_CITY = "city"; - private TravelRuleIssuer city; + @jakarta.annotation.Nonnull private TravelRuleIssuer city; public static final String JSON_PROPERTY_COUNTRY = "country"; - private TravelRuleIssuer country; + @jakarta.annotation.Nonnull private TravelRuleIssuer country; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private TravelRuleIssuer description; + @jakarta.annotation.Nonnull private TravelRuleIssuer description; public TravelRuleIssuers() {} - public TravelRuleIssuers yearFounded(TravelRuleIssuer yearFounded) { + @JsonCreator + public TravelRuleIssuers( + @JsonProperty(value = JSON_PROPERTY_YEAR_FOUNDED, required = true) + TravelRuleIssuer yearFounded, + @JsonProperty(value = JSON_PROPERTY_IS_REGULATED, required = true) + TravelRuleIssuer isRegulated, + @JsonProperty(value = JSON_PROPERTY_REGULATORY_AUTHORITIES, required = true) + TravelRuleIssuer regulatoryAuthorities, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) TravelRuleIssuer name, + @JsonProperty(value = JSON_PROPERTY_LOGO, required = true) TravelRuleIssuer logo, + @JsonProperty(value = JSON_PROPERTY_WEBSITE, required = true) TravelRuleIssuer website, + @JsonProperty(value = JSON_PROPERTY_LEGAL_NAME, required = true) + TravelRuleIssuer legalName, + @JsonProperty(value = JSON_PROPERTY_LEGAL_STRUCTURE, required = true) + TravelRuleIssuer legalStructure, + @JsonProperty(value = JSON_PROPERTY_INCORPORATION_COUNTRY, required = true) + TravelRuleIssuer incorporationCountry, + @JsonProperty(value = JSON_PROPERTY_BUSINESS_NUMBER, required = true) + TravelRuleIssuer businessNumber, + @JsonProperty(value = JSON_PROPERTY_ADDRESS_LINE1, required = true) + TravelRuleIssuer addressLine1, + @JsonProperty(value = JSON_PROPERTY_CITY, required = true) TravelRuleIssuer city, + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) TravelRuleIssuer country, + @JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = true) + TravelRuleIssuer description) { + this.yearFounded = yearFounded; + this.isRegulated = isRegulated; + this.regulatoryAuthorities = regulatoryAuthorities; + this.name = name; + this.logo = logo; + this.website = website; + this.legalName = legalName; + this.legalStructure = legalStructure; + this.incorporationCountry = incorporationCountry; + this.businessNumber = businessNumber; + this.addressLine1 = addressLine1; + this.city = city; + this.country = country; + this.description = description; + } + + public TravelRuleIssuers yearFounded(@jakarta.annotation.Nonnull TravelRuleIssuer yearFounded) { this.yearFounded = yearFounded; return this; } @@ -101,11 +145,11 @@ public TravelRuleIssuer getYearFounded() { @JsonProperty(JSON_PROPERTY_YEAR_FOUNDED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setYearFounded(TravelRuleIssuer yearFounded) { + public void setYearFounded(@jakarta.annotation.Nonnull TravelRuleIssuer yearFounded) { this.yearFounded = yearFounded; } - public TravelRuleIssuers isRegulated(TravelRuleIssuer isRegulated) { + public TravelRuleIssuers isRegulated(@jakarta.annotation.Nonnull TravelRuleIssuer isRegulated) { this.isRegulated = isRegulated; return this; } @@ -124,11 +168,12 @@ public TravelRuleIssuer getIsRegulated() { @JsonProperty(JSON_PROPERTY_IS_REGULATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsRegulated(TravelRuleIssuer isRegulated) { + public void setIsRegulated(@jakarta.annotation.Nonnull TravelRuleIssuer isRegulated) { this.isRegulated = isRegulated; } - public TravelRuleIssuers regulatoryAuthorities(TravelRuleIssuer regulatoryAuthorities) { + public TravelRuleIssuers regulatoryAuthorities( + @jakarta.annotation.Nonnull TravelRuleIssuer regulatoryAuthorities) { this.regulatoryAuthorities = regulatoryAuthorities; return this; } @@ -147,11 +192,12 @@ public TravelRuleIssuer getRegulatoryAuthorities() { @JsonProperty(JSON_PROPERTY_REGULATORY_AUTHORITIES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRegulatoryAuthorities(TravelRuleIssuer regulatoryAuthorities) { + public void setRegulatoryAuthorities( + @jakarta.annotation.Nonnull TravelRuleIssuer regulatoryAuthorities) { this.regulatoryAuthorities = regulatoryAuthorities; } - public TravelRuleIssuers name(TravelRuleIssuer name) { + public TravelRuleIssuers name(@jakarta.annotation.Nonnull TravelRuleIssuer name) { this.name = name; return this; } @@ -170,11 +216,11 @@ public TravelRuleIssuer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(TravelRuleIssuer name) { + public void setName(@jakarta.annotation.Nonnull TravelRuleIssuer name) { this.name = name; } - public TravelRuleIssuers logo(TravelRuleIssuer logo) { + public TravelRuleIssuers logo(@jakarta.annotation.Nonnull TravelRuleIssuer logo) { this.logo = logo; return this; } @@ -193,11 +239,11 @@ public TravelRuleIssuer getLogo() { @JsonProperty(JSON_PROPERTY_LOGO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogo(TravelRuleIssuer logo) { + public void setLogo(@jakarta.annotation.Nonnull TravelRuleIssuer logo) { this.logo = logo; } - public TravelRuleIssuers website(TravelRuleIssuer website) { + public TravelRuleIssuers website(@jakarta.annotation.Nonnull TravelRuleIssuer website) { this.website = website; return this; } @@ -216,11 +262,11 @@ public TravelRuleIssuer getWebsite() { @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWebsite(TravelRuleIssuer website) { + public void setWebsite(@jakarta.annotation.Nonnull TravelRuleIssuer website) { this.website = website; } - public TravelRuleIssuers legalName(TravelRuleIssuer legalName) { + public TravelRuleIssuers legalName(@jakarta.annotation.Nonnull TravelRuleIssuer legalName) { this.legalName = legalName; return this; } @@ -239,11 +285,12 @@ public TravelRuleIssuer getLegalName() { @JsonProperty(JSON_PROPERTY_LEGAL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegalName(TravelRuleIssuer legalName) { + public void setLegalName(@jakarta.annotation.Nonnull TravelRuleIssuer legalName) { this.legalName = legalName; } - public TravelRuleIssuers legalStructure(TravelRuleIssuer legalStructure) { + public TravelRuleIssuers legalStructure( + @jakarta.annotation.Nonnull TravelRuleIssuer legalStructure) { this.legalStructure = legalStructure; return this; } @@ -262,11 +309,12 @@ public TravelRuleIssuer getLegalStructure() { @JsonProperty(JSON_PROPERTY_LEGAL_STRUCTURE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegalStructure(TravelRuleIssuer legalStructure) { + public void setLegalStructure(@jakarta.annotation.Nonnull TravelRuleIssuer legalStructure) { this.legalStructure = legalStructure; } - public TravelRuleIssuers incorporationCountry(TravelRuleIssuer incorporationCountry) { + public TravelRuleIssuers incorporationCountry( + @jakarta.annotation.Nonnull TravelRuleIssuer incorporationCountry) { this.incorporationCountry = incorporationCountry; return this; } @@ -285,11 +333,13 @@ public TravelRuleIssuer getIncorporationCountry() { @JsonProperty(JSON_PROPERTY_INCORPORATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIncorporationCountry(TravelRuleIssuer incorporationCountry) { + public void setIncorporationCountry( + @jakarta.annotation.Nonnull TravelRuleIssuer incorporationCountry) { this.incorporationCountry = incorporationCountry; } - public TravelRuleIssuers businessNumber(TravelRuleIssuer businessNumber) { + public TravelRuleIssuers businessNumber( + @jakarta.annotation.Nonnull TravelRuleIssuer businessNumber) { this.businessNumber = businessNumber; return this; } @@ -308,11 +358,12 @@ public TravelRuleIssuer getBusinessNumber() { @JsonProperty(JSON_PROPERTY_BUSINESS_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBusinessNumber(TravelRuleIssuer businessNumber) { + public void setBusinessNumber(@jakarta.annotation.Nonnull TravelRuleIssuer businessNumber) { this.businessNumber = businessNumber; } - public TravelRuleIssuers addressLine1(TravelRuleIssuer addressLine1) { + public TravelRuleIssuers addressLine1( + @jakarta.annotation.Nonnull TravelRuleIssuer addressLine1) { this.addressLine1 = addressLine1; return this; } @@ -331,11 +382,11 @@ public TravelRuleIssuer getAddressLine1() { @JsonProperty(JSON_PROPERTY_ADDRESS_LINE1) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressLine1(TravelRuleIssuer addressLine1) { + public void setAddressLine1(@jakarta.annotation.Nonnull TravelRuleIssuer addressLine1) { this.addressLine1 = addressLine1; } - public TravelRuleIssuers city(TravelRuleIssuer city) { + public TravelRuleIssuers city(@jakarta.annotation.Nonnull TravelRuleIssuer city) { this.city = city; return this; } @@ -354,11 +405,11 @@ public TravelRuleIssuer getCity() { @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCity(TravelRuleIssuer city) { + public void setCity(@jakarta.annotation.Nonnull TravelRuleIssuer city) { this.city = city; } - public TravelRuleIssuers country(TravelRuleIssuer country) { + public TravelRuleIssuers country(@jakarta.annotation.Nonnull TravelRuleIssuer country) { this.country = country; return this; } @@ -377,11 +428,11 @@ public TravelRuleIssuer getCountry() { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(TravelRuleIssuer country) { + public void setCountry(@jakarta.annotation.Nonnull TravelRuleIssuer country) { this.country = country; } - public TravelRuleIssuers description(TravelRuleIssuer description) { + public TravelRuleIssuers description(@jakarta.annotation.Nonnull TravelRuleIssuer description) { this.description = description; return this; } @@ -400,7 +451,7 @@ public TravelRuleIssuer getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(TravelRuleIssuer description) { + public void setDescription(@jakarta.annotation.Nonnull TravelRuleIssuer description) { this.description = description; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java index 448d61a0..55158c84 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,29 +31,34 @@ TravelRuleLegalPerson.JSON_PROPERTY_CUSTOMER_NUMBER, TravelRuleLegalPerson.JSON_PROPERTY_COUNTRY_OF_REGISTRATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private TravelRuleLegalPersonNameIdentifier name; + @jakarta.annotation.Nullable private TravelRuleLegalPersonNameIdentifier name; public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - private List geographicAddress; + + @jakarta.annotation.Nullable + private List geographicAddress = new ArrayList<>(); public static final String JSON_PROPERTY_NATIONAL_IDENTIFICATION = "nationalIdentification"; - private TravelRuleNationalIdentification nationalIdentification; + @jakarta.annotation.Nullable private TravelRuleNationalIdentification nationalIdentification; public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - private String customerIdentification; + @jakarta.annotation.Nullable private String customerIdentification; public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - private String customerNumber; + @jakarta.annotation.Nullable private String customerNumber; public static final String JSON_PROPERTY_COUNTRY_OF_REGISTRATION = "countryOfRegistration"; - private String countryOfRegistration; + @jakarta.annotation.Nullable private String countryOfRegistration; public TravelRuleLegalPerson() {} - public TravelRuleLegalPerson name(TravelRuleLegalPersonNameIdentifier name) { + public TravelRuleLegalPerson name( + @jakarta.annotation.Nullable TravelRuleLegalPersonNameIdentifier name) { this.name = name; return this; } @@ -73,12 +77,12 @@ public TravelRuleLegalPersonNameIdentifier getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(TravelRuleLegalPersonNameIdentifier name) { + public void setName(@jakarta.annotation.Nullable TravelRuleLegalPersonNameIdentifier name) { this.name = name; } public TravelRuleLegalPerson geographicAddress( - List geographicAddress) { + @jakarta.annotation.Nullable List geographicAddress) { this.geographicAddress = geographicAddress; return this; } @@ -106,12 +110,13 @@ public List getGeographicAddress() { @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress(List geographicAddress) { + public void setGeographicAddress( + @jakarta.annotation.Nullable List geographicAddress) { this.geographicAddress = geographicAddress; } public TravelRuleLegalPerson nationalIdentification( - TravelRuleNationalIdentification nationalIdentification) { + @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; return this; } @@ -130,11 +135,13 @@ public TravelRuleNationalIdentification getNationalIdentification() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentification(TravelRuleNationalIdentification nationalIdentification) { + public void setNationalIdentification( + @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; } - public TravelRuleLegalPerson customerIdentification(String customerIdentification) { + public TravelRuleLegalPerson customerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; return this; } @@ -154,11 +161,13 @@ public String getCustomerIdentification() { @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification(String customerIdentification) { + public void setCustomerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; } - public TravelRuleLegalPerson customerNumber(String customerNumber) { + public TravelRuleLegalPerson customerNumber( + @jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; return this; } @@ -178,11 +187,12 @@ public String getCustomerNumber() { @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(String customerNumber) { + public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; } - public TravelRuleLegalPerson countryOfRegistration(String countryOfRegistration) { + public TravelRuleLegalPerson countryOfRegistration( + @jakarta.annotation.Nullable String countryOfRegistration) { this.countryOfRegistration = countryOfRegistration; return this; } @@ -202,7 +212,8 @@ public String getCountryOfRegistration() { @JsonProperty(JSON_PROPERTY_COUNTRY_OF_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfRegistration(String countryOfRegistration) { + public void setCountryOfRegistration( + @jakarta.annotation.Nullable String countryOfRegistration) { this.countryOfRegistration = countryOfRegistration; } @@ -345,10 +356,8 @@ public String toUrlQueryString(String prefix) { "%scustomerIdentification%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerIdentification()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCustomerIdentification())))); } // add `customerNumber` to the URL query string @@ -358,10 +367,7 @@ public String toUrlQueryString(String prefix) { "%scustomerNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); } // add `countryOfRegistration` to the URL query string @@ -371,10 +377,8 @@ public String toUrlQueryString(String prefix) { "%scountryOfRegistration%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountryOfRegistration()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index e1aa5fb2..9364660f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,18 +25,21 @@ TravelRuleLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME, TravelRuleLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String legalPersonName; + @jakarta.annotation.Nullable private String legalPersonName; public static final String JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE = "legalPersonNameIdentifierType"; - private String legalPersonNameIdentifierType; + @jakarta.annotation.Nullable private String legalPersonNameIdentifierType; public TravelRuleLegalPersonNameIdentifier() {} - public TravelRuleLegalPersonNameIdentifier legalPersonName(String legalPersonName) { + public TravelRuleLegalPersonNameIdentifier legalPersonName( + @jakarta.annotation.Nullable String legalPersonName) { this.legalPersonName = legalPersonName; return this; } @@ -56,12 +58,12 @@ public String getLegalPersonName() { @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonName(String legalPersonName) { + public void setLegalPersonName(@jakarta.annotation.Nullable String legalPersonName) { this.legalPersonName = legalPersonName; } public TravelRuleLegalPersonNameIdentifier legalPersonNameIdentifierType( - String legalPersonNameIdentifierType) { + @jakarta.annotation.Nullable String legalPersonNameIdentifierType) { this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; return this; } @@ -82,7 +84,8 @@ public String getLegalPersonNameIdentifierType() { @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonNameIdentifierType(String legalPersonNameIdentifierType) { + public void setLegalPersonNameIdentifierType( + @jakarta.annotation.Nullable String legalPersonNameIdentifierType) { this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; } @@ -171,10 +174,7 @@ public String toUrlQueryString(String prefix) { "%slegalPersonName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegalPersonName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegalPersonName())))); } // add `legalPersonNameIdentifierType` to the URL query string @@ -184,10 +184,8 @@ public String toUrlQueryString(String prefix) { "%slegalPersonNameIdentifierType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegalPersonNameIdentifierType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 5b42f8aa..2afe5f98 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +27,26 @@ TravelRuleNationalIdentification.JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE, TravelRuleNationalIdentification.JSON_PROPERTY_REGISTRATION_AUTHORITY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String countryOfIssue; + @jakarta.annotation.Nullable private String countryOfIssue; public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER = "nationalIdentifier"; - private String nationalIdentifier; + @jakarta.annotation.Nullable private String nationalIdentifier; public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE = "nationalIdentifierType"; - private String nationalIdentifierType; + @jakarta.annotation.Nullable private String nationalIdentifierType; public static final String JSON_PROPERTY_REGISTRATION_AUTHORITY = "registrationAuthority"; - private String registrationAuthority; + @jakarta.annotation.Nullable private String registrationAuthority; public TravelRuleNationalIdentification() {} - public TravelRuleNationalIdentification countryOfIssue(String countryOfIssue) { + public TravelRuleNationalIdentification countryOfIssue( + @jakarta.annotation.Nullable String countryOfIssue) { this.countryOfIssue = countryOfIssue; return this; } @@ -64,11 +66,12 @@ public String getCountryOfIssue() { @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ISSUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfIssue(String countryOfIssue) { + public void setCountryOfIssue(@jakarta.annotation.Nullable String countryOfIssue) { this.countryOfIssue = countryOfIssue; } - public TravelRuleNationalIdentification nationalIdentifier(String nationalIdentifier) { + public TravelRuleNationalIdentification nationalIdentifier( + @jakarta.annotation.Nullable String nationalIdentifier) { this.nationalIdentifier = nationalIdentifier; return this; } @@ -87,11 +90,12 @@ public String getNationalIdentifier() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifier(String nationalIdentifier) { + public void setNationalIdentifier(@jakarta.annotation.Nullable String nationalIdentifier) { this.nationalIdentifier = nationalIdentifier; } - public TravelRuleNationalIdentification nationalIdentifierType(String nationalIdentifierType) { + public TravelRuleNationalIdentification nationalIdentifierType( + @jakarta.annotation.Nullable String nationalIdentifierType) { this.nationalIdentifierType = nationalIdentifierType; return this; } @@ -113,11 +117,13 @@ public String getNationalIdentifierType() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifierType(String nationalIdentifierType) { + public void setNationalIdentifierType( + @jakarta.annotation.Nullable String nationalIdentifierType) { this.nationalIdentifierType = nationalIdentifierType; } - public TravelRuleNationalIdentification registrationAuthority(String registrationAuthority) { + public TravelRuleNationalIdentification registrationAuthority( + @jakarta.annotation.Nullable String registrationAuthority) { this.registrationAuthority = registrationAuthority; return this; } @@ -136,7 +142,8 @@ public String getRegistrationAuthority() { @JsonProperty(JSON_PROPERTY_REGISTRATION_AUTHORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegistrationAuthority(String registrationAuthority) { + public void setRegistrationAuthority( + @jakarta.annotation.Nullable String registrationAuthority) { this.registrationAuthority = registrationAuthority; } @@ -237,10 +244,7 @@ public String toUrlQueryString(String prefix) { "%scountryOfIssue%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountryOfIssue()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountryOfIssue())))); } // add `nationalIdentifier` to the URL query string @@ -250,10 +254,7 @@ public String toUrlQueryString(String prefix) { "%snationalIdentifier%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNationalIdentifier()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNationalIdentifier())))); } // add `nationalIdentifierType` to the URL query string @@ -263,10 +264,8 @@ public String toUrlQueryString(String prefix) { "%snationalIdentifierType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNationalIdentifierType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getNationalIdentifierType())))); } // add `registrationAuthority` to the URL query string @@ -276,10 +275,8 @@ public String toUrlQueryString(String prefix) { "%sregistrationAuthority%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRegistrationAuthority()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 6f8e0047..1f722fb2 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,23 @@ TravelRuleNaturalNameIdentifier.JSON_PROPERTY_SECONDARY_IDENTIFIER, TravelRuleNaturalNameIdentifier.JSON_PROPERTY_NAME_IDENTIFIER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String primaryIdentifier; + @jakarta.annotation.Nullable private String primaryIdentifier; public static final String JSON_PROPERTY_SECONDARY_IDENTIFIER = "secondaryIdentifier"; - private String secondaryIdentifier; + @jakarta.annotation.Nullable private String secondaryIdentifier; public static final String JSON_PROPERTY_NAME_IDENTIFIER_TYPE = "nameIdentifierType"; - private String nameIdentifierType; + @jakarta.annotation.Nullable private String nameIdentifierType; public TravelRuleNaturalNameIdentifier() {} - public TravelRuleNaturalNameIdentifier primaryIdentifier(String primaryIdentifier) { + public TravelRuleNaturalNameIdentifier primaryIdentifier( + @jakarta.annotation.Nullable String primaryIdentifier) { this.primaryIdentifier = primaryIdentifier; return this; } @@ -59,11 +61,12 @@ public String getPrimaryIdentifier() { @JsonProperty(JSON_PROPERTY_PRIMARY_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryIdentifier(String primaryIdentifier) { + public void setPrimaryIdentifier(@jakarta.annotation.Nullable String primaryIdentifier) { this.primaryIdentifier = primaryIdentifier; } - public TravelRuleNaturalNameIdentifier secondaryIdentifier(String secondaryIdentifier) { + public TravelRuleNaturalNameIdentifier secondaryIdentifier( + @jakarta.annotation.Nullable String secondaryIdentifier) { this.secondaryIdentifier = secondaryIdentifier; return this; } @@ -82,11 +85,12 @@ public String getSecondaryIdentifier() { @JsonProperty(JSON_PROPERTY_SECONDARY_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryIdentifier(String secondaryIdentifier) { + public void setSecondaryIdentifier(@jakarta.annotation.Nullable String secondaryIdentifier) { this.secondaryIdentifier = secondaryIdentifier; } - public TravelRuleNaturalNameIdentifier nameIdentifierType(String nameIdentifierType) { + public TravelRuleNaturalNameIdentifier nameIdentifierType( + @jakarta.annotation.Nullable String nameIdentifierType) { this.nameIdentifierType = nameIdentifierType; return this; } @@ -106,7 +110,7 @@ public String getNameIdentifierType() { @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifierType(String nameIdentifierType) { + public void setNameIdentifierType(@jakarta.annotation.Nullable String nameIdentifierType) { this.nameIdentifierType = nameIdentifierType; } @@ -203,10 +207,7 @@ public String toUrlQueryString(String prefix) { "%sprimaryIdentifier%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPrimaryIdentifier()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPrimaryIdentifier())))); } // add `secondaryIdentifier` to the URL query string @@ -216,10 +217,8 @@ public String toUrlQueryString(String prefix) { "%ssecondaryIdentifier%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSecondaryIdentifier()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSecondaryIdentifier())))); } // add `nameIdentifierType` to the URL query string @@ -229,10 +228,7 @@ public String toUrlQueryString(String prefix) { "%snameIdentifierType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNameIdentifierType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index af75993a..4cf10abb 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,32 +32,39 @@ TravelRuleNaturalPerson.JSON_PROPERTY_COUNTRY_OF_RESIDENCE, TravelRuleNaturalPerson.JSON_PROPERTY_CUSTOMER_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List name; + + @jakarta.annotation.Nullable + private List name = new ArrayList<>(); public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - private List geographicAddress; + + @jakarta.annotation.Nullable + private List geographicAddress = new ArrayList<>(); public static final String JSON_PROPERTY_NATIONAL_IDENTIFICATION = "nationalIdentification"; - private TravelRuleNationalIdentification nationalIdentification; + @jakarta.annotation.Nullable private TravelRuleNationalIdentification nationalIdentification; public static final String JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH = "dateAndPlaceOfBirth"; - private TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth; + @jakarta.annotation.Nullable private TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth; public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - private String customerIdentification; + @jakarta.annotation.Nullable private String customerIdentification; public static final String JSON_PROPERTY_COUNTRY_OF_RESIDENCE = "countryOfResidence"; - private String countryOfResidence; + @jakarta.annotation.Nullable private String countryOfResidence; public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - private String customerNumber; + @jakarta.annotation.Nullable private String customerNumber; public TravelRuleNaturalPerson() {} - public TravelRuleNaturalPerson name(List name) { + public TravelRuleNaturalPerson name( + @jakarta.annotation.Nullable List name) { this.name = name; return this; } @@ -86,12 +92,13 @@ public List getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(List name) { + public void setName( + @jakarta.annotation.Nullable List name) { this.name = name; } public TravelRuleNaturalPerson geographicAddress( - List geographicAddress) { + @jakarta.annotation.Nullable List geographicAddress) { this.geographicAddress = geographicAddress; return this; } @@ -120,12 +127,13 @@ public List getGeographicAddress() { @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress(List geographicAddress) { + public void setGeographicAddress( + @jakarta.annotation.Nullable List geographicAddress) { this.geographicAddress = geographicAddress; } public TravelRuleNaturalPerson nationalIdentification( - TravelRuleNationalIdentification nationalIdentification) { + @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; return this; } @@ -144,12 +152,13 @@ public TravelRuleNationalIdentification getNationalIdentification() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentification(TravelRuleNationalIdentification nationalIdentification) { + public void setNationalIdentification( + @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; } public TravelRuleNaturalPerson dateAndPlaceOfBirth( - TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth) { + @jakarta.annotation.Nullable TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth) { this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; return this; } @@ -168,11 +177,13 @@ public TravelRuleDateAndPlaceOfBirth getDateAndPlaceOfBirth() { @JsonProperty(JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateAndPlaceOfBirth(TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth) { + public void setDateAndPlaceOfBirth( + @jakarta.annotation.Nullable TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth) { this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; } - public TravelRuleNaturalPerson customerIdentification(String customerIdentification) { + public TravelRuleNaturalPerson customerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; return this; } @@ -192,11 +203,13 @@ public String getCustomerIdentification() { @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification(String customerIdentification) { + public void setCustomerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; } - public TravelRuleNaturalPerson countryOfResidence(String countryOfResidence) { + public TravelRuleNaturalPerson countryOfResidence( + @jakarta.annotation.Nullable String countryOfResidence) { this.countryOfResidence = countryOfResidence; return this; } @@ -216,11 +229,12 @@ public String getCountryOfResidence() { @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfResidence(String countryOfResidence) { + public void setCountryOfResidence(@jakarta.annotation.Nullable String countryOfResidence) { this.countryOfResidence = countryOfResidence; } - public TravelRuleNaturalPerson customerNumber(String customerNumber) { + public TravelRuleNaturalPerson customerNumber( + @jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; return this; } @@ -240,7 +254,7 @@ public String getCustomerNumber() { @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(String customerNumber) { + public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; } @@ -414,10 +428,8 @@ public String toUrlQueryString(String prefix) { "%scustomerIdentification%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerIdentification()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCustomerIdentification())))); } // add `countryOfResidence` to the URL query string @@ -427,10 +439,7 @@ public String toUrlQueryString(String prefix) { "%scountryOfResidence%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountryOfResidence()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountryOfResidence())))); } // add `customerNumber` to the URL query string @@ -440,10 +449,7 @@ public String toUrlQueryString(String prefix) { "%scustomerNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 3e3809c4..200a81bf 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java @@ -27,21 +27,29 @@ TravelRuleNaturalPersonNameIdentifier.JSON_PROPERTY_LOCAL_NAME_IDENTIFIER, TravelRuleNaturalPersonNameIdentifier.JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List nameIdentifier; + + @jakarta.annotation.Nullable + private List nameIdentifier = new ArrayList<>(); public static final String JSON_PROPERTY_LOCAL_NAME_IDENTIFIER = "localNameIdentifier"; - private List localNameIdentifier; + + @jakarta.annotation.Nullable + private List localNameIdentifier = new ArrayList<>(); public static final String JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER = "phoneticNameIdentifier"; - private List phoneticNameIdentifier; + + @jakarta.annotation.Nullable + private List phoneticNameIdentifier = new ArrayList<>(); public TravelRuleNaturalPersonNameIdentifier() {} public TravelRuleNaturalPersonNameIdentifier nameIdentifier( - List nameIdentifier) { + @jakarta.annotation.Nullable List nameIdentifier) { this.nameIdentifier = nameIdentifier; return this; } @@ -69,12 +77,14 @@ public List getNameIdentifier() { @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifier(List nameIdentifier) { + public void setNameIdentifier( + @jakarta.annotation.Nullable List nameIdentifier) { this.nameIdentifier = nameIdentifier; } public TravelRuleNaturalPersonNameIdentifier localNameIdentifier( - List localNameIdentifier) { + @jakarta.annotation.Nullable + List localNameIdentifier) { this.localNameIdentifier = localNameIdentifier; return this; } @@ -102,12 +112,15 @@ public List getLocalNameIdentifier() { @JsonProperty(JSON_PROPERTY_LOCAL_NAME_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocalNameIdentifier(List localNameIdentifier) { + public void setLocalNameIdentifier( + @jakarta.annotation.Nullable + List localNameIdentifier) { this.localNameIdentifier = localNameIdentifier; } public TravelRuleNaturalPersonNameIdentifier phoneticNameIdentifier( - List phoneticNameIdentifier) { + @jakarta.annotation.Nullable + List phoneticNameIdentifier) { this.phoneticNameIdentifier = phoneticNameIdentifier; return this; } @@ -136,7 +149,8 @@ public List getPhoneticNameIdentifier() { @JsonProperty(JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhoneticNameIdentifier( - List phoneticNameIdentifier) { + @jakarta.annotation.Nullable + List phoneticNameIdentifier) { this.phoneticNameIdentifier = phoneticNameIdentifier; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java index 8b136fba..b755b2b6 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -31,32 +30,34 @@ TravelRuleOwnershipProof.JSON_PROPERTY_URL, TravelRuleOwnershipProof.JSON_PROPERTY_CONFIRMED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleOwnershipProof { public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_PROOF = "proof"; - private String proof; + @jakarta.annotation.Nullable private String proof; public static final String JSON_PROPERTY_ATTESTATION = "attestation"; - private String attestation; + @jakarta.annotation.Nullable private String attestation; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_WALLET_PROVIDER = "wallet_provider"; - private String walletProvider; + @jakarta.annotation.Nullable private String walletProvider; public static final String JSON_PROPERTY_URL = "url"; - private String url; + @jakarta.annotation.Nullable private String url; public static final String JSON_PROPERTY_CONFIRMED = "confirmed"; - private Boolean confirmed; + @jakarta.annotation.Nullable private Boolean confirmed; public TravelRuleOwnershipProof() {} - public TravelRuleOwnershipProof type(String type) { + public TravelRuleOwnershipProof type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -79,11 +80,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public TravelRuleOwnershipProof proof(String proof) { + public TravelRuleOwnershipProof proof(@jakarta.annotation.Nullable String proof) { this.proof = proof; return this; } @@ -104,11 +105,11 @@ public String getProof() { @JsonProperty(JSON_PROPERTY_PROOF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProof(String proof) { + public void setProof(@jakarta.annotation.Nullable String proof) { this.proof = proof; } - public TravelRuleOwnershipProof attestation(String attestation) { + public TravelRuleOwnershipProof attestation(@jakarta.annotation.Nullable String attestation) { this.attestation = attestation; return this; } @@ -130,11 +131,11 @@ public String getAttestation() { @JsonProperty(JSON_PROPERTY_ATTESTATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttestation(String attestation) { + public void setAttestation(@jakarta.annotation.Nullable String attestation) { this.attestation = attestation; } - public TravelRuleOwnershipProof address(String address) { + public TravelRuleOwnershipProof address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -154,11 +155,12 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public TravelRuleOwnershipProof walletProvider(String walletProvider) { + public TravelRuleOwnershipProof walletProvider( + @jakarta.annotation.Nullable String walletProvider) { this.walletProvider = walletProvider; return this; } @@ -178,11 +180,11 @@ public String getWalletProvider() { @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletProvider(String walletProvider) { + public void setWalletProvider(@jakarta.annotation.Nullable String walletProvider) { this.walletProvider = walletProvider; } - public TravelRuleOwnershipProof url(String url) { + public TravelRuleOwnershipProof url(@jakarta.annotation.Nullable String url) { this.url = url; return this; } @@ -202,11 +204,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nullable String url) { this.url = url; } - public TravelRuleOwnershipProof confirmed(Boolean confirmed) { + public TravelRuleOwnershipProof confirmed(@jakarta.annotation.Nullable Boolean confirmed) { this.confirmed = confirmed; return this; } @@ -226,7 +228,7 @@ public Boolean getConfirmed() { @JsonProperty(JSON_PROPERTY_CONFIRMED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfirmed(Boolean confirmed) { + public void setConfirmed(@jakarta.annotation.Nullable Boolean confirmed) { this.confirmed = confirmed; } @@ -319,8 +321,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `proof` to the URL query string @@ -330,8 +331,7 @@ public String toUrlQueryString(String prefix) { "%sproof%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProof()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProof())))); } // add `attestation` to the URL query string @@ -341,10 +341,7 @@ public String toUrlQueryString(String prefix) { "%sattestation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAttestation()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAttestation())))); } // add `address` to the URL query string @@ -354,8 +351,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `wallet_provider` to the URL query string @@ -365,10 +361,7 @@ public String toUrlQueryString(String prefix) { "%swallet_provider%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getWalletProvider()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWalletProvider())))); } // add `url` to the URL query string @@ -378,8 +371,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `confirmed` to the URL query string @@ -389,9 +381,7 @@ public String toUrlQueryString(String prefix) { "%sconfirmed%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfirmed()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 48002416..fde5208d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java @@ -24,17 +24,20 @@ TravelRulePerson.JSON_PROPERTY_NATURAL_PERSON, TravelRulePerson.JSON_PROPERTY_LEGAL_PERSON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private TravelRuleNaturalPerson naturalPerson; + @jakarta.annotation.Nullable private TravelRuleNaturalPerson naturalPerson; public static final String JSON_PROPERTY_LEGAL_PERSON = "legalPerson"; - private TravelRuleLegalPerson legalPerson; + @jakarta.annotation.Nullable private TravelRuleLegalPerson legalPerson; public TravelRulePerson() {} - public TravelRulePerson naturalPerson(TravelRuleNaturalPerson naturalPerson) { + public TravelRulePerson naturalPerson( + @jakarta.annotation.Nullable TravelRuleNaturalPerson naturalPerson) { this.naturalPerson = naturalPerson; return this; } @@ -53,11 +56,13 @@ public TravelRuleNaturalPerson getNaturalPerson() { @JsonProperty(JSON_PROPERTY_NATURAL_PERSON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNaturalPerson(TravelRuleNaturalPerson naturalPerson) { + public void setNaturalPerson( + @jakarta.annotation.Nullable TravelRuleNaturalPerson naturalPerson) { this.naturalPerson = naturalPerson; } - public TravelRulePerson legalPerson(TravelRuleLegalPerson legalPerson) { + public TravelRulePerson legalPerson( + @jakarta.annotation.Nullable TravelRuleLegalPerson legalPerson) { this.legalPerson = legalPerson; return this; } @@ -76,7 +81,7 @@ public TravelRuleLegalPerson getLegalPerson() { @JsonProperty(JSON_PROPERTY_LEGAL_PERSON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPerson(TravelRuleLegalPerson legalPerson) { + public void setLegalPerson(@jakarta.annotation.Nullable TravelRuleLegalPerson legalPerson) { this.legalPerson = legalPerson; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java b/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java index 0914ff8c..9417c51a 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +28,27 @@ TravelRulePiiIVMS.JSON_PROPERTY_BENEFICIARY_PERSONS, TravelRulePiiIVMS.JSON_PROPERTY_ACCOUNT_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List originatorPersons; + + @jakarta.annotation.Nullable + private List originatorPersons = new ArrayList<>(); public static final String JSON_PROPERTY_BENEFICIARY_PERSONS = "beneficiaryPersons"; - private List beneficiaryPersons; + + @jakarta.annotation.Nullable + private List beneficiaryPersons = new ArrayList<>(); public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - private List accountNumber; + @jakarta.annotation.Nullable private List accountNumber = new ArrayList<>(); public TravelRulePiiIVMS() {} - public TravelRulePiiIVMS originatorPersons(List originatorPersons) { + public TravelRulePiiIVMS originatorPersons( + @jakarta.annotation.Nullable List originatorPersons) { this.originatorPersons = originatorPersons; return this; } @@ -69,11 +75,13 @@ public List getOriginatorPersons() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_PERSONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorPersons(List originatorPersons) { + public void setOriginatorPersons( + @jakarta.annotation.Nullable List originatorPersons) { this.originatorPersons = originatorPersons; } - public TravelRulePiiIVMS beneficiaryPersons(List beneficiaryPersons) { + public TravelRulePiiIVMS beneficiaryPersons( + @jakarta.annotation.Nullable List beneficiaryPersons) { this.beneficiaryPersons = beneficiaryPersons; return this; } @@ -100,11 +108,13 @@ public List getBeneficiaryPersons() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_PERSONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryPersons(List beneficiaryPersons) { + public void setBeneficiaryPersons( + @jakarta.annotation.Nullable List beneficiaryPersons) { this.beneficiaryPersons = beneficiaryPersons; } - public TravelRulePiiIVMS accountNumber(List accountNumber) { + public TravelRulePiiIVMS accountNumber( + @jakarta.annotation.Nullable List accountNumber) { this.accountNumber = accountNumber; return this; } @@ -131,7 +141,7 @@ public List getAccountNumber() { @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountNumber(List accountNumber) { + public void setAccountNumber(@jakarta.annotation.Nullable List accountNumber) { this.accountNumber = accountNumber; } @@ -271,10 +281,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAccountNumber().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountNumber().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java index 81120c65..4c335701 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java @@ -18,9 +18,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -41,54 +40,56 @@ TravelRulePolicyRuleResponse.JSON_PROPERTY_OPERATION, TravelRulePolicyRuleResponse.JSON_PROPERTY_ACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRulePolicyRuleResponse { public static final String JSON_PROPERTY_SOURCE_TYPE = "sourceType"; - private String sourceType; + @jakarta.annotation.Nullable private String sourceType; public static final String JSON_PROPERTY_SOURCE_SUB_TYPE = "sourceSubType"; - private String sourceSubType; + @jakarta.annotation.Nullable private String sourceSubType; public static final String JSON_PROPERTY_DEST_TYPE = "destType"; - private String destType; + @jakarta.annotation.Nullable private String destType; public static final String JSON_PROPERTY_DEST_SUB_TYPE = "destSubType"; - private String destSubType; + @jakarta.annotation.Nullable private String destSubType; public static final String JSON_PROPERTY_DEST_ADDRESS = "destAddress"; - private String destAddress; + @jakarta.annotation.Nullable private String destAddress; public static final String JSON_PROPERTY_SOURCE_ID = "sourceId"; - private String sourceId; + @jakarta.annotation.Nullable private String sourceId; public static final String JSON_PROPERTY_DEST_ID = "destId"; - private String destId; + @jakarta.annotation.Nullable private String destId; public static final String JSON_PROPERTY_ASSET = "asset"; - private String asset; + @jakarta.annotation.Nullable private String asset; public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; - private String baseAsset; + @jakarta.annotation.Nullable private String baseAsset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private BigDecimal amount; + @jakarta.annotation.Nullable private BigDecimal amount; public static final String JSON_PROPERTY_AMOUNT_U_S_D = "amountUSD"; - private BigDecimal amountUSD; + @jakarta.annotation.Nullable private BigDecimal amountUSD; public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; - private String networkProtocol; + @jakarta.annotation.Nullable private String networkProtocol; public static final String JSON_PROPERTY_OPERATION = "operation"; - private String operation; + @jakarta.annotation.Nullable private String operation; /** Gets or Sets action */ public enum ActionEnum { - SCREEN("SCREEN"), + SCREEN(String.valueOf("SCREEN")), - PASS("PASS"), + PASS(String.valueOf("PASS")), - FREEZE("FREEZE"); + FREEZE(String.valueOf("FREEZE")); private String value; @@ -118,11 +119,17 @@ public static ActionEnum fromValue(String value) { } public static final String JSON_PROPERTY_ACTION = "action"; - private ActionEnum action; + @jakarta.annotation.Nonnull private ActionEnum action; public TravelRulePolicyRuleResponse() {} - public TravelRulePolicyRuleResponse sourceType(String sourceType) { + @JsonCreator + public TravelRulePolicyRuleResponse( + @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action) { + this.action = action; + } + + public TravelRulePolicyRuleResponse sourceType(@jakarta.annotation.Nullable String sourceType) { this.sourceType = sourceType; return this; } @@ -141,11 +148,12 @@ public String getSourceType() { @JsonProperty(JSON_PROPERTY_SOURCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceType(String sourceType) { + public void setSourceType(@jakarta.annotation.Nullable String sourceType) { this.sourceType = sourceType; } - public TravelRulePolicyRuleResponse sourceSubType(String sourceSubType) { + public TravelRulePolicyRuleResponse sourceSubType( + @jakarta.annotation.Nullable String sourceSubType) { this.sourceSubType = sourceSubType; return this; } @@ -164,11 +172,11 @@ public String getSourceSubType() { @JsonProperty(JSON_PROPERTY_SOURCE_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceSubType(String sourceSubType) { + public void setSourceSubType(@jakarta.annotation.Nullable String sourceSubType) { this.sourceSubType = sourceSubType; } - public TravelRulePolicyRuleResponse destType(String destType) { + public TravelRulePolicyRuleResponse destType(@jakarta.annotation.Nullable String destType) { this.destType = destType; return this; } @@ -187,11 +195,12 @@ public String getDestType() { @JsonProperty(JSON_PROPERTY_DEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestType(String destType) { + public void setDestType(@jakarta.annotation.Nullable String destType) { this.destType = destType; } - public TravelRulePolicyRuleResponse destSubType(String destSubType) { + public TravelRulePolicyRuleResponse destSubType( + @jakarta.annotation.Nullable String destSubType) { this.destSubType = destSubType; return this; } @@ -210,11 +219,12 @@ public String getDestSubType() { @JsonProperty(JSON_PROPERTY_DEST_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestSubType(String destSubType) { + public void setDestSubType(@jakarta.annotation.Nullable String destSubType) { this.destSubType = destSubType; } - public TravelRulePolicyRuleResponse destAddress(String destAddress) { + public TravelRulePolicyRuleResponse destAddress( + @jakarta.annotation.Nullable String destAddress) { this.destAddress = destAddress; return this; } @@ -233,11 +243,11 @@ public String getDestAddress() { @JsonProperty(JSON_PROPERTY_DEST_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestAddress(String destAddress) { + public void setDestAddress(@jakarta.annotation.Nullable String destAddress) { this.destAddress = destAddress; } - public TravelRulePolicyRuleResponse sourceId(String sourceId) { + public TravelRulePolicyRuleResponse sourceId(@jakarta.annotation.Nullable String sourceId) { this.sourceId = sourceId; return this; } @@ -256,11 +266,11 @@ public String getSourceId() { @JsonProperty(JSON_PROPERTY_SOURCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceId(String sourceId) { + public void setSourceId(@jakarta.annotation.Nullable String sourceId) { this.sourceId = sourceId; } - public TravelRulePolicyRuleResponse destId(String destId) { + public TravelRulePolicyRuleResponse destId(@jakarta.annotation.Nullable String destId) { this.destId = destId; return this; } @@ -279,11 +289,11 @@ public String getDestId() { @JsonProperty(JSON_PROPERTY_DEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestId(String destId) { + public void setDestId(@jakarta.annotation.Nullable String destId) { this.destId = destId; } - public TravelRulePolicyRuleResponse asset(String asset) { + public TravelRulePolicyRuleResponse asset(@jakarta.annotation.Nullable String asset) { this.asset = asset; return this; } @@ -302,11 +312,11 @@ public String getAsset() { @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsset(String asset) { + public void setAsset(@jakarta.annotation.Nullable String asset) { this.asset = asset; } - public TravelRulePolicyRuleResponse baseAsset(String baseAsset) { + public TravelRulePolicyRuleResponse baseAsset(@jakarta.annotation.Nullable String baseAsset) { this.baseAsset = baseAsset; return this; } @@ -325,11 +335,11 @@ public String getBaseAsset() { @JsonProperty(JSON_PROPERTY_BASE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAsset(String baseAsset) { + public void setBaseAsset(@jakarta.annotation.Nullable String baseAsset) { this.baseAsset = baseAsset; } - public TravelRulePolicyRuleResponse amount(BigDecimal amount) { + public TravelRulePolicyRuleResponse amount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; return this; } @@ -348,11 +358,12 @@ public BigDecimal getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(BigDecimal amount) { + public void setAmount(@jakarta.annotation.Nullable BigDecimal amount) { this.amount = amount; } - public TravelRulePolicyRuleResponse amountUSD(BigDecimal amountUSD) { + public TravelRulePolicyRuleResponse amountUSD( + @jakarta.annotation.Nullable BigDecimal amountUSD) { this.amountUSD = amountUSD; return this; } @@ -371,11 +382,12 @@ public BigDecimal getAmountUSD() { @JsonProperty(JSON_PROPERTY_AMOUNT_U_S_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountUSD(BigDecimal amountUSD) { + public void setAmountUSD(@jakarta.annotation.Nullable BigDecimal amountUSD) { this.amountUSD = amountUSD; } - public TravelRulePolicyRuleResponse networkProtocol(String networkProtocol) { + public TravelRulePolicyRuleResponse networkProtocol( + @jakarta.annotation.Nullable String networkProtocol) { this.networkProtocol = networkProtocol; return this; } @@ -394,11 +406,11 @@ public String getNetworkProtocol() { @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkProtocol(String networkProtocol) { + public void setNetworkProtocol(@jakarta.annotation.Nullable String networkProtocol) { this.networkProtocol = networkProtocol; } - public TravelRulePolicyRuleResponse operation(String operation) { + public TravelRulePolicyRuleResponse operation(@jakarta.annotation.Nullable String operation) { this.operation = operation; return this; } @@ -417,11 +429,11 @@ public String getOperation() { @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperation(String operation) { + public void setOperation(@jakarta.annotation.Nullable String operation) { this.operation = operation; } - public TravelRulePolicyRuleResponse action(ActionEnum action) { + public TravelRulePolicyRuleResponse action(@jakarta.annotation.Nonnull ActionEnum action) { this.action = action; return this; } @@ -440,7 +452,7 @@ public ActionEnum getAction() { @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAction(ActionEnum action) { + public void setAction(@jakarta.annotation.Nonnull ActionEnum action) { this.action = action; } @@ -563,9 +575,7 @@ public String toUrlQueryString(String prefix) { "%ssourceType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceType())))); } // add `sourceSubType` to the URL query string @@ -575,10 +585,7 @@ public String toUrlQueryString(String prefix) { "%ssourceSubType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSourceSubType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceSubType())))); } // add `destType` to the URL query string @@ -588,8 +595,7 @@ public String toUrlQueryString(String prefix) { "%sdestType%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDestType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestType())))); } // add `destSubType` to the URL query string @@ -599,10 +605,7 @@ public String toUrlQueryString(String prefix) { "%sdestSubType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestSubType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestSubType())))); } // add `destAddress` to the URL query string @@ -612,10 +615,7 @@ public String toUrlQueryString(String prefix) { "%sdestAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestAddress())))); } // add `sourceId` to the URL query string @@ -625,8 +625,7 @@ public String toUrlQueryString(String prefix) { "%ssourceId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSourceId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSourceId())))); } // add `destId` to the URL query string @@ -636,8 +635,7 @@ public String toUrlQueryString(String prefix) { "%sdestId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDestId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestId())))); } // add `asset` to the URL query string @@ -647,8 +645,7 @@ public String toUrlQueryString(String prefix) { "%sasset%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } // add `baseAsset` to the URL query string @@ -658,9 +655,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAsset())))); } // add `amount` to the URL query string @@ -670,8 +665,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `amountUSD` to the URL query string @@ -681,9 +675,7 @@ public String toUrlQueryString(String prefix) { "%samountUSD%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAmountUSD()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmountUSD())))); } // add `networkProtocol` to the URL query string @@ -693,10 +685,7 @@ public String toUrlQueryString(String prefix) { "%snetworkProtocol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkProtocol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkProtocol())))); } // add `operation` to the URL query string @@ -706,9 +695,7 @@ public String toUrlQueryString(String prefix) { "%soperation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOperation()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOperation())))); } // add `action` to the URL query string @@ -718,8 +705,7 @@ public String toUrlQueryString(String prefix) { "%saction%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAction()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAction())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java index 657171fd..d06ccd0b 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ TravelRuleTransactionBlockchainInfo.JSON_PROPERTY_ORIGIN, TravelRuleTransactionBlockchainInfo.JSON_PROPERTY_DESTINATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleTransactionBlockchainInfo { public static final String JSON_PROPERTY_TX_HASH = "txHash"; - private String txHash; + @jakarta.annotation.Nullable private String txHash; public static final String JSON_PROPERTY_ORIGIN = "origin"; - private String origin; + @jakarta.annotation.Nullable private String origin; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private String destination; + @jakarta.annotation.Nullable private String destination; public TravelRuleTransactionBlockchainInfo() {} - public TravelRuleTransactionBlockchainInfo txHash(String txHash) { + public TravelRuleTransactionBlockchainInfo txHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; return this; } @@ -59,11 +60,11 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; } - public TravelRuleTransactionBlockchainInfo origin(String origin) { + public TravelRuleTransactionBlockchainInfo origin(@jakarta.annotation.Nullable String origin) { this.origin = origin; return this; } @@ -82,11 +83,12 @@ public String getOrigin() { @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrigin(String origin) { + public void setOrigin(@jakarta.annotation.Nullable String origin) { this.origin = origin; } - public TravelRuleTransactionBlockchainInfo destination(String destination) { + public TravelRuleTransactionBlockchainInfo destination( + @jakarta.annotation.Nullable String destination) { this.destination = destination; return this; } @@ -105,7 +107,7 @@ public String getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(String destination) { + public void setDestination(@jakarta.annotation.Nullable String destination) { this.destination = destination; } @@ -192,8 +194,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } // add `origin` to the URL query string @@ -203,8 +204,7 @@ public String toUrlQueryString(String prefix) { "%sorigin%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getOrigin()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOrigin())))); } // add `destination` to the URL query string @@ -214,10 +214,7 @@ public String toUrlQueryString(String prefix) { "%sdestination%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestination()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestination())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetails.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetails.java index 2bfdf411..d8ba0ba5 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetails.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetails.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +26,27 @@ TravelRuleUpdateVASPDetails.JSON_PROPERTY_DID, TravelRuleUpdateVASPDetails.JSON_PROPERTY_PII_DIDKEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleUpdateVASPDetails { public static final String JSON_PROPERTY_DID = "did"; - private String did; + @jakarta.annotation.Nonnull private String did; public static final String JSON_PROPERTY_PII_DIDKEY = "pii_didkey"; - private String piiDidkey; + @jakarta.annotation.Nonnull private String piiDidkey; public TravelRuleUpdateVASPDetails() {} - public TravelRuleUpdateVASPDetails did(String did) { + @JsonCreator + public TravelRuleUpdateVASPDetails( + @JsonProperty(value = JSON_PROPERTY_DID, required = true) String did, + @JsonProperty(value = JSON_PROPERTY_PII_DIDKEY, required = true) String piiDidkey) { + this.did = did; + this.piiDidkey = piiDidkey; + } + + public TravelRuleUpdateVASPDetails did(@jakarta.annotation.Nonnull String did) { this.did = did; return this; } @@ -55,11 +65,11 @@ public String getDid() { @JsonProperty(JSON_PROPERTY_DID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDid(String did) { + public void setDid(@jakarta.annotation.Nonnull String did) { this.did = did; } - public TravelRuleUpdateVASPDetails piiDidkey(String piiDidkey) { + public TravelRuleUpdateVASPDetails piiDidkey(@jakarta.annotation.Nonnull String piiDidkey) { this.piiDidkey = piiDidkey; return this; } @@ -78,7 +88,7 @@ public String getPiiDidkey() { @JsonProperty(JSON_PROPERTY_PII_DIDKEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPiiDidkey(String piiDidkey) { + public void setPiiDidkey(@jakarta.annotation.Nonnull String piiDidkey) { this.piiDidkey = piiDidkey; } @@ -161,8 +171,7 @@ public String toUrlQueryString(String prefix) { "%sdid%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDid()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDid())))); } // add `pii_didkey` to the URL query string @@ -172,9 +181,7 @@ public String toUrlQueryString(String prefix) { "%spii_didkey%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPiiDidkey()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPiiDidkey())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java index 708d3e0b..246a0657 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -70,150 +70,201 @@ TravelRuleVASP.JSON_PROPERTY_IS_NOTIFIABLE, TravelRuleVASP.JSON_PROPERTY_ISSUERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleVASP { public static final String JSON_PROPERTY_DID = "did"; - private String did; + @jakarta.annotation.Nonnull private String did; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; - private String verificationStatus; + @jakarta.annotation.Nonnull private String verificationStatus; public static final String JSON_PROPERTY_ADDRESS_LINE1 = "addressLine1"; - private String addressLine1; + @jakarta.annotation.Nonnull private String addressLine1; public static final String JSON_PROPERTY_ADDRESS_LINE2 = "addressLine2"; - private String addressLine2; + @jakarta.annotation.Nullable private String addressLine2; public static final String JSON_PROPERTY_CITY = "city"; - private String city; + @jakarta.annotation.Nonnull private String city; public static final String JSON_PROPERTY_COUNTRY = "country"; - private String country; + @jakarta.annotation.Nonnull private String country; public static final String JSON_PROPERTY_EMAIL_DOMAINS = "emailDomains"; - private String emailDomains; + @jakarta.annotation.Nonnull private String emailDomains; public static final String JSON_PROPERTY_WEBSITE = "website"; - private String website; + @jakarta.annotation.Nonnull private String website; public static final String JSON_PROPERTY_LOGO = "logo"; - private String logo; + @jakarta.annotation.Nullable private String logo; public static final String JSON_PROPERTY_LEGAL_STRUCTURE = "legalStructure"; - private String legalStructure; + @jakarta.annotation.Nonnull private String legalStructure; public static final String JSON_PROPERTY_LEGAL_NAME = "legalName"; - private String legalName; + @jakarta.annotation.Nonnull private String legalName; public static final String JSON_PROPERTY_YEAR_FOUNDED = "yearFounded"; - private String yearFounded; + @jakarta.annotation.Nonnull private String yearFounded; public static final String JSON_PROPERTY_INCORPORATION_COUNTRY = "incorporationCountry"; - private String incorporationCountry; + @jakarta.annotation.Nonnull private String incorporationCountry; public static final String JSON_PROPERTY_IS_REGULATED = "isRegulated"; - private String isRegulated; + @jakarta.annotation.Nonnull private String isRegulated; public static final String JSON_PROPERTY_OTHER_NAMES = "otherNames"; - private String otherNames; + @jakarta.annotation.Nullable private String otherNames; public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; - private String identificationType; + @jakarta.annotation.Nullable private String identificationType; public static final String JSON_PROPERTY_IDENTIFICATION_COUNTRY = "identificationCountry"; - private String identificationCountry; + @jakarta.annotation.Nullable private String identificationCountry; public static final String JSON_PROPERTY_BUSINESS_NUMBER = "businessNumber"; - private String businessNumber; + @jakarta.annotation.Nullable private String businessNumber; public static final String JSON_PROPERTY_REGULATORY_AUTHORITIES = "regulatoryAuthorities"; - private String regulatoryAuthorities; + @jakarta.annotation.Nullable private String regulatoryAuthorities; public static final String JSON_PROPERTY_JURISDICTIONS = "jurisdictions"; - private String jurisdictions; + @jakarta.annotation.Nonnull private String jurisdictions; public static final String JSON_PROPERTY_STREET = "street"; - private String street; + @jakarta.annotation.Nullable private String street; public static final String JSON_PROPERTY_NUMBER = "number"; - private String number; + @jakarta.annotation.Nullable private String number; public static final String JSON_PROPERTY_UNIT = "unit"; - private String unit; + @jakarta.annotation.Nullable private String unit; public static final String JSON_PROPERTY_POST_CODE = "postCode"; - private String postCode; + @jakarta.annotation.Nullable private String postCode; public static final String JSON_PROPERTY_STATE = "state"; - private String state; + @jakarta.annotation.Nullable private String state; public static final String JSON_PROPERTY_CERTIFICATES = "certificates"; - private String certificates; + @jakarta.annotation.Nullable private String certificates; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_TRAVEL_RULE_O_P_E_N_V_A_S_P = "travelRule_OPENVASP"; - private String travelRuleOPENVASP; + @jakarta.annotation.Nullable private String travelRuleOPENVASP; public static final String JSON_PROPERTY_TRAVEL_RULE_S_Y_G_N_A = "travelRule_SYGNA"; - private String travelRuleSYGNA; + @jakarta.annotation.Nullable private String travelRuleSYGNA; public static final String JSON_PROPERTY_TRAVEL_RULE_T_R_I_S_A = "travelRule_TRISA"; - private String travelRuleTRISA; + @jakarta.annotation.Nullable private String travelRuleTRISA; public static final String JSON_PROPERTY_TRAVEL_RULE_T_R_L_I_G_H_T = "travelRule_TRLIGHT"; - private String travelRuleTRLIGHT; + @jakarta.annotation.Nonnull private String travelRuleTRLIGHT; public static final String JSON_PROPERTY_TRAVEL_RULE_E_M_A_I_L = "travelRule_EMAIL"; - private String travelRuleEMAIL; + @jakarta.annotation.Nullable private String travelRuleEMAIL; public static final String JSON_PROPERTY_TRAVEL_RULE_T_R_P = "travelRule_TRP"; - private String travelRuleTRP; + @jakarta.annotation.Nullable private String travelRuleTRP; public static final String JSON_PROPERTY_TRAVEL_RULE_S_H_Y_F_T = "travelRule_SHYFT"; - private String travelRuleSHYFT; + @jakarta.annotation.Nullable 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"; - private String travelRuleUSTRAVELRULEWG; + @jakarta.annotation.Nullable private String travelRuleUSTRAVELRULEWG; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private String createdAt; + @jakarta.annotation.Nonnull private String createdAt; public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; - private String createdBy; + @jakarta.annotation.Nullable private String createdBy; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private String updatedAt; + @jakarta.annotation.Nullable private String updatedAt; public static final String JSON_PROPERTY_UPDATED_BY = "updatedBy"; - private String updatedBy; + @jakarta.annotation.Nullable private String updatedBy; public static final String JSON_PROPERTY_LAST_SENT_DATE = "lastSentDate"; - private String lastSentDate; + @jakarta.annotation.Nullable private String lastSentDate; public static final String JSON_PROPERTY_LAST_RECEIVED_DATE = "lastReceivedDate"; - private String lastReceivedDate; + @jakarta.annotation.Nullable private String lastReceivedDate; public static final String JSON_PROPERTY_DOCUMENTS = "documents"; - private String documents; + @jakarta.annotation.Nullable private String documents; public static final String JSON_PROPERTY_HAS_ADMIN = "hasAdmin"; - private Boolean hasAdmin; + @jakarta.annotation.Nonnull private Boolean hasAdmin; public static final String JSON_PROPERTY_IS_NOTIFIABLE = "isNotifiable"; - private Boolean isNotifiable; + @jakarta.annotation.Nonnull private Boolean isNotifiable; public static final String JSON_PROPERTY_ISSUERS = "issuers"; - private TravelRuleIssuers issuers; + @jakarta.annotation.Nonnull private TravelRuleIssuers issuers; public TravelRuleVASP() {} - public TravelRuleVASP did(String did) { + @JsonCreator + public TravelRuleVASP( + @JsonProperty(value = JSON_PROPERTY_DID, required = true) String did, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_VERIFICATION_STATUS, required = true) + String verificationStatus, + @JsonProperty(value = JSON_PROPERTY_ADDRESS_LINE1, required = true) String addressLine1, + @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_LEGAL_STRUCTURE, required = true) + String legalStructure, + @JsonProperty(value = JSON_PROPERTY_LEGAL_NAME, required = true) String legalName, + @JsonProperty(value = JSON_PROPERTY_YEAR_FOUNDED, required = true) String yearFounded, + @JsonProperty(value = JSON_PROPERTY_INCORPORATION_COUNTRY, required = true) + String incorporationCountry, + @JsonProperty(value = JSON_PROPERTY_IS_REGULATED, required = true) String isRegulated, + @JsonProperty(value = JSON_PROPERTY_JURISDICTIONS, required = true) + String jurisdictions, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_T_R_L_I_G_H_T, required = true) + String travelRuleTRLIGHT, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) String createdAt, + @JsonProperty(value = JSON_PROPERTY_HAS_ADMIN, required = true) Boolean hasAdmin, + @JsonProperty(value = JSON_PROPERTY_IS_NOTIFIABLE, required = true) + Boolean isNotifiable, + @JsonProperty(value = JSON_PROPERTY_ISSUERS, required = true) + TravelRuleIssuers issuers) { + this.did = did; + this.name = name; + this.verificationStatus = verificationStatus; + this.addressLine1 = addressLine1; + this.city = city; + this.country = country; + this.emailDomains = emailDomains; + this.website = website; + this.legalStructure = legalStructure; + this.legalName = legalName; + this.yearFounded = yearFounded; + this.incorporationCountry = incorporationCountry; + this.isRegulated = isRegulated; + this.jurisdictions = jurisdictions; + this.travelRuleTRLIGHT = travelRuleTRLIGHT; + this.createdAt = createdAt; + this.hasAdmin = hasAdmin; + this.isNotifiable = isNotifiable; + this.issuers = issuers; + } + + public TravelRuleVASP did(@jakarta.annotation.Nonnull String did) { this.did = did; return this; } @@ -232,11 +283,11 @@ public String getDid() { @JsonProperty(JSON_PROPERTY_DID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDid(String did) { + public void setDid(@jakarta.annotation.Nonnull String did) { this.did = did; } - public TravelRuleVASP name(String name) { + public TravelRuleVASP name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -255,11 +306,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public TravelRuleVASP verificationStatus(String verificationStatus) { + public TravelRuleVASP verificationStatus( + @jakarta.annotation.Nonnull String verificationStatus) { this.verificationStatus = verificationStatus; return this; } @@ -278,11 +330,11 @@ public String getVerificationStatus() { @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerificationStatus(String verificationStatus) { + public void setVerificationStatus(@jakarta.annotation.Nonnull String verificationStatus) { this.verificationStatus = verificationStatus; } - public TravelRuleVASP addressLine1(String addressLine1) { + public TravelRuleVASP addressLine1(@jakarta.annotation.Nonnull String addressLine1) { this.addressLine1 = addressLine1; return this; } @@ -301,11 +353,11 @@ public String getAddressLine1() { @JsonProperty(JSON_PROPERTY_ADDRESS_LINE1) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressLine1(String addressLine1) { + public void setAddressLine1(@jakarta.annotation.Nonnull String addressLine1) { this.addressLine1 = addressLine1; } - public TravelRuleVASP addressLine2(String addressLine2) { + public TravelRuleVASP addressLine2(@jakarta.annotation.Nullable String addressLine2) { this.addressLine2 = addressLine2; return this; } @@ -324,11 +376,11 @@ public String getAddressLine2() { @JsonProperty(JSON_PROPERTY_ADDRESS_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressLine2(String addressLine2) { + public void setAddressLine2(@jakarta.annotation.Nullable String addressLine2) { this.addressLine2 = addressLine2; } - public TravelRuleVASP city(String city) { + public TravelRuleVASP city(@jakarta.annotation.Nonnull String city) { this.city = city; return this; } @@ -347,11 +399,11 @@ public String getCity() { @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCity(String city) { + public void setCity(@jakarta.annotation.Nonnull String city) { this.city = city; } - public TravelRuleVASP country(String country) { + public TravelRuleVASP country(@jakarta.annotation.Nonnull String country) { this.country = country; return this; } @@ -370,11 +422,11 @@ public String getCountry() { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(String country) { + public void setCountry(@jakarta.annotation.Nonnull String country) { this.country = country; } - public TravelRuleVASP emailDomains(String emailDomains) { + public TravelRuleVASP emailDomains(@jakarta.annotation.Nonnull String emailDomains) { this.emailDomains = emailDomains; return this; } @@ -393,11 +445,11 @@ public String getEmailDomains() { @JsonProperty(JSON_PROPERTY_EMAIL_DOMAINS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailDomains(String emailDomains) { + public void setEmailDomains(@jakarta.annotation.Nonnull String emailDomains) { this.emailDomains = emailDomains; } - public TravelRuleVASP website(String website) { + public TravelRuleVASP website(@jakarta.annotation.Nonnull String website) { this.website = website; return this; } @@ -416,11 +468,11 @@ public String getWebsite() { @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWebsite(String website) { + public void setWebsite(@jakarta.annotation.Nonnull String website) { this.website = website; } - public TravelRuleVASP logo(String logo) { + public TravelRuleVASP logo(@jakarta.annotation.Nullable String logo) { this.logo = logo; return this; } @@ -439,11 +491,11 @@ public String getLogo() { @JsonProperty(JSON_PROPERTY_LOGO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogo(String logo) { + public void setLogo(@jakarta.annotation.Nullable String logo) { this.logo = logo; } - public TravelRuleVASP legalStructure(String legalStructure) { + public TravelRuleVASP legalStructure(@jakarta.annotation.Nonnull String legalStructure) { this.legalStructure = legalStructure; return this; } @@ -462,11 +514,11 @@ public String getLegalStructure() { @JsonProperty(JSON_PROPERTY_LEGAL_STRUCTURE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegalStructure(String legalStructure) { + public void setLegalStructure(@jakarta.annotation.Nonnull String legalStructure) { this.legalStructure = legalStructure; } - public TravelRuleVASP legalName(String legalName) { + public TravelRuleVASP legalName(@jakarta.annotation.Nonnull String legalName) { this.legalName = legalName; return this; } @@ -485,11 +537,11 @@ public String getLegalName() { @JsonProperty(JSON_PROPERTY_LEGAL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegalName(String legalName) { + public void setLegalName(@jakarta.annotation.Nonnull String legalName) { this.legalName = legalName; } - public TravelRuleVASP yearFounded(String yearFounded) { + public TravelRuleVASP yearFounded(@jakarta.annotation.Nonnull String yearFounded) { this.yearFounded = yearFounded; return this; } @@ -508,11 +560,12 @@ public String getYearFounded() { @JsonProperty(JSON_PROPERTY_YEAR_FOUNDED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setYearFounded(String yearFounded) { + public void setYearFounded(@jakarta.annotation.Nonnull String yearFounded) { this.yearFounded = yearFounded; } - public TravelRuleVASP incorporationCountry(String incorporationCountry) { + public TravelRuleVASP incorporationCountry( + @jakarta.annotation.Nonnull String incorporationCountry) { this.incorporationCountry = incorporationCountry; return this; } @@ -531,11 +584,11 @@ public String getIncorporationCountry() { @JsonProperty(JSON_PROPERTY_INCORPORATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIncorporationCountry(String incorporationCountry) { + public void setIncorporationCountry(@jakarta.annotation.Nonnull String incorporationCountry) { this.incorporationCountry = incorporationCountry; } - public TravelRuleVASP isRegulated(String isRegulated) { + public TravelRuleVASP isRegulated(@jakarta.annotation.Nonnull String isRegulated) { this.isRegulated = isRegulated; return this; } @@ -554,11 +607,11 @@ public String getIsRegulated() { @JsonProperty(JSON_PROPERTY_IS_REGULATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsRegulated(String isRegulated) { + public void setIsRegulated(@jakarta.annotation.Nonnull String isRegulated) { this.isRegulated = isRegulated; } - public TravelRuleVASP otherNames(String otherNames) { + public TravelRuleVASP otherNames(@jakarta.annotation.Nullable String otherNames) { this.otherNames = otherNames; return this; } @@ -577,11 +630,12 @@ public String getOtherNames() { @JsonProperty(JSON_PROPERTY_OTHER_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherNames(String otherNames) { + public void setOtherNames(@jakarta.annotation.Nullable String otherNames) { this.otherNames = otherNames; } - public TravelRuleVASP identificationType(String identificationType) { + public TravelRuleVASP identificationType( + @jakarta.annotation.Nullable String identificationType) { this.identificationType = identificationType; return this; } @@ -600,11 +654,12 @@ public String getIdentificationType() { @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdentificationType(String identificationType) { + public void setIdentificationType(@jakarta.annotation.Nullable String identificationType) { this.identificationType = identificationType; } - public TravelRuleVASP identificationCountry(String identificationCountry) { + public TravelRuleVASP identificationCountry( + @jakarta.annotation.Nullable String identificationCountry) { this.identificationCountry = identificationCountry; return this; } @@ -623,11 +678,12 @@ public String getIdentificationCountry() { @JsonProperty(JSON_PROPERTY_IDENTIFICATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdentificationCountry(String identificationCountry) { + public void setIdentificationCountry( + @jakarta.annotation.Nullable String identificationCountry) { this.identificationCountry = identificationCountry; } - public TravelRuleVASP businessNumber(String businessNumber) { + public TravelRuleVASP businessNumber(@jakarta.annotation.Nullable String businessNumber) { this.businessNumber = businessNumber; return this; } @@ -646,11 +702,12 @@ public String getBusinessNumber() { @JsonProperty(JSON_PROPERTY_BUSINESS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBusinessNumber(String businessNumber) { + public void setBusinessNumber(@jakarta.annotation.Nullable String businessNumber) { this.businessNumber = businessNumber; } - public TravelRuleVASP regulatoryAuthorities(String regulatoryAuthorities) { + public TravelRuleVASP regulatoryAuthorities( + @jakarta.annotation.Nullable String regulatoryAuthorities) { this.regulatoryAuthorities = regulatoryAuthorities; return this; } @@ -669,11 +726,12 @@ public String getRegulatoryAuthorities() { @JsonProperty(JSON_PROPERTY_REGULATORY_AUTHORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegulatoryAuthorities(String regulatoryAuthorities) { + public void setRegulatoryAuthorities( + @jakarta.annotation.Nullable String regulatoryAuthorities) { this.regulatoryAuthorities = regulatoryAuthorities; } - public TravelRuleVASP jurisdictions(String jurisdictions) { + public TravelRuleVASP jurisdictions(@jakarta.annotation.Nonnull String jurisdictions) { this.jurisdictions = jurisdictions; return this; } @@ -692,11 +750,11 @@ public String getJurisdictions() { @JsonProperty(JSON_PROPERTY_JURISDICTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setJurisdictions(String jurisdictions) { + public void setJurisdictions(@jakarta.annotation.Nonnull String jurisdictions) { this.jurisdictions = jurisdictions; } - public TravelRuleVASP street(String street) { + public TravelRuleVASP street(@jakarta.annotation.Nullable String street) { this.street = street; return this; } @@ -715,11 +773,11 @@ public String getStreet() { @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreet(String street) { + public void setStreet(@jakarta.annotation.Nullable String street) { this.street = street; } - public TravelRuleVASP number(String number) { + public TravelRuleVASP number(@jakarta.annotation.Nullable String number) { this.number = number; return this; } @@ -738,11 +796,11 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(String number) { + public void setNumber(@jakarta.annotation.Nullable String number) { this.number = number; } - public TravelRuleVASP unit(String unit) { + public TravelRuleVASP unit(@jakarta.annotation.Nullable String unit) { this.unit = unit; return this; } @@ -761,11 +819,11 @@ public String getUnit() { @JsonProperty(JSON_PROPERTY_UNIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUnit(String unit) { + public void setUnit(@jakarta.annotation.Nullable String unit) { this.unit = unit; } - public TravelRuleVASP postCode(String postCode) { + public TravelRuleVASP postCode(@jakarta.annotation.Nullable String postCode) { this.postCode = postCode; return this; } @@ -784,11 +842,11 @@ public String getPostCode() { @JsonProperty(JSON_PROPERTY_POST_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostCode(String postCode) { + public void setPostCode(@jakarta.annotation.Nullable String postCode) { this.postCode = postCode; } - public TravelRuleVASP state(String state) { + public TravelRuleVASP state(@jakarta.annotation.Nullable String state) { this.state = state; return this; } @@ -807,11 +865,11 @@ public String getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(String state) { + public void setState(@jakarta.annotation.Nullable String state) { this.state = state; } - public TravelRuleVASP certificates(String certificates) { + public TravelRuleVASP certificates(@jakarta.annotation.Nullable String certificates) { this.certificates = certificates; return this; } @@ -830,11 +888,11 @@ public String getCertificates() { @JsonProperty(JSON_PROPERTY_CERTIFICATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCertificates(String certificates) { + public void setCertificates(@jakarta.annotation.Nullable String certificates) { this.certificates = certificates; } - public TravelRuleVASP description(String description) { + public TravelRuleVASP description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -853,11 +911,12 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public TravelRuleVASP travelRuleOPENVASP(String travelRuleOPENVASP) { + public TravelRuleVASP travelRuleOPENVASP( + @jakarta.annotation.Nullable String travelRuleOPENVASP) { this.travelRuleOPENVASP = travelRuleOPENVASP; return this; } @@ -876,11 +935,11 @@ public String getTravelRuleOPENVASP() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_O_P_E_N_V_A_S_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleOPENVASP(String travelRuleOPENVASP) { + public void setTravelRuleOPENVASP(@jakarta.annotation.Nullable String travelRuleOPENVASP) { this.travelRuleOPENVASP = travelRuleOPENVASP; } - public TravelRuleVASP travelRuleSYGNA(String travelRuleSYGNA) { + public TravelRuleVASP travelRuleSYGNA(@jakarta.annotation.Nullable String travelRuleSYGNA) { this.travelRuleSYGNA = travelRuleSYGNA; return this; } @@ -899,11 +958,11 @@ public String getTravelRuleSYGNA() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_S_Y_G_N_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleSYGNA(String travelRuleSYGNA) { + public void setTravelRuleSYGNA(@jakarta.annotation.Nullable String travelRuleSYGNA) { this.travelRuleSYGNA = travelRuleSYGNA; } - public TravelRuleVASP travelRuleTRISA(String travelRuleTRISA) { + public TravelRuleVASP travelRuleTRISA(@jakarta.annotation.Nullable String travelRuleTRISA) { this.travelRuleTRISA = travelRuleTRISA; return this; } @@ -922,11 +981,11 @@ public String getTravelRuleTRISA() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_I_S_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleTRISA(String travelRuleTRISA) { + public void setTravelRuleTRISA(@jakarta.annotation.Nullable String travelRuleTRISA) { this.travelRuleTRISA = travelRuleTRISA; } - public TravelRuleVASP travelRuleTRLIGHT(String travelRuleTRLIGHT) { + public TravelRuleVASP travelRuleTRLIGHT(@jakarta.annotation.Nonnull String travelRuleTRLIGHT) { this.travelRuleTRLIGHT = travelRuleTRLIGHT; return this; } @@ -945,11 +1004,11 @@ public String getTravelRuleTRLIGHT() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_L_I_G_H_T) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTravelRuleTRLIGHT(String travelRuleTRLIGHT) { + public void setTravelRuleTRLIGHT(@jakarta.annotation.Nonnull String travelRuleTRLIGHT) { this.travelRuleTRLIGHT = travelRuleTRLIGHT; } - public TravelRuleVASP travelRuleEMAIL(String travelRuleEMAIL) { + public TravelRuleVASP travelRuleEMAIL(@jakarta.annotation.Nullable String travelRuleEMAIL) { this.travelRuleEMAIL = travelRuleEMAIL; return this; } @@ -968,11 +1027,11 @@ public String getTravelRuleEMAIL() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_E_M_A_I_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleEMAIL(String travelRuleEMAIL) { + public void setTravelRuleEMAIL(@jakarta.annotation.Nullable String travelRuleEMAIL) { this.travelRuleEMAIL = travelRuleEMAIL; } - public TravelRuleVASP travelRuleTRP(String travelRuleTRP) { + public TravelRuleVASP travelRuleTRP(@jakarta.annotation.Nullable String travelRuleTRP) { this.travelRuleTRP = travelRuleTRP; return this; } @@ -991,11 +1050,11 @@ public String getTravelRuleTRP() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleTRP(String travelRuleTRP) { + public void setTravelRuleTRP(@jakarta.annotation.Nullable String travelRuleTRP) { this.travelRuleTRP = travelRuleTRP; } - public TravelRuleVASP travelRuleSHYFT(String travelRuleSHYFT) { + public TravelRuleVASP travelRuleSHYFT(@jakarta.annotation.Nullable String travelRuleSHYFT) { this.travelRuleSHYFT = travelRuleSHYFT; return this; } @@ -1014,11 +1073,12 @@ public String getTravelRuleSHYFT() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_S_H_Y_F_T) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleSHYFT(String travelRuleSHYFT) { + public void setTravelRuleSHYFT(@jakarta.annotation.Nullable String travelRuleSHYFT) { this.travelRuleSHYFT = travelRuleSHYFT; } - public TravelRuleVASP travelRuleUSTRAVELRULEWG(String travelRuleUSTRAVELRULEWG) { + public TravelRuleVASP travelRuleUSTRAVELRULEWG( + @jakarta.annotation.Nullable String travelRuleUSTRAVELRULEWG) { this.travelRuleUSTRAVELRULEWG = travelRuleUSTRAVELRULEWG; return this; } @@ -1037,11 +1097,12 @@ public String getTravelRuleUSTRAVELRULEWG() { @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) - public void setTravelRuleUSTRAVELRULEWG(String travelRuleUSTRAVELRULEWG) { + public void setTravelRuleUSTRAVELRULEWG( + @jakarta.annotation.Nullable String travelRuleUSTRAVELRULEWG) { this.travelRuleUSTRAVELRULEWG = travelRuleUSTRAVELRULEWG; } - public TravelRuleVASP createdAt(String createdAt) { + public TravelRuleVASP createdAt(@jakarta.annotation.Nonnull String createdAt) { this.createdAt = createdAt; return this; } @@ -1060,11 +1121,11 @@ public String getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(String createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull String createdAt) { this.createdAt = createdAt; } - public TravelRuleVASP createdBy(String createdBy) { + public TravelRuleVASP createdBy(@jakarta.annotation.Nullable String createdBy) { this.createdBy = createdBy; return this; } @@ -1083,11 +1144,11 @@ public String getCreatedBy() { @JsonProperty(JSON_PROPERTY_CREATED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedBy(String createdBy) { + public void setCreatedBy(@jakarta.annotation.Nullable String createdBy) { this.createdBy = createdBy; } - public TravelRuleVASP updatedAt(String updatedAt) { + public TravelRuleVASP updatedAt(@jakarta.annotation.Nullable String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -1106,11 +1167,11 @@ public String getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(String updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nullable String updatedAt) { this.updatedAt = updatedAt; } - public TravelRuleVASP updatedBy(String updatedBy) { + public TravelRuleVASP updatedBy(@jakarta.annotation.Nullable String updatedBy) { this.updatedBy = updatedBy; return this; } @@ -1129,11 +1190,11 @@ public String getUpdatedBy() { @JsonProperty(JSON_PROPERTY_UPDATED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedBy(String updatedBy) { + public void setUpdatedBy(@jakarta.annotation.Nullable String updatedBy) { this.updatedBy = updatedBy; } - public TravelRuleVASP lastSentDate(String lastSentDate) { + public TravelRuleVASP lastSentDate(@jakarta.annotation.Nullable String lastSentDate) { this.lastSentDate = lastSentDate; return this; } @@ -1152,11 +1213,11 @@ public String getLastSentDate() { @JsonProperty(JSON_PROPERTY_LAST_SENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastSentDate(String lastSentDate) { + public void setLastSentDate(@jakarta.annotation.Nullable String lastSentDate) { this.lastSentDate = lastSentDate; } - public TravelRuleVASP lastReceivedDate(String lastReceivedDate) { + public TravelRuleVASP lastReceivedDate(@jakarta.annotation.Nullable String lastReceivedDate) { this.lastReceivedDate = lastReceivedDate; return this; } @@ -1175,11 +1236,11 @@ public String getLastReceivedDate() { @JsonProperty(JSON_PROPERTY_LAST_RECEIVED_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastReceivedDate(String lastReceivedDate) { + public void setLastReceivedDate(@jakarta.annotation.Nullable String lastReceivedDate) { this.lastReceivedDate = lastReceivedDate; } - public TravelRuleVASP documents(String documents) { + public TravelRuleVASP documents(@jakarta.annotation.Nullable String documents) { this.documents = documents; return this; } @@ -1198,11 +1259,11 @@ public String getDocuments() { @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocuments(String documents) { + public void setDocuments(@jakarta.annotation.Nullable String documents) { this.documents = documents; } - public TravelRuleVASP hasAdmin(Boolean hasAdmin) { + public TravelRuleVASP hasAdmin(@jakarta.annotation.Nonnull Boolean hasAdmin) { this.hasAdmin = hasAdmin; return this; } @@ -1221,11 +1282,11 @@ public Boolean getHasAdmin() { @JsonProperty(JSON_PROPERTY_HAS_ADMIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHasAdmin(Boolean hasAdmin) { + public void setHasAdmin(@jakarta.annotation.Nonnull Boolean hasAdmin) { this.hasAdmin = hasAdmin; } - public TravelRuleVASP isNotifiable(Boolean isNotifiable) { + public TravelRuleVASP isNotifiable(@jakarta.annotation.Nonnull Boolean isNotifiable) { this.isNotifiable = isNotifiable; return this; } @@ -1244,11 +1305,11 @@ public Boolean getIsNotifiable() { @JsonProperty(JSON_PROPERTY_IS_NOTIFIABLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsNotifiable(Boolean isNotifiable) { + public void setIsNotifiable(@jakarta.annotation.Nonnull Boolean isNotifiable) { this.isNotifiable = isNotifiable; } - public TravelRuleVASP issuers(TravelRuleIssuers issuers) { + public TravelRuleVASP issuers(@jakarta.annotation.Nonnull TravelRuleIssuers issuers) { this.issuers = issuers; return this; } @@ -1267,7 +1328,7 @@ public TravelRuleIssuers getIssuers() { @JsonProperty(JSON_PROPERTY_ISSUERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIssuers(TravelRuleIssuers issuers) { + public void setIssuers(@jakarta.annotation.Nonnull TravelRuleIssuers issuers) { this.issuers = issuers; } @@ -1501,8 +1562,7 @@ public String toUrlQueryString(String prefix) { "%sdid%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getDid()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDid())))); } // add `name` to the URL query string @@ -1512,8 +1572,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `verificationStatus` to the URL query string @@ -1523,10 +1582,7 @@ public String toUrlQueryString(String prefix) { "%sverificationStatus%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVerificationStatus()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVerificationStatus())))); } // add `addressLine1` to the URL query string @@ -1536,10 +1592,7 @@ public String toUrlQueryString(String prefix) { "%saddressLine1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressLine1()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressLine1())))); } // add `addressLine2` to the URL query string @@ -1549,10 +1602,7 @@ public String toUrlQueryString(String prefix) { "%saddressLine2%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressLine2()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressLine2())))); } // add `city` to the URL query string @@ -1562,8 +1612,7 @@ public String toUrlQueryString(String prefix) { "%scity%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCity()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCity())))); } // add `country` to the URL query string @@ -1573,8 +1622,7 @@ public String toUrlQueryString(String prefix) { "%scountry%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCountry()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); } // add `emailDomains` to the URL query string @@ -1584,10 +1632,7 @@ public String toUrlQueryString(String prefix) { "%semailDomains%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEmailDomains()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEmailDomains())))); } // add `website` to the URL query string @@ -1597,8 +1642,7 @@ public String toUrlQueryString(String prefix) { "%swebsite%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getWebsite())))); } // add `logo` to the URL query string @@ -1608,8 +1652,7 @@ public String toUrlQueryString(String prefix) { "%slogo%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLogo()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLogo())))); } // add `legalStructure` to the URL query string @@ -1619,10 +1662,7 @@ public String toUrlQueryString(String prefix) { "%slegalStructure%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegalStructure()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegalStructure())))); } // add `legalName` to the URL query string @@ -1632,9 +1672,7 @@ public String toUrlQueryString(String prefix) { "%slegalName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegalName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegalName())))); } // add `yearFounded` to the URL query string @@ -1644,10 +1682,7 @@ public String toUrlQueryString(String prefix) { "%syearFounded%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getYearFounded()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getYearFounded())))); } // add `incorporationCountry` to the URL query string @@ -1657,10 +1692,8 @@ public String toUrlQueryString(String prefix) { "%sincorporationCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIncorporationCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getIncorporationCountry())))); } // add `isRegulated` to the URL query string @@ -1670,10 +1703,7 @@ public String toUrlQueryString(String prefix) { "%sisRegulated%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsRegulated()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsRegulated())))); } // add `otherNames` to the URL query string @@ -1683,9 +1713,7 @@ public String toUrlQueryString(String prefix) { "%sotherNames%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOtherNames()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOtherNames())))); } // add `identificationType` to the URL query string @@ -1695,10 +1723,7 @@ public String toUrlQueryString(String prefix) { "%sidentificationType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIdentificationType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIdentificationType())))); } // add `identificationCountry` to the URL query string @@ -1708,10 +1733,8 @@ public String toUrlQueryString(String prefix) { "%sidentificationCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIdentificationCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getIdentificationCountry())))); } // add `businessNumber` to the URL query string @@ -1721,10 +1744,7 @@ public String toUrlQueryString(String prefix) { "%sbusinessNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBusinessNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBusinessNumber())))); } // add `regulatoryAuthorities` to the URL query string @@ -1734,10 +1754,8 @@ public String toUrlQueryString(String prefix) { "%sregulatoryAuthorities%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRegulatoryAuthorities()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getRegulatoryAuthorities())))); } // add `jurisdictions` to the URL query string @@ -1747,10 +1765,7 @@ public String toUrlQueryString(String prefix) { "%sjurisdictions%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getJurisdictions()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getJurisdictions())))); } // add `street` to the URL query string @@ -1760,8 +1775,7 @@ public String toUrlQueryString(String prefix) { "%sstreet%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStreet()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStreet())))); } // add `number` to the URL query string @@ -1771,8 +1785,7 @@ public String toUrlQueryString(String prefix) { "%snumber%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNumber()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNumber())))); } // add `unit` to the URL query string @@ -1782,8 +1795,7 @@ public String toUrlQueryString(String prefix) { "%sunit%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUnit()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUnit())))); } // add `postCode` to the URL query string @@ -1793,8 +1805,7 @@ public String toUrlQueryString(String prefix) { "%spostCode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPostCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPostCode())))); } // add `state` to the URL query string @@ -1804,8 +1815,7 @@ public String toUrlQueryString(String prefix) { "%sstate%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getState())))); } // add `certificates` to the URL query string @@ -1815,10 +1825,7 @@ public String toUrlQueryString(String prefix) { "%scertificates%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCertificates()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCertificates())))); } // add `description` to the URL query string @@ -1828,10 +1835,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `travelRule_OPENVASP` to the URL query string @@ -1841,10 +1845,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_OPENVASP%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleOPENVASP()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleOPENVASP())))); } // add `travelRule_SYGNA` to the URL query string @@ -1854,10 +1855,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_SYGNA%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleSYGNA()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleSYGNA())))); } // add `travelRule_TRISA` to the URL query string @@ -1867,10 +1865,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_TRISA%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleTRISA()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleTRISA())))); } // add `travelRule_TRLIGHT` to the URL query string @@ -1880,10 +1875,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_TRLIGHT%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleTRLIGHT()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleTRLIGHT())))); } // add `travelRule_EMAIL` to the URL query string @@ -1893,10 +1885,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_EMAIL%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleEMAIL()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleEMAIL())))); } // add `travelRule_TRP` to the URL query string @@ -1906,10 +1895,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_TRP%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleTRP()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleTRP())))); } // add `travelRule_SHYFT` to the URL query string @@ -1919,10 +1905,7 @@ public String toUrlQueryString(String prefix) { "%stravelRule_SHYFT%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleSHYFT()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleSHYFT())))); } // add `travelRule_USTRAVELRULEWG` to the URL query string @@ -1932,10 +1915,8 @@ public String toUrlQueryString(String prefix) { "%stravelRule_USTRAVELRULEWG%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleUSTRAVELRULEWG()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTravelRuleUSTRAVELRULEWG())))); } // add `createdAt` to the URL query string @@ -1945,9 +1926,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `createdBy` to the URL query string @@ -1957,9 +1936,7 @@ public String toUrlQueryString(String prefix) { "%screatedBy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedBy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedBy())))); } // add `updatedAt` to the URL query string @@ -1969,9 +1946,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } // add `updatedBy` to the URL query string @@ -1981,9 +1956,7 @@ public String toUrlQueryString(String prefix) { "%supdatedBy%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedBy()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedBy())))); } // add `lastSentDate` to the URL query string @@ -1993,10 +1966,7 @@ public String toUrlQueryString(String prefix) { "%slastSentDate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastSentDate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastSentDate())))); } // add `lastReceivedDate` to the URL query string @@ -2006,10 +1976,7 @@ public String toUrlQueryString(String prefix) { "%slastReceivedDate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLastReceivedDate()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastReceivedDate())))); } // add `documents` to the URL query string @@ -2019,9 +1986,7 @@ public String toUrlQueryString(String prefix) { "%sdocuments%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDocuments()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDocuments())))); } // add `hasAdmin` to the URL query string @@ -2031,8 +1996,7 @@ public String toUrlQueryString(String prefix) { "%shasAdmin%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getHasAdmin()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getHasAdmin())))); } // add `isNotifiable` to the URL query string @@ -2042,10 +2006,7 @@ public String toUrlQueryString(String prefix) { "%sisNotifiable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsNotifiable()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsNotifiable())))); } // add `issuers` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java index 16b93649..1efa835c 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,20 @@ TravelRuleValidateDateAndPlaceOfBirth.JSON_PROPERTY_DATE_OF_BIRTH, TravelRuleValidateDateAndPlaceOfBirth.JSON_PROPERTY_PLACE_OF_BIRTH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String dateOfBirth; + @jakarta.annotation.Nullable private String dateOfBirth; public static final String JSON_PROPERTY_PLACE_OF_BIRTH = "placeOfBirth"; - private String placeOfBirth; + @jakarta.annotation.Nullable private String placeOfBirth; public TravelRuleValidateDateAndPlaceOfBirth() {} - public TravelRuleValidateDateAndPlaceOfBirth dateOfBirth(String dateOfBirth) { + public TravelRuleValidateDateAndPlaceOfBirth dateOfBirth( + @jakarta.annotation.Nullable String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } @@ -55,11 +57,12 @@ public String getDateOfBirth() { @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateOfBirth(String dateOfBirth) { + public void setDateOfBirth(@jakarta.annotation.Nullable String dateOfBirth) { this.dateOfBirth = dateOfBirth; } - public TravelRuleValidateDateAndPlaceOfBirth placeOfBirth(String placeOfBirth) { + public TravelRuleValidateDateAndPlaceOfBirth placeOfBirth( + @jakarta.annotation.Nullable String placeOfBirth) { this.placeOfBirth = placeOfBirth; return this; } @@ -78,7 +81,7 @@ public String getPlaceOfBirth() { @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlaceOfBirth(String placeOfBirth) { + public void setPlaceOfBirth(@jakarta.annotation.Nullable String placeOfBirth) { this.placeOfBirth = placeOfBirth; } @@ -163,10 +166,7 @@ public String toUrlQueryString(String prefix) { "%sdateOfBirth%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDateOfBirth()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDateOfBirth())))); } // add `placeOfBirth` to the URL query string @@ -176,10 +176,7 @@ public String toUrlQueryString(String prefix) { "%splaceOfBirth%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPlaceOfBirth()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 726498d6..d939b0d5 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -50,48 +49,52 @@ TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_PII, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_PII_URL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String originatorVASPdid; + @jakarta.annotation.Nullable private String originatorVASPdid; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; - private String beneficiaryVASPdid; + @jakarta.annotation.Nullable private String beneficiaryVASPdid; public static final String JSON_PROPERTY_TRANSACTION_ASSET = "transactionAsset"; - private String transactionAsset; + @jakarta.annotation.Nullable private String transactionAsset; public static final String JSON_PROPERTY_TRANSACTION_AMOUNT = "transactionAmount"; - private String transactionAmount; + @jakarta.annotation.Nullable private String transactionAmount; public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME = "originatorVASPname"; - private String originatorVASPname; + @jakarta.annotation.Nullable private String originatorVASPname; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME = "beneficiaryVASPname"; - private String beneficiaryVASPname; + @jakarta.annotation.Nullable private String beneficiaryVASPname; public static final String JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO = "transactionBlockchainInfo"; + + @jakarta.annotation.Nullable private TravelRuleTransactionBlockchainInfo transactionBlockchainInfo; public static final String JSON_PROPERTY_ORIGINATOR = "originator"; - private TravelRuleValidatePiiIVMS originator; + @jakarta.annotation.Nonnull private TravelRuleValidatePiiIVMS originator; public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary"; - private TravelRuleValidatePiiIVMS beneficiary; + @jakarta.annotation.Nonnull private TravelRuleValidatePiiIVMS beneficiary; public static final String JSON_PROPERTY_ENCRYPTED = "encrypted"; - private String encrypted; + @jakarta.annotation.Nullable private String encrypted; /** The protocol used to perform the travel rule. */ public enum ProtocolEnum { - TRLIGHT("TRLight"), + TR_LIGHT(String.valueOf("TRLight")), - TRP("TRP"), + TRP(String.valueOf("TRP")), - OPENVASP("OpenVASP"), + OPEN_VASP(String.valueOf("OpenVASP")), - GTR("GTR"); + GTR(String.valueOf("GTR")); private String value; @@ -121,51 +124,62 @@ public static ProtocolEnum fromValue(String value) { } public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private ProtocolEnum protocol; + @jakarta.annotation.Nullable private ProtocolEnum protocol; public static final String JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION = "skipBeneficiaryDataValidation"; - private Boolean skipBeneficiaryDataValidation; + @jakarta.annotation.Nullable private Boolean skipBeneficiaryDataValidation; public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR = "travelRuleBehavior"; - private Boolean travelRuleBehavior; + @jakarta.annotation.Nullable private Boolean travelRuleBehavior; public static final String JSON_PROPERTY_ORIGINATOR_REF = "originatorRef"; - private String originatorRef; + @jakarta.annotation.Nullable private String originatorRef; public static final String JSON_PROPERTY_BENEFICIARY_REF = "beneficiaryRef"; - private String beneficiaryRef; + @jakarta.annotation.Nullable private String beneficiaryRef; public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF = "travelRuleBehaviorRef"; - private String travelRuleBehaviorRef; + @jakarta.annotation.Nullable private String travelRuleBehaviorRef; public static final String JSON_PROPERTY_ORIGINATOR_PROOF = "originatorProof"; - private TravelRuleOwnershipProof originatorProof; + @jakarta.annotation.Nullable private TravelRuleOwnershipProof originatorProof; public static final String JSON_PROPERTY_BENEFICIARY_PROOF = "beneficiaryProof"; - private TravelRuleOwnershipProof beneficiaryProof; + @jakarta.annotation.Nullable private TravelRuleOwnershipProof beneficiaryProof; public static final String JSON_PROPERTY_BENEFICIARY_DID = "beneficiaryDid"; - private String beneficiaryDid; + @jakarta.annotation.Nullable private String beneficiaryDid; public static final String JSON_PROPERTY_ORIGINATOR_DID = "originatorDid"; - private String originatorDid; + @jakarta.annotation.Nullable private String originatorDid; public static final String JSON_PROPERTY_IS_NON_CUSTODIAL = "isNonCustodial"; - private Boolean isNonCustodial; + @jakarta.annotation.Nullable private Boolean isNonCustodial; public static final String JSON_PROPERTY_NOTIFICATION_EMAIL = "notificationEmail"; - private String notificationEmail; + @jakarta.annotation.Nullable private String notificationEmail; public static final String JSON_PROPERTY_PII = "pii"; - private TravelRulePiiIVMS pii; + @jakarta.annotation.Nullable private TravelRulePiiIVMS pii; public static final String JSON_PROPERTY_PII_URL = "pii_url"; - private String piiUrl; + @jakarta.annotation.Nullable private String piiUrl; public TravelRuleValidateFullTransactionRequest() {} - public TravelRuleValidateFullTransactionRequest originatorVASPdid(String originatorVASPdid) { + @JsonCreator + public TravelRuleValidateFullTransactionRequest( + @JsonProperty(value = JSON_PROPERTY_ORIGINATOR, required = true) + TravelRuleValidatePiiIVMS originator, + @JsonProperty(value = JSON_PROPERTY_BENEFICIARY, required = true) + TravelRuleValidatePiiIVMS beneficiary) { + this.originator = originator; + this.beneficiary = beneficiary; + } + + public TravelRuleValidateFullTransactionRequest originatorVASPdid( + @jakarta.annotation.Nullable String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; return this; } @@ -186,11 +200,12 @@ public String getOriginatorVASPdid() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPdid(String originatorVASPdid) { + public void setOriginatorVASPdid(@jakarta.annotation.Nullable String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; } - public TravelRuleValidateFullTransactionRequest beneficiaryVASPdid(String beneficiaryVASPdid) { + public TravelRuleValidateFullTransactionRequest beneficiaryVASPdid( + @jakarta.annotation.Nullable String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; return this; } @@ -211,11 +226,12 @@ public String getBeneficiaryVASPdid() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPdid(String beneficiaryVASPdid) { + public void setBeneficiaryVASPdid(@jakarta.annotation.Nullable String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; } - public TravelRuleValidateFullTransactionRequest transactionAsset(String transactionAsset) { + public TravelRuleValidateFullTransactionRequest transactionAsset( + @jakarta.annotation.Nullable String transactionAsset) { this.transactionAsset = transactionAsset; return this; } @@ -237,11 +253,12 @@ public String getTransactionAsset() { @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionAsset(String transactionAsset) { + public void setTransactionAsset(@jakarta.annotation.Nullable String transactionAsset) { this.transactionAsset = transactionAsset; } - public TravelRuleValidateFullTransactionRequest transactionAmount(String transactionAmount) { + public TravelRuleValidateFullTransactionRequest transactionAmount( + @jakarta.annotation.Nullable String transactionAmount) { this.transactionAmount = transactionAmount; return this; } @@ -264,11 +281,12 @@ public String getTransactionAmount() { @JsonProperty(JSON_PROPERTY_TRANSACTION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionAmount(String transactionAmount) { + public void setTransactionAmount(@jakarta.annotation.Nullable String transactionAmount) { this.transactionAmount = transactionAmount; } - public TravelRuleValidateFullTransactionRequest originatorVASPname(String originatorVASPname) { + public TravelRuleValidateFullTransactionRequest originatorVASPname( + @jakarta.annotation.Nullable String originatorVASPname) { this.originatorVASPname = originatorVASPname; return this; } @@ -287,12 +305,12 @@ public String getOriginatorVASPname() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPname(String originatorVASPname) { + public void setOriginatorVASPname(@jakarta.annotation.Nullable String originatorVASPname) { this.originatorVASPname = originatorVASPname; } public TravelRuleValidateFullTransactionRequest beneficiaryVASPname( - String beneficiaryVASPname) { + @jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; return this; } @@ -311,12 +329,13 @@ public String getBeneficiaryVASPname() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPname(String beneficiaryVASPname) { + public void setBeneficiaryVASPname(@jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; } public TravelRuleValidateFullTransactionRequest transactionBlockchainInfo( - TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { + @jakarta.annotation.Nullable + TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { this.transactionBlockchainInfo = transactionBlockchainInfo; return this; } @@ -336,12 +355,13 @@ public TravelRuleTransactionBlockchainInfo getTransactionBlockchainInfo() { @JsonProperty(JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTransactionBlockchainInfo( - TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { + @jakarta.annotation.Nullable + TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { this.transactionBlockchainInfo = transactionBlockchainInfo; } public TravelRuleValidateFullTransactionRequest originator( - TravelRuleValidatePiiIVMS originator) { + @jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS originator) { this.originator = originator; return this; } @@ -360,12 +380,12 @@ public TravelRuleValidatePiiIVMS getOriginator() { @JsonProperty(JSON_PROPERTY_ORIGINATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOriginator(TravelRuleValidatePiiIVMS originator) { + public void setOriginator(@jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS originator) { this.originator = originator; } public TravelRuleValidateFullTransactionRequest beneficiary( - TravelRuleValidatePiiIVMS beneficiary) { + @jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS beneficiary) { this.beneficiary = beneficiary; return this; } @@ -384,11 +404,12 @@ public TravelRuleValidatePiiIVMS getBeneficiary() { @JsonProperty(JSON_PROPERTY_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBeneficiary(TravelRuleValidatePiiIVMS beneficiary) { + public void setBeneficiary(@jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS beneficiary) { this.beneficiary = beneficiary; } - public TravelRuleValidateFullTransactionRequest encrypted(String encrypted) { + public TravelRuleValidateFullTransactionRequest encrypted( + @jakarta.annotation.Nullable String encrypted) { this.encrypted = encrypted; return this; } @@ -407,11 +428,12 @@ public String getEncrypted() { @JsonProperty(JSON_PROPERTY_ENCRYPTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEncrypted(String encrypted) { + public void setEncrypted(@jakarta.annotation.Nullable String encrypted) { this.encrypted = encrypted; } - public TravelRuleValidateFullTransactionRequest protocol(ProtocolEnum protocol) { + public TravelRuleValidateFullTransactionRequest protocol( + @jakarta.annotation.Nullable ProtocolEnum protocol) { this.protocol = protocol; return this; } @@ -430,12 +452,12 @@ public ProtocolEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProtocol(ProtocolEnum protocol) { + public void setProtocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { this.protocol = protocol; } public TravelRuleValidateFullTransactionRequest skipBeneficiaryDataValidation( - Boolean skipBeneficiaryDataValidation) { + @jakarta.annotation.Nullable Boolean skipBeneficiaryDataValidation) { this.skipBeneficiaryDataValidation = skipBeneficiaryDataValidation; return this; } @@ -454,11 +476,13 @@ public Boolean getSkipBeneficiaryDataValidation() { @JsonProperty(JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSkipBeneficiaryDataValidation(Boolean skipBeneficiaryDataValidation) { + public void setSkipBeneficiaryDataValidation( + @jakarta.annotation.Nullable Boolean skipBeneficiaryDataValidation) { this.skipBeneficiaryDataValidation = skipBeneficiaryDataValidation; } - public TravelRuleValidateFullTransactionRequest travelRuleBehavior(Boolean travelRuleBehavior) { + public TravelRuleValidateFullTransactionRequest travelRuleBehavior( + @jakarta.annotation.Nullable Boolean travelRuleBehavior) { this.travelRuleBehavior = travelRuleBehavior; return this; } @@ -478,11 +502,12 @@ public Boolean getTravelRuleBehavior() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehavior(Boolean travelRuleBehavior) { + public void setTravelRuleBehavior(@jakarta.annotation.Nullable Boolean travelRuleBehavior) { this.travelRuleBehavior = travelRuleBehavior; } - public TravelRuleValidateFullTransactionRequest originatorRef(String originatorRef) { + public TravelRuleValidateFullTransactionRequest originatorRef( + @jakarta.annotation.Nullable String originatorRef) { this.originatorRef = originatorRef; return this; } @@ -501,11 +526,12 @@ public String getOriginatorRef() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorRef(String originatorRef) { + public void setOriginatorRef(@jakarta.annotation.Nullable String originatorRef) { this.originatorRef = originatorRef; } - public TravelRuleValidateFullTransactionRequest beneficiaryRef(String beneficiaryRef) { + public TravelRuleValidateFullTransactionRequest beneficiaryRef( + @jakarta.annotation.Nullable String beneficiaryRef) { this.beneficiaryRef = beneficiaryRef; return this; } @@ -524,12 +550,12 @@ public String getBeneficiaryRef() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryRef(String beneficiaryRef) { + public void setBeneficiaryRef(@jakarta.annotation.Nullable String beneficiaryRef) { this.beneficiaryRef = beneficiaryRef; } public TravelRuleValidateFullTransactionRequest travelRuleBehaviorRef( - String travelRuleBehaviorRef) { + @jakarta.annotation.Nullable String travelRuleBehaviorRef) { this.travelRuleBehaviorRef = travelRuleBehaviorRef; return this; } @@ -548,12 +574,13 @@ public String getTravelRuleBehaviorRef() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehaviorRef(String travelRuleBehaviorRef) { + public void setTravelRuleBehaviorRef( + @jakarta.annotation.Nullable String travelRuleBehaviorRef) { this.travelRuleBehaviorRef = travelRuleBehaviorRef; } public TravelRuleValidateFullTransactionRequest originatorProof( - TravelRuleOwnershipProof originatorProof) { + @jakarta.annotation.Nullable TravelRuleOwnershipProof originatorProof) { this.originatorProof = originatorProof; return this; } @@ -572,12 +599,13 @@ public TravelRuleOwnershipProof getOriginatorProof() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_PROOF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorProof(TravelRuleOwnershipProof originatorProof) { + public void setOriginatorProof( + @jakarta.annotation.Nullable TravelRuleOwnershipProof originatorProof) { this.originatorProof = originatorProof; } public TravelRuleValidateFullTransactionRequest beneficiaryProof( - TravelRuleOwnershipProof beneficiaryProof) { + @jakarta.annotation.Nullable TravelRuleOwnershipProof beneficiaryProof) { this.beneficiaryProof = beneficiaryProof; return this; } @@ -596,11 +624,13 @@ public TravelRuleOwnershipProof getBeneficiaryProof() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_PROOF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryProof(TravelRuleOwnershipProof beneficiaryProof) { + public void setBeneficiaryProof( + @jakarta.annotation.Nullable TravelRuleOwnershipProof beneficiaryProof) { this.beneficiaryProof = beneficiaryProof; } - public TravelRuleValidateFullTransactionRequest beneficiaryDid(String beneficiaryDid) { + public TravelRuleValidateFullTransactionRequest beneficiaryDid( + @jakarta.annotation.Nullable String beneficiaryDid) { this.beneficiaryDid = beneficiaryDid; return this; } @@ -623,11 +653,12 @@ public String getBeneficiaryDid() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryDid(String beneficiaryDid) { + public void setBeneficiaryDid(@jakarta.annotation.Nullable String beneficiaryDid) { this.beneficiaryDid = beneficiaryDid; } - public TravelRuleValidateFullTransactionRequest originatorDid(String originatorDid) { + public TravelRuleValidateFullTransactionRequest originatorDid( + @jakarta.annotation.Nullable String originatorDid) { this.originatorDid = originatorDid; return this; } @@ -650,11 +681,12 @@ public String getOriginatorDid() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorDid(String originatorDid) { + public void setOriginatorDid(@jakarta.annotation.Nullable String originatorDid) { this.originatorDid = originatorDid; } - public TravelRuleValidateFullTransactionRequest isNonCustodial(Boolean isNonCustodial) { + public TravelRuleValidateFullTransactionRequest isNonCustodial( + @jakarta.annotation.Nullable Boolean isNonCustodial) { this.isNonCustodial = isNonCustodial; return this; } @@ -673,11 +705,12 @@ public Boolean getIsNonCustodial() { @JsonProperty(JSON_PROPERTY_IS_NON_CUSTODIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsNonCustodial(Boolean isNonCustodial) { + public void setIsNonCustodial(@jakarta.annotation.Nullable Boolean isNonCustodial) { this.isNonCustodial = isNonCustodial; } - public TravelRuleValidateFullTransactionRequest notificationEmail(String notificationEmail) { + public TravelRuleValidateFullTransactionRequest notificationEmail( + @jakarta.annotation.Nullable String notificationEmail) { this.notificationEmail = notificationEmail; return this; } @@ -696,11 +729,12 @@ public String getNotificationEmail() { @JsonProperty(JSON_PROPERTY_NOTIFICATION_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNotificationEmail(String notificationEmail) { + public void setNotificationEmail(@jakarta.annotation.Nullable String notificationEmail) { this.notificationEmail = notificationEmail; } - public TravelRuleValidateFullTransactionRequest pii(TravelRulePiiIVMS pii) { + public TravelRuleValidateFullTransactionRequest pii( + @jakarta.annotation.Nullable TravelRulePiiIVMS pii) { this.pii = pii; return this; } @@ -719,11 +753,12 @@ public TravelRulePiiIVMS getPii() { @JsonProperty(JSON_PROPERTY_PII) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPii(TravelRulePiiIVMS pii) { + public void setPii(@jakarta.annotation.Nullable TravelRulePiiIVMS pii) { this.pii = pii; } - public TravelRuleValidateFullTransactionRequest piiUrl(String piiUrl) { + public TravelRuleValidateFullTransactionRequest piiUrl( + @jakarta.annotation.Nullable String piiUrl) { this.piiUrl = piiUrl; return this; } @@ -742,7 +777,7 @@ public String getPiiUrl() { @JsonProperty(JSON_PROPERTY_PII_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPiiUrl(String piiUrl) { + public void setPiiUrl(@jakarta.annotation.Nullable String piiUrl) { this.piiUrl = piiUrl; } @@ -951,10 +986,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPdid())))); } // add `beneficiaryVASPdid` to the URL query string @@ -964,10 +996,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); } // add `transactionAsset` to the URL query string @@ -977,10 +1006,7 @@ public String toUrlQueryString(String prefix) { "%stransactionAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionAsset())))); } // add `transactionAmount` to the URL query string @@ -990,10 +1016,7 @@ public String toUrlQueryString(String prefix) { "%stransactionAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionAmount())))); } // add `originatorVASPname` to the URL query string @@ -1003,10 +1026,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorVASPname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorVASPname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPname())))); } // add `beneficiaryVASPname` to the URL query string @@ -1016,10 +1036,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryVASPname())))); } // add `transactionBlockchainInfo` to the URL query string @@ -1046,9 +1064,7 @@ public String toUrlQueryString(String prefix) { "%sencrypted%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEncrypted()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEncrypted())))); } // add `protocol` to the URL query string @@ -1058,8 +1074,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } // add `skipBeneficiaryDataValidation` to the URL query string @@ -1069,10 +1084,8 @@ public String toUrlQueryString(String prefix) { "%sskipBeneficiaryDataValidation%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSkipBeneficiaryDataValidation()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSkipBeneficiaryDataValidation())))); } // add `travelRuleBehavior` to the URL query string @@ -1082,10 +1095,7 @@ public String toUrlQueryString(String prefix) { "%stravelRuleBehavior%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleBehavior()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleBehavior())))); } // add `originatorRef` to the URL query string @@ -1095,10 +1105,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorRef%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorRef()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorRef())))); } // add `beneficiaryRef` to the URL query string @@ -1108,10 +1115,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryRef%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryRef()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryRef())))); } // add `travelRuleBehaviorRef` to the URL query string @@ -1121,10 +1125,8 @@ public String toUrlQueryString(String prefix) { "%stravelRuleBehaviorRef%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleBehaviorRef()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTravelRuleBehaviorRef())))); } // add `originatorProof` to the URL query string @@ -1145,10 +1147,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryDid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryDid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryDid())))); } // add `originatorDid` to the URL query string @@ -1158,10 +1157,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorDid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorDid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorDid())))); } // add `isNonCustodial` to the URL query string @@ -1171,10 +1167,7 @@ public String toUrlQueryString(String prefix) { "%sisNonCustodial%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsNonCustodial()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsNonCustodial())))); } // add `notificationEmail` to the URL query string @@ -1184,10 +1177,7 @@ public String toUrlQueryString(String prefix) { "%snotificationEmail%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNotificationEmail()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNotificationEmail())))); } // add `pii` to the URL query string @@ -1202,8 +1192,7 @@ public String toUrlQueryString(String prefix) { "%spii_url%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPiiUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 3b120e33..67a6832f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -44,22 +43,24 @@ TravelRuleValidateGeographicAddress.JSON_PROPERTY_COUNTRY_SUB_DIVISION, TravelRuleValidateGeographicAddress.JSON_PROPERTY_ADDRESS_LINE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String streetName; + @jakarta.annotation.Nullable private String streetName; public static final String JSON_PROPERTY_TOWN_NAME = "townName"; - private String townName; + @jakarta.annotation.Nullable private String townName; public static final String JSON_PROPERTY_COUNTRY = "country"; - private String country; + @jakarta.annotation.Nullable private String country; public static final String JSON_PROPERTY_BUILDING_NUMBER = "buildingNumber"; - private String buildingNumber; + @jakarta.annotation.Nullable private String buildingNumber; public static final String JSON_PROPERTY_POST_CODE = "postCode"; - private String postCode; + @jakarta.annotation.Nullable private String postCode; /** * Specifies the type of address. Acceptable values are: - 'HOME': Residential, the home @@ -67,11 +68,11 @@ public class TravelRuleValidateGeographicAddress { * unspecified physical (geographical) address */ public enum AddressTypeEnum { - HOME("HOME"), + HOME(String.valueOf("HOME")), - BIZZ("BIZZ"), + BIZZ(String.valueOf("BIZZ")), - GEOG("GEOG"); + GEOG(String.valueOf("GEOG")); private String value; @@ -101,41 +102,42 @@ public static AddressTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - private AddressTypeEnum addressType; + @jakarta.annotation.Nullable private AddressTypeEnum addressType; public static final String JSON_PROPERTY_DEPARTMENT = "department"; - private String department; + @jakarta.annotation.Nullable private String department; public static final String JSON_PROPERTY_SUB_DEPARTMENT = "subDepartment"; - private String subDepartment; + @jakarta.annotation.Nullable private String subDepartment; public static final String JSON_PROPERTY_BUILDING_NAME = "buildingName"; - private String buildingName; + @jakarta.annotation.Nullable private String buildingName; public static final String JSON_PROPERTY_FLOOR = "floor"; - private String floor; + @jakarta.annotation.Nullable private String floor; public static final String JSON_PROPERTY_POST_BOX = "postBox"; - private String postBox; + @jakarta.annotation.Nullable private String postBox; public static final String JSON_PROPERTY_ROOM = "room"; - private String room; + @jakarta.annotation.Nullable private String room; public static final String JSON_PROPERTY_TOWN_LOCATION_NAME = "townLocationName"; - private String townLocationName; + @jakarta.annotation.Nullable private String townLocationName; public static final String JSON_PROPERTY_DISTRICT_NAME = "districtName"; - private String districtName; + @jakarta.annotation.Nullable private String districtName; public static final String JSON_PROPERTY_COUNTRY_SUB_DIVISION = "countrySubDivision"; - private String countrySubDivision; + @jakarta.annotation.Nullable private String countrySubDivision; public static final String JSON_PROPERTY_ADDRESS_LINE = "addressLine"; - private List addressLine; + @jakarta.annotation.Nullable private List addressLine = new ArrayList<>(); public TravelRuleValidateGeographicAddress() {} - public TravelRuleValidateGeographicAddress streetName(String streetName) { + public TravelRuleValidateGeographicAddress streetName( + @jakarta.annotation.Nullable String streetName) { this.streetName = streetName; return this; } @@ -154,11 +156,12 @@ public String getStreetName() { @JsonProperty(JSON_PROPERTY_STREET_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreetName(String streetName) { + public void setStreetName(@jakarta.annotation.Nullable String streetName) { this.streetName = streetName; } - public TravelRuleValidateGeographicAddress townName(String townName) { + public TravelRuleValidateGeographicAddress townName( + @jakarta.annotation.Nullable String townName) { this.townName = townName; return this; } @@ -177,11 +180,12 @@ public String getTownName() { @JsonProperty(JSON_PROPERTY_TOWN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownName(String townName) { + public void setTownName(@jakarta.annotation.Nullable String townName) { this.townName = townName; } - public TravelRuleValidateGeographicAddress country(String country) { + public TravelRuleValidateGeographicAddress country( + @jakarta.annotation.Nullable String country) { this.country = country; return this; } @@ -200,11 +204,12 @@ public String getCountry() { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(String country) { + public void setCountry(@jakarta.annotation.Nullable String country) { this.country = country; } - public TravelRuleValidateGeographicAddress buildingNumber(String buildingNumber) { + public TravelRuleValidateGeographicAddress buildingNumber( + @jakarta.annotation.Nullable String buildingNumber) { this.buildingNumber = buildingNumber; return this; } @@ -223,11 +228,12 @@ public String getBuildingNumber() { @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingNumber(String buildingNumber) { + public void setBuildingNumber(@jakarta.annotation.Nullable String buildingNumber) { this.buildingNumber = buildingNumber; } - public TravelRuleValidateGeographicAddress postCode(String postCode) { + public TravelRuleValidateGeographicAddress postCode( + @jakarta.annotation.Nullable String postCode) { this.postCode = postCode; return this; } @@ -247,11 +253,12 @@ public String getPostCode() { @JsonProperty(JSON_PROPERTY_POST_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostCode(String postCode) { + public void setPostCode(@jakarta.annotation.Nullable String postCode) { this.postCode = postCode; } - public TravelRuleValidateGeographicAddress addressType(AddressTypeEnum addressType) { + public TravelRuleValidateGeographicAddress addressType( + @jakarta.annotation.Nullable AddressTypeEnum addressType) { this.addressType = addressType; return this; } @@ -272,11 +279,12 @@ public AddressTypeEnum getAddressType() { @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressType(AddressTypeEnum addressType) { + public void setAddressType(@jakarta.annotation.Nullable AddressTypeEnum addressType) { this.addressType = addressType; } - public TravelRuleValidateGeographicAddress department(String department) { + public TravelRuleValidateGeographicAddress department( + @jakarta.annotation.Nullable String department) { this.department = department; return this; } @@ -295,11 +303,12 @@ public String getDepartment() { @JsonProperty(JSON_PROPERTY_DEPARTMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepartment(String department) { + public void setDepartment(@jakarta.annotation.Nullable String department) { this.department = department; } - public TravelRuleValidateGeographicAddress subDepartment(String subDepartment) { + public TravelRuleValidateGeographicAddress subDepartment( + @jakarta.annotation.Nullable String subDepartment) { this.subDepartment = subDepartment; return this; } @@ -318,11 +327,12 @@ public String getSubDepartment() { @JsonProperty(JSON_PROPERTY_SUB_DEPARTMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubDepartment(String subDepartment) { + public void setSubDepartment(@jakarta.annotation.Nullable String subDepartment) { this.subDepartment = subDepartment; } - public TravelRuleValidateGeographicAddress buildingName(String buildingName) { + public TravelRuleValidateGeographicAddress buildingName( + @jakarta.annotation.Nullable String buildingName) { this.buildingName = buildingName; return this; } @@ -341,11 +351,11 @@ public String getBuildingName() { @JsonProperty(JSON_PROPERTY_BUILDING_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingName(String buildingName) { + public void setBuildingName(@jakarta.annotation.Nullable String buildingName) { this.buildingName = buildingName; } - public TravelRuleValidateGeographicAddress floor(String floor) { + public TravelRuleValidateGeographicAddress floor(@jakarta.annotation.Nullable String floor) { this.floor = floor; return this; } @@ -364,11 +374,12 @@ public String getFloor() { @JsonProperty(JSON_PROPERTY_FLOOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloor(String floor) { + public void setFloor(@jakarta.annotation.Nullable String floor) { this.floor = floor; } - public TravelRuleValidateGeographicAddress postBox(String postBox) { + public TravelRuleValidateGeographicAddress postBox( + @jakarta.annotation.Nullable String postBox) { this.postBox = postBox; return this; } @@ -387,11 +398,11 @@ public String getPostBox() { @JsonProperty(JSON_PROPERTY_POST_BOX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostBox(String postBox) { + public void setPostBox(@jakarta.annotation.Nullable String postBox) { this.postBox = postBox; } - public TravelRuleValidateGeographicAddress room(String room) { + public TravelRuleValidateGeographicAddress room(@jakarta.annotation.Nullable String room) { this.room = room; return this; } @@ -410,11 +421,12 @@ public String getRoom() { @JsonProperty(JSON_PROPERTY_ROOM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoom(String room) { + public void setRoom(@jakarta.annotation.Nullable String room) { this.room = room; } - public TravelRuleValidateGeographicAddress townLocationName(String townLocationName) { + public TravelRuleValidateGeographicAddress townLocationName( + @jakarta.annotation.Nullable String townLocationName) { this.townLocationName = townLocationName; return this; } @@ -433,11 +445,12 @@ public String getTownLocationName() { @JsonProperty(JSON_PROPERTY_TOWN_LOCATION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownLocationName(String townLocationName) { + public void setTownLocationName(@jakarta.annotation.Nullable String townLocationName) { this.townLocationName = townLocationName; } - public TravelRuleValidateGeographicAddress districtName(String districtName) { + public TravelRuleValidateGeographicAddress districtName( + @jakarta.annotation.Nullable String districtName) { this.districtName = districtName; return this; } @@ -456,11 +469,12 @@ public String getDistrictName() { @JsonProperty(JSON_PROPERTY_DISTRICT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDistrictName(String districtName) { + public void setDistrictName(@jakarta.annotation.Nullable String districtName) { this.districtName = districtName; } - public TravelRuleValidateGeographicAddress countrySubDivision(String countrySubDivision) { + public TravelRuleValidateGeographicAddress countrySubDivision( + @jakarta.annotation.Nullable String countrySubDivision) { this.countrySubDivision = countrySubDivision; return this; } @@ -479,11 +493,12 @@ public String getCountrySubDivision() { @JsonProperty(JSON_PROPERTY_COUNTRY_SUB_DIVISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountrySubDivision(String countrySubDivision) { + public void setCountrySubDivision(@jakarta.annotation.Nullable String countrySubDivision) { this.countrySubDivision = countrySubDivision; } - public TravelRuleValidateGeographicAddress addressLine(List addressLine) { + public TravelRuleValidateGeographicAddress addressLine( + @jakarta.annotation.Nullable List addressLine) { this.addressLine = addressLine; return this; } @@ -510,7 +525,7 @@ public List getAddressLine() { @JsonProperty(JSON_PROPERTY_ADDRESS_LINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressLine(List addressLine) { + public void setAddressLine(@jakarta.annotation.Nullable List addressLine) { this.addressLine = addressLine; } @@ -648,9 +663,7 @@ public String toUrlQueryString(String prefix) { "%sstreetName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStreetName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStreetName())))); } // add `townName` to the URL query string @@ -660,8 +673,7 @@ public String toUrlQueryString(String prefix) { "%stownName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTownName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTownName())))); } // add `country` to the URL query string @@ -671,8 +683,7 @@ public String toUrlQueryString(String prefix) { "%scountry%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCountry()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); } // add `buildingNumber` to the URL query string @@ -682,10 +693,7 @@ public String toUrlQueryString(String prefix) { "%sbuildingNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBuildingNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBuildingNumber())))); } // add `postCode` to the URL query string @@ -695,8 +703,7 @@ public String toUrlQueryString(String prefix) { "%spostCode%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPostCode()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPostCode())))); } // add `addressType` to the URL query string @@ -706,10 +713,7 @@ public String toUrlQueryString(String prefix) { "%saddressType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); } // add `department` to the URL query string @@ -719,9 +723,7 @@ public String toUrlQueryString(String prefix) { "%sdepartment%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDepartment()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDepartment())))); } // add `subDepartment` to the URL query string @@ -731,10 +733,7 @@ public String toUrlQueryString(String prefix) { "%ssubDepartment%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSubDepartment()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSubDepartment())))); } // add `buildingName` to the URL query string @@ -744,10 +743,7 @@ public String toUrlQueryString(String prefix) { "%sbuildingName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBuildingName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBuildingName())))); } // add `floor` to the URL query string @@ -757,8 +753,7 @@ public String toUrlQueryString(String prefix) { "%sfloor%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFloor()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFloor())))); } // add `postBox` to the URL query string @@ -768,8 +763,7 @@ public String toUrlQueryString(String prefix) { "%spostBox%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPostBox()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPostBox())))); } // add `room` to the URL query string @@ -779,8 +773,7 @@ public String toUrlQueryString(String prefix) { "%sroom%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRoom()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRoom())))); } // add `townLocationName` to the URL query string @@ -790,10 +783,7 @@ public String toUrlQueryString(String prefix) { "%stownLocationName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTownLocationName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTownLocationName())))); } // add `districtName` to the URL query string @@ -803,10 +793,7 @@ public String toUrlQueryString(String prefix) { "%sdistrictName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDistrictName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDistrictName())))); } // add `countrySubDivision` to the URL query string @@ -816,10 +803,7 @@ public String toUrlQueryString(String prefix) { "%scountrySubDivision%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountrySubDivision()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountrySubDivision())))); } // add `addressLine` to the URL query string @@ -834,10 +818,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAddressLine().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAddressLine().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java index 5d65f362..1280bea7 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -32,29 +31,36 @@ TravelRuleValidateLegalPerson.JSON_PROPERTY_CUSTOMER_NUMBER, TravelRuleValidateLegalPerson.JSON_PROPERTY_COUNTRY_OF_REGISTRATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private TravelRuleValidateLegalPersonNameIdentifier name; + @jakarta.annotation.Nullable private TravelRuleValidateLegalPersonNameIdentifier name; public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - private List 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"; - private String customerIdentification; + @jakarta.annotation.Nullable private String customerIdentification; public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - private String customerNumber; + @jakarta.annotation.Nullable private String customerNumber; public static final String JSON_PROPERTY_COUNTRY_OF_REGISTRATION = "countryOfRegistration"; - private String countryOfRegistration; + @jakarta.annotation.Nullable private String countryOfRegistration; public TravelRuleValidateLegalPerson() {} - public TravelRuleValidateLegalPerson name(TravelRuleValidateLegalPersonNameIdentifier name) { + public TravelRuleValidateLegalPerson name( + @jakarta.annotation.Nullable TravelRuleValidateLegalPersonNameIdentifier name) { this.name = name; return this; } @@ -73,12 +79,14 @@ public TravelRuleValidateLegalPersonNameIdentifier getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(TravelRuleValidateLegalPersonNameIdentifier name) { + public void setName( + @jakarta.annotation.Nullable TravelRuleValidateLegalPersonNameIdentifier name) { this.name = name; } public TravelRuleValidateLegalPerson geographicAddress( - List geographicAddress) { + @jakarta.annotation.Nullable + List geographicAddress) { this.geographicAddress = geographicAddress; return this; } @@ -106,12 +114,15 @@ public List getGeographicAddress() { @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress(List geographicAddress) { + public void setGeographicAddress( + @jakarta.annotation.Nullable + List geographicAddress) { this.geographicAddress = geographicAddress; } public TravelRuleValidateLegalPerson nationalIdentification( - TravelRuleValidateNationalIdentification nationalIdentification) { + @jakarta.annotation.Nullable + TravelRuleValidateNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; return this; } @@ -131,11 +142,13 @@ public TravelRuleValidateNationalIdentification getNationalIdentification() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNationalIdentification( - TravelRuleValidateNationalIdentification nationalIdentification) { + @jakarta.annotation.Nullable + TravelRuleValidateNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; } - public TravelRuleValidateLegalPerson customerIdentification(String customerIdentification) { + public TravelRuleValidateLegalPerson customerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; return this; } @@ -154,11 +167,13 @@ public String getCustomerIdentification() { @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification(String customerIdentification) { + public void setCustomerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; } - public TravelRuleValidateLegalPerson customerNumber(String customerNumber) { + public TravelRuleValidateLegalPerson customerNumber( + @jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; return this; } @@ -177,11 +192,12 @@ public String getCustomerNumber() { @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(String customerNumber) { + public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; } - public TravelRuleValidateLegalPerson countryOfRegistration(String countryOfRegistration) { + public TravelRuleValidateLegalPerson countryOfRegistration( + @jakarta.annotation.Nullable String countryOfRegistration) { this.countryOfRegistration = countryOfRegistration; return this; } @@ -200,7 +216,8 @@ public String getCountryOfRegistration() { @JsonProperty(JSON_PROPERTY_COUNTRY_OF_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfRegistration(String countryOfRegistration) { + public void setCountryOfRegistration( + @jakarta.annotation.Nullable String countryOfRegistration) { this.countryOfRegistration = countryOfRegistration; } @@ -348,10 +365,8 @@ public String toUrlQueryString(String prefix) { "%scustomerIdentification%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerIdentification()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCustomerIdentification())))); } // add `customerNumber` to the URL query string @@ -361,10 +376,7 @@ public String toUrlQueryString(String prefix) { "%scustomerNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); } // add `countryOfRegistration` to the URL query string @@ -374,10 +386,8 @@ public String toUrlQueryString(String prefix) { "%scountryOfRegistration%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountryOfRegistration()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index ef5b6b16..5d785c3f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,10 +27,12 @@ TravelRuleValidateLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME, TravelRuleValidateLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String legalPersonName; + @jakarta.annotation.Nullable private String legalPersonName; /** * Specifies the type of name for a legal person. Acceptable values are: - 'REGISTERED': @@ -39,11 +40,11 @@ public class TravelRuleValidateLegalPersonNameIdentifier { * name. - 'OTHER': Any other type of name. */ public enum LegalPersonNameIdentifierTypeEnum { - REGISTERED("REGISTERED"), + REGISTERED(String.valueOf("REGISTERED")), - TRADE("TRADE"), + TRADE(String.valueOf("TRADE")), - OTHER("OTHER"); + OTHER(String.valueOf("OTHER")); private String value; @@ -74,11 +75,14 @@ public static LegalPersonNameIdentifierTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE = "legalPersonNameIdentifierType"; + + @jakarta.annotation.Nullable private LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType; public TravelRuleValidateLegalPersonNameIdentifier() {} - public TravelRuleValidateLegalPersonNameIdentifier legalPersonName(String legalPersonName) { + public TravelRuleValidateLegalPersonNameIdentifier legalPersonName( + @jakarta.annotation.Nullable String legalPersonName) { this.legalPersonName = legalPersonName; return this; } @@ -97,12 +101,13 @@ public String getLegalPersonName() { @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonName(String legalPersonName) { + public void setLegalPersonName(@jakarta.annotation.Nullable String legalPersonName) { this.legalPersonName = legalPersonName; } public TravelRuleValidateLegalPersonNameIdentifier legalPersonNameIdentifierType( - LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType) { + @jakarta.annotation.Nullable + LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType) { this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; return this; } @@ -124,7 +129,8 @@ public LegalPersonNameIdentifierTypeEnum getLegalPersonNameIdentifierType() { @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLegalPersonNameIdentifierType( - LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType) { + @jakarta.annotation.Nullable + LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType) { this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; } @@ -214,10 +220,7 @@ public String toUrlQueryString(String prefix) { "%slegalPersonName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegalPersonName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegalPersonName())))); } // add `legalPersonNameIdentifierType` to the URL query string @@ -227,10 +230,8 @@ public String toUrlQueryString(String prefix) { "%slegalPersonNameIdentifierType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegalPersonNameIdentifierType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 4b0ceebc..fe081829 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,13 +29,15 @@ TravelRuleValidateNationalIdentification.JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE, TravelRuleValidateNationalIdentification.JSON_PROPERTY_REGISTRATION_AUTHORITY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String countryOfIssue; + @jakarta.annotation.Nullable private String countryOfIssue; public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER = "nationalIdentifier"; - private String nationalIdentifier; + @jakarta.annotation.Nullable private String nationalIdentifier; /** * Type of national identifier. Acceptable values include: - 'PASSPORT': Passport number @@ -44,13 +45,13 @@ public class TravelRuleValidateNationalIdentification { * identification number - 'SOCIAL_SECURITY': Social security number */ public enum NationalIdentifierTypeEnum { - PASSPORT("PASSPORT"), + PASSPORT(String.valueOf("PASSPORT")), - NATIONAL_ID("NATIONAL_ID"), + NATIONAL_ID(String.valueOf("NATIONAL_ID")), - TAX_ID("TAX_ID"), + TAX_ID(String.valueOf("TAX_ID")), - SOCIAL_SECURITY("SOCIAL_SECURITY"); + SOCIAL_SECURITY(String.valueOf("SOCIAL_SECURITY")); private String value; @@ -80,14 +81,15 @@ public static NationalIdentifierTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE = "nationalIdentifierType"; - private NationalIdentifierTypeEnum nationalIdentifierType; + @jakarta.annotation.Nullable private NationalIdentifierTypeEnum nationalIdentifierType; public static final String JSON_PROPERTY_REGISTRATION_AUTHORITY = "registrationAuthority"; - private String registrationAuthority; + @jakarta.annotation.Nullable private String registrationAuthority; public TravelRuleValidateNationalIdentification() {} - public TravelRuleValidateNationalIdentification countryOfIssue(String countryOfIssue) { + public TravelRuleValidateNationalIdentification countryOfIssue( + @jakarta.annotation.Nullable String countryOfIssue) { this.countryOfIssue = countryOfIssue; return this; } @@ -106,11 +108,12 @@ public String getCountryOfIssue() { @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ISSUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfIssue(String countryOfIssue) { + public void setCountryOfIssue(@jakarta.annotation.Nullable String countryOfIssue) { this.countryOfIssue = countryOfIssue; } - public TravelRuleValidateNationalIdentification nationalIdentifier(String nationalIdentifier) { + public TravelRuleValidateNationalIdentification nationalIdentifier( + @jakarta.annotation.Nullable String nationalIdentifier) { this.nationalIdentifier = nationalIdentifier; return this; } @@ -129,12 +132,12 @@ public String getNationalIdentifier() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifier(String nationalIdentifier) { + public void setNationalIdentifier(@jakarta.annotation.Nullable String nationalIdentifier) { this.nationalIdentifier = nationalIdentifier; } public TravelRuleValidateNationalIdentification nationalIdentifierType( - NationalIdentifierTypeEnum nationalIdentifierType) { + @jakarta.annotation.Nullable NationalIdentifierTypeEnum nationalIdentifierType) { this.nationalIdentifierType = nationalIdentifierType; return this; } @@ -155,12 +158,13 @@ public NationalIdentifierTypeEnum getNationalIdentifierType() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifierType(NationalIdentifierTypeEnum nationalIdentifierType) { + public void setNationalIdentifierType( + @jakarta.annotation.Nullable NationalIdentifierTypeEnum nationalIdentifierType) { this.nationalIdentifierType = nationalIdentifierType; } public TravelRuleValidateNationalIdentification registrationAuthority( - String registrationAuthority) { + @jakarta.annotation.Nullable String registrationAuthority) { this.registrationAuthority = registrationAuthority; return this; } @@ -179,7 +183,8 @@ public String getRegistrationAuthority() { @JsonProperty(JSON_PROPERTY_REGISTRATION_AUTHORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegistrationAuthority(String registrationAuthority) { + public void setRegistrationAuthority( + @jakarta.annotation.Nullable String registrationAuthority) { this.registrationAuthority = registrationAuthority; } @@ -282,10 +287,7 @@ public String toUrlQueryString(String prefix) { "%scountryOfIssue%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountryOfIssue()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountryOfIssue())))); } // add `nationalIdentifier` to the URL query string @@ -295,10 +297,7 @@ public String toUrlQueryString(String prefix) { "%snationalIdentifier%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNationalIdentifier()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNationalIdentifier())))); } // add `nationalIdentifierType` to the URL query string @@ -308,10 +307,8 @@ public String toUrlQueryString(String prefix) { "%snationalIdentifierType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNationalIdentifierType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getNationalIdentifierType())))); } // add `registrationAuthority` to the URL query string @@ -321,10 +318,8 @@ public String toUrlQueryString(String prefix) { "%sregistrationAuthority%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRegistrationAuthority()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 49d227a3..00ce34af 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,13 +28,15 @@ TravelRuleValidateNaturalNameIdentifier.JSON_PROPERTY_SECONDARY_IDENTIFIER, TravelRuleValidateNaturalNameIdentifier.JSON_PROPERTY_NAME_IDENTIFIER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String primaryIdentifier; + @jakarta.annotation.Nullable private String primaryIdentifier; public static final String JSON_PROPERTY_SECONDARY_IDENTIFIER = "secondaryIdentifier"; - private String secondaryIdentifier; + @jakarta.annotation.Nullable private String secondaryIdentifier; /** * Specifies the type of name for a natural person. Acceptable values are: - 'ALIA': @@ -47,15 +48,15 @@ public class TravelRuleValidateNaturalNameIdentifier { * may be known but cannot otherwise be categorized. */ public enum NameIdentifierTypeEnum { - ALIA("ALIA"), + ALIA(String.valueOf("ALIA")), - BIRT("BIRT"), + BIRT(String.valueOf("BIRT")), - MAID("MAID"), + MAID(String.valueOf("MAID")), - LEGL("LEGL"), + LEGL(String.valueOf("LEGL")), - MISC("MISC"); + MISC(String.valueOf("MISC")); private String value; @@ -85,11 +86,12 @@ public static NameIdentifierTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_NAME_IDENTIFIER_TYPE = "nameIdentifierType"; - private NameIdentifierTypeEnum nameIdentifierType; + @jakarta.annotation.Nullable private NameIdentifierTypeEnum nameIdentifierType; public TravelRuleValidateNaturalNameIdentifier() {} - public TravelRuleValidateNaturalNameIdentifier primaryIdentifier(String primaryIdentifier) { + public TravelRuleValidateNaturalNameIdentifier primaryIdentifier( + @jakarta.annotation.Nullable String primaryIdentifier) { this.primaryIdentifier = primaryIdentifier; return this; } @@ -108,11 +110,12 @@ public String getPrimaryIdentifier() { @JsonProperty(JSON_PROPERTY_PRIMARY_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryIdentifier(String primaryIdentifier) { + public void setPrimaryIdentifier(@jakarta.annotation.Nullable String primaryIdentifier) { this.primaryIdentifier = primaryIdentifier; } - public TravelRuleValidateNaturalNameIdentifier secondaryIdentifier(String secondaryIdentifier) { + public TravelRuleValidateNaturalNameIdentifier secondaryIdentifier( + @jakarta.annotation.Nullable String secondaryIdentifier) { this.secondaryIdentifier = secondaryIdentifier; return this; } @@ -131,12 +134,12 @@ public String getSecondaryIdentifier() { @JsonProperty(JSON_PROPERTY_SECONDARY_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryIdentifier(String secondaryIdentifier) { + public void setSecondaryIdentifier(@jakarta.annotation.Nullable String secondaryIdentifier) { this.secondaryIdentifier = secondaryIdentifier; } public TravelRuleValidateNaturalNameIdentifier nameIdentifierType( - NameIdentifierTypeEnum nameIdentifierType) { + @jakarta.annotation.Nullable NameIdentifierTypeEnum nameIdentifierType) { this.nameIdentifierType = nameIdentifierType; return this; } @@ -161,7 +164,8 @@ public NameIdentifierTypeEnum getNameIdentifierType() { @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifierType(NameIdentifierTypeEnum nameIdentifierType) { + public void setNameIdentifierType( + @jakarta.annotation.Nullable NameIdentifierTypeEnum nameIdentifierType) { this.nameIdentifierType = nameIdentifierType; } @@ -259,10 +263,7 @@ public String toUrlQueryString(String prefix) { "%sprimaryIdentifier%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPrimaryIdentifier()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPrimaryIdentifier())))); } // add `secondaryIdentifier` to the URL query string @@ -272,10 +273,8 @@ public String toUrlQueryString(String prefix) { "%ssecondaryIdentifier%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSecondaryIdentifier()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getSecondaryIdentifier())))); } // add `nameIdentifierType` to the URL query string @@ -285,10 +284,7 @@ public String toUrlQueryString(String prefix) { "%snameIdentifierType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNameIdentifierType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index e3fe2f17..d885082d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,33 +32,41 @@ TravelRuleValidateNaturalPerson.JSON_PROPERTY_COUNTRY_OF_RESIDENCE, TravelRuleValidateNaturalPerson.JSON_PROPERTY_CUSTOMER_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List name; + + @jakarta.annotation.Nullable + private List name = new ArrayList<>(); public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - private List 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"; - private TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth; + @jakarta.annotation.Nullable private TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth; public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - private String customerIdentification; + @jakarta.annotation.Nullable private String customerIdentification; public static final String JSON_PROPERTY_COUNTRY_OF_RESIDENCE = "countryOfResidence"; - private String countryOfResidence; + @jakarta.annotation.Nullable private String countryOfResidence; public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - private String customerNumber; + @jakarta.annotation.Nullable private String customerNumber; public TravelRuleValidateNaturalPerson() {} public TravelRuleValidateNaturalPerson name( - List name) { + @jakarta.annotation.Nullable List name) { this.name = name; return this; } @@ -88,12 +95,14 @@ public List getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(List name) { + public void setName( + @jakarta.annotation.Nullable List name) { this.name = name; } public TravelRuleValidateNaturalPerson geographicAddress( - List geographicAddress) { + @jakarta.annotation.Nullable + List geographicAddress) { this.geographicAddress = geographicAddress; return this; } @@ -122,12 +131,15 @@ public List getGeographicAddress() { @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress(List geographicAddress) { + public void setGeographicAddress( + @jakarta.annotation.Nullable + List geographicAddress) { this.geographicAddress = geographicAddress; } public TravelRuleValidateNaturalPerson nationalIdentification( - TravelRuleValidateNationalIdentification nationalIdentification) { + @jakarta.annotation.Nullable + TravelRuleValidateNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; return this; } @@ -147,12 +159,14 @@ public TravelRuleValidateNationalIdentification getNationalIdentification() { @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNationalIdentification( - TravelRuleValidateNationalIdentification nationalIdentification) { + @jakarta.annotation.Nullable + TravelRuleValidateNationalIdentification nationalIdentification) { this.nationalIdentification = nationalIdentification; } public TravelRuleValidateNaturalPerson dateAndPlaceOfBirth( - TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth) { + @jakarta.annotation.Nullable + TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth) { this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; return this; } @@ -171,11 +185,14 @@ public TravelRuleValidateDateAndPlaceOfBirth getDateAndPlaceOfBirth() { @JsonProperty(JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateAndPlaceOfBirth(TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth) { + public void setDateAndPlaceOfBirth( + @jakarta.annotation.Nullable + TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth) { this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; } - public TravelRuleValidateNaturalPerson customerIdentification(String customerIdentification) { + public TravelRuleValidateNaturalPerson customerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; return this; } @@ -194,11 +211,13 @@ public String getCustomerIdentification() { @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification(String customerIdentification) { + public void setCustomerIdentification( + @jakarta.annotation.Nullable String customerIdentification) { this.customerIdentification = customerIdentification; } - public TravelRuleValidateNaturalPerson countryOfResidence(String countryOfResidence) { + public TravelRuleValidateNaturalPerson countryOfResidence( + @jakarta.annotation.Nullable String countryOfResidence) { this.countryOfResidence = countryOfResidence; return this; } @@ -217,11 +236,12 @@ public String getCountryOfResidence() { @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfResidence(String countryOfResidence) { + public void setCountryOfResidence(@jakarta.annotation.Nullable String countryOfResidence) { this.countryOfResidence = countryOfResidence; } - public TravelRuleValidateNaturalPerson customerNumber(String customerNumber) { + public TravelRuleValidateNaturalPerson customerNumber( + @jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; return this; } @@ -240,7 +260,7 @@ public String getCustomerNumber() { @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(String customerNumber) { + public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { this.customerNumber = customerNumber; } @@ -420,10 +440,8 @@ public String toUrlQueryString(String prefix) { "%scustomerIdentification%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerIdentification()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getCustomerIdentification())))); } // add `countryOfResidence` to the URL query string @@ -433,10 +451,7 @@ public String toUrlQueryString(String prefix) { "%scountryOfResidence%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCountryOfResidence()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCountryOfResidence())))); } // add `customerNumber` to the URL query string @@ -446,10 +461,7 @@ public String toUrlQueryString(String prefix) { "%scustomerNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 45c6b1e7..a8e249a8 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java @@ -27,21 +27,31 @@ TravelRuleValidateNaturalPersonNameIdentifier.JSON_PROPERTY_LOCAL_NAME_IDENTIFIER, TravelRuleValidateNaturalPersonNameIdentifier.JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List nameIdentifier; + + @jakarta.annotation.Nullable + private List nameIdentifier = new ArrayList<>(); public static final String JSON_PROPERTY_LOCAL_NAME_IDENTIFIER = "localNameIdentifier"; - private List localNameIdentifier; + + @jakarta.annotation.Nullable + private List localNameIdentifier = new ArrayList<>(); public static final String JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER = "phoneticNameIdentifier"; - private List phoneticNameIdentifier; + + @jakarta.annotation.Nullable + private List phoneticNameIdentifier = + new ArrayList<>(); public TravelRuleValidateNaturalPersonNameIdentifier() {} public TravelRuleValidateNaturalPersonNameIdentifier nameIdentifier( - List nameIdentifier) { + @jakarta.annotation.Nullable + List nameIdentifier) { this.nameIdentifier = nameIdentifier; return this; } @@ -69,12 +79,15 @@ public List getNameIdentifier() { @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifier(List nameIdentifier) { + public void setNameIdentifier( + @jakarta.annotation.Nullable + List nameIdentifier) { this.nameIdentifier = nameIdentifier; } public TravelRuleValidateNaturalPersonNameIdentifier localNameIdentifier( - List localNameIdentifier) { + @jakarta.annotation.Nullable + List localNameIdentifier) { this.localNameIdentifier = localNameIdentifier; return this; } @@ -103,12 +116,14 @@ public List getLocalNameIdentifier() { @JsonProperty(JSON_PROPERTY_LOCAL_NAME_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocalNameIdentifier( - List localNameIdentifier) { + @jakarta.annotation.Nullable + List localNameIdentifier) { this.localNameIdentifier = localNameIdentifier; } public TravelRuleValidateNaturalPersonNameIdentifier phoneticNameIdentifier( - List phoneticNameIdentifier) { + @jakarta.annotation.Nullable + List phoneticNameIdentifier) { this.phoneticNameIdentifier = phoneticNameIdentifier; return this; } @@ -137,7 +152,8 @@ public List getPhoneticNameIdentifier() @JsonProperty(JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhoneticNameIdentifier( - List phoneticNameIdentifier) { + @jakarta.annotation.Nullable + List phoneticNameIdentifier) { this.phoneticNameIdentifier = phoneticNameIdentifier; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java index fe889750..5fb08c3f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java @@ -24,17 +24,20 @@ TravelRuleValidatePerson.JSON_PROPERTY_NATURAL_PERSON, TravelRuleValidatePerson.JSON_PROPERTY_LEGAL_PERSON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private TravelRuleValidateNaturalPerson naturalPerson; + @jakarta.annotation.Nullable private TravelRuleValidateNaturalPerson naturalPerson; public static final String JSON_PROPERTY_LEGAL_PERSON = "legalPerson"; - private TravelRuleValidateLegalPerson legalPerson; + @jakarta.annotation.Nullable private TravelRuleValidateLegalPerson legalPerson; public TravelRuleValidatePerson() {} - public TravelRuleValidatePerson naturalPerson(TravelRuleValidateNaturalPerson naturalPerson) { + public TravelRuleValidatePerson naturalPerson( + @jakarta.annotation.Nullable TravelRuleValidateNaturalPerson naturalPerson) { this.naturalPerson = naturalPerson; return this; } @@ -53,11 +56,13 @@ public TravelRuleValidateNaturalPerson getNaturalPerson() { @JsonProperty(JSON_PROPERTY_NATURAL_PERSON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNaturalPerson(TravelRuleValidateNaturalPerson naturalPerson) { + public void setNaturalPerson( + @jakarta.annotation.Nullable TravelRuleValidateNaturalPerson naturalPerson) { this.naturalPerson = naturalPerson; } - public TravelRuleValidatePerson legalPerson(TravelRuleValidateLegalPerson legalPerson) { + public TravelRuleValidatePerson legalPerson( + @jakarta.annotation.Nullable TravelRuleValidateLegalPerson legalPerson) { this.legalPerson = legalPerson; return this; } @@ -76,7 +81,8 @@ public TravelRuleValidateLegalPerson getLegalPerson() { @JsonProperty(JSON_PROPERTY_LEGAL_PERSON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPerson(TravelRuleValidateLegalPerson legalPerson) { + public void setLegalPerson( + @jakarta.annotation.Nullable TravelRuleValidateLegalPerson legalPerson) { this.legalPerson = legalPerson; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java index 172b4f57..9ca0da25 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,21 +28,27 @@ TravelRuleValidatePiiIVMS.JSON_PROPERTY_BENEFICIARY_PERSONS, TravelRuleValidatePiiIVMS.JSON_PROPERTY_ACCOUNT_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List originatorPersons; + + @jakarta.annotation.Nullable + private List originatorPersons = new ArrayList<>(); public static final String JSON_PROPERTY_BENEFICIARY_PERSONS = "beneficiaryPersons"; - private List beneficiaryPersons; + + @jakarta.annotation.Nullable + private List beneficiaryPersons = new ArrayList<>(); public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - private List accountNumber; + @jakarta.annotation.Nullable private List accountNumber = new ArrayList<>(); public TravelRuleValidatePiiIVMS() {} public TravelRuleValidatePiiIVMS originatorPersons( - List originatorPersons) { + @jakarta.annotation.Nullable List originatorPersons) { this.originatorPersons = originatorPersons; return this; } @@ -71,12 +76,13 @@ public List getOriginatorPersons() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_PERSONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorPersons(List originatorPersons) { + public void setOriginatorPersons( + @jakarta.annotation.Nullable List originatorPersons) { this.originatorPersons = originatorPersons; } public TravelRuleValidatePiiIVMS beneficiaryPersons( - List beneficiaryPersons) { + @jakarta.annotation.Nullable List beneficiaryPersons) { this.beneficiaryPersons = beneficiaryPersons; return this; } @@ -104,11 +110,13 @@ public List getBeneficiaryPersons() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_PERSONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryPersons(List beneficiaryPersons) { + public void setBeneficiaryPersons( + @jakarta.annotation.Nullable List beneficiaryPersons) { this.beneficiaryPersons = beneficiaryPersons; } - public TravelRuleValidatePiiIVMS accountNumber(List accountNumber) { + public TravelRuleValidatePiiIVMS accountNumber( + @jakarta.annotation.Nullable List accountNumber) { this.accountNumber = accountNumber; return this; } @@ -135,7 +143,7 @@ public List getAccountNumber() { @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountNumber(List accountNumber) { + public void setAccountNumber(@jakarta.annotation.Nullable List accountNumber) { this.accountNumber = accountNumber; } @@ -276,10 +284,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getAccountNumber().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountNumber().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java index 2100730b..3f6a2ec9 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -37,50 +37,71 @@ TravelRuleValidateTransactionRequest.JSON_PROPERTY_BENEFICIARY_ACCOUNT_NUMBER, TravelRuleValidateTransactionRequest.JSON_PROPERTY_BENEFICIARY_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleValidateTransactionRequest { public static final String JSON_PROPERTY_TRANSACTION_ASSET = "transactionAsset"; - private String transactionAsset; + @jakarta.annotation.Nonnull private String transactionAsset; public static final String JSON_PROPERTY_DESTINATION = "destination"; - private String destination; + @jakarta.annotation.Nonnull private String destination; public static final String JSON_PROPERTY_TRANSACTION_AMOUNT = "transactionAmount"; - private String transactionAmount; + @jakarta.annotation.Nonnull private String transactionAmount; public static final String JSON_PROPERTY_TRANSACTION_ASSET_DECIMALS = "transactionAssetDecimals"; - private BigDecimal transactionAssetDecimals; + @jakarta.annotation.Nullable private BigDecimal transactionAssetDecimals; public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PDID = "originatorVASPdid"; - private String originatorVASPdid; + @jakarta.annotation.Nonnull private String originatorVASPdid; public static final String JSON_PROPERTY_ORIGINATOR_EQUALS_BENEFICIARY = "originatorEqualsBeneficiary"; - private Boolean originatorEqualsBeneficiary; + @jakarta.annotation.Nonnull private Boolean originatorEqualsBeneficiary; public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR = "travelRuleBehavior"; - private Boolean travelRuleBehavior; + @jakarta.annotation.Nullable private Boolean travelRuleBehavior; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; - private String beneficiaryVASPdid; + @jakarta.annotation.Nullable private String beneficiaryVASPdid; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME = "beneficiaryVASPname"; - private String beneficiaryVASPname; + @jakarta.annotation.Nullable private String beneficiaryVASPname; public static final String JSON_PROPERTY_BENEFICIARY_NAME = "beneficiaryName"; - private String beneficiaryName; + @jakarta.annotation.Nullable private String beneficiaryName; public static final String JSON_PROPERTY_BENEFICIARY_ACCOUNT_NUMBER = "beneficiaryAccountNumber"; - private String beneficiaryAccountNumber; + @jakarta.annotation.Nullable private String beneficiaryAccountNumber; public static final String JSON_PROPERTY_BENEFICIARY_ADDRESS = "beneficiaryAddress"; - private TravelRuleAddress beneficiaryAddress; + @jakarta.annotation.Nullable private TravelRuleAddress beneficiaryAddress; public TravelRuleValidateTransactionRequest() {} - public TravelRuleValidateTransactionRequest transactionAsset(String transactionAsset) { + @JsonCreator + public TravelRuleValidateTransactionRequest( + @JsonProperty(value = JSON_PROPERTY_TRANSACTION_ASSET, required = true) + String transactionAsset, + @JsonProperty(value = JSON_PROPERTY_DESTINATION, required = true) String destination, + @JsonProperty(value = JSON_PROPERTY_TRANSACTION_AMOUNT, required = true) + String transactionAmount, + @JsonProperty(value = JSON_PROPERTY_ORIGINATOR_V_A_S_PDID, required = true) + String originatorVASPdid, + @JsonProperty(value = JSON_PROPERTY_ORIGINATOR_EQUALS_BENEFICIARY, required = true) + Boolean originatorEqualsBeneficiary) { + this.transactionAsset = transactionAsset; + this.destination = destination; + this.transactionAmount = transactionAmount; + this.originatorVASPdid = originatorVASPdid; + this.originatorEqualsBeneficiary = originatorEqualsBeneficiary; + } + + public TravelRuleValidateTransactionRequest transactionAsset( + @jakarta.annotation.Nonnull String transactionAsset) { this.transactionAsset = transactionAsset; return this; } @@ -99,11 +120,12 @@ public String getTransactionAsset() { @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionAsset(String transactionAsset) { + public void setTransactionAsset(@jakarta.annotation.Nonnull String transactionAsset) { this.transactionAsset = transactionAsset; } - public TravelRuleValidateTransactionRequest destination(String destination) { + public TravelRuleValidateTransactionRequest destination( + @jakarta.annotation.Nonnull String destination) { this.destination = destination; return this; } @@ -122,11 +144,12 @@ public String getDestination() { @JsonProperty(JSON_PROPERTY_DESTINATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestination(String destination) { + public void setDestination(@jakarta.annotation.Nonnull String destination) { this.destination = destination; } - public TravelRuleValidateTransactionRequest transactionAmount(String transactionAmount) { + public TravelRuleValidateTransactionRequest transactionAmount( + @jakarta.annotation.Nonnull String transactionAmount) { this.transactionAmount = transactionAmount; return this; } @@ -145,12 +168,12 @@ public String getTransactionAmount() { @JsonProperty(JSON_PROPERTY_TRANSACTION_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionAmount(String transactionAmount) { + public void setTransactionAmount(@jakarta.annotation.Nonnull String transactionAmount) { this.transactionAmount = transactionAmount; } public TravelRuleValidateTransactionRequest transactionAssetDecimals( - BigDecimal transactionAssetDecimals) { + @jakarta.annotation.Nullable BigDecimal transactionAssetDecimals) { this.transactionAssetDecimals = transactionAssetDecimals; return this; } @@ -170,11 +193,13 @@ public BigDecimal getTransactionAssetDecimals() { @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET_DECIMALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionAssetDecimals(BigDecimal transactionAssetDecimals) { + public void setTransactionAssetDecimals( + @jakarta.annotation.Nullable BigDecimal transactionAssetDecimals) { this.transactionAssetDecimals = transactionAssetDecimals; } - public TravelRuleValidateTransactionRequest originatorVASPdid(String originatorVASPdid) { + public TravelRuleValidateTransactionRequest originatorVASPdid( + @jakarta.annotation.Nonnull String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; return this; } @@ -193,12 +218,12 @@ public String getOriginatorVASPdid() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOriginatorVASPdid(String originatorVASPdid) { + public void setOriginatorVASPdid(@jakarta.annotation.Nonnull String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; } public TravelRuleValidateTransactionRequest originatorEqualsBeneficiary( - Boolean originatorEqualsBeneficiary) { + @jakarta.annotation.Nonnull Boolean originatorEqualsBeneficiary) { this.originatorEqualsBeneficiary = originatorEqualsBeneficiary; return this; } @@ -218,11 +243,13 @@ public Boolean getOriginatorEqualsBeneficiary() { @JsonProperty(JSON_PROPERTY_ORIGINATOR_EQUALS_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOriginatorEqualsBeneficiary(Boolean originatorEqualsBeneficiary) { + public void setOriginatorEqualsBeneficiary( + @jakarta.annotation.Nonnull Boolean originatorEqualsBeneficiary) { this.originatorEqualsBeneficiary = originatorEqualsBeneficiary; } - public TravelRuleValidateTransactionRequest travelRuleBehavior(Boolean travelRuleBehavior) { + public TravelRuleValidateTransactionRequest travelRuleBehavior( + @jakarta.annotation.Nullable Boolean travelRuleBehavior) { this.travelRuleBehavior = travelRuleBehavior; return this; } @@ -242,11 +269,12 @@ public Boolean getTravelRuleBehavior() { @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehavior(Boolean travelRuleBehavior) { + public void setTravelRuleBehavior(@jakarta.annotation.Nullable Boolean travelRuleBehavior) { this.travelRuleBehavior = travelRuleBehavior; } - public TravelRuleValidateTransactionRequest beneficiaryVASPdid(String beneficiaryVASPdid) { + public TravelRuleValidateTransactionRequest beneficiaryVASPdid( + @jakarta.annotation.Nullable String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; return this; } @@ -265,11 +293,12 @@ public String getBeneficiaryVASPdid() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPdid(String beneficiaryVASPdid) { + public void setBeneficiaryVASPdid(@jakarta.annotation.Nullable String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; } - public TravelRuleValidateTransactionRequest beneficiaryVASPname(String beneficiaryVASPname) { + public TravelRuleValidateTransactionRequest beneficiaryVASPname( + @jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; return this; } @@ -288,11 +317,12 @@ public String getBeneficiaryVASPname() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPname(String beneficiaryVASPname) { + public void setBeneficiaryVASPname(@jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; } - public TravelRuleValidateTransactionRequest beneficiaryName(String beneficiaryName) { + public TravelRuleValidateTransactionRequest beneficiaryName( + @jakarta.annotation.Nullable String beneficiaryName) { this.beneficiaryName = beneficiaryName; return this; } @@ -311,12 +341,12 @@ public String getBeneficiaryName() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryName(String beneficiaryName) { + public void setBeneficiaryName(@jakarta.annotation.Nullable String beneficiaryName) { this.beneficiaryName = beneficiaryName; } public TravelRuleValidateTransactionRequest beneficiaryAccountNumber( - String beneficiaryAccountNumber) { + @jakarta.annotation.Nullable String beneficiaryAccountNumber) { this.beneficiaryAccountNumber = beneficiaryAccountNumber; return this; } @@ -335,12 +365,13 @@ public String getBeneficiaryAccountNumber() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryAccountNumber(String beneficiaryAccountNumber) { + public void setBeneficiaryAccountNumber( + @jakarta.annotation.Nullable String beneficiaryAccountNumber) { this.beneficiaryAccountNumber = beneficiaryAccountNumber; } public TravelRuleValidateTransactionRequest beneficiaryAddress( - TravelRuleAddress beneficiaryAddress) { + @jakarta.annotation.Nullable TravelRuleAddress beneficiaryAddress) { this.beneficiaryAddress = beneficiaryAddress; return this; } @@ -359,7 +390,8 @@ public TravelRuleAddress getBeneficiaryAddress() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryAddress(TravelRuleAddress beneficiaryAddress) { + public void setBeneficiaryAddress( + @jakarta.annotation.Nullable TravelRuleAddress beneficiaryAddress) { this.beneficiaryAddress = beneficiaryAddress; } @@ -515,10 +547,7 @@ public String toUrlQueryString(String prefix) { "%stransactionAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionAsset())))); } // add `destination` to the URL query string @@ -528,10 +557,7 @@ public String toUrlQueryString(String prefix) { "%sdestination%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDestination()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDestination())))); } // add `transactionAmount` to the URL query string @@ -541,10 +567,7 @@ public String toUrlQueryString(String prefix) { "%stransactionAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionAmount())))); } // add `transactionAssetDecimals` to the URL query string @@ -554,10 +577,8 @@ public String toUrlQueryString(String prefix) { "%stransactionAssetDecimals%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionAssetDecimals()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTransactionAssetDecimals())))); } // add `originatorVASPdid` to the URL query string @@ -567,10 +588,7 @@ public String toUrlQueryString(String prefix) { "%soriginatorVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPdid())))); } // add `originatorEqualsBeneficiary` to the URL query string @@ -580,10 +598,8 @@ public String toUrlQueryString(String prefix) { "%soriginatorEqualsBeneficiary%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOriginatorEqualsBeneficiary()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getOriginatorEqualsBeneficiary())))); } // add `travelRuleBehavior` to the URL query string @@ -593,10 +609,7 @@ public String toUrlQueryString(String prefix) { "%stravelRuleBehavior%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTravelRuleBehavior()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleBehavior())))); } // add `beneficiaryVASPdid` to the URL query string @@ -606,10 +619,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); } // add `beneficiaryVASPname` to the URL query string @@ -619,10 +629,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryVASPname())))); } // add `beneficiaryName` to the URL query string @@ -632,10 +640,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryName())))); } // add `beneficiaryAccountNumber` to the URL query string @@ -645,10 +650,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryAccountNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryAccountNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryAccountNumber())))); } // add `beneficiaryAddress` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java index 3acb3839..e7143509 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -35,24 +34,26 @@ TravelRuleValidateTransactionResponse.JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME, TravelRuleValidateTransactionResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class TravelRuleValidateTransactionResponse { public static final String JSON_PROPERTY_IS_VALID = "isValid"; - private Boolean isValid; + @jakarta.annotation.Nonnull private Boolean isValid; public static final String JSON_PROPERTY_TYPE = "type"; - private String 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("UNKNOWN"), + UNKNOWN(String.valueOf("UNKNOWN")), - HOSTED("HOSTED"), + HOSTED(String.valueOf("HOSTED")), - UNHOSTED("UNHOSTED"); + UNHOSTED(String.valueOf("UNHOSTED")); private String value; @@ -82,24 +83,24 @@ public static BeneficiaryAddressTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_BENEFICIARY_ADDRESS_TYPE = "beneficiaryAddressType"; - private BeneficiaryAddressTypeEnum 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("UNKNOWN"), + UNKNOWN(String.valueOf("UNKNOWN")), - ADDRESS_HASH("ADDRESS_HASH"), + ADDRESS_HASH(String.valueOf("ADDRESS_HASH")), - ADDRESS_GRAPH("ADDRESS_GRAPH"), + ADDRESS_GRAPH(String.valueOf("ADDRESS_GRAPH")), - CHAINALYSIS("CHAINALYSIS"), + CHAINALYSIS(String.valueOf("CHAINALYSIS")), - ELLIPTIC("ELLIPTIC"), + ELLIPTIC(String.valueOf("ELLIPTIC")), - CRYSTAL("CRYSTAL"); + CRYSTAL(String.valueOf("CRYSTAL")); private String value; @@ -129,20 +130,43 @@ public static AddressSourceEnum fromValue(String value) { } public static final String JSON_PROPERTY_ADDRESS_SOURCE = "addressSource"; - private AddressSourceEnum addressSource; + @jakarta.annotation.Nonnull private AddressSourceEnum addressSource; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; - private String beneficiaryVASPdid; + @jakarta.annotation.Nonnull private String beneficiaryVASPdid; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME = "beneficiaryVASPname"; - private String beneficiaryVASPname; + @jakarta.annotation.Nonnull private String beneficiaryVASPname; public static final String JSON_PROPERTY_WARNINGS = "warnings"; - private List warnings = new ArrayList<>(); + @jakarta.annotation.Nonnull private List warnings = new ArrayList<>(); public TravelRuleValidateTransactionResponse() {} - public TravelRuleValidateTransactionResponse isValid(Boolean isValid) { + @JsonCreator + 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, + @JsonProperty(value = JSON_PROPERTY_ADDRESS_SOURCE, required = true) + AddressSourceEnum 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) + String beneficiaryVASPname, + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = true) List warnings) { + this.isValid = isValid; + this.type = type; + this.beneficiaryAddressType = beneficiaryAddressType; + this.addressSource = addressSource; + this.beneficiaryVASPdid = beneficiaryVASPdid; + this.beneficiaryVASPname = beneficiaryVASPname; + this.warnings = warnings; + } + + public TravelRuleValidateTransactionResponse isValid( + @jakarta.annotation.Nonnull Boolean isValid) { this.isValid = isValid; return this; } @@ -164,11 +188,11 @@ public Boolean getIsValid() { @JsonProperty(JSON_PROPERTY_IS_VALID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsValid(Boolean isValid) { + public void setIsValid(@jakarta.annotation.Nonnull Boolean isValid) { this.isValid = isValid; } - public TravelRuleValidateTransactionResponse type(String type) { + public TravelRuleValidateTransactionResponse type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -190,12 +214,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } public TravelRuleValidateTransactionResponse beneficiaryAddressType( - BeneficiaryAddressTypeEnum beneficiaryAddressType) { + @jakarta.annotation.Nonnull BeneficiaryAddressTypeEnum beneficiaryAddressType) { this.beneficiaryAddressType = beneficiaryAddressType; return this; } @@ -215,11 +239,13 @@ public BeneficiaryAddressTypeEnum getBeneficiaryAddressType() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBeneficiaryAddressType(BeneficiaryAddressTypeEnum beneficiaryAddressType) { + public void setBeneficiaryAddressType( + @jakarta.annotation.Nonnull BeneficiaryAddressTypeEnum beneficiaryAddressType) { this.beneficiaryAddressType = beneficiaryAddressType; } - public TravelRuleValidateTransactionResponse addressSource(AddressSourceEnum addressSource) { + public TravelRuleValidateTransactionResponse addressSource( + @jakarta.annotation.Nonnull AddressSourceEnum addressSource) { this.addressSource = addressSource; return this; } @@ -239,11 +265,12 @@ public AddressSourceEnum getAddressSource() { @JsonProperty(JSON_PROPERTY_ADDRESS_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressSource(AddressSourceEnum addressSource) { + public void setAddressSource(@jakarta.annotation.Nonnull AddressSourceEnum addressSource) { this.addressSource = addressSource; } - public TravelRuleValidateTransactionResponse beneficiaryVASPdid(String beneficiaryVASPdid) { + public TravelRuleValidateTransactionResponse beneficiaryVASPdid( + @jakarta.annotation.Nonnull String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; return this; } @@ -262,11 +289,12 @@ public String getBeneficiaryVASPdid() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBeneficiaryVASPdid(String beneficiaryVASPdid) { + public void setBeneficiaryVASPdid(@jakarta.annotation.Nonnull String beneficiaryVASPdid) { this.beneficiaryVASPdid = beneficiaryVASPdid; } - public TravelRuleValidateTransactionResponse beneficiaryVASPname(String beneficiaryVASPname) { + public TravelRuleValidateTransactionResponse beneficiaryVASPname( + @jakarta.annotation.Nonnull String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; return this; } @@ -286,11 +314,12 @@ public String getBeneficiaryVASPname() { @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBeneficiaryVASPname(String beneficiaryVASPname) { + public void setBeneficiaryVASPname(@jakarta.annotation.Nonnull String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; } - public TravelRuleValidateTransactionResponse warnings(List warnings) { + public TravelRuleValidateTransactionResponse warnings( + @jakarta.annotation.Nonnull List warnings) { this.warnings = warnings; return this; } @@ -318,7 +347,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nonnull List warnings) { this.warnings = warnings; } @@ -432,8 +461,7 @@ public String toUrlQueryString(String prefix) { "%sisValid%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsValid()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsValid())))); } // add `type` to the URL query string @@ -443,8 +471,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `beneficiaryAddressType` to the URL query string @@ -454,10 +481,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryAddressType%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryAddressType()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryAddressType())))); } // add `addressSource` to the URL query string @@ -467,10 +492,7 @@ public String toUrlQueryString(String prefix) { "%saddressSource%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressSource()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressSource())))); } // add `beneficiaryVASPdid` to the URL query string @@ -480,10 +502,7 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPdid%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPdid()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); } // add `beneficiaryVASPname` to the URL query string @@ -493,10 +512,8 @@ public String toUrlQueryString(String prefix) { "%sbeneficiaryVASPname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBeneficiaryVASPname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getBeneficiaryVASPname())))); } // add `warnings` to the URL query string @@ -511,10 +528,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getWarnings().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getWarnings().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java index fb512e5b..60f3f2ef 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String vaspDid; + @jakarta.annotation.Nullable private String vaspDid; public TravelRuleVaspForVault() {} - public TravelRuleVaspForVault vaspDid(String vaspDid) { + public TravelRuleVaspForVault vaspDid(@jakarta.annotation.Nullable String vaspDid) { this.vaspDid = vaspDid; return this; } @@ -49,7 +50,7 @@ public String getVaspDid() { @JsonProperty(JSON_PROPERTY_VASP_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaspDid(String vaspDid) { + public void setVaspDid(@jakarta.annotation.Nullable String vaspDid) { this.vaspDid = vaspDid; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%svaspDid%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getVaspDid()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index c7c65871..b1de3c1f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TxLog.java +++ b/src/main/java/com/fireblocks/sdk/model/TxLog.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -35,38 +35,64 @@ TxLog.JSON_PROPERTY_LOG_INDEX, TxLog.JSON_PROPERTY_REMOVED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String address; + @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_TOPICS = "topics"; - private List topics = new ArrayList<>(); + @jakarta.annotation.Nonnull private List topics = new ArrayList<>(); public static final String JSON_PROPERTY_DATA = "data"; - private String data; + @jakarta.annotation.Nonnull private String data; public static final String JSON_PROPERTY_BLOCK_NUMBER = "blockNumber"; - private Integer blockNumber; + @jakarta.annotation.Nonnull private Integer blockNumber; public static final String JSON_PROPERTY_TRANSACTION_HASH = "transactionHash"; - private String transactionHash; + @jakarta.annotation.Nonnull private String transactionHash; public static final String JSON_PROPERTY_TRANSACTION_INDEX = "transactionIndex"; - private Integer transactionIndex; + @jakarta.annotation.Nonnull private Integer transactionIndex; public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - private String blockHash; + @jakarta.annotation.Nonnull private String blockHash; public static final String JSON_PROPERTY_LOG_INDEX = "logIndex"; - private Integer logIndex; + @jakarta.annotation.Nonnull private Integer logIndex; public static final String JSON_PROPERTY_REMOVED = "removed"; - private Boolean removed; + @jakarta.annotation.Nonnull private Boolean removed; public TxLog() {} - public TxLog address(String address) { + @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; } @@ -85,11 +111,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public TxLog topics(List topics) { + public TxLog topics(@jakarta.annotation.Nonnull List topics) { this.topics = topics; return this; } @@ -116,11 +142,11 @@ public List getTopics() { @JsonProperty(JSON_PROPERTY_TOPICS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTopics(List topics) { + public void setTopics(@jakarta.annotation.Nonnull List topics) { this.topics = topics; } - public TxLog data(String data) { + public TxLog data(@jakarta.annotation.Nonnull String data) { this.data = data; return this; } @@ -139,11 +165,11 @@ public String getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(String data) { + public void setData(@jakarta.annotation.Nonnull String data) { this.data = data; } - public TxLog blockNumber(Integer blockNumber) { + public TxLog blockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { this.blockNumber = blockNumber; return this; } @@ -162,11 +188,11 @@ public Integer getBlockNumber() { @JsonProperty(JSON_PROPERTY_BLOCK_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockNumber(Integer blockNumber) { + public void setBlockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { this.blockNumber = blockNumber; } - public TxLog transactionHash(String transactionHash) { + public TxLog transactionHash(@jakarta.annotation.Nonnull String transactionHash) { this.transactionHash = transactionHash; return this; } @@ -185,11 +211,11 @@ public String getTransactionHash() { @JsonProperty(JSON_PROPERTY_TRANSACTION_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionHash(String transactionHash) { + public void setTransactionHash(@jakarta.annotation.Nonnull String transactionHash) { this.transactionHash = transactionHash; } - public TxLog transactionIndex(Integer transactionIndex) { + public TxLog transactionIndex(@jakarta.annotation.Nonnull Integer transactionIndex) { this.transactionIndex = transactionIndex; return this; } @@ -208,11 +234,11 @@ public Integer getTransactionIndex() { @JsonProperty(JSON_PROPERTY_TRANSACTION_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionIndex(Integer transactionIndex) { + public void setTransactionIndex(@jakarta.annotation.Nonnull Integer transactionIndex) { this.transactionIndex = transactionIndex; } - public TxLog blockHash(String blockHash) { + public TxLog blockHash(@jakarta.annotation.Nonnull String blockHash) { this.blockHash = blockHash; return this; } @@ -231,11 +257,11 @@ public String getBlockHash() { @JsonProperty(JSON_PROPERTY_BLOCK_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockHash(String blockHash) { + public void setBlockHash(@jakarta.annotation.Nonnull String blockHash) { this.blockHash = blockHash; } - public TxLog logIndex(Integer logIndex) { + public TxLog logIndex(@jakarta.annotation.Nonnull Integer logIndex) { this.logIndex = logIndex; return this; } @@ -254,11 +280,11 @@ public Integer getLogIndex() { @JsonProperty(JSON_PROPERTY_LOG_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogIndex(Integer logIndex) { + public void setLogIndex(@jakarta.annotation.Nonnull Integer logIndex) { this.logIndex = logIndex; } - public TxLog removed(Boolean removed) { + public TxLog removed(@jakarta.annotation.Nonnull Boolean removed) { this.removed = removed; return this; } @@ -277,7 +303,7 @@ public Boolean getRemoved() { @JsonProperty(JSON_PROPERTY_REMOVED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRemoved(Boolean removed) { + public void setRemoved(@jakarta.annotation.Nonnull Boolean removed) { this.removed = removed; } @@ -383,8 +409,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `topics` to the URL query string @@ -399,10 +424,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTopics().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTopics().get(i))))); } } @@ -413,8 +435,7 @@ public String toUrlQueryString(String prefix) { "%sdata%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getData()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getData())))); } // add `blockNumber` to the URL query string @@ -424,10 +445,7 @@ public String toUrlQueryString(String prefix) { "%sblockNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockNumber())))); } // add `transactionHash` to the URL query string @@ -437,10 +455,7 @@ public String toUrlQueryString(String prefix) { "%stransactionHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionHash()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionHash())))); } // add `transactionIndex` to the URL query string @@ -450,10 +465,7 @@ public String toUrlQueryString(String prefix) { "%stransactionIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTransactionIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionIndex())))); } // add `blockHash` to the URL query string @@ -463,9 +475,7 @@ public String toUrlQueryString(String prefix) { "%sblockHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); } // add `logIndex` to the URL query string @@ -475,8 +485,7 @@ public String toUrlQueryString(String prefix) { "%slogIndex%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLogIndex()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLogIndex())))); } // add `removed` to the URL query string @@ -486,8 +495,7 @@ public String toUrlQueryString(String prefix) { "%sremoved%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRemoved()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRemoved())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UnfreezeTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/UnfreezeTransactionResponse.java index 6c68e9ea..3362e5a1 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnfreezeTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UnfreezeTransactionResponse.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** UnfreezeTransactionResponse */ @JsonPropertyOrder({UnfreezeTransactionResponse.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UnfreezeTransactionResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public UnfreezeTransactionResponse() {} - public UnfreezeTransactionResponse success(Boolean success) { + public UnfreezeTransactionResponse success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -49,7 +50,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } 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 30930ea3..b3cb9b10 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java +++ b/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +30,35 @@ UnmanagedWallet.JSON_PROPERTY_CUSTOMER_REF_ID, UnmanagedWallet.JSON_PROPERTY_ASSETS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UnmanagedWallet { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_ASSETS = "assets"; - private List assets = new ArrayList<>(); + @jakarta.annotation.Nonnull private List assets = new ArrayList<>(); public UnmanagedWallet() {} - public UnmanagedWallet id(String id) { + @JsonCreator + public UnmanagedWallet( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, + @JsonProperty(value = JSON_PROPERTY_ASSETS, required = true) List assets) { + this.id = id; + this.name = name; + this.assets = assets; + } + + public UnmanagedWallet id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -65,11 +77,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public UnmanagedWallet name(String name) { + public UnmanagedWallet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -88,11 +100,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public UnmanagedWallet customerRefId(String customerRefId) { + public UnmanagedWallet customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -111,11 +123,11 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } - public UnmanagedWallet assets(List assets) { + public UnmanagedWallet assets(@jakarta.annotation.Nonnull List assets) { this.assets = assets; return this; } @@ -142,7 +154,7 @@ public List getAssets() { @JsonProperty(JSON_PROPERTY_ASSETS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssets(List assets) { + public void setAssets(@jakarta.annotation.Nonnull List assets) { this.assets = assets; } @@ -227,10 +239,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -240,8 +249,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `customerRefId` to the URL query string @@ -251,10 +259,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `assets` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/UnspentInput.java b/src/main/java/com/fireblocks/sdk/model/UnspentInput.java index d114d9c8..162d7c19 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnspentInput.java +++ b/src/main/java/com/fireblocks/sdk/model/UnspentInput.java @@ -16,25 +16,26 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; /** UnspentInput */ @JsonPropertyOrder({UnspentInput.JSON_PROPERTY_TX_HASH, UnspentInput.JSON_PROPERTY_INDEX}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UnspentInput { public static final String JSON_PROPERTY_TX_HASH = "txHash"; - private String txHash; + @jakarta.annotation.Nullable private String txHash; public static final String JSON_PROPERTY_INDEX = "index"; - private BigDecimal index; + @jakarta.annotation.Nullable private BigDecimal index; public UnspentInput() {} - public UnspentInput txHash(String txHash) { + public UnspentInput txHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; return this; } @@ -53,11 +54,11 @@ public String getTxHash() { @JsonProperty(JSON_PROPERTY_TX_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(String txHash) { + public void setTxHash(@jakarta.annotation.Nullable String txHash) { this.txHash = txHash; } - public UnspentInput index(BigDecimal index) { + public UnspentInput index(@jakarta.annotation.Nullable BigDecimal index) { this.index = index; return this; } @@ -76,7 +77,7 @@ public BigDecimal getIndex() { @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndex(BigDecimal index) { + public void setIndex(@jakarta.annotation.Nullable BigDecimal index) { this.index = index; } @@ -159,8 +160,7 @@ public String toUrlQueryString(String prefix) { "%stxHash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); } // add `index` to the URL query string @@ -170,8 +170,7 @@ public String toUrlQueryString(String prefix) { "%sindex%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIndex()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UnspentInputsResponse.java b/src/main/java/com/fireblocks/sdk/model/UnspentInputsResponse.java index a4337c33..f1c606fb 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnspentInputsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UnspentInputsResponse.java @@ -16,9 +16,8 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +29,28 @@ UnspentInputsResponse.JSON_PROPERTY_CONFIRMATIONS, UnspentInputsResponse.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UnspentInputsResponse { public static final String JSON_PROPERTY_INPUT = "input"; - private UnspentInput input; + @jakarta.annotation.Nullable private UnspentInput input; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_CONFIRMATIONS = "confirmations"; - private BigDecimal confirmations; + @jakarta.annotation.Nullable private BigDecimal confirmations; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public UnspentInputsResponse() {} - public UnspentInputsResponse input(UnspentInput input) { + public UnspentInputsResponse input(@jakarta.annotation.Nullable UnspentInput input) { this.input = input; return this; } @@ -68,11 +69,11 @@ public UnspentInput getInput() { @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInput(UnspentInput input) { + public void setInput(@jakarta.annotation.Nullable UnspentInput input) { this.input = input; } - public UnspentInputsResponse address(String address) { + public UnspentInputsResponse address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -91,11 +92,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public UnspentInputsResponse amount(String amount) { + public UnspentInputsResponse amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -114,11 +115,12 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public UnspentInputsResponse confirmations(BigDecimal confirmations) { + public UnspentInputsResponse confirmations( + @jakarta.annotation.Nullable BigDecimal confirmations) { this.confirmations = confirmations; return this; } @@ -137,11 +139,11 @@ public BigDecimal getConfirmations() { @JsonProperty(JSON_PROPERTY_CONFIRMATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfirmations(BigDecimal confirmations) { + public void setConfirmations(@jakarta.annotation.Nullable BigDecimal confirmations) { this.confirmations = confirmations; } - public UnspentInputsResponse status(String status) { + public UnspentInputsResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -160,7 +162,7 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } @@ -254,8 +256,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `amount` to the URL query string @@ -265,8 +266,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `confirmations` to the URL query string @@ -276,10 +276,7 @@ public String toUrlQueryString(String prefix) { "%sconfirmations%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getConfirmations()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConfirmations())))); } // add `status` to the URL query string @@ -289,8 +286,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java b/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java index 30a79d4d..43fcaddd 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -29,26 +29,33 @@ UnstakeRequest.JSON_PROPERTY_TX_NOTE, UnstakeRequest.JSON_PROPERTY_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevel feeLevel; + @jakarta.annotation.Nullable private FeeLevel feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; public UnstakeRequest() {} - public UnstakeRequest id(String id) { + @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; } @@ -67,11 +74,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public UnstakeRequest fee(String fee) { + public UnstakeRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -91,11 +98,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public UnstakeRequest feeLevel(FeeLevel feeLevel) { + public UnstakeRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; return this; } @@ -114,11 +121,11 @@ public FeeLevel getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; } - public UnstakeRequest txNote(String txNote) { + public UnstakeRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -137,11 +144,11 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } - public UnstakeRequest amount(String amount) { + public UnstakeRequest amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -162,7 +169,7 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } @@ -249,10 +256,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `fee` to the URL query string @@ -262,8 +266,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -273,8 +276,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `txNote` to the URL query string @@ -284,8 +286,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); } // add `amount` to the URL query string @@ -295,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java index 296bd773..ff6f8945 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java @@ -21,14 +21,17 @@ /** UpdateAssetUserMetadataRequest */ @JsonPropertyOrder({UpdateAssetUserMetadataRequest.JSON_PROPERTY_METADATA}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private AssetMetadataRequest metadata; + @jakarta.annotation.Nullable private AssetMetadataRequest metadata; public UpdateAssetUserMetadataRequest() {} - public UpdateAssetUserMetadataRequest metadata(AssetMetadataRequest metadata) { + public UpdateAssetUserMetadataRequest metadata( + @jakarta.annotation.Nullable AssetMetadataRequest metadata) { this.metadata = metadata; return this; } @@ -47,7 +50,7 @@ public AssetMetadataRequest getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(AssetMetadataRequest metadata) { + public void setMetadata(@jakarta.annotation.Nullable AssetMetadataRequest metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java index a650044e..d079f491 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java @@ -21,14 +21,17 @@ /** UpdateCallbackHandlerRequest */ @JsonPropertyOrder({UpdateCallbackHandlerRequest.JSON_PROPERTY_CALLBACK_HANDLER}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private CallbackHandlerRequest callbackHandler; + @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; public UpdateCallbackHandlerRequest() {} - public UpdateCallbackHandlerRequest callbackHandler(CallbackHandlerRequest callbackHandler) { + public UpdateCallbackHandlerRequest callbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; return this; } @@ -47,7 +50,8 @@ public CallbackHandlerRequest getCallbackHandler() { @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler(CallbackHandlerRequest callbackHandler) { + public void setCallbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; } diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java b/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java index 29902d9a..9556365d 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; import java.util.UUID; @@ -27,17 +27,25 @@ UpdateCallbackHandlerResponse.JSON_PROPERTY_ID, UpdateCallbackHandlerResponse.JSON_PROPERTY_CALLBACK_HANDLER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - private CallbackHandlerRequest callbackHandler; + @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; public UpdateCallbackHandlerResponse() {} - public UpdateCallbackHandlerResponse id(UUID id) { + @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; } @@ -56,11 +64,12 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public UpdateCallbackHandlerResponse callbackHandler(CallbackHandlerRequest callbackHandler) { + public UpdateCallbackHandlerResponse callbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; return this; } @@ -79,7 +88,8 @@ public CallbackHandlerRequest getCallbackHandler() { @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler(CallbackHandlerRequest callbackHandler) { + public void setCallbackHandler( + @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { this.callbackHandler = callbackHandler; } @@ -162,10 +172,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `callbackHandler` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java new file mode 100644 index 00000000..0da98c72 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java @@ -0,0 +1,231 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 index 2a7cf33f..2f7aecf1 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ UpdateTagRequest.JSON_PROPERTY_LABEL, UpdateTagRequest.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String label; + @jakarta.annotation.Nullable private String label; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public UpdateTagRequest() {} - public UpdateTagRequest label(String label) { + public UpdateTagRequest label(@jakarta.annotation.Nullable String label) { this.label = label; return this; } @@ -55,11 +56,11 @@ public String getLabel() { @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLabel(String label) { + public void setLabel(@jakarta.annotation.Nullable String label) { this.label = label; } - public UpdateTagRequest description(String description) { + public UpdateTagRequest description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -78,7 +79,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -161,8 +162,7 @@ public String toUrlQueryString(String prefix) { "%slabel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLabel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); } // add `description` to the URL query string @@ -172,10 +172,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDto.java b/src/main/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDto.java index e129d399..9ee35f56 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDto.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDto.java @@ -18,20 +18,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** UpdateTokenOwnershipStatusDto */ @JsonPropertyOrder({UpdateTokenOwnershipStatusDto.JSON_PROPERTY_STATUS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UpdateTokenOwnershipStatusDto { /** Gets or Sets status */ public enum StatusEnum { - LISTED("LISTED"), + LISTED(String.valueOf("LISTED")), - ARCHIVED("ARCHIVED"); + ARCHIVED(String.valueOf("ARCHIVED")); private String value; @@ -61,11 +62,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public UpdateTokenOwnershipStatusDto() {} - public UpdateTokenOwnershipStatusDto status(StatusEnum status) { + @JsonCreator + public UpdateTokenOwnershipStatusDto( + @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { + this.status = status; + } + + public UpdateTokenOwnershipStatusDto status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -84,7 +91,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } @@ -166,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequest.java index 3951fe39..ab848627 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequest.java @@ -16,21 +16,23 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** UpdateVaultAccountAssetAddressRequest */ @JsonPropertyOrder({UpdateVaultAccountAssetAddressRequest.JSON_PROPERTY_DESCRIPTION}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UpdateVaultAccountAssetAddressRequest { public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public UpdateVaultAccountAssetAddressRequest() {} - public UpdateVaultAccountAssetAddressRequest description(String description) { + public UpdateVaultAccountAssetAddressRequest description( + @jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -49,7 +51,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -131,10 +133,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountRequest.java index 8fa71a37..2691c1dd 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountRequest.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** UpdateVaultAccountRequest */ @JsonPropertyOrder({UpdateVaultAccountRequest.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UpdateVaultAccountRequest { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public UpdateVaultAccountRequest() {} - public UpdateVaultAccountRequest name(String name) { + public UpdateVaultAccountRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -49,7 +50,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } 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 index 37a67afd..ad1266e9 100644 --- a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +29,25 @@ UpdateWebhookRequest.JSON_PROPERTY_EVENTS, UpdateWebhookRequest.JSON_PROPERTY_ENABLED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String url; + @jakarta.annotation.Nullable private String url; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_EVENTS = "events"; - private List events; + @jakarta.annotation.Nullable private List events = new ArrayList<>(); public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nullable private Boolean enabled; public UpdateWebhookRequest() {} - public UpdateWebhookRequest url(String url) { + public UpdateWebhookRequest url(@jakarta.annotation.Nullable String url) { this.url = url; return this; } @@ -65,11 +66,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nullable String url) { this.url = url; } - public UpdateWebhookRequest description(String description) { + public UpdateWebhookRequest description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -88,11 +89,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public UpdateWebhookRequest events(List events) { + public UpdateWebhookRequest events(@jakarta.annotation.Nullable List events) { this.events = events; return this; } @@ -119,11 +120,11 @@ public List getEvents() { @JsonProperty(JSON_PROPERTY_EVENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEvents(List events) { + public void setEvents(@jakarta.annotation.Nullable List events) { this.events = events; } - public UpdateWebhookRequest enabled(Boolean enabled) { + public UpdateWebhookRequest enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -142,7 +143,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } @@ -229,8 +230,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `description` to the URL query string @@ -240,10 +240,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `events` to the URL query string @@ -259,10 +256,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getEvents().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getEvents().get(i))))); } } } @@ -274,8 +269,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 new file mode 100644 index 00000000..e9330a48 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java @@ -0,0 +1,826 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 fb4f7855..60f84cd6 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,19 @@ UserGroupCreateRequest.JSON_PROPERTY_GROUP_NAME, UserGroupCreateRequest.JSON_PROPERTY_MEMBER_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UserGroupCreateRequest { public static final String JSON_PROPERTY_GROUP_NAME = "groupName"; - private String groupName; + @jakarta.annotation.Nullable private String groupName; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - private List memberIds; + @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); public UserGroupCreateRequest() {} - public UserGroupCreateRequest groupName(String groupName) { + public UserGroupCreateRequest groupName(@jakarta.annotation.Nullable String groupName) { this.groupName = groupName; return this; } @@ -57,11 +58,11 @@ public String getGroupName() { @JsonProperty(JSON_PROPERTY_GROUP_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupName(String groupName) { + public void setGroupName(@jakarta.annotation.Nullable String groupName) { this.groupName = groupName; } - public UserGroupCreateRequest memberIds(List memberIds) { + public UserGroupCreateRequest memberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; return this; } @@ -88,7 +89,7 @@ public List getMemberIds() { @JsonProperty(JSON_PROPERTY_MEMBER_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMemberIds(List memberIds) { + public void setMemberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; } @@ -171,9 +172,7 @@ public String toUrlQueryString(String prefix) { "%sgroupName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getGroupName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGroupName())))); } // add `memberIds` to the URL query string @@ -188,10 +187,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getMemberIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getMemberIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java index 7831b9b3..270ccf78 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +29,25 @@ UserGroupCreateResponse.JSON_PROPERTY_MEMBER_IDS, UserGroupCreateResponse.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UserGroupCreateResponse { public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - private List memberIds; + @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public UserGroupCreateResponse() {} - public UserGroupCreateResponse name(String name) { + public UserGroupCreateResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -65,11 +66,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public UserGroupCreateResponse id(String id) { + public UserGroupCreateResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -88,11 +89,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public UserGroupCreateResponse memberIds(List memberIds) { + public UserGroupCreateResponse memberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; return this; } @@ -119,11 +120,11 @@ public List getMemberIds() { @JsonProperty(JSON_PROPERTY_MEMBER_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMemberIds(List memberIds) { + public void setMemberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; } - public UserGroupCreateResponse status(String status) { + public UserGroupCreateResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -142,7 +143,7 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } @@ -229,8 +230,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `id` to the URL query string @@ -238,10 +238,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `memberIds` to the URL query string @@ -256,10 +253,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getMemberIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getMemberIds().get(i))))); } } @@ -270,8 +265,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java b/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java index 452a89f6..29d748f6 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +29,25 @@ UserGroupResponse.JSON_PROPERTY_STATUS, UserGroupResponse.JSON_PROPERTY_MEMBER_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UserGroupResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_STATUS = "status"; - private String status; + @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - private List memberIds; + @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); public UserGroupResponse() {} - public UserGroupResponse id(String id) { + public UserGroupResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -65,11 +66,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public UserGroupResponse name(String name) { + public UserGroupResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -88,11 +89,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public UserGroupResponse status(String status) { + public UserGroupResponse status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -111,11 +112,11 @@ public String getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public UserGroupResponse memberIds(List memberIds) { + public UserGroupResponse memberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; return this; } @@ -142,7 +143,7 @@ public List getMemberIds() { @JsonProperty(JSON_PROPERTY_MEMBER_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMemberIds(List memberIds) { + public void setMemberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; } @@ -227,10 +228,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -240,8 +238,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `status` to the URL query string @@ -251,8 +248,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `memberIds` to the URL query string @@ -267,10 +263,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getMemberIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getMemberIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java b/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java index a80697ab..7b263750 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +27,19 @@ UserGroupUpdateRequest.JSON_PROPERTY_GROUP_NAME, UserGroupUpdateRequest.JSON_PROPERTY_MEMBER_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UserGroupUpdateRequest { public static final String JSON_PROPERTY_GROUP_NAME = "groupName"; - private String groupName; + @jakarta.annotation.Nullable private String groupName; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - private List memberIds; + @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); public UserGroupUpdateRequest() {} - public UserGroupUpdateRequest groupName(String groupName) { + public UserGroupUpdateRequest groupName(@jakarta.annotation.Nullable String groupName) { this.groupName = groupName; return this; } @@ -57,11 +58,11 @@ public String getGroupName() { @JsonProperty(JSON_PROPERTY_GROUP_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupName(String groupName) { + public void setGroupName(@jakarta.annotation.Nullable String groupName) { this.groupName = groupName; } - public UserGroupUpdateRequest memberIds(List memberIds) { + public UserGroupUpdateRequest memberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; return this; } @@ -88,7 +89,7 @@ public List getMemberIds() { @JsonProperty(JSON_PROPERTY_MEMBER_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMemberIds(List memberIds) { + public void setMemberIds(@jakarta.annotation.Nullable List memberIds) { this.memberIds = memberIds; } @@ -171,9 +172,7 @@ public String toUrlQueryString(String prefix) { "%sgroupName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getGroupName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getGroupName())))); } // add `memberIds` to the URL query string @@ -188,10 +187,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getMemberIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getMemberIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/UserResponse.java b/src/main/java/com/fireblocks/sdk/model/UserResponse.java index 0660b3d7..48569d79 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UserResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -30,29 +29,31 @@ UserResponse.JSON_PROPERTY_EMAIL, UserResponse.JSON_PROPERTY_ENABLED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class UserResponse { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_ROLE = "role"; - private String role; + @jakarta.annotation.Nullable private String role; public static final String JSON_PROPERTY_EMAIL = "email"; - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nullable private Boolean enabled; public UserResponse() {} - public UserResponse id(String id) { + public UserResponse id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -71,11 +72,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public UserResponse firstName(String firstName) { + public UserResponse firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -94,11 +95,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public UserResponse lastName(String lastName) { + public UserResponse lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -117,11 +118,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public UserResponse role(String role) { + public UserResponse role(@jakarta.annotation.Nullable String role) { this.role = role; return this; } @@ -140,11 +141,11 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nullable String role) { this.role = role; } - public UserResponse email(String email) { + public UserResponse email(@jakarta.annotation.Nullable String email) { this.email = email; return this; } @@ -163,11 +164,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public UserResponse enabled(Boolean enabled) { + public UserResponse enabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; return this; } @@ -186,7 +187,7 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { this.enabled = enabled; } @@ -275,10 +276,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `firstName` to the URL query string @@ -288,9 +286,7 @@ public String toUrlQueryString(String prefix) { "%sfirstName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFirstName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFirstName())))); } // add `lastName` to the URL query string @@ -300,8 +296,7 @@ public String toUrlQueryString(String prefix) { "%slastName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getLastName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLastName())))); } // add `role` to the URL query string @@ -311,8 +306,7 @@ public String toUrlQueryString(String prefix) { "%srole%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getRole()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRole())))); } // add `email` to the URL query string @@ -322,8 +316,7 @@ public String toUrlQueryString(String prefix) { "%semail%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEmail())))); } // add `enabled` to the URL query string @@ -333,8 +326,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ValidateAddressResponse.java b/src/main/java/com/fireblocks/sdk/model/ValidateAddressResponse.java index 41a90f57..d476c221 100644 --- a/src/main/java/com/fireblocks/sdk/model/ValidateAddressResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ValidateAddressResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,20 +26,22 @@ ValidateAddressResponse.JSON_PROPERTY_IS_ACTIVE, ValidateAddressResponse.JSON_PROPERTY_REQUIRES_TAG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ValidateAddressResponse { public static final String JSON_PROPERTY_IS_VALID = "isValid"; - private Boolean isValid; + @jakarta.annotation.Nullable private Boolean isValid; public static final String JSON_PROPERTY_IS_ACTIVE = "isActive"; - private Boolean isActive; + @jakarta.annotation.Nullable private Boolean isActive; public static final String JSON_PROPERTY_REQUIRES_TAG = "requiresTag"; - private Boolean requiresTag; + @jakarta.annotation.Nullable private Boolean requiresTag; public ValidateAddressResponse() {} - public ValidateAddressResponse isValid(Boolean isValid) { + public ValidateAddressResponse isValid(@jakarta.annotation.Nullable Boolean isValid) { this.isValid = isValid; return this; } @@ -59,11 +60,11 @@ public Boolean getIsValid() { @JsonProperty(JSON_PROPERTY_IS_VALID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsValid(Boolean isValid) { + public void setIsValid(@jakarta.annotation.Nullable Boolean isValid) { this.isValid = isValid; } - public ValidateAddressResponse isActive(Boolean isActive) { + public ValidateAddressResponse isActive(@jakarta.annotation.Nullable Boolean isActive) { this.isActive = isActive; return this; } @@ -82,11 +83,11 @@ public Boolean getIsActive() { @JsonProperty(JSON_PROPERTY_IS_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsActive(Boolean isActive) { + public void setIsActive(@jakarta.annotation.Nullable Boolean isActive) { this.isActive = isActive; } - public ValidateAddressResponse requiresTag(Boolean requiresTag) { + public ValidateAddressResponse requiresTag(@jakarta.annotation.Nullable Boolean requiresTag) { this.requiresTag = requiresTag; return this; } @@ -105,7 +106,7 @@ public Boolean getRequiresTag() { @JsonProperty(JSON_PROPERTY_REQUIRES_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequiresTag(Boolean requiresTag) { + public void setRequiresTag(@jakarta.annotation.Nullable Boolean requiresTag) { this.requiresTag = requiresTag; } @@ -190,8 +191,7 @@ public String toUrlQueryString(String prefix) { "%sisValid%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsValid()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsValid())))); } // add `isActive` to the URL query string @@ -201,8 +201,7 @@ public String toUrlQueryString(String prefix) { "%sisActive%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIsActive()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIsActive())))); } // add `requiresTag` to the URL query string @@ -212,10 +211,7 @@ public String toUrlQueryString(String prefix) { "%srequiresTag%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getRequiresTag()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getRequiresTag())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java b/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java index 09f2bbfc..f16af354 100644 --- a/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,27 @@ ValidateLayerZeroChannelResponse.JSON_PROPERTY_CORRECT, ValidateLayerZeroChannelResponse.JSON_PROPERTY_ERRORS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private Boolean correct; + @jakarta.annotation.Nonnull private Boolean correct; public static final String JSON_PROPERTY_ERRORS = "errors"; - private List errors = new ArrayList<>(); + @jakarta.annotation.Nonnull private List errors = new ArrayList<>(); public ValidateLayerZeroChannelResponse() {} - public ValidateLayerZeroChannelResponse correct(Boolean correct) { + @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; } @@ -57,11 +67,12 @@ public Boolean getCorrect() { @JsonProperty(JSON_PROPERTY_CORRECT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCorrect(Boolean correct) { + public void setCorrect(@jakarta.annotation.Nonnull Boolean correct) { this.correct = correct; } - public ValidateLayerZeroChannelResponse errors(List errors) { + public ValidateLayerZeroChannelResponse errors( + @jakarta.annotation.Nonnull List errors) { this.errors = errors; return this; } @@ -88,7 +99,7 @@ public List getErrors() { @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(List errors) { + public void setErrors(@jakarta.annotation.Nonnull List errors) { this.errors = errors; } @@ -172,8 +183,7 @@ public String toUrlQueryString(String prefix) { "%scorrect%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getCorrect()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCorrect())))); } // add `errors` to the URL query string @@ -188,10 +198,7 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getErrors().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getErrors().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java b/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java index 44e3573b..9b3cfc9c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java +++ b/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,20 +28,22 @@ ValidatedTransactionsForRescan.JSON_PROPERTY_NETWORK_PROTOCOL, ValidatedTransactionsForRescan.JSON_PROPERTY_TX_HASHES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private String baseAsset; + @jakarta.annotation.Nullable private String baseAsset; public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; - private String networkProtocol; + @jakarta.annotation.Nullable private String networkProtocol; public static final String JSON_PROPERTY_TX_HASHES = "txHashes"; - private List txHashes; + @jakarta.annotation.Nullable private List txHashes = new ArrayList<>(); public ValidatedTransactionsForRescan() {} - public ValidatedTransactionsForRescan baseAsset(String baseAsset) { + public ValidatedTransactionsForRescan baseAsset(@jakarta.annotation.Nullable String baseAsset) { this.baseAsset = baseAsset; return this; } @@ -61,11 +62,12 @@ public String getBaseAsset() { @JsonProperty(JSON_PROPERTY_BASE_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAsset(String baseAsset) { + public void setBaseAsset(@jakarta.annotation.Nullable String baseAsset) { this.baseAsset = baseAsset; } - public ValidatedTransactionsForRescan networkProtocol(String networkProtocol) { + public ValidatedTransactionsForRescan networkProtocol( + @jakarta.annotation.Nullable String networkProtocol) { this.networkProtocol = networkProtocol; return this; } @@ -84,11 +86,12 @@ public String getNetworkProtocol() { @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkProtocol(String networkProtocol) { + public void setNetworkProtocol(@jakarta.annotation.Nullable String networkProtocol) { this.networkProtocol = networkProtocol; } - public ValidatedTransactionsForRescan txHashes(List txHashes) { + public ValidatedTransactionsForRescan txHashes( + @jakarta.annotation.Nullable List txHashes) { this.txHashes = txHashes; return this; } @@ -115,7 +118,7 @@ public List getTxHashes() { @JsonProperty(JSON_PROPERTY_TX_HASHES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHashes(List txHashes) { + public void setTxHashes(@jakarta.annotation.Nullable List txHashes) { this.txHashes = txHashes; } @@ -202,9 +205,7 @@ public String toUrlQueryString(String prefix) { "%sbaseAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBaseAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBaseAsset())))); } // add `networkProtocol` to the URL query string @@ -214,10 +215,7 @@ public String toUrlQueryString(String prefix) { "%snetworkProtocol%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getNetworkProtocol()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNetworkProtocol())))); } // add `txHashes` to the URL query string @@ -232,10 +230,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTxHashes().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTxHashes().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ValidationKeyDto.java b/src/main/java/com/fireblocks/sdk/model/ValidationKeyDto.java index d9128204..63a45edf 100644 --- a/src/main/java/com/fireblocks/sdk/model/ValidationKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ValidationKeyDto.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -30,26 +30,44 @@ ValidationKeyDto.JSON_PROPERTY_ENABLED, ValidationKeyDto.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class ValidationKeyDto { public static final String JSON_PROPERTY_KEY_ID = "keyId"; - private String keyId; + @jakarta.annotation.Nonnull private String keyId; public static final String JSON_PROPERTY_PUBLIC_KEY_PEM = "publicKeyPem"; - private String publicKeyPem; + @jakarta.annotation.Nonnull private String publicKeyPem; public static final String JSON_PROPERTY_DAYS_TILL_EXPIRED = "daysTillExpired"; - private BigDecimal daysTillExpired; + @jakarta.annotation.Nonnull private BigDecimal daysTillExpired; public static final String JSON_PROPERTY_ENABLED = "enabled"; - private Boolean enabled; + @jakarta.annotation.Nonnull private Boolean enabled; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private BigDecimal createdAt; + @jakarta.annotation.Nonnull private BigDecimal createdAt; public ValidationKeyDto() {} - public ValidationKeyDto keyId(String keyId) { + @JsonCreator + public ValidationKeyDto( + @JsonProperty(value = JSON_PROPERTY_KEY_ID, required = true) String keyId, + @JsonProperty(value = JSON_PROPERTY_PUBLIC_KEY_PEM, required = true) + String publicKeyPem, + @JsonProperty(value = JSON_PROPERTY_DAYS_TILL_EXPIRED, required = true) + BigDecimal daysTillExpired, + @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled, + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) BigDecimal createdAt) { + this.keyId = keyId; + this.publicKeyPem = publicKeyPem; + this.daysTillExpired = daysTillExpired; + this.enabled = enabled; + this.createdAt = createdAt; + } + + public ValidationKeyDto keyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; return this; } @@ -68,11 +86,11 @@ public String getKeyId() { @JsonProperty(JSON_PROPERTY_KEY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyId(String keyId) { + public void setKeyId(@jakarta.annotation.Nonnull String keyId) { this.keyId = keyId; } - public ValidationKeyDto publicKeyPem(String publicKeyPem) { + public ValidationKeyDto publicKeyPem(@jakarta.annotation.Nonnull String publicKeyPem) { this.publicKeyPem = publicKeyPem; return this; } @@ -91,11 +109,12 @@ public String getPublicKeyPem() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_PEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKeyPem(String publicKeyPem) { + public void setPublicKeyPem(@jakarta.annotation.Nonnull String publicKeyPem) { this.publicKeyPem = publicKeyPem; } - public ValidationKeyDto daysTillExpired(BigDecimal daysTillExpired) { + public ValidationKeyDto daysTillExpired( + @jakarta.annotation.Nonnull BigDecimal daysTillExpired) { this.daysTillExpired = daysTillExpired; return this; } @@ -114,11 +133,11 @@ public BigDecimal getDaysTillExpired() { @JsonProperty(JSON_PROPERTY_DAYS_TILL_EXPIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDaysTillExpired(BigDecimal daysTillExpired) { + public void setDaysTillExpired(@jakarta.annotation.Nonnull BigDecimal daysTillExpired) { this.daysTillExpired = daysTillExpired; } - public ValidationKeyDto enabled(Boolean enabled) { + public ValidationKeyDto enabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; return this; } @@ -137,11 +156,11 @@ public Boolean getEnabled() { @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(Boolean enabled) { + public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { this.enabled = enabled; } - public ValidationKeyDto createdAt(BigDecimal createdAt) { + public ValidationKeyDto createdAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; return this; } @@ -160,7 +179,7 @@ public BigDecimal getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { this.createdAt = createdAt; } @@ -249,8 +268,7 @@ public String toUrlQueryString(String prefix) { "%skeyId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getKeyId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getKeyId())))); } // add `publicKeyPem` to the URL query string @@ -260,10 +278,7 @@ public String toUrlQueryString(String prefix) { "%spublicKeyPem%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPublicKeyPem()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPublicKeyPem())))); } // add `daysTillExpired` to the URL query string @@ -273,10 +288,7 @@ public String toUrlQueryString(String prefix) { "%sdaysTillExpired%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDaysTillExpired()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDaysTillExpired())))); } // add `enabled` to the URL query string @@ -286,8 +298,7 @@ public String toUrlQueryString(String prefix) { "%senabled%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); } // add `createdAt` to the URL query string @@ -297,9 +308,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/Validator.java b/src/main/java/com/fireblocks/sdk/model/Validator.java index 2ef3371a..ecd07b48 100644 --- a/src/main/java/com/fireblocks/sdk/model/Validator.java +++ b/src/main/java/com/fireblocks/sdk/model/Validator.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.StringJoiner; @@ -28,20 +28,32 @@ Validator.JSON_PROPERTY_FEE_PERCENT, Validator.JSON_PROPERTY_IS_PRIVATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class Validator { public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; - private String chainDescriptor; + @jakarta.annotation.Nonnull private String chainDescriptor; public static final String JSON_PROPERTY_FEE_PERCENT = "feePercent"; - private BigDecimal feePercent; + @jakarta.annotation.Nonnull private BigDecimal feePercent; public static final String JSON_PROPERTY_IS_PRIVATE = "isPrivate"; - private Boolean isPrivate; + @jakarta.annotation.Nullable private Boolean isPrivate; public Validator() {} - public Validator chainDescriptor(String chainDescriptor) { + @JsonCreator + public Validator( + @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) + String chainDescriptor, + @JsonProperty(value = JSON_PROPERTY_FEE_PERCENT, required = true) + BigDecimal feePercent) { + this.chainDescriptor = chainDescriptor; + this.feePercent = feePercent; + } + + public Validator chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -60,11 +72,11 @@ public String getChainDescriptor() { @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainDescriptor(String chainDescriptor) { + public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; } - public Validator feePercent(BigDecimal feePercent) { + public Validator feePercent(@jakarta.annotation.Nonnull BigDecimal feePercent) { this.feePercent = feePercent; return this; } @@ -83,11 +95,11 @@ public BigDecimal getFeePercent() { @JsonProperty(JSON_PROPERTY_FEE_PERCENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFeePercent(BigDecimal feePercent) { + public void setFeePercent(@jakarta.annotation.Nonnull BigDecimal feePercent) { this.feePercent = feePercent; } - public Validator isPrivate(Boolean isPrivate) { + public Validator isPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { this.isPrivate = isPrivate; return this; } @@ -106,7 +118,7 @@ public Boolean getIsPrivate() { @JsonProperty(JSON_PROPERTY_IS_PRIVATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPrivate(Boolean isPrivate) { + public void setIsPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { this.isPrivate = isPrivate; } @@ -191,10 +203,7 @@ public String toUrlQueryString(String prefix) { "%schainDescriptor%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getChainDescriptor()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getChainDescriptor())))); } // add `feePercent` to the URL query string @@ -204,9 +213,7 @@ public String toUrlQueryString(String prefix) { "%sfeePercent%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getFeePercent()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeePercent())))); } // add `isPrivate` to the URL query string @@ -216,9 +223,7 @@ public String toUrlQueryString(String prefix) { "%sisPrivate%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIsPrivate()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 d29f94ae..6356774d 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAccount.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -33,32 +32,34 @@ VaultAccount.JSON_PROPERTY_AUTO_FUEL, VaultAccount.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultAccount { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ASSETS = "assets"; - private List assets; + @jakarta.annotation.Nullable private List assets = new ArrayList<>(); public static final String JSON_PROPERTY_HIDDEN_ON_U_I = "hiddenOnUI"; - private Boolean hiddenOnUI; + @jakarta.annotation.Nullable private Boolean hiddenOnUI; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_AUTO_FUEL = "autoFuel"; - private Boolean autoFuel; + @jakarta.annotation.Nullable private Boolean autoFuel; public static final String JSON_PROPERTY_TAGS = "tags"; - private List tags; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); public VaultAccount() {} - public VaultAccount id(String id) { + public VaultAccount id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -77,11 +78,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public VaultAccount name(String name) { + public VaultAccount name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -100,11 +101,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public VaultAccount assets(List assets) { + public VaultAccount assets(@jakarta.annotation.Nullable List assets) { this.assets = assets; return this; } @@ -131,11 +132,11 @@ public List getAssets() { @JsonProperty(JSON_PROPERTY_ASSETS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssets(List assets) { + public void setAssets(@jakarta.annotation.Nullable List assets) { this.assets = assets; } - public VaultAccount hiddenOnUI(Boolean hiddenOnUI) { + public VaultAccount hiddenOnUI(@jakarta.annotation.Nullable Boolean hiddenOnUI) { this.hiddenOnUI = hiddenOnUI; return this; } @@ -154,11 +155,11 @@ public Boolean getHiddenOnUI() { @JsonProperty(JSON_PROPERTY_HIDDEN_ON_U_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHiddenOnUI(Boolean hiddenOnUI) { + public void setHiddenOnUI(@jakarta.annotation.Nullable Boolean hiddenOnUI) { this.hiddenOnUI = hiddenOnUI; } - public VaultAccount customerRefId(String customerRefId) { + public VaultAccount customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -177,11 +178,11 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } - public VaultAccount autoFuel(Boolean autoFuel) { + public VaultAccount autoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; return this; } @@ -200,11 +201,11 @@ public Boolean getAutoFuel() { @JsonProperty(JSON_PROPERTY_AUTO_FUEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoFuel(Boolean autoFuel) { + public void setAutoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; } - public VaultAccount tags(List tags) { + public VaultAccount tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -231,7 +232,7 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } @@ -322,10 +323,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -335,8 +333,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `assets` to the URL query string @@ -369,9 +366,7 @@ public String toUrlQueryString(String prefix) { "%shiddenOnUI%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getHiddenOnUI()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getHiddenOnUI())))); } // add `customerRefId` to the URL query string @@ -381,10 +376,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `autoFuel` to the URL query string @@ -394,8 +386,7 @@ public String toUrlQueryString(String prefix) { "%sautoFuel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAutoFuel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAutoFuel())))); } // add `tags` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java b/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java index fb54c717..5511b5b0 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -30,23 +29,26 @@ VaultAccountsPagedResponse.JSON_PROPERTY_PREVIOUS_URL, VaultAccountsPagedResponse.JSON_PROPERTY_NEXT_URL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultAccountsPagedResponse { public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - private List accounts; + @jakarta.annotation.Nullable private List accounts = new ArrayList<>(); public static final String JSON_PROPERTY_PAGING = "paging"; - private VaultAccountsPagedResponsePaging paging; + @jakarta.annotation.Nullable private VaultAccountsPagedResponsePaging paging; public static final String JSON_PROPERTY_PREVIOUS_URL = "previousUrl"; - private String previousUrl; + @jakarta.annotation.Nullable private String previousUrl; public static final String JSON_PROPERTY_NEXT_URL = "nextUrl"; - private String nextUrl; + @jakarta.annotation.Nullable private String nextUrl; public VaultAccountsPagedResponse() {} - public VaultAccountsPagedResponse accounts(List accounts) { + public VaultAccountsPagedResponse accounts( + @jakarta.annotation.Nullable List accounts) { this.accounts = accounts; return this; } @@ -73,11 +75,12 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccounts(List accounts) { + public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; } - public VaultAccountsPagedResponse paging(VaultAccountsPagedResponsePaging paging) { + public VaultAccountsPagedResponse paging( + @jakarta.annotation.Nullable VaultAccountsPagedResponsePaging paging) { this.paging = paging; return this; } @@ -96,11 +99,11 @@ public VaultAccountsPagedResponsePaging getPaging() { @JsonProperty(JSON_PROPERTY_PAGING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaging(VaultAccountsPagedResponsePaging paging) { + public void setPaging(@jakarta.annotation.Nullable VaultAccountsPagedResponsePaging paging) { this.paging = paging; } - public VaultAccountsPagedResponse previousUrl(String previousUrl) { + public VaultAccountsPagedResponse previousUrl(@jakarta.annotation.Nullable String previousUrl) { this.previousUrl = previousUrl; return this; } @@ -119,11 +122,11 @@ public String getPreviousUrl() { @JsonProperty(JSON_PROPERTY_PREVIOUS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreviousUrl(String previousUrl) { + public void setPreviousUrl(@jakarta.annotation.Nullable String previousUrl) { this.previousUrl = previousUrl; } - public VaultAccountsPagedResponse nextUrl(String nextUrl) { + public VaultAccountsPagedResponse nextUrl(@jakarta.annotation.Nullable String nextUrl) { this.nextUrl = nextUrl; return this; } @@ -142,7 +145,7 @@ public String getNextUrl() { @JsonProperty(JSON_PROPERTY_NEXT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNextUrl(String nextUrl) { + public void setNextUrl(@jakarta.annotation.Nullable String nextUrl) { this.nextUrl = nextUrl; } @@ -257,10 +260,7 @@ public String toUrlQueryString(String prefix) { "%spreviousUrl%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPreviousUrl()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPreviousUrl())))); } // add `nextUrl` to the URL query string @@ -270,8 +270,7 @@ public String toUrlQueryString(String prefix) { "%snextUrl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNextUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNextUrl())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePaging.java b/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePaging.java index 3def37fb..87773c06 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePaging.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePaging.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,17 +25,19 @@ VaultAccountsPagedResponsePaging.JSON_PROPERTY_BEFORE, VaultAccountsPagedResponsePaging.JSON_PROPERTY_AFTER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultAccountsPagedResponsePaging { public static final String JSON_PROPERTY_BEFORE = "before"; - private String before; + @jakarta.annotation.Nullable private String before; public static final String JSON_PROPERTY_AFTER = "after"; - private String after; + @jakarta.annotation.Nullable private String after; public VaultAccountsPagedResponsePaging() {} - public VaultAccountsPagedResponsePaging before(String before) { + public VaultAccountsPagedResponsePaging before(@jakarta.annotation.Nullable String before) { this.before = before; return this; } @@ -55,11 +56,11 @@ public String getBefore() { @JsonProperty(JSON_PROPERTY_BEFORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBefore(String before) { + public void setBefore(@jakarta.annotation.Nullable String before) { this.before = before; } - public VaultAccountsPagedResponsePaging after(String after) { + public VaultAccountsPagedResponsePaging after(@jakarta.annotation.Nullable String after) { this.after = after; return this; } @@ -78,7 +79,7 @@ public String getAfter() { @JsonProperty(JSON_PROPERTY_AFTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAfter(String after) { + public void setAfter(@jakarta.annotation.Nullable String after) { this.after = after; } @@ -162,8 +163,7 @@ public String toUrlQueryString(String prefix) { "%sbefore%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBefore()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBefore())))); } // add `after` to the URL query string @@ -173,8 +173,7 @@ public String toUrlQueryString(String prefix) { "%safter%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAfter()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAfter())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java b/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java index b1ada40b..f157a63d 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -29,17 +29,29 @@ VaultAccountsTagAttachmentsRequest.JSON_PROPERTY_TAG_IDS, VaultAccountsTagAttachmentsRequest.JSON_PROPERTY_VAULT_ACCOUNT_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List tagIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List tagIds = new ArrayList<>(); public static final String JSON_PROPERTY_VAULT_ACCOUNT_IDS = "vaultAccountIds"; - private List vaultAccountIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List vaultAccountIds = new ArrayList<>(); public VaultAccountsTagAttachmentsRequest() {} - public VaultAccountsTagAttachmentsRequest tagIds(List tagIds) { + @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; } @@ -66,11 +78,12 @@ public List getTagIds() { @JsonProperty(JSON_PROPERTY_TAG_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTagIds(List tagIds) { + public void setTagIds(@jakarta.annotation.Nonnull List tagIds) { this.tagIds = tagIds; } - public VaultAccountsTagAttachmentsRequest vaultAccountIds(List vaultAccountIds) { + public VaultAccountsTagAttachmentsRequest vaultAccountIds( + @jakarta.annotation.Nonnull List vaultAccountIds) { this.vaultAccountIds = vaultAccountIds; return this; } @@ -97,7 +110,7 @@ public List getVaultAccountIds() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountIds(List vaultAccountIds) { + public void setVaultAccountIds(@jakarta.annotation.Nonnull List vaultAccountIds) { this.vaultAccountIds = vaultAccountIds; } @@ -188,10 +201,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getTagIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getTagIds().get(i))))); } } } @@ -208,10 +219,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getVaultAccountIds().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getVaultAccountIds().get(i))))); } } diff --git a/src/main/java/com/fireblocks/sdk/model/VaultActionStatus.java b/src/main/java/com/fireblocks/sdk/model/VaultActionStatus.java index c4a9d9b5..147faf14 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultActionStatus.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultActionStatus.java @@ -16,21 +16,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** VaultActionStatus */ @JsonPropertyOrder({VaultActionStatus.JSON_PROPERTY_SUCCESS}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultActionStatus { public static final String JSON_PROPERTY_SUCCESS = "success"; - private Boolean success; + @jakarta.annotation.Nullable private Boolean success; public VaultActionStatus() {} - public VaultActionStatus success(Boolean success) { + public VaultActionStatus success(@jakarta.annotation.Nullable Boolean success) { this.success = success; return this; } @@ -49,7 +50,7 @@ public Boolean getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(Boolean success) { + public void setSuccess(@jakarta.annotation.Nullable Boolean success) { this.success = success; } @@ -130,8 +131,7 @@ public String toUrlQueryString(String prefix) { "%ssuccess%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSuccess()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } 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 13327c9b..298e436d 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAsset.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -41,62 +40,64 @@ VaultAsset.JSON_PROPERTY_BLOCK_HASH, VaultAsset.JSON_PROPERTY_REWARDS_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultAsset { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TOTAL = "total"; - private String total; + @jakarta.annotation.Nullable private String total; public static final String JSON_PROPERTY_BALANCE = "balance"; - private String balance; + @jakarta.annotation.Nullable private String balance; public static final String JSON_PROPERTY_AVAILABLE = "available"; - private String available; + @jakarta.annotation.Nullable private String available; public static final String JSON_PROPERTY_PENDING = "pending"; - private String pending; + @jakarta.annotation.Nullable private String pending; public static final String JSON_PROPERTY_FROZEN = "frozen"; - private String frozen; + @jakarta.annotation.Nullable private String frozen; public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - private String lockedAmount; + @jakarta.annotation.Nullable private String lockedAmount; public static final String JSON_PROPERTY_STAKED = "staked"; - private String staked; + @jakarta.annotation.Nullable private String staked; public static final String JSON_PROPERTY_TOTAL_STAKED_C_P_U = "totalStakedCPU"; - private String totalStakedCPU; + @jakarta.annotation.Nullable private String totalStakedCPU; public static final String JSON_PROPERTY_TOTAL_STAKED_NETWORK = "totalStakedNetwork"; - private String totalStakedNetwork; + @jakarta.annotation.Nullable private String totalStakedNetwork; public static final String JSON_PROPERTY_SELF_STAKED_C_P_U = "selfStakedCPU"; - private String selfStakedCPU; + @jakarta.annotation.Nullable private String selfStakedCPU; public static final String JSON_PROPERTY_SELF_STAKED_NETWORK = "selfStakedNetwork"; - private String selfStakedNetwork; + @jakarta.annotation.Nullable private String selfStakedNetwork; public static final String JSON_PROPERTY_PENDING_REFUND_C_P_U = "pendingRefundCPU"; - private String pendingRefundCPU; + @jakarta.annotation.Nullable private String pendingRefundCPU; public static final String JSON_PROPERTY_PENDING_REFUND_NETWORK = "pendingRefundNetwork"; - private String pendingRefundNetwork; + @jakarta.annotation.Nullable private String pendingRefundNetwork; public static final String JSON_PROPERTY_BLOCK_HEIGHT = "blockHeight"; - private String blockHeight; + @jakarta.annotation.Nullable private String blockHeight; public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - private String blockHash; + @jakarta.annotation.Nullable private String blockHash; public static final String JSON_PROPERTY_REWARDS_INFO = "rewardsInfo"; - private RewardsInfo rewardsInfo; + @jakarta.annotation.Nullable private RewardsInfo rewardsInfo; public VaultAsset() {} - public VaultAsset id(String id) { + public VaultAsset id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -115,11 +116,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public VaultAsset total(String total) { + public VaultAsset total(@jakarta.annotation.Nullable String total) { this.total = total; return this; } @@ -139,11 +140,11 @@ public String getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(String total) { + public void setTotal(@jakarta.annotation.Nullable String total) { this.total = total; } - public VaultAsset balance(String balance) { + public VaultAsset balance(@jakarta.annotation.Nullable String balance) { this.balance = balance; return this; } @@ -164,11 +165,11 @@ public String getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalance(String balance) { + public void setBalance(@jakarta.annotation.Nullable String balance) { this.balance = balance; } - public VaultAsset available(String available) { + public VaultAsset available(@jakarta.annotation.Nullable String available) { this.available = available; return this; } @@ -187,11 +188,11 @@ public String getAvailable() { @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAvailable(String available) { + public void setAvailable(@jakarta.annotation.Nullable String available) { this.available = available; } - public VaultAsset pending(String pending) { + public VaultAsset pending(@jakarta.annotation.Nullable String pending) { this.pending = pending; return this; } @@ -210,11 +211,11 @@ public String getPending() { @JsonProperty(JSON_PROPERTY_PENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPending(String pending) { + public void setPending(@jakarta.annotation.Nullable String pending) { this.pending = pending; } - public VaultAsset frozen(String frozen) { + public VaultAsset frozen(@jakarta.annotation.Nullable String frozen) { this.frozen = frozen; return this; } @@ -233,11 +234,11 @@ public String getFrozen() { @JsonProperty(JSON_PROPERTY_FROZEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFrozen(String frozen) { + public void setFrozen(@jakarta.annotation.Nullable String frozen) { this.frozen = frozen; } - public VaultAsset lockedAmount(String lockedAmount) { + public VaultAsset lockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; return this; } @@ -256,11 +257,11 @@ public String getLockedAmount() { @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLockedAmount(String lockedAmount) { + public void setLockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; } - public VaultAsset staked(String staked) { + public VaultAsset staked(@jakarta.annotation.Nullable String staked) { this.staked = staked; return this; } @@ -279,11 +280,11 @@ public String getStaked() { @JsonProperty(JSON_PROPERTY_STAKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStaked(String staked) { + public void setStaked(@jakarta.annotation.Nullable String staked) { this.staked = staked; } - public VaultAsset totalStakedCPU(String totalStakedCPU) { + public VaultAsset totalStakedCPU(@jakarta.annotation.Nullable String totalStakedCPU) { this.totalStakedCPU = totalStakedCPU; return this; } @@ -302,11 +303,11 @@ public String getTotalStakedCPU() { @JsonProperty(JSON_PROPERTY_TOTAL_STAKED_C_P_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalStakedCPU(String totalStakedCPU) { + public void setTotalStakedCPU(@jakarta.annotation.Nullable String totalStakedCPU) { this.totalStakedCPU = totalStakedCPU; } - public VaultAsset totalStakedNetwork(String totalStakedNetwork) { + public VaultAsset totalStakedNetwork(@jakarta.annotation.Nullable String totalStakedNetwork) { this.totalStakedNetwork = totalStakedNetwork; return this; } @@ -325,11 +326,11 @@ public String getTotalStakedNetwork() { @JsonProperty(JSON_PROPERTY_TOTAL_STAKED_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalStakedNetwork(String totalStakedNetwork) { + public void setTotalStakedNetwork(@jakarta.annotation.Nullable String totalStakedNetwork) { this.totalStakedNetwork = totalStakedNetwork; } - public VaultAsset selfStakedCPU(String selfStakedCPU) { + public VaultAsset selfStakedCPU(@jakarta.annotation.Nullable String selfStakedCPU) { this.selfStakedCPU = selfStakedCPU; return this; } @@ -348,11 +349,11 @@ public String getSelfStakedCPU() { @JsonProperty(JSON_PROPERTY_SELF_STAKED_C_P_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSelfStakedCPU(String selfStakedCPU) { + public void setSelfStakedCPU(@jakarta.annotation.Nullable String selfStakedCPU) { this.selfStakedCPU = selfStakedCPU; } - public VaultAsset selfStakedNetwork(String selfStakedNetwork) { + public VaultAsset selfStakedNetwork(@jakarta.annotation.Nullable String selfStakedNetwork) { this.selfStakedNetwork = selfStakedNetwork; return this; } @@ -371,11 +372,11 @@ public String getSelfStakedNetwork() { @JsonProperty(JSON_PROPERTY_SELF_STAKED_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSelfStakedNetwork(String selfStakedNetwork) { + public void setSelfStakedNetwork(@jakarta.annotation.Nullable String selfStakedNetwork) { this.selfStakedNetwork = selfStakedNetwork; } - public VaultAsset pendingRefundCPU(String pendingRefundCPU) { + public VaultAsset pendingRefundCPU(@jakarta.annotation.Nullable String pendingRefundCPU) { this.pendingRefundCPU = pendingRefundCPU; return this; } @@ -394,11 +395,12 @@ public String getPendingRefundCPU() { @JsonProperty(JSON_PROPERTY_PENDING_REFUND_C_P_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPendingRefundCPU(String pendingRefundCPU) { + public void setPendingRefundCPU(@jakarta.annotation.Nullable String pendingRefundCPU) { this.pendingRefundCPU = pendingRefundCPU; } - public VaultAsset pendingRefundNetwork(String pendingRefundNetwork) { + public VaultAsset pendingRefundNetwork( + @jakarta.annotation.Nullable String pendingRefundNetwork) { this.pendingRefundNetwork = pendingRefundNetwork; return this; } @@ -417,11 +419,11 @@ public String getPendingRefundNetwork() { @JsonProperty(JSON_PROPERTY_PENDING_REFUND_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPendingRefundNetwork(String pendingRefundNetwork) { + public void setPendingRefundNetwork(@jakarta.annotation.Nullable String pendingRefundNetwork) { this.pendingRefundNetwork = pendingRefundNetwork; } - public VaultAsset blockHeight(String blockHeight) { + public VaultAsset blockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; return this; } @@ -440,11 +442,11 @@ public String getBlockHeight() { @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHeight(String blockHeight) { + public void setBlockHeight(@jakarta.annotation.Nullable String blockHeight) { this.blockHeight = blockHeight; } - public VaultAsset blockHash(String blockHash) { + public VaultAsset blockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; return this; } @@ -463,11 +465,11 @@ public String getBlockHash() { @JsonProperty(JSON_PROPERTY_BLOCK_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHash(String blockHash) { + public void setBlockHash(@jakarta.annotation.Nullable String blockHash) { this.blockHash = blockHash; } - public VaultAsset rewardsInfo(RewardsInfo rewardsInfo) { + public VaultAsset rewardsInfo(@jakarta.annotation.Nullable RewardsInfo rewardsInfo) { this.rewardsInfo = rewardsInfo; return this; } @@ -486,7 +488,7 @@ public RewardsInfo getRewardsInfo() { @JsonProperty(JSON_PROPERTY_REWARDS_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewardsInfo(RewardsInfo rewardsInfo) { + public void setRewardsInfo(@jakarta.annotation.Nullable RewardsInfo rewardsInfo) { this.rewardsInfo = rewardsInfo; } @@ -620,10 +622,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `total` to the URL query string @@ -633,8 +632,7 @@ public String toUrlQueryString(String prefix) { "%stotal%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } // add `balance` to the URL query string @@ -644,8 +642,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } // add `available` to the URL query string @@ -655,9 +652,7 @@ public String toUrlQueryString(String prefix) { "%savailable%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAvailable()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAvailable())))); } // add `pending` to the URL query string @@ -667,8 +662,7 @@ public String toUrlQueryString(String prefix) { "%spending%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getPending()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPending())))); } // add `frozen` to the URL query string @@ -678,8 +672,7 @@ public String toUrlQueryString(String prefix) { "%sfrozen%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFrozen()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFrozen())))); } // add `lockedAmount` to the URL query string @@ -689,10 +682,7 @@ public String toUrlQueryString(String prefix) { "%slockedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); } // add `staked` to the URL query string @@ -702,8 +692,7 @@ public String toUrlQueryString(String prefix) { "%sstaked%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStaked()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStaked())))); } // add `totalStakedCPU` to the URL query string @@ -713,10 +702,7 @@ public String toUrlQueryString(String prefix) { "%stotalStakedCPU%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTotalStakedCPU()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotalStakedCPU())))); } // add `totalStakedNetwork` to the URL query string @@ -726,10 +712,7 @@ public String toUrlQueryString(String prefix) { "%stotalStakedNetwork%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getTotalStakedNetwork()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTotalStakedNetwork())))); } // add `selfStakedCPU` to the URL query string @@ -739,10 +722,7 @@ public String toUrlQueryString(String prefix) { "%sselfStakedCPU%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSelfStakedCPU()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSelfStakedCPU())))); } // add `selfStakedNetwork` to the URL query string @@ -752,10 +732,7 @@ public String toUrlQueryString(String prefix) { "%sselfStakedNetwork%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSelfStakedNetwork()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSelfStakedNetwork())))); } // add `pendingRefundCPU` to the URL query string @@ -765,10 +742,7 @@ public String toUrlQueryString(String prefix) { "%spendingRefundCPU%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPendingRefundCPU()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getPendingRefundCPU())))); } // add `pendingRefundNetwork` to the URL query string @@ -778,10 +752,8 @@ public String toUrlQueryString(String prefix) { "%spendingRefundNetwork%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getPendingRefundNetwork()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getPendingRefundNetwork())))); } // add `blockHeight` to the URL query string @@ -791,10 +763,7 @@ public String toUrlQueryString(String prefix) { "%sblockHeight%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHeight()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHeight())))); } // add `blockHash` to the URL query string @@ -804,9 +773,7 @@ public String toUrlQueryString(String prefix) { "%sblockHash%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBlockHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); } // add `rewardsInfo` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java b/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java index cc0baf60..9a4b46ed 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -37,35 +36,37 @@ VaultWalletAddress.JSON_PROPERTY_BIP44_ADDRESS_INDEX, VaultWalletAddress.JSON_PROPERTY_USER_DEFINED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VaultWalletAddress { public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - private String assetId; + @jakarta.annotation.Nullable private String assetId; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - private String customerRefId; + @jakarta.annotation.Nullable private String customerRefId; /** Gets or Sets addressFormat */ public enum AddressFormatEnum { - SEGWIT("SEGWIT"), + SEGWIT(String.valueOf("SEGWIT")), - LEGACY("LEGACY"), + LEGACY(String.valueOf("LEGACY")), - BASE("BASE"), + BASE(String.valueOf("BASE")), - PAYMENT("PAYMENT"); + PAYMENT(String.valueOf("PAYMENT")); private String value; @@ -95,23 +96,23 @@ public static AddressFormatEnum fromValue(String value) { } public static final String JSON_PROPERTY_ADDRESS_FORMAT = "addressFormat"; - private AddressFormatEnum addressFormat; + @jakarta.annotation.Nullable private AddressFormatEnum addressFormat; public static final String JSON_PROPERTY_LEGACY_ADDRESS = "legacyAddress"; - private String legacyAddress; + @jakarta.annotation.Nullable private String legacyAddress; public static final String JSON_PROPERTY_ENTERPRISE_ADDRESS = "enterpriseAddress"; - private String enterpriseAddress; + @jakarta.annotation.Nullable private String enterpriseAddress; public static final String JSON_PROPERTY_BIP44_ADDRESS_INDEX = "bip44AddressIndex"; - private Integer bip44AddressIndex; + @jakarta.annotation.Nullable private Integer bip44AddressIndex; public static final String JSON_PROPERTY_USER_DEFINED = "userDefined"; - private Boolean userDefined; + @jakarta.annotation.Nullable private Boolean userDefined; public VaultWalletAddress() {} - public VaultWalletAddress assetId(String assetId) { + public VaultWalletAddress assetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; return this; } @@ -130,11 +131,11 @@ public String getAssetId() { @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(String assetId) { + public void setAssetId(@jakarta.annotation.Nullable String assetId) { this.assetId = assetId; } - public VaultWalletAddress address(String address) { + public VaultWalletAddress address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -153,11 +154,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public VaultWalletAddress description(String description) { + public VaultWalletAddress description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -176,11 +177,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public VaultWalletAddress tag(String tag) { + public VaultWalletAddress tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -199,11 +200,11 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - public VaultWalletAddress type(String type) { + public VaultWalletAddress type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -222,11 +223,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public VaultWalletAddress customerRefId(String customerRefId) { + public VaultWalletAddress customerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; return this; } @@ -245,11 +246,12 @@ public String getCustomerRefId() { @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(String customerRefId) { + public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { this.customerRefId = customerRefId; } - public VaultWalletAddress addressFormat(AddressFormatEnum addressFormat) { + public VaultWalletAddress addressFormat( + @jakarta.annotation.Nullable AddressFormatEnum addressFormat) { this.addressFormat = addressFormat; return this; } @@ -268,11 +270,11 @@ public AddressFormatEnum getAddressFormat() { @JsonProperty(JSON_PROPERTY_ADDRESS_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressFormat(AddressFormatEnum addressFormat) { + public void setAddressFormat(@jakarta.annotation.Nullable AddressFormatEnum addressFormat) { this.addressFormat = addressFormat; } - public VaultWalletAddress legacyAddress(String legacyAddress) { + public VaultWalletAddress legacyAddress(@jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; return this; } @@ -291,11 +293,12 @@ public String getLegacyAddress() { @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegacyAddress(String legacyAddress) { + public void setLegacyAddress(@jakarta.annotation.Nullable String legacyAddress) { this.legacyAddress = legacyAddress; } - public VaultWalletAddress enterpriseAddress(String enterpriseAddress) { + public VaultWalletAddress enterpriseAddress( + @jakarta.annotation.Nullable String enterpriseAddress) { this.enterpriseAddress = enterpriseAddress; return this; } @@ -314,11 +317,12 @@ public String getEnterpriseAddress() { @JsonProperty(JSON_PROPERTY_ENTERPRISE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnterpriseAddress(String enterpriseAddress) { + public void setEnterpriseAddress(@jakarta.annotation.Nullable String enterpriseAddress) { this.enterpriseAddress = enterpriseAddress; } - public VaultWalletAddress bip44AddressIndex(Integer bip44AddressIndex) { + public VaultWalletAddress bip44AddressIndex( + @jakarta.annotation.Nullable Integer bip44AddressIndex) { this.bip44AddressIndex = bip44AddressIndex; return this; } @@ -337,11 +341,11 @@ public Integer getBip44AddressIndex() { @JsonProperty(JSON_PROPERTY_BIP44_ADDRESS_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBip44AddressIndex(Integer bip44AddressIndex) { + public void setBip44AddressIndex(@jakarta.annotation.Nullable Integer bip44AddressIndex) { this.bip44AddressIndex = bip44AddressIndex; } - public VaultWalletAddress userDefined(Boolean userDefined) { + public VaultWalletAddress userDefined(@jakarta.annotation.Nullable Boolean userDefined) { this.userDefined = userDefined; return this; } @@ -360,7 +364,7 @@ public Boolean getUserDefined() { @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserDefined(Boolean userDefined) { + public void setUserDefined(@jakarta.annotation.Nullable Boolean userDefined) { this.userDefined = userDefined; } @@ -476,8 +480,7 @@ public String toUrlQueryString(String prefix) { "%sassetId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAssetId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); } // add `address` to the URL query string @@ -487,8 +490,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `description` to the URL query string @@ -498,10 +500,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `tag` to the URL query string @@ -511,8 +510,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `type` to the URL query string @@ -522,8 +520,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `customerRefId` to the URL query string @@ -533,10 +530,7 @@ public String toUrlQueryString(String prefix) { "%scustomerRefId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCustomerRefId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); } // add `addressFormat` to the URL query string @@ -546,10 +540,7 @@ public String toUrlQueryString(String prefix) { "%saddressFormat%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAddressFormat()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddressFormat())))); } // add `legacyAddress` to the URL query string @@ -559,10 +550,7 @@ public String toUrlQueryString(String prefix) { "%slegacyAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLegacyAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLegacyAddress())))); } // add `enterpriseAddress` to the URL query string @@ -572,10 +560,7 @@ public String toUrlQueryString(String prefix) { "%senterpriseAddress%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getEnterpriseAddress()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getEnterpriseAddress())))); } // add `bip44AddressIndex` to the URL query string @@ -585,10 +570,7 @@ public String toUrlQueryString(String prefix) { "%sbip44AddressIndex%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getBip44AddressIndex()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBip44AddressIndex())))); } // add `userDefined` to the URL query string @@ -598,10 +580,7 @@ public String toUrlQueryString(String prefix) { "%suserDefined%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUserDefined()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUserDefined())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/VendorDto.java b/src/main/java/com/fireblocks/sdk/model/VendorDto.java index de0f14e2..6f6612ab 100644 --- a/src/main/java/com/fireblocks/sdk/model/VendorDto.java +++ b/src/main/java/com/fireblocks/sdk/model/VendorDto.java @@ -13,27 +13,37 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** VendorDto */ @JsonPropertyOrder({VendorDto.JSON_PROPERTY_ID, VendorDto.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class VendorDto { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nonnull private String name; public VendorDto() {} - public VendorDto id(String id) { + @JsonCreator + public VendorDto( + @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 VendorDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -52,11 +62,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public VendorDto name(String name) { + public VendorDto name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -75,7 +85,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -155,10 +165,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `name` to the URL query string @@ -168,8 +175,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/VerdictConfig.java b/src/main/java/com/fireblocks/sdk/model/VerdictConfig.java new file mode 100644 index 00000000..ae1a4af7 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/VerdictConfig.java @@ -0,0 +1,273 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-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 index ce6b435f..14dfd101 100644 --- a/src/main/java/com/fireblocks/sdk/model/Version.java +++ b/src/main/java/com/fireblocks/sdk/model/Version.java @@ -13,24 +13,31 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +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") +@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"; - private String hash; + @jakarta.annotation.Nonnull private String hash; public Version() {} - public Version hash(String hash) { + @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; } @@ -49,7 +56,7 @@ public String getHash() { @JsonProperty(JSON_PROPERTY_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHash(String hash) { + public void setHash(@jakarta.annotation.Nonnull String hash) { this.hash = hash; } @@ -130,8 +137,7 @@ public String toUrlQueryString(String prefix) { "%shash%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getHash()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getHash())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WalletAsset.java b/src/main/java/com/fireblocks/sdk/model/WalletAsset.java index 508074e9..23af4416 100644 --- a/src/main/java/com/fireblocks/sdk/model/WalletAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/WalletAsset.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -31,32 +30,34 @@ WalletAsset.JSON_PROPERTY_TAG, WalletAsset.JSON_PROPERTY_ACTIVATION_TIME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WalletAsset { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_BALANCE = "balance"; - private String balance; + @jakarta.annotation.Nullable private String balance; public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - private String lockedAmount; + @jakarta.annotation.Nullable private String lockedAmount; public static final String JSON_PROPERTY_STATUS = "status"; - private ConfigChangeRequestStatus status; + @jakarta.annotation.Nullable private ConfigChangeRequestStatus status; public static final String JSON_PROPERTY_ADDRESS = "address"; - private String address; + @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_TAG = "tag"; - private String tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_ACTIVATION_TIME = "activationTime"; - private String activationTime; + @jakarta.annotation.Nullable private String activationTime; public WalletAsset() {} - public WalletAsset id(String id) { + public WalletAsset id(@jakarta.annotation.Nullable String id) { this.id = id; return this; } @@ -75,11 +76,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public WalletAsset balance(String balance) { + public WalletAsset balance(@jakarta.annotation.Nullable String balance) { this.balance = balance; return this; } @@ -98,11 +99,11 @@ public String getBalance() { @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalance(String balance) { + public void setBalance(@jakarta.annotation.Nullable String balance) { this.balance = balance; } - public WalletAsset lockedAmount(String lockedAmount) { + public WalletAsset lockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; return this; } @@ -121,11 +122,11 @@ public String getLockedAmount() { @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLockedAmount(String lockedAmount) { + public void setLockedAmount(@jakarta.annotation.Nullable String lockedAmount) { this.lockedAmount = lockedAmount; } - public WalletAsset status(ConfigChangeRequestStatus status) { + public WalletAsset status(@jakarta.annotation.Nullable ConfigChangeRequestStatus status) { this.status = status; return this; } @@ -144,11 +145,11 @@ public ConfigChangeRequestStatus getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(ConfigChangeRequestStatus status) { + public void setStatus(@jakarta.annotation.Nullable ConfigChangeRequestStatus status) { this.status = status; } - public WalletAsset address(String address) { + public WalletAsset address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -167,11 +168,11 @@ public String getAddress() { @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(String address) { + public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public WalletAsset tag(String tag) { + public WalletAsset tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -190,11 +191,11 @@ public String getTag() { @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(String tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - public WalletAsset activationTime(String activationTime) { + public WalletAsset activationTime(@jakarta.annotation.Nullable String activationTime) { this.activationTime = activationTime; return this; } @@ -213,7 +214,7 @@ public String getActivationTime() { @JsonProperty(JSON_PROPERTY_ACTIVATION_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setActivationTime(String activationTime) { + public void setActivationTime(@jakarta.annotation.Nullable String activationTime) { this.activationTime = activationTime; } @@ -304,10 +305,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `balance` to the URL query string @@ -317,8 +315,7 @@ public String toUrlQueryString(String prefix) { "%sbalance%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getBalance())))); } // add `lockedAmount` to the URL query string @@ -328,10 +325,7 @@ public String toUrlQueryString(String prefix) { "%slockedAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getLockedAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); } // add `status` to the URL query string @@ -341,8 +335,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `address` to the URL query string @@ -352,8 +345,7 @@ public String toUrlQueryString(String prefix) { "%saddress%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); } // add `tag` to the URL query string @@ -363,8 +355,7 @@ public String toUrlQueryString(String prefix) { "%stag%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTag())))); } // add `activationTime` to the URL query string @@ -374,10 +365,7 @@ public String toUrlQueryString(String prefix) { "%sactivationTime%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getActivationTime()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getActivationTime())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfo.java b/src/main/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfo.java index e71c8174..27d4a669 100644 --- a/src/main/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfo.java @@ -16,8 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -40,59 +39,62 @@ WalletAssetAdditionalInfo.JSON_PROPERTY_SPEI_CLABE, WalletAssetAdditionalInfo.JSON_PROPERTY_SPEI_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WalletAssetAdditionalInfo { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - private String accountHolderGivenName; + @jakarta.annotation.Nullable private String accountHolderGivenName; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - private String accountHolderSurname; + @jakarta.annotation.Nullable private String accountHolderSurname; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CITY = "accountHolderCity"; - private String accountHolderCity; + @jakarta.annotation.Nullable private String accountHolderCity; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY = "accountHolderCountry"; - private String accountHolderCountry; + @jakarta.annotation.Nullable private String accountHolderCountry; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1 = "accountHolderAddress1"; - private String accountHolderAddress1; + @jakarta.annotation.Nullable private String accountHolderAddress1; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2 = "accountHolderAddress2"; - private String accountHolderAddress2; + @jakarta.annotation.Nullable private String accountHolderAddress2; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT = "accountHolderDistrict"; - private String accountHolderDistrict; + @jakarta.annotation.Nullable private String accountHolderDistrict; public static final String JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE = "accountHolderPostalCode"; - private String accountHolderPostalCode; + @jakarta.annotation.Nullable private String accountHolderPostalCode; public static final String JSON_PROPERTY_ABA_ROUTING_NUMBER = "abaRoutingNumber"; - private String abaRoutingNumber; + @jakarta.annotation.Nullable private String abaRoutingNumber; public static final String JSON_PROPERTY_ABA_ACCOUNT_NUMBER = "abaAccountNumber"; - private String abaAccountNumber; + @jakarta.annotation.Nullable private String abaAccountNumber; public static final String JSON_PROPERTY_ABA_COUNTRY = "abaCountry"; - private String abaCountry; + @jakarta.annotation.Nullable private String abaCountry; public static final String JSON_PROPERTY_IBAN = "iban"; - private String iban; + @jakarta.annotation.Nullable private String iban; public static final String JSON_PROPERTY_IBAN_CITY = "ibanCity"; - private String ibanCity; + @jakarta.annotation.Nullable private String ibanCity; public static final String JSON_PROPERTY_IBAN_COUNTRY = "ibanCountry"; - private String ibanCountry; + @jakarta.annotation.Nullable private String ibanCountry; public static final String JSON_PROPERTY_SPEI_CLABE = "speiClabe"; - private String speiClabe; + @jakarta.annotation.Nullable private String speiClabe; public static final String JSON_PROPERTY_SPEI_NAME = "speiName"; - private String speiName; + @jakarta.annotation.Nullable private String speiName; public WalletAssetAdditionalInfo() {} - public WalletAssetAdditionalInfo accountHolderGivenName(String accountHolderGivenName) { + public WalletAssetAdditionalInfo accountHolderGivenName( + @jakarta.annotation.Nullable String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; return this; } @@ -111,11 +113,13 @@ public String getAccountHolderGivenName() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderGivenName(String accountHolderGivenName) { + public void setAccountHolderGivenName( + @jakarta.annotation.Nullable String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; } - public WalletAssetAdditionalInfo accountHolderSurname(String accountHolderSurname) { + public WalletAssetAdditionalInfo accountHolderSurname( + @jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; return this; } @@ -134,11 +138,12 @@ public String getAccountHolderSurname() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderSurname(String accountHolderSurname) { + public void setAccountHolderSurname(@jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; } - public WalletAssetAdditionalInfo accountHolderCity(String accountHolderCity) { + public WalletAssetAdditionalInfo accountHolderCity( + @jakarta.annotation.Nullable String accountHolderCity) { this.accountHolderCity = accountHolderCity; return this; } @@ -157,11 +162,12 @@ public String getAccountHolderCity() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderCity(String accountHolderCity) { + public void setAccountHolderCity(@jakarta.annotation.Nullable String accountHolderCity) { this.accountHolderCity = accountHolderCity; } - public WalletAssetAdditionalInfo accountHolderCountry(String accountHolderCountry) { + public WalletAssetAdditionalInfo accountHolderCountry( + @jakarta.annotation.Nullable String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; return this; } @@ -180,11 +186,12 @@ public String getAccountHolderCountry() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderCountry(String accountHolderCountry) { + public void setAccountHolderCountry(@jakarta.annotation.Nullable String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; } - public WalletAssetAdditionalInfo accountHolderAddress1(String accountHolderAddress1) { + public WalletAssetAdditionalInfo accountHolderAddress1( + @jakarta.annotation.Nullable String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; return this; } @@ -203,11 +210,13 @@ public String getAccountHolderAddress1() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderAddress1(String accountHolderAddress1) { + public void setAccountHolderAddress1( + @jakarta.annotation.Nullable String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; } - public WalletAssetAdditionalInfo accountHolderAddress2(String accountHolderAddress2) { + public WalletAssetAdditionalInfo accountHolderAddress2( + @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; return this; } @@ -226,11 +235,13 @@ public String getAccountHolderAddress2() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderAddress2(String accountHolderAddress2) { + public void setAccountHolderAddress2( + @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; } - public WalletAssetAdditionalInfo accountHolderDistrict(String accountHolderDistrict) { + public WalletAssetAdditionalInfo accountHolderDistrict( + @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; return this; } @@ -249,11 +260,13 @@ public String getAccountHolderDistrict() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderDistrict(String accountHolderDistrict) { + public void setAccountHolderDistrict( + @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; } - public WalletAssetAdditionalInfo accountHolderPostalCode(String accountHolderPostalCode) { + public WalletAssetAdditionalInfo accountHolderPostalCode( + @jakarta.annotation.Nullable String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; return this; } @@ -272,11 +285,13 @@ public String getAccountHolderPostalCode() { @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderPostalCode(String accountHolderPostalCode) { + public void setAccountHolderPostalCode( + @jakarta.annotation.Nullable String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; } - public WalletAssetAdditionalInfo abaRoutingNumber(String abaRoutingNumber) { + public WalletAssetAdditionalInfo abaRoutingNumber( + @jakarta.annotation.Nullable String abaRoutingNumber) { this.abaRoutingNumber = abaRoutingNumber; return this; } @@ -295,11 +310,12 @@ public String getAbaRoutingNumber() { @JsonProperty(JSON_PROPERTY_ABA_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAbaRoutingNumber(String abaRoutingNumber) { + public void setAbaRoutingNumber(@jakarta.annotation.Nullable String abaRoutingNumber) { this.abaRoutingNumber = abaRoutingNumber; } - public WalletAssetAdditionalInfo abaAccountNumber(String abaAccountNumber) { + public WalletAssetAdditionalInfo abaAccountNumber( + @jakarta.annotation.Nullable String abaAccountNumber) { this.abaAccountNumber = abaAccountNumber; return this; } @@ -318,11 +334,11 @@ public String getAbaAccountNumber() { @JsonProperty(JSON_PROPERTY_ABA_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAbaAccountNumber(String abaAccountNumber) { + public void setAbaAccountNumber(@jakarta.annotation.Nullable String abaAccountNumber) { this.abaAccountNumber = abaAccountNumber; } - public WalletAssetAdditionalInfo abaCountry(String abaCountry) { + public WalletAssetAdditionalInfo abaCountry(@jakarta.annotation.Nullable String abaCountry) { this.abaCountry = abaCountry; return this; } @@ -341,11 +357,11 @@ public String getAbaCountry() { @JsonProperty(JSON_PROPERTY_ABA_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAbaCountry(String abaCountry) { + public void setAbaCountry(@jakarta.annotation.Nullable String abaCountry) { this.abaCountry = abaCountry; } - public WalletAssetAdditionalInfo iban(String iban) { + public WalletAssetAdditionalInfo iban(@jakarta.annotation.Nullable String iban) { this.iban = iban; return this; } @@ -364,11 +380,11 @@ public String getIban() { @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIban(String iban) { + public void setIban(@jakarta.annotation.Nullable String iban) { this.iban = iban; } - public WalletAssetAdditionalInfo ibanCity(String ibanCity) { + public WalletAssetAdditionalInfo ibanCity(@jakarta.annotation.Nullable String ibanCity) { this.ibanCity = ibanCity; return this; } @@ -387,11 +403,11 @@ public String getIbanCity() { @JsonProperty(JSON_PROPERTY_IBAN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIbanCity(String ibanCity) { + public void setIbanCity(@jakarta.annotation.Nullable String ibanCity) { this.ibanCity = ibanCity; } - public WalletAssetAdditionalInfo ibanCountry(String ibanCountry) { + public WalletAssetAdditionalInfo ibanCountry(@jakarta.annotation.Nullable String ibanCountry) { this.ibanCountry = ibanCountry; return this; } @@ -410,11 +426,11 @@ public String getIbanCountry() { @JsonProperty(JSON_PROPERTY_IBAN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIbanCountry(String ibanCountry) { + public void setIbanCountry(@jakarta.annotation.Nullable String ibanCountry) { this.ibanCountry = ibanCountry; } - public WalletAssetAdditionalInfo speiClabe(String speiClabe) { + public WalletAssetAdditionalInfo speiClabe(@jakarta.annotation.Nullable String speiClabe) { this.speiClabe = speiClabe; return this; } @@ -433,11 +449,11 @@ public String getSpeiClabe() { @JsonProperty(JSON_PROPERTY_SPEI_CLABE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpeiClabe(String speiClabe) { + public void setSpeiClabe(@jakarta.annotation.Nullable String speiClabe) { this.speiClabe = speiClabe; } - public WalletAssetAdditionalInfo speiName(String speiName) { + public WalletAssetAdditionalInfo speiName(@jakarta.annotation.Nullable String speiName) { this.speiName = speiName; return this; } @@ -456,7 +472,7 @@ public String getSpeiName() { @JsonProperty(JSON_PROPERTY_SPEI_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpeiName(String speiName) { + public void setSpeiName(@jakarta.annotation.Nullable String speiName) { this.speiName = speiName; } @@ -609,10 +625,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderGivenName%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderGivenName()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderGivenName())))); } // add `accountHolderSurname` to the URL query string @@ -622,10 +636,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderSurname%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderSurname()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderSurname())))); } // add `accountHolderCity` to the URL query string @@ -635,10 +647,7 @@ public String toUrlQueryString(String prefix) { "%saccountHolderCity%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderCity()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAccountHolderCity())))); } // add `accountHolderCountry` to the URL query string @@ -648,10 +657,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderCountry())))); } // add `accountHolderAddress1` to the URL query string @@ -661,10 +668,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderAddress1%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderAddress1()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderAddress1())))); } // add `accountHolderAddress2` to the URL query string @@ -674,10 +679,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderAddress2%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderAddress2()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderAddress2())))); } // add `accountHolderDistrict` to the URL query string @@ -687,10 +690,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderDistrict%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderDistrict()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderDistrict())))); } // add `accountHolderPostalCode` to the URL query string @@ -700,10 +701,8 @@ public String toUrlQueryString(String prefix) { "%saccountHolderPostalCode%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAccountHolderPostalCode()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getAccountHolderPostalCode())))); } // add `abaRoutingNumber` to the URL query string @@ -713,10 +712,7 @@ public String toUrlQueryString(String prefix) { "%sabaRoutingNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAbaRoutingNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAbaRoutingNumber())))); } // add `abaAccountNumber` to the URL query string @@ -726,10 +722,7 @@ public String toUrlQueryString(String prefix) { "%sabaAccountNumber%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAbaAccountNumber()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAbaAccountNumber())))); } // add `abaCountry` to the URL query string @@ -739,9 +732,7 @@ public String toUrlQueryString(String prefix) { "%sabaCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getAbaCountry()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAbaCountry())))); } // add `iban` to the URL query string @@ -751,8 +742,7 @@ public String toUrlQueryString(String prefix) { "%siban%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIban()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIban())))); } // add `ibanCity` to the URL query string @@ -762,8 +752,7 @@ public String toUrlQueryString(String prefix) { "%sibanCity%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getIbanCity()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIbanCity())))); } // add `ibanCountry` to the URL query string @@ -773,10 +762,7 @@ public String toUrlQueryString(String prefix) { "%sibanCountry%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getIbanCountry()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getIbanCountry())))); } // add `speiClabe` to the URL query string @@ -786,9 +772,7 @@ public String toUrlQueryString(String prefix) { "%sspeiClabe%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSpeiClabe()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSpeiClabe())))); } // add `speiName` to the URL query string @@ -798,8 +782,7 @@ public String toUrlQueryString(String prefix) { "%sspeiName%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getSpeiName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSpeiName())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WalletQuoteResponse.java b/src/main/java/com/fireblocks/sdk/model/WalletQuoteResponse.java index 3f1377e8..773573db 100644 --- a/src/main/java/com/fireblocks/sdk/model/WalletQuoteResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/WalletQuoteResponse.java @@ -13,12 +13,12 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; @@ -41,47 +41,89 @@ WalletQuoteResponse.JSON_PROPERTY_REQUIRED_ACTIONS, WalletQuoteResponse.JSON_PROPERTY_ESTIMATED_FEES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WalletQuoteResponse { public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private SwapProviderProtocolsEnum protocol; + @jakarta.annotation.Nonnull private SwapProviderProtocolsEnum protocol; public static final String JSON_PROPERTY_INPUT_AMOUNT = "inputAmount"; - private String inputAmount; + @jakarta.annotation.Nonnull private String inputAmount; public static final String JSON_PROPERTY_INPUT_ASSET = "inputAsset"; - private String inputAsset; + @jakarta.annotation.Nonnull private String inputAsset; public static final String JSON_PROPERTY_SLIPPAGE_TOLERANCE = "slippageTolerance"; - private BigDecimal slippageTolerance; + @jakarta.annotation.Nonnull private BigDecimal slippageTolerance; public static final String JSON_PROPERTY_OUTPUT_MIN_AMOUNT = "outputMinAmount"; - private String outputMinAmount; + @jakarta.annotation.Nonnull private String outputMinAmount; public static final String JSON_PROPERTY_OUTPUT_MAX_AMOUNT = "outputMaxAmount"; - private String outputMaxAmount; + @jakarta.annotation.Nonnull private String outputMaxAmount; public static final String JSON_PROPERTY_OUTPUT_ASSET = "outputAsset"; - private String outputAsset; + @jakarta.annotation.Nonnull private String outputAsset; public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; - private ProviderAdditionalData additionalData; + @jakarta.annotation.Nonnull private ProviderAdditionalData additionalData; public static final String JSON_PROPERTY_PROVIDER_QUOTE_ID = "providerQuoteId"; - private UUID providerQuoteId; + @jakarta.annotation.Nonnull private UUID providerQuoteId; public static final String JSON_PROPERTY_EXPIRED_AT = "expiredAt"; - private OffsetDateTime expiredAt; + @jakarta.annotation.Nonnull private OffsetDateTime expiredAt; public static final String JSON_PROPERTY_REQUIRED_ACTIONS = "requiredActions"; + + @jakarta.annotation.Nonnull private List requiredActions = new ArrayList<>(); public static final String JSON_PROPERTY_ESTIMATED_FEES = "estimatedFees"; - private QuoteFee estimatedFees; + @jakarta.annotation.Nonnull private QuoteFee estimatedFees; public WalletQuoteResponse() {} - public WalletQuoteResponse protocol(SwapProviderProtocolsEnum protocol) { + @JsonCreator + public WalletQuoteResponse( + @JsonProperty(value = JSON_PROPERTY_PROTOCOL, required = true) + SwapProviderProtocolsEnum protocol, + @JsonProperty(value = JSON_PROPERTY_INPUT_AMOUNT, required = true) String inputAmount, + @JsonProperty(value = JSON_PROPERTY_INPUT_ASSET, required = true) String inputAsset, + @JsonProperty(value = JSON_PROPERTY_SLIPPAGE_TOLERANCE, required = true) + BigDecimal slippageTolerance, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_MIN_AMOUNT, required = true) + String outputMinAmount, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_MAX_AMOUNT, required = true) + String outputMaxAmount, + @JsonProperty(value = JSON_PROPERTY_OUTPUT_ASSET, required = true) String outputAsset, + @JsonProperty(value = JSON_PROPERTY_ADDITIONAL_DATA, required = true) + ProviderAdditionalData additionalData, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_QUOTE_ID, required = true) + UUID providerQuoteId, + @JsonProperty(value = JSON_PROPERTY_EXPIRED_AT, required = true) + OffsetDateTime expiredAt, + @JsonProperty(value = JSON_PROPERTY_REQUIRED_ACTIONS, required = true) + List requiredActions, + @JsonProperty(value = JSON_PROPERTY_ESTIMATED_FEES, required = true) + QuoteFee estimatedFees) { + this.protocol = protocol; + this.inputAmount = inputAmount; + this.inputAsset = inputAsset; + this.slippageTolerance = slippageTolerance; + this.outputMinAmount = outputMinAmount; + this.outputMaxAmount = outputMaxAmount; + this.outputAsset = outputAsset; + this.additionalData = additionalData; + this.providerQuoteId = providerQuoteId; + this.expiredAt = expiredAt; + this.requiredActions = requiredActions; + this.estimatedFees = estimatedFees; + } + + public WalletQuoteResponse protocol( + @jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; return this; } @@ -100,11 +142,11 @@ public SwapProviderProtocolsEnum getProtocol() { @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocol(SwapProviderProtocolsEnum protocol) { + public void setProtocol(@jakarta.annotation.Nonnull SwapProviderProtocolsEnum protocol) { this.protocol = protocol; } - public WalletQuoteResponse inputAmount(String inputAmount) { + public WalletQuoteResponse inputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; return this; } @@ -123,11 +165,11 @@ public String getInputAmount() { @JsonProperty(JSON_PROPERTY_INPUT_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAmount(String inputAmount) { + public void setInputAmount(@jakarta.annotation.Nonnull String inputAmount) { this.inputAmount = inputAmount; } - public WalletQuoteResponse inputAsset(String inputAsset) { + public WalletQuoteResponse inputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; return this; } @@ -146,11 +188,12 @@ public String getInputAsset() { @JsonProperty(JSON_PROPERTY_INPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputAsset(String inputAsset) { + public void setInputAsset(@jakarta.annotation.Nonnull String inputAsset) { this.inputAsset = inputAsset; } - public WalletQuoteResponse slippageTolerance(BigDecimal slippageTolerance) { + public WalletQuoteResponse slippageTolerance( + @jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; return this; } @@ -170,11 +213,11 @@ public BigDecimal getSlippageTolerance() { @JsonProperty(JSON_PROPERTY_SLIPPAGE_TOLERANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSlippageTolerance(BigDecimal slippageTolerance) { + public void setSlippageTolerance(@jakarta.annotation.Nonnull BigDecimal slippageTolerance) { this.slippageTolerance = slippageTolerance; } - public WalletQuoteResponse outputMinAmount(String outputMinAmount) { + public WalletQuoteResponse outputMinAmount(@jakarta.annotation.Nonnull String outputMinAmount) { this.outputMinAmount = outputMinAmount; return this; } @@ -193,11 +236,11 @@ public String getOutputMinAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputMinAmount(String outputMinAmount) { + public void setOutputMinAmount(@jakarta.annotation.Nonnull String outputMinAmount) { this.outputMinAmount = outputMinAmount; } - public WalletQuoteResponse outputMaxAmount(String outputMaxAmount) { + public WalletQuoteResponse outputMaxAmount(@jakarta.annotation.Nonnull String outputMaxAmount) { this.outputMaxAmount = outputMaxAmount; return this; } @@ -216,11 +259,11 @@ public String getOutputMaxAmount() { @JsonProperty(JSON_PROPERTY_OUTPUT_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputMaxAmount(String outputMaxAmount) { + public void setOutputMaxAmount(@jakarta.annotation.Nonnull String outputMaxAmount) { this.outputMaxAmount = outputMaxAmount; } - public WalletQuoteResponse outputAsset(String outputAsset) { + public WalletQuoteResponse outputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; return this; } @@ -239,11 +282,12 @@ public String getOutputAsset() { @JsonProperty(JSON_PROPERTY_OUTPUT_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutputAsset(String outputAsset) { + public void setOutputAsset(@jakarta.annotation.Nonnull String outputAsset) { this.outputAsset = outputAsset; } - public WalletQuoteResponse additionalData(ProviderAdditionalData additionalData) { + public WalletQuoteResponse additionalData( + @jakarta.annotation.Nonnull ProviderAdditionalData additionalData) { this.additionalData = additionalData; return this; } @@ -262,11 +306,12 @@ public ProviderAdditionalData getAdditionalData() { @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdditionalData(ProviderAdditionalData additionalData) { + public void setAdditionalData( + @jakarta.annotation.Nonnull ProviderAdditionalData additionalData) { this.additionalData = additionalData; } - public WalletQuoteResponse providerQuoteId(UUID providerQuoteId) { + public WalletQuoteResponse providerQuoteId(@jakarta.annotation.Nonnull UUID providerQuoteId) { this.providerQuoteId = providerQuoteId; return this; } @@ -285,11 +330,11 @@ public UUID getProviderQuoteId() { @JsonProperty(JSON_PROPERTY_PROVIDER_QUOTE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderQuoteId(UUID providerQuoteId) { + public void setProviderQuoteId(@jakarta.annotation.Nonnull UUID providerQuoteId) { this.providerQuoteId = providerQuoteId; } - public WalletQuoteResponse expiredAt(OffsetDateTime expiredAt) { + public WalletQuoteResponse expiredAt(@jakarta.annotation.Nonnull OffsetDateTime expiredAt) { this.expiredAt = expiredAt; return this; } @@ -308,11 +353,12 @@ public OffsetDateTime getExpiredAt() { @JsonProperty(JSON_PROPERTY_EXPIRED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExpiredAt(OffsetDateTime expiredAt) { + public void setExpiredAt(@jakarta.annotation.Nonnull OffsetDateTime expiredAt) { this.expiredAt = expiredAt; } - public WalletQuoteResponse requiredActions(List requiredActions) { + public WalletQuoteResponse requiredActions( + @jakarta.annotation.Nonnull List requiredActions) { this.requiredActions = requiredActions; return this; } @@ -339,11 +385,12 @@ public List getRequiredActions() { @JsonProperty(JSON_PROPERTY_REQUIRED_ACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequiredActions(List requiredActions) { + public void setRequiredActions( + @jakarta.annotation.Nonnull List requiredActions) { this.requiredActions = requiredActions; } - public WalletQuoteResponse estimatedFees(QuoteFee estimatedFees) { + public WalletQuoteResponse estimatedFees(@jakarta.annotation.Nonnull QuoteFee estimatedFees) { this.estimatedFees = estimatedFees; return this; } @@ -362,7 +409,7 @@ public QuoteFee getEstimatedFees() { @JsonProperty(JSON_PROPERTY_ESTIMATED_FEES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEstimatedFees(QuoteFee estimatedFees) { + public void setEstimatedFees(@jakarta.annotation.Nonnull QuoteFee estimatedFees) { this.estimatedFees = estimatedFees; } @@ -479,8 +526,7 @@ public String toUrlQueryString(String prefix) { "%sprotocol%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getProtocol()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } // add `inputAmount` to the URL query string @@ -490,10 +536,7 @@ public String toUrlQueryString(String prefix) { "%sinputAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAmount())))); } // add `inputAsset` to the URL query string @@ -503,9 +546,7 @@ public String toUrlQueryString(String prefix) { "%sinputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getInputAsset()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getInputAsset())))); } // add `slippageTolerance` to the URL query string @@ -515,10 +556,7 @@ public String toUrlQueryString(String prefix) { "%sslippageTolerance%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getSlippageTolerance()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getSlippageTolerance())))); } // add `outputMinAmount` to the URL query string @@ -528,10 +566,7 @@ public String toUrlQueryString(String prefix) { "%soutputMinAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputMinAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputMinAmount())))); } // add `outputMaxAmount` to the URL query string @@ -541,10 +576,7 @@ public String toUrlQueryString(String prefix) { "%soutputMaxAmount%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputMaxAmount()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputMaxAmount())))); } // add `outputAsset` to the URL query string @@ -554,10 +586,7 @@ public String toUrlQueryString(String prefix) { "%soutputAsset%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getOutputAsset()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getOutputAsset())))); } // add `additionalData` to the URL query string @@ -572,10 +601,7 @@ public String toUrlQueryString(String prefix) { "%sproviderQuoteId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getProviderQuoteId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getProviderQuoteId())))); } // add `expiredAt` to the URL query string @@ -585,9 +611,7 @@ public String toUrlQueryString(String prefix) { "%sexpiredAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExpiredAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getExpiredAt())))); } // add `requiredActions` to the URL query string @@ -603,10 +627,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getRequiredActions().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getRequiredActions().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/Webhook.java b/src/main/java/com/fireblocks/sdk/model/Webhook.java index b4b8e9e1..1806274a 100644 --- a/src/main/java/com/fireblocks/sdk/model/Webhook.java +++ b/src/main/java/com/fireblocks/sdk/model/Webhook.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -36,27 +35,29 @@ Webhook.JSON_PROPERTY_CREATED_AT, Webhook.JSON_PROPERTY_UPDATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private UUID id; + @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_URL = "url"; - private String url; + @jakarta.annotation.Nonnull private String url; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public static final String JSON_PROPERTY_EVENTS = "events"; - private List events = new ArrayList<>(); + @jakarta.annotation.Nonnull private List events = new ArrayList<>(); /** The status of the webhook */ public enum StatusEnum { - DISABLED("DISABLED"), + DISABLED(String.valueOf("DISABLED")), - ENABLED("ENABLED"), + ENABLED(String.valueOf("ENABLED")), - SUSPENDED("SUSPENDED"); + SUSPENDED(String.valueOf("SUSPENDED")); private String value; @@ -86,17 +87,33 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private Long createdAt; + @jakarta.annotation.Nonnull private Long createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private Long updatedAt; + @jakarta.annotation.Nonnull private Long updatedAt; public Webhook() {} - public Webhook id(UUID id) { + @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; } @@ -115,11 +132,11 @@ public UUID getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(UUID id) { + public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public Webhook url(String url) { + public Webhook url(@jakarta.annotation.Nonnull String url) { this.url = url; return this; } @@ -138,11 +155,11 @@ public String getUrl() { @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { + public void setUrl(@jakarta.annotation.Nonnull String url) { this.url = url; } - public Webhook description(String description) { + public Webhook description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -161,11 +178,11 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } - public Webhook events(List events) { + public Webhook events(@jakarta.annotation.Nonnull List events) { this.events = events; return this; } @@ -192,11 +209,11 @@ public List getEvents() { @JsonProperty(JSON_PROPERTY_EVENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEvents(List events) { + public void setEvents(@jakarta.annotation.Nonnull List events) { this.events = events; } - public Webhook status(StatusEnum status) { + public Webhook status(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -215,11 +232,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public Webhook createdAt(Long createdAt) { + public Webhook createdAt(@jakarta.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; return this; } @@ -238,11 +255,11 @@ public Long getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(Long createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; } - public Webhook updatedAt(Long updatedAt) { + public Webhook updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; return this; } @@ -261,7 +278,7 @@ public Long getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(Long updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { this.updatedAt = updatedAt; } @@ -352,10 +369,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `url` to the URL query string @@ -365,8 +379,7 @@ public String toUrlQueryString(String prefix) { "%surl%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); } // add `description` to the URL query string @@ -376,10 +389,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } // add `events` to the URL query string @@ -395,10 +405,8 @@ public String toUrlQueryString(String prefix) { ? "" : String.format( "%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode( - String.valueOf(getEvents().get(i)), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode( + ApiClient.valueToString(getEvents().get(i))))); } } } @@ -410,8 +418,7 @@ public String toUrlQueryString(String prefix) { "%sstatus%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } // add `createdAt` to the URL query string @@ -421,9 +428,7 @@ public String toUrlQueryString(String prefix) { "%screatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); } // add `updatedAt` to the URL query string @@ -433,9 +438,7 @@ public String toUrlQueryString(String prefix) { "%supdatedAt%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java index 69f4c9dc..eea4232d 100644 --- a/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -28,17 +28,25 @@ WebhookPaginatedResponse.JSON_PROPERTY_DATA, WebhookPaginatedResponse.JSON_PROPERTY_NEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@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"; - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data = new ArrayList<>(); public static final String JSON_PROPERTY_NEXT = "next"; - private String next; + @jakarta.annotation.Nullable private String next; public WebhookPaginatedResponse() {} - public WebhookPaginatedResponse data(List data) { + @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; } @@ -65,11 +73,11 @@ public List getData() { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(List data) { + public void setData(@jakarta.annotation.Nonnull List data) { this.data = data; } - public WebhookPaginatedResponse next(String next) { + public WebhookPaginatedResponse next(@jakarta.annotation.Nullable String next) { this.next = next; return this; } @@ -88,7 +96,7 @@ public String getNext() { @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(String next) { + public void setNext(@jakarta.annotation.Nullable String next) { this.next = next; } @@ -194,8 +202,7 @@ public String toUrlQueryString(String prefix) { "%snext%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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/WithdrawRequest.java index cff6be66..d7a818d7 100644 --- a/src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java @@ -13,11 +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 java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,23 +28,30 @@ WithdrawRequest.JSON_PROPERTY_FEE_LEVEL, WithdrawRequest.JSON_PROPERTY_TX_NOTE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WithdrawRequest { public static final String JSON_PROPERTY_ID = "id"; - private String id; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevel feeLevel; + @jakarta.annotation.Nullable private FeeLevel feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - private String txNote; + @jakarta.annotation.Nullable private String txNote; public WithdrawRequest() {} - public WithdrawRequest id(String id) { + @JsonCreator + public WithdrawRequest(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + this.id = id; + } + + public WithdrawRequest id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -63,11 +70,11 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public WithdrawRequest fee(String fee) { + public WithdrawRequest fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -87,11 +94,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public WithdrawRequest feeLevel(FeeLevel feeLevel) { + public WithdrawRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; return this; } @@ -110,11 +117,11 @@ public FeeLevel getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { this.feeLevel = feeLevel; } - public WithdrawRequest txNote(String txNote) { + public WithdrawRequest txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -133,7 +140,7 @@ public String getTxNote() { @JsonProperty(JSON_PROPERTY_TX_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(String txNote) { + public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } @@ -218,10 +225,7 @@ public String toUrlQueryString(String prefix) { joiner.add( String.format( "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); } // add `fee` to the URL query string @@ -231,8 +235,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `feeLevel` to the URL query string @@ -242,8 +245,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `txNote` to the URL query string @@ -253,8 +255,7 @@ public String toUrlQueryString(String prefix) { "%stxNote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WorkflowConfigurationId.java b/src/main/java/com/fireblocks/sdk/model/WorkflowConfigurationId.java index 1204fda2..630c65fe 100644 --- a/src/main/java/com/fireblocks/sdk/model/WorkflowConfigurationId.java +++ b/src/main/java/com/fireblocks/sdk/model/WorkflowConfigurationId.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** WorkflowConfigurationId */ @JsonPropertyOrder({WorkflowConfigurationId.JSON_PROPERTY_CONFIG_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WorkflowConfigurationId { public static final String JSON_PROPERTY_CONFIG_ID = "configId"; - private String configId; + @jakarta.annotation.Nonnull private String configId; public WorkflowConfigurationId() {} - public WorkflowConfigurationId configId(String configId) { + @JsonCreator + public WorkflowConfigurationId( + @JsonProperty(value = JSON_PROPERTY_CONFIG_ID, required = true) String configId) { + this.configId = configId; + } + + public WorkflowConfigurationId configId(@jakarta.annotation.Nonnull String configId) { this.configId = configId; return this; } @@ -49,7 +57,7 @@ public String getConfigId() { @JsonProperty(JSON_PROPERTY_CONFIG_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfigId(String configId) { + public void setConfigId(@jakarta.annotation.Nonnull String configId) { this.configId = configId; } @@ -130,8 +138,7 @@ public String toUrlQueryString(String prefix) { "%sconfigId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getConfigId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getConfigId())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WorkflowExecutionOperation.java b/src/main/java/com/fireblocks/sdk/model/WorkflowExecutionOperation.java index eeebd3d2..16ba3e4f 100644 --- a/src/main/java/com/fireblocks/sdk/model/WorkflowExecutionOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/WorkflowExecutionOperation.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize(using = WorkflowExecutionOperation.WorkflowExecutionOperationDeserializer.class) @JsonSerialize(using = WorkflowExecutionOperation.WorkflowExecutionOperationSerializer.class) public class WorkflowExecutionOperation extends AbstractOpenApiSchema { diff --git a/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java index 753c7a87..7a096a0b 100644 --- a/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,13 +33,15 @@ WriteAbiFunction.JSON_PROPERTY_INPUTS, WriteAbiFunction.JSON_PROPERTY_DESCRIPTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WriteAbiFunction { /** Gets or Sets stateMutability */ public enum StateMutabilityEnum { - PAYABLE("payable"), + PAYABLE(String.valueOf("payable")), - NONPAYABLE("nonpayable"); + NONPAYABLE(String.valueOf("nonpayable")); private String value; @@ -70,14 +71,14 @@ public static StateMutabilityEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability"; - private StateMutabilityEnum stateMutability; + @jakarta.annotation.Nonnull private StateMutabilityEnum stateMutability; public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - private List outputs; + @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); /** Gets or Sets type */ public enum TypeEnum { - FUNCTION("function"); + FUNCTION(String.valueOf("function")); private String value; @@ -107,20 +108,33 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_INPUTS = "inputs"; - private List inputs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inputs = new ArrayList<>(); public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + @jakarta.annotation.Nullable private String description; public WriteAbiFunction() {} - public WriteAbiFunction stateMutability(StateMutabilityEnum stateMutability) { + @JsonCreator + public WriteAbiFunction( + @JsonProperty(value = JSON_PROPERTY_STATE_MUTABILITY, required = true) + StateMutabilityEnum stateMutability, + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, + @JsonProperty(value = JSON_PROPERTY_INPUTS, required = true) + List inputs) { + this.stateMutability = stateMutability; + this.type = type; + this.inputs = inputs; + } + + public WriteAbiFunction stateMutability( + @jakarta.annotation.Nonnull StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; return this; } @@ -139,11 +153,12 @@ public StateMutabilityEnum getStateMutability() { @JsonProperty(JSON_PROPERTY_STATE_MUTABILITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStateMutability(StateMutabilityEnum stateMutability) { + public void setStateMutability( + @jakarta.annotation.Nonnull StateMutabilityEnum stateMutability) { this.stateMutability = stateMutability; } - public WriteAbiFunction outputs(List outputs) { + public WriteAbiFunction outputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; return this; } @@ -170,11 +185,11 @@ public List getOutputs() { @JsonProperty(JSON_PROPERTY_OUTPUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutputs(List outputs) { + public void setOutputs(@jakarta.annotation.Nullable List outputs) { this.outputs = outputs; } - public WriteAbiFunction type(TypeEnum type) { + public WriteAbiFunction type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -193,11 +208,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public WriteAbiFunction name(String name) { + public WriteAbiFunction name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -216,11 +231,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public WriteAbiFunction inputs(List inputs) { + public WriteAbiFunction inputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; return this; } @@ -247,11 +262,11 @@ public List getInputs() { @JsonProperty(JSON_PROPERTY_INPUTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputs(List inputs) { + public void setInputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; } - public WriteAbiFunction description(String description) { + public WriteAbiFunction description(@jakarta.annotation.Nullable String description) { this.description = description; return this; } @@ -270,7 +285,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(String description) { + public void setDescription(@jakarta.annotation.Nullable String description) { this.description = description; } @@ -361,10 +376,7 @@ public String toUrlQueryString(String prefix) { "%sstateMutability%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getStateMutability()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getStateMutability())))); } // add `outputs` to the URL query string @@ -397,8 +409,7 @@ public String toUrlQueryString(String prefix) { "%stype%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getType())))); } // add `name` to the URL query string @@ -408,8 +419,7 @@ public String toUrlQueryString(String prefix) { "%sname%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getName())))); } // add `inputs` to the URL query string @@ -442,10 +452,7 @@ public String toUrlQueryString(String prefix) { "%sdescription%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getDescription()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java index 9ad527db..f81bcb5b 100644 --- a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java +++ b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java @@ -18,8 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -34,26 +33,28 @@ WriteCallFunctionDto.JSON_PROPERTY_USE_GASLESS, WriteCallFunctionDto.JSON_PROPERTY_EXTERNAL_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WriteCallFunctionDto { public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - private String vaultAccountId; + @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_ABI_FUNCTION = "abiFunction"; - private WriteCallFunctionDtoAbiFunction abiFunction; + @jakarta.annotation.Nonnull private WriteCallFunctionDtoAbiFunction abiFunction; public static final String JSON_PROPERTY_AMOUNT = "amount"; - private String amount; + @jakarta.annotation.Nullable private String amount; /** * Fee level for the write function transaction. interchangeable with the 'fee' field */ public enum FeeLevelEnum { - LOW("LOW"), + LOW(String.valueOf("LOW")), - MEDIUM("MEDIUM"), + MEDIUM(String.valueOf("MEDIUM")), - HIGH("HIGH"); + HIGH(String.valueOf("HIGH")); private String value; @@ -83,23 +84,33 @@ public static FeeLevelEnum fromValue(String value) { } public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_FEE = "fee"; - private String fee; + @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_NOTE = "note"; - private String note; + @jakarta.annotation.Nullable private String note; public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - private Boolean useGasless; + @jakarta.annotation.Nullable private Boolean useGasless; public static final String JSON_PROPERTY_EXTERNAL_ID = "externalId"; - private String externalId; + @jakarta.annotation.Nullable private String externalId; public WriteCallFunctionDto() {} - public WriteCallFunctionDto vaultAccountId(String vaultAccountId) { + @JsonCreator + public WriteCallFunctionDto( + @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) + String vaultAccountId, + @JsonProperty(value = JSON_PROPERTY_ABI_FUNCTION, required = true) + WriteCallFunctionDtoAbiFunction abiFunction) { + this.vaultAccountId = vaultAccountId; + this.abiFunction = abiFunction; + } + + public WriteCallFunctionDto vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -118,11 +129,12 @@ public String getVaultAccountId() { @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(String vaultAccountId) { + public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; } - public WriteCallFunctionDto abiFunction(WriteCallFunctionDtoAbiFunction abiFunction) { + public WriteCallFunctionDto abiFunction( + @jakarta.annotation.Nonnull WriteCallFunctionDtoAbiFunction abiFunction) { this.abiFunction = abiFunction; return this; } @@ -141,11 +153,12 @@ public WriteCallFunctionDtoAbiFunction getAbiFunction() { @JsonProperty(JSON_PROPERTY_ABI_FUNCTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbiFunction(WriteCallFunctionDtoAbiFunction abiFunction) { + public void setAbiFunction( + @jakarta.annotation.Nonnull WriteCallFunctionDtoAbiFunction abiFunction) { this.abiFunction = abiFunction; } - public WriteCallFunctionDto amount(String amount) { + public WriteCallFunctionDto amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -164,11 +177,11 @@ public String getAmount() { @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(String amount) { + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } - public WriteCallFunctionDto feeLevel(FeeLevelEnum feeLevel) { + public WriteCallFunctionDto feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; return this; } @@ -187,11 +200,11 @@ public FeeLevelEnum getFeeLevel() { @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(FeeLevelEnum feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } - public WriteCallFunctionDto fee(String fee) { + public WriteCallFunctionDto fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -211,11 +224,11 @@ public String getFee() { @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(String fee) { + public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public WriteCallFunctionDto note(String note) { + public WriteCallFunctionDto note(@jakarta.annotation.Nullable String note) { this.note = note; return this; } @@ -235,11 +248,11 @@ public String getNote() { @JsonProperty(JSON_PROPERTY_NOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(String note) { + public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public WriteCallFunctionDto useGasless(Boolean useGasless) { + public WriteCallFunctionDto useGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; return this; } @@ -260,11 +273,11 @@ public Boolean getUseGasless() { @JsonProperty(JSON_PROPERTY_USE_GASLESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(Boolean useGasless) { + public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } - public WriteCallFunctionDto externalId(String externalId) { + public WriteCallFunctionDto externalId(@jakarta.annotation.Nullable String externalId) { this.externalId = externalId; return this; } @@ -284,7 +297,7 @@ public String getExternalId() { @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalId(String externalId) { + public void setExternalId(@jakarta.annotation.Nullable String externalId) { this.externalId = externalId; } @@ -380,10 +393,7 @@ public String toUrlQueryString(String prefix) { "%svaultAccountId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getVaultAccountId()), - StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); } // add `abiFunction` to the URL query string @@ -398,8 +408,7 @@ public String toUrlQueryString(String prefix) { "%samount%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } // add `feeLevel` to the URL query string @@ -409,8 +418,7 @@ public String toUrlQueryString(String prefix) { "%sfeeLevel%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } // add `fee` to the URL query string @@ -420,8 +428,7 @@ public String toUrlQueryString(String prefix) { "%sfee%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getFee())))); } // add `note` to the URL query string @@ -431,8 +438,7 @@ public String toUrlQueryString(String prefix) { "%snote%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getNote()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } // add `useGasless` to the URL query string @@ -442,9 +448,7 @@ public String toUrlQueryString(String prefix) { "%suseGasless%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getUseGasless()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } // add `externalId` to the URL query string @@ -454,9 +458,7 @@ public String toUrlQueryString(String prefix) { "%sexternalId%s=%s", prefix, suffix, - URLEncoder.encode( - String.valueOf(getExternalId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + 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 index 631f5cf7..791f66f2 100644 --- a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java @@ -36,7 +36,9 @@ import java.util.logging.Level; import java.util.logging.Logger; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") @JsonDeserialize( using = WriteCallFunctionDtoAbiFunction.WriteCallFunctionDtoAbiFunctionDeserializer.class) @JsonSerialize( diff --git a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDto.java b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDto.java index 25ce737f..b8f27b01 100644 --- a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDto.java @@ -13,24 +13,32 @@ 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.net.URLEncoder; -import java.nio.charset.StandardCharsets; +import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** WriteCallFunctionResponseDto */ @JsonPropertyOrder({WriteCallFunctionResponseDto.JSON_PROPERTY_TX_ID}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") public class WriteCallFunctionResponseDto { public static final String JSON_PROPERTY_TX_ID = "txId"; - private String txId; + @jakarta.annotation.Nonnull private String txId; public WriteCallFunctionResponseDto() {} - public WriteCallFunctionResponseDto txId(String txId) { + @JsonCreator + public WriteCallFunctionResponseDto( + @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId) { + this.txId = txId; + } + + public WriteCallFunctionResponseDto txId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; return this; } @@ -49,7 +57,7 @@ public String getTxId() { @JsonProperty(JSON_PROPERTY_TX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(String txId) { + public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } @@ -131,8 +139,7 @@ public String toUrlQueryString(String prefix) { "%stxId%s=%s", prefix, suffix, - URLEncoder.encode(String.valueOf(getTxId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); } return joiner.toString(); diff --git a/src/test/java/com/fireblocks/sdk/FireblocksTest.java b/src/test/java/com/fireblocks/sdk/FireblocksTest.java index e13a25d1..b322b0a7 100644 --- a/src/test/java/com/fireblocks/sdk/FireblocksTest.java +++ b/src/test/java/com/fireblocks/sdk/FireblocksTest.java @@ -573,6 +573,14 @@ 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); diff --git a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java index e232948b..7a30cab2 100644 --- a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java @@ -15,6 +15,8 @@ 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; @@ -114,6 +116,22 @@ public void retryRejectedTransactionBypassScreeningChecksTest() throws ApiExcept 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 * diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java index 6f066292..81473a70 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.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 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 java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -33,50 +33,60 @@ public class PolicyEditorBetaApiTest { /** * 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. + *

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. * * @throws ApiException if the Api call fails */ @Test - public void getActivePolicyTest() throws ApiException { - CompletableFuture> response = - api.getActivePolicy(); + public void getActivePolicyLegacyTest() throws ApiException { + CompletableFuture> response = + api.getActivePolicyLegacy(); } /** * 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. + *

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. * * @throws ApiException if the Api call fails */ @Test - public void getDraftTest() throws ApiException { - CompletableFuture> response = api.getDraft(); + public void getDraftLegacyTest() throws ApiException { + CompletableFuture> response = + api.getDraftLegacy(); } /** * 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. + *

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. * * @throws ApiException if the Api call fails */ @Test - public void publishDraftTest() throws ApiException { - PublishDraftRequest publishDraftRequest = null; + public void publishDraftLegacyTest() throws ApiException { + LegacyPublishDraftRequest legacyPublishDraftRequest = null; String idempotencyKey = null; - CompletableFuture> response = - api.publishDraft(publishDraftRequest, idempotencyKey); + CompletableFuture> response = + api.publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey); } /** @@ -91,27 +101,30 @@ public void publishDraftTest() throws ApiException { */ @Test public void publishPolicyRulesTest() throws ApiException { - PolicyRules policyRules = null; + LegacyPolicyRules legacyPolicyRules = null; String idempotencyKey = null; - CompletableFuture> response = - api.publishPolicyRules(policyRules, idempotencyKey); + CompletableFuture> response = + api.publishPolicyRules(legacyPolicyRules, idempotencyKey); } /** * 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. + *

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. * * @throws ApiException if the Api call fails */ @Test - public void updateDraftTest() throws ApiException { - PolicyRules policyRules = null; + public void updateDraftLegacyTest() throws ApiException { + LegacyPolicyRules legacyPolicyRules = null; String idempotencyKey = null; - CompletableFuture> response = - api.updateDraft(policyRules, idempotencyKey); + CompletableFuture> response = + api.updateDraftLegacy(legacyPolicyRules, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java new file mode 100644 index 00000000..fcd7d7a3 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java @@ -0,0 +1,97 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class 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/WebhooksV2ApiTest.java b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java index 96fd6c09..0c956179 100644 --- a/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java @@ -18,6 +18,7 @@ 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; @@ -25,8 +26,10 @@ 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; @@ -114,8 +117,23 @@ public void getNotificationsTest() throws ApiException { 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); + api.getNotifications( + webhookId, + order, + sortBy, + pageCursor, + pageSize, + startTime, + endTime, + statuses, + events, + resourceId); } /** diff --git a/src/test/java/com/fireblocks/sdk/model/APIUserTest.java b/src/test/java/com/fireblocks/sdk/model/APIUserTest.java index db735a81..cdb175ae 100644 --- a/src/test/java/com/fireblocks/sdk/model/APIUserTest.java +++ b/src/test/java/com/fireblocks/sdk/model/APIUserTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for APIUser */ -public class APIUserTest { +class APIUserTest { private final APIUser model = new APIUser(); /** Model tests for APIUser */ @Test - public void testAPIUser() { + void testAPIUser() { // TODO: test APIUser } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'role' */ @Test - public void roleTest() { + void roleTest() { // TODO: test role } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'userType' */ @Test - public void userTypeTest() { + void userTypeTest() { // TODO: test userType } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java similarity index 60% rename from src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java rename to src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java index 328f8531..0c2488ca 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java +++ b/src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java @@ -13,82 +13,81 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */ -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test { - private final AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 model = - new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1(); +/** Model tests for AbaPaymentInfo */ +class AbaPaymentInfoTest { + private final AbaPaymentInfo model = new AbaPaymentInfo(); - /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */ + /** Model tests for AbaPaymentInfo */ @Test - public void testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() { - // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + void testAbaPaymentInfo() { + // TODO: test AbaPaymentInfo } /** Test the property 'accountHolderGivenName' */ @Test - public void accountHolderGivenNameTest() { + void accountHolderGivenNameTest() { // TODO: test accountHolderGivenName } /** Test the property 'accountHolderSurname' */ @Test - public void accountHolderSurnameTest() { + void accountHolderSurnameTest() { // TODO: test accountHolderSurname } /** Test the property 'accountHolderCity' */ @Test - public void accountHolderCityTest() { + void accountHolderCityTest() { // TODO: test accountHolderCity } /** Test the property 'accountHolderCountry' */ @Test - public void accountHolderCountryTest() { + void accountHolderCountryTest() { // TODO: test accountHolderCountry } /** Test the property 'accountHolderAddress1' */ @Test - public void accountHolderAddress1Test() { + void accountHolderAddress1Test() { // TODO: test accountHolderAddress1 } /** Test the property 'accountHolderAddress2' */ @Test - public void accountHolderAddress2Test() { + void accountHolderAddress2Test() { // TODO: test accountHolderAddress2 } /** Test the property 'accountHolderDistrict' */ @Test - public void accountHolderDistrictTest() { + void accountHolderDistrictTest() { // TODO: test accountHolderDistrict } /** Test the property 'accountHolderPostalCode' */ @Test - public void accountHolderPostalCodeTest() { + void accountHolderPostalCodeTest() { // TODO: test accountHolderPostalCode } /** Test the property 'abaRoutingNumber' */ @Test - public void abaRoutingNumberTest() { + void abaRoutingNumberTest() { // TODO: test abaRoutingNumber } /** Test the property 'abaAccountNumber' */ @Test - public void abaAccountNumberTest() { + void abaAccountNumberTest() { // TODO: test abaAccountNumber } /** Test the property 'abaCountry' */ @Test - public void abaCountryTest() { + void abaCountryTest() { // TODO: test abaCountry } } diff --git a/src/test/java/com/fireblocks/sdk/model/AbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/AbiFunctionTest.java index 4e982125..125f73ec 100644 --- a/src/test/java/com/fireblocks/sdk/model/AbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AbiFunctionTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AbiFunction */ -public class AbiFunctionTest { +class AbiFunctionTest { private final AbiFunction model = new AbiFunction(); /** Model tests for AbiFunction */ @Test - public void testAbiFunction() { + void testAbiFunction() { // TODO: test AbiFunction } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java b/src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java new file mode 100644 index 00000000..2af87278 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java @@ -0,0 +1,57 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/AccountIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java new file mode 100644 index 00000000..700ce486 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/AccountTest.java b/src/test/java/com/fireblocks/sdk/model/AccountTest.java index 912e87c5..db9ec7b8 100644 --- a/src/test/java/com/fireblocks/sdk/model/AccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AccountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Account */ -public class AccountTest { +class AccountTest { private final Account model = new Account(); /** Model tests for Account */ @Test - public void testAccount() { + void testAccount() { // TODO: test Account } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'accountType' */ @Test - public void accountTypeTest() { + void accountTypeTest() { // TODO: test accountType } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java b/src/test/java/com/fireblocks/sdk/model/AccountType2Test.java similarity index 64% rename from src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java rename to src/test/java/com/fireblocks/sdk/model/AccountType2Test.java index b32544e8..479f7301 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AccountType2Test.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicySrcOrDestType */ -public class PolicySrcOrDestTypeTest { - /** Model tests for PolicySrcOrDestType */ +/** Model tests for AccountType2 */ +class AccountType2Test { + /** Model tests for AccountType2 */ @Test - public void testPolicySrcOrDestType() { - // TODO: test PolicySrcOrDestType + void testAccountType2() { + // TODO: test AccountType2 } } diff --git a/src/test/java/com/fireblocks/sdk/model/AccountTypeTest.java b/src/test/java/com/fireblocks/sdk/model/AccountTypeTest.java index 8c723ba0..ed11b333 100644 --- a/src/test/java/com/fireblocks/sdk/model/AccountTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AccountTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AccountType */ -public class AccountTypeTest { +class AccountTypeTest { /** Model tests for AccountType */ @Test - public void testAccountType() { + void testAccountType() { // TODO: test AccountType } } diff --git a/src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java new file mode 100644 index 00000000..7486f4b8 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java @@ -0,0 +1,75 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 index 89f3a7e0..95fec4f1 100644 --- a/src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AdapterProcessingResult */ -public class AdapterProcessingResultTest { +class AdapterProcessingResultTest { private final AdapterProcessingResult model = new AdapterProcessingResult(); /** Model tests for AdapterProcessingResult */ @Test - public void testAdapterProcessingResult() { + void testAdapterProcessingResult() { // TODO: test AdapterProcessingResult } /** Test the property 'inputTokenLinkId' */ @Test - public void inputTokenLinkIdTest() { + void inputTokenLinkIdTest() { // TODO: test inputTokenLinkId } /** Test the property 'adapterLinkId' */ @Test - public void adapterLinkIdTest() { + 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 index 9ed3ebc1..2b0bfc1c 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddAbiRequestDto */ -public class AddAbiRequestDtoTest { +class AddAbiRequestDtoTest { private final AddAbiRequestDto model = new AddAbiRequestDto(); /** Model tests for AddAbiRequestDto */ @Test - public void testAddAbiRequestDto() { + void testAddAbiRequestDto() { // TODO: test AddAbiRequestDto } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } /** Test the property 'abi' */ @Test - public void abiTest() { + void abiTest() { // TODO: test abi } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java deleted file mode 100644 index 268eb6c7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.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.Test; - -/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 */ -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test { - private final AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 model = - new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2(); - - /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 */ - @Test - public void testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2() { - // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 - } - - /** Test the property 'speiClabe' */ - @Test - public void speiClabeTest() { - // TODO: test speiClabe - } - - /** Test the property 'speiName' */ - @Test - public void speiNameTest() { - // TODO: test speiName - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java deleted file mode 100644 index 058bb00b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.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.Test; - -/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfo */ -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest { - private final AddAssetToExternalWalletRequestOneOf1AdditionalInfo model = - new AddAssetToExternalWalletRequestOneOf1AdditionalInfo(); - - /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfo */ - @Test - public void testAddAssetToExternalWalletRequestOneOf1AdditionalInfo() { - // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfo - } - - /** Test the property 'accountHolderGivenName' */ - @Test - public void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - public void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'accountHolderCity' */ - @Test - public void accountHolderCityTest() { - // TODO: test accountHolderCity - } - - /** Test the property 'accountHolderCountry' */ - @Test - public void accountHolderCountryTest() { - // TODO: test accountHolderCountry - } - - /** Test the property 'accountHolderAddress1' */ - @Test - public void accountHolderAddress1Test() { - // TODO: test accountHolderAddress1 - } - - /** Test the property 'accountHolderAddress2' */ - @Test - public void accountHolderAddress2Test() { - // TODO: test accountHolderAddress2 - } - - /** Test the property 'accountHolderDistrict' */ - @Test - public void accountHolderDistrictTest() { - // TODO: test accountHolderDistrict - } - - /** Test the property 'accountHolderPostalCode' */ - @Test - public void accountHolderPostalCodeTest() { - // TODO: test accountHolderPostalCode - } - - /** Test the property 'iban' */ - @Test - public void ibanTest() { - // TODO: test iban - } - - /** Test the property 'ibanCity' */ - @Test - public void ibanCityTest() { - // TODO: test ibanCity - } - - /** Test the property 'ibanCountry' */ - @Test - public void ibanCountryTest() { - // TODO: test ibanCountry - } - - /** Test the property 'abaRoutingNumber' */ - @Test - public void abaRoutingNumberTest() { - // TODO: test abaRoutingNumber - } - - /** Test the property 'abaAccountNumber' */ - @Test - public void abaAccountNumberTest() { - // TODO: test abaAccountNumber - } - - /** Test the property 'abaCountry' */ - @Test - public void abaCountryTest() { - // TODO: test abaCountry - } - - /** Test the property 'speiClabe' */ - @Test - public void speiClabeTest() { - // TODO: test speiClabe - } - - /** Test the property 'speiName' */ - @Test - public void speiNameTest() { - // TODO: test speiName - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestTest.java index 7f2fa263..9186f0e1 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddAssetToExternalWalletRequest */ -public class AddAssetToExternalWalletRequestTest { +class AddAssetToExternalWalletRequestTest { private final AddAssetToExternalWalletRequest model = new AddAssetToExternalWalletRequest(); /** Model tests for AddAssetToExternalWalletRequest */ @Test - public void testAddAssetToExternalWalletRequest() { + void testAddAssetToExternalWalletRequest() { // TODO: test AddAssetToExternalWalletRequest } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'additionalInfo' */ @Test - public void additionalInfoTest() { + void additionalInfoTest() { // TODO: test additionalInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddCollateralRequestBodyTest.java b/src/test/java/com/fireblocks/sdk/model/AddCollateralRequestBodyTest.java index 9371dc26..db7f6b37 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddCollateralRequestBodyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddCollateralRequestBodyTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddCollateralRequestBody */ -public class AddCollateralRequestBodyTest { +class AddCollateralRequestBodyTest { private final AddCollateralRequestBody model = new AddCollateralRequestBody(); /** Model tests for AddCollateralRequestBody */ @Test - public void testAddCollateralRequestBody() { + void testAddCollateralRequestBody() { // TODO: test AddCollateralRequestBody } /** Test the property 'transactionRequest' */ @Test - public void transactionRequestTest() { + void transactionRequestTest() { // TODO: test transactionRequest } /** Test the property 'isSrcCollateral' */ @Test - public void isSrcCollateralTest() { + void isSrcCollateralTest() { // TODO: test isSrcCollateral } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddContractAssetRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddContractAssetRequestTest.java index 6b6edd73..28db5c66 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddContractAssetRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddContractAssetRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddContractAssetRequest */ -public class AddContractAssetRequestTest { +class AddContractAssetRequestTest { private final AddContractAssetRequest model = new AddContractAssetRequest(); /** Model tests for AddContractAssetRequest */ @Test - public void testAddContractAssetRequest() { + void testAddContractAssetRequest() { // TODO: test AddContractAssetRequest } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java index 9869d6b2..81590e2e 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddCosignerRequest */ -public class AddCosignerRequestTest { +class AddCosignerRequestTest { private final AddCosignerRequest model = new AddCosignerRequest(); /** Model tests for AddCosignerRequest */ @Test - public void testAddCosignerRequest() { + void testAddCosignerRequest() { // TODO: test AddCosignerRequest } /** Test the property 'apiKeyId' */ @Test - public void apiKeyIdTest() { + void apiKeyIdTest() { // TODO: test apiKeyId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'existingCosigner' */ @Test - public void existingCosignerTest() { + 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 index e3dfcf11..eff909d2 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddCosignerResponse */ -public class AddCosignerResponseTest { +class AddCosignerResponseTest { private final AddCosignerResponse model = new AddCosignerResponse(); /** Model tests for AddCosignerResponse */ @Test - public void testAddCosignerResponse() { + void testAddCosignerResponse() { // TODO: test AddCosignerResponse } /** Test the property 'apiKeyId' */ @Test - public void apiKeyIdTest() { + void apiKeyIdTest() { // TODO: test apiKeyId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'existingCosigner' */ @Test - public void existingCosignerTest() { + void existingCosignerTest() { // TODO: test existingCosigner } /** Test the property 'pendingCosignerId' */ @Test - public void pendingCosignerIdTest() { + 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 index d17b7d45..490f7afd 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddExchangeAccountRequest */ -public class AddExchangeAccountRequestTest { +class AddExchangeAccountRequestTest { private final AddExchangeAccountRequest model = new AddExchangeAccountRequest(); /** Model tests for AddExchangeAccountRequest */ @Test - public void testAddExchangeAccountRequest() { + void testAddExchangeAccountRequest() { // TODO: test AddExchangeAccountRequest } /** Test the property 'exchangeType' */ @Test - public void exchangeTypeTest() { + void exchangeTypeTest() { // TODO: test exchangeType } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'creds' */ @Test - public void credsTest() { + void credsTest() { // TODO: test creds } /** Test the property 'key' */ @Test - public void keyTest() { + void keyTest() { // TODO: test key } /** Test the property 'mainAccountId' */ @Test - public void mainAccountIdTest() { + 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 index 8e5aa9bf..ac5f1884 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddExchangeAccountResponse */ -public class AddExchangeAccountResponseTest { +class AddExchangeAccountResponseTest { private final AddExchangeAccountResponse model = new AddExchangeAccountResponse(); /** Model tests for AddExchangeAccountResponse */ @Test - public void testAddExchangeAccountResponse() { + void testAddExchangeAccountResponse() { // TODO: test AddExchangeAccountResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'exchangeType' */ @Test - public void exchangeTypeTest() { + void exchangeTypeTest() { // TODO: test exchangeType } } diff --git a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java new file mode 100644 index 00000000..235fcfc5 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java @@ -0,0 +1,304 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/AddAssetToExternalWalletRequestOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java similarity index 52% rename from src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1Test.java rename to src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java index c6ab2398..f2656c7b 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1Test.java +++ b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java @@ -13,22 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for AddAssetToExternalWalletRequestOneOf1 */ -public class AddAssetToExternalWalletRequestOneOf1Test { - private final AddAssetToExternalWalletRequestOneOf1 model = - new AddAssetToExternalWalletRequestOneOf1(); +/** Model tests for AdditionalInfoRequest */ +class AdditionalInfoRequestTest { + private final AdditionalInfoRequest model = new AdditionalInfoRequest(); - /** Model tests for AddAssetToExternalWalletRequestOneOf1 */ + /** Model tests for AdditionalInfoRequest */ @Test - public void testAddAssetToExternalWalletRequestOneOf1() { - // TODO: test AddAssetToExternalWalletRequestOneOf1 + void testAdditionalInfoRequest() { + // TODO: test AdditionalInfoRequest } /** Test the property 'additionalInfo' */ @Test - public void additionalInfoTest() { + void additionalInfoTest() { // TODO: test additionalInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java index 1b720ae0..83a1f827 100644 --- a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AdditionalInfo */ -public class AdditionalInfoTest { +class AdditionalInfoTest { private final AdditionalInfo model = new AdditionalInfo(); /** Model tests for AdditionalInfo */ @Test - public void testAdditionalInfo() { + void testAdditionalInfo() { // TODO: test AdditionalInfo } /** Test the property 'estimatedAnnualReward' */ @Test - public void estimatedAnnualRewardTest() { + void estimatedAnnualRewardTest() { // TODO: test estimatedAnnualReward } /** Test the property 'lockupPeriod' */ @Test - public void lockupPeriodTest() { + void lockupPeriodTest() { // TODO: test lockupPeriod } /** Test the property 'activationPeriod' */ @Test - public void activationPeriodTest() { + void activationPeriodTest() { // TODO: test activationPeriod } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java b/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java index c490d0e7..020ba17b 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AddressNotAvailableError */ -public class AddressNotAvailableErrorTest { +class AddressNotAvailableErrorTest { private final AddressNotAvailableError model = new AddressNotAvailableError(); /** Model tests for AddressNotAvailableError */ @Test - public void testAddressNotAvailableError() { + void testAddressNotAvailableError() { // TODO: test AddressNotAvailableError } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 index 03d9a367..abbcb1ad 100644 --- a/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AmlRegistrationResultFullPayload */ -public class AmlRegistrationResultFullPayloadTest { +class AmlRegistrationResultFullPayloadTest { private final AmlRegistrationResultFullPayload model = new AmlRegistrationResultFullPayload(); /** Model tests for AmlRegistrationResultFullPayload */ @Test - public void testAmlRegistrationResultFullPayload() { + void testAmlRegistrationResultFullPayload() { // TODO: test AmlRegistrationResultFullPayload } /** Test the property 'provider' */ @Test - public void providerTest() { + void providerTest() { // TODO: test provider } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } /** Test the property 'timestamp' */ @Test - public void timestampTest() { + void timestampTest() { // TODO: test timestamp } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultTest.java b/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultTest.java index 02d6015a..16bca0cf 100644 --- a/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AmlRegistrationResult */ -public class AmlRegistrationResultTest { +class AmlRegistrationResultTest { private final AmlRegistrationResult model = new AmlRegistrationResult(); /** Model tests for AmlRegistrationResult */ @Test - public void testAmlRegistrationResult() { + void testAmlRegistrationResult() { // TODO: test AmlRegistrationResult } /** Test the property 'provider' */ @Test - public void providerTest() { + void providerTest() { // TODO: test provider } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } /** Test the property 'timestamp' */ @Test - public void timestampTest() { + void timestampTest() { // TODO: test timestamp } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmlScreeningResultTest.java b/src/test/java/com/fireblocks/sdk/model/AmlScreeningResultTest.java index 0c5aa85a..344a75a1 100644 --- a/src/test/java/com/fireblocks/sdk/model/AmlScreeningResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AmlScreeningResultTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AmlScreeningResult */ -public class AmlScreeningResultTest { +class AmlScreeningResultTest { private final AmlScreeningResult model = new AmlScreeningResult(); /** Model tests for AmlScreeningResult */ @Test - public void testAmlScreeningResult() { + void testAmlScreeningResult() { // TODO: test AmlScreeningResult } /** Test the property 'provider' */ @Test - public void providerTest() { + void providerTest() { // TODO: test provider } /** Test the property 'payload' */ @Test - public void payloadTest() { + void payloadTest() { // TODO: test payload } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java new file mode 100644 index 00000000..71fffba1 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..a73d2a51 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/AmountAndChainDescriptorTest.java b/src/test/java/com/fireblocks/sdk/model/AmountAndChainDescriptorTest.java index e0883c2e..db237219 100644 --- a/src/test/java/com/fireblocks/sdk/model/AmountAndChainDescriptorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AmountAndChainDescriptorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AmountAndChainDescriptor */ -public class AmountAndChainDescriptorTest { +class AmountAndChainDescriptorTest { private final AmountAndChainDescriptor model = new AmountAndChainDescriptor(); /** Model tests for AmountAndChainDescriptor */ @Test - public void testAmountAndChainDescriptor() { + void testAmountAndChainDescriptor() { // TODO: test AmountAndChainDescriptor } /** Test the property 'chainDescriptor' */ @Test - public void chainDescriptorTest() { + void chainDescriptorTest() { // TODO: test chainDescriptor } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmountInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AmountInfoTest.java index 489a111a..eecaaf7b 100644 --- a/src/test/java/com/fireblocks/sdk/model/AmountInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AmountInfoTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AmountInfo */ -public class AmountInfoTest { +class AmountInfoTest { private final AmountInfo model = new AmountInfo(); /** Model tests for AmountInfo */ @Test - public void testAmountInfo() { + void testAmountInfo() { // TODO: test AmountInfo } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'requestedAmount' */ @Test - public void requestedAmountTest() { + void requestedAmountTest() { // TODO: test requestedAmount } /** Test the property 'netAmount' */ @Test - public void netAmountTest() { + void netAmountTest() { // TODO: test netAmount } /** Test the property 'amountUSD' */ @Test - public void amountUSDTest() { + void amountUSDTest() { // TODO: test amountUSD } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java b/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java new file mode 100644 index 00000000..4a8f2fc8 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..89860690 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..6dbda3e3 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 ffff5e02..baf8e92a 100644 --- a/src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ApiKey */ -public class ApiKeyTest { +class ApiKeyTest { private final ApiKey model = new ApiKey(); /** Model tests for ApiKey */ @Test - public void testApiKey() { + void testApiKey() { // TODO: test ApiKey } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'lastSeen' */ @Test - public void lastSeenTest() { + void lastSeenTest() { // TODO: test lastSeen } /** Test the property 'callbackHandler' */ @Test - public void callbackHandlerTest() { + void callbackHandlerTest() { // TODO: test callbackHandler } } diff --git a/src/test/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponseTest.java index cb23a330..97ef7d73 100644 --- a/src/test/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ApiKeysPaginatedResponse */ -public class ApiKeysPaginatedResponseTest { +class ApiKeysPaginatedResponseTest { private final ApiKeysPaginatedResponse model = new ApiKeysPaginatedResponse(); /** Model tests for ApiKeysPaginatedResponse */ @Test - public void testApiKeysPaginatedResponse() { + void testApiKeysPaginatedResponse() { // TODO: test ApiKeysPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java new file mode 100644 index 00000000..526da799 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java @@ -0,0 +1,46 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..b8e9a37d --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/AssetAlreadyExistHttpErrorTest.java b/src/test/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpErrorTest.java index 07200246..3c54dd25 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpErrorTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetAlreadyExistHttpError */ -public class AssetAlreadyExistHttpErrorTest { +class AssetAlreadyExistHttpErrorTest { private final AssetAlreadyExistHttpError model = new AssetAlreadyExistHttpError(); /** Model tests for AssetAlreadyExistHttpError */ @Test - public void testAssetAlreadyExistHttpError() { + void testAssetAlreadyExistHttpError() { // TODO: test AssetAlreadyExistHttpError } /** Test the property 'statusCode' */ @Test - public void statusCodeTest() { + void statusCodeTest() { // TODO: test statusCode } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'error' */ @Test - public void errorTest() { + void errorTest() { // TODO: test error } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetAmountTest.java b/src/test/java/com/fireblocks/sdk/model/AssetAmountTest.java index a19896e2..9e006761 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetAmountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetAmountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetAmount */ -public class AssetAmountTest { +class AssetAmountTest { private final AssetAmount model = new AssetAmount(); /** Model tests for AssetAmount */ @Test - public void testAssetAmount() { + void testAssetAmount() { // TODO: test AssetAmount } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponseTest.java index e6bcab93..7230b21a 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetBadRequestErrorResponse */ -public class AssetBadRequestErrorResponseTest { +class AssetBadRequestErrorResponseTest { private final AssetBadRequestErrorResponse model = new AssetBadRequestErrorResponse(); /** Model tests for AssetBadRequestErrorResponse */ @Test - public void testAssetBadRequestErrorResponse() { + void testAssetBadRequestErrorResponse() { // TODO: test AssetBadRequestErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetClassTest.java b/src/test/java/com/fireblocks/sdk/model/AssetClassTest.java index c0065d43..15207155 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetClassTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetClassTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetClass */ -public class AssetClassTest { +class AssetClassTest { /** Model tests for AssetClass */ @Test - public void testAssetClass() { + void testAssetClass() { // TODO: test AssetClass } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java b/src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java new file mode 100644 index 00000000..d61be9f2 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/AssetConflictErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetConflictErrorResponseTest.java index f2e3f34b..3dcba4b7 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetConflictErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetConflictErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetConflictErrorResponse */ -public class AssetConflictErrorResponseTest { +class AssetConflictErrorResponseTest { private final AssetConflictErrorResponse model = new AssetConflictErrorResponse(); /** Model tests for AssetConflictErrorResponse */ @Test - public void testAssetConflictErrorResponse() { + void testAssetConflictErrorResponse() { // TODO: test AssetConflictErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java index ec705323..14bc7270 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetDetailsMetadata */ -public class AssetDetailsMetadataTest { +class AssetDetailsMetadataTest { private final AssetDetailsMetadata model = new AssetDetailsMetadata(); /** Model tests for AssetDetailsMetadata */ @Test - public void testAssetDetailsMetadata() { + void testAssetDetailsMetadata() { // TODO: test AssetDetailsMetadata } /** Test the property 'scope' */ @Test - public void scopeTest() { + void scopeTest() { // TODO: test scope } /** Test the property 'verified' */ @Test - public void verifiedTest() { + void verifiedTest() { // TODO: test verified } /** Test the property 'deprecated' */ @Test - public void deprecatedTest() { + void deprecatedTest() { // TODO: test deprecated } /** Test the property 'deprecationReferralId' */ @Test - public void deprecationReferralIdTest() { + void deprecationReferralIdTest() { // TODO: test deprecationReferralId } /** Test the property 'website' */ @Test - public void websiteTest() { + void websiteTest() { // TODO: test website } /** Test the property 'media' */ @Test - public void mediaTest() { + void mediaTest() { // TODO: test media } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java b/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java index df9cdd67..45240bed 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetDetailsOnchain */ -public class AssetDetailsOnchainTest { +class AssetDetailsOnchainTest { private final AssetDetailsOnchain model = new AssetDetailsOnchain(); /** Model tests for AssetDetailsOnchain */ @Test - public void testAssetDetailsOnchain() { + void testAssetDetailsOnchain() { // TODO: test AssetDetailsOnchain } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + void decimalsTest() { // TODO: test decimals } /** Test the property 'standards' */ @Test - public void standardsTest() { + void standardsTest() { // TODO: test standards } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponseTest.java index 8fd488da..f567f48b 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetForbiddenErrorResponse */ -public class AssetForbiddenErrorResponseTest { +class AssetForbiddenErrorResponseTest { private final AssetForbiddenErrorResponse model = new AssetForbiddenErrorResponse(); /** Model tests for AssetForbiddenErrorResponse */ @Test - public void testAssetForbiddenErrorResponse() { + void testAssetForbiddenErrorResponse() { // TODO: test AssetForbiddenErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponseTest.java index 03450fc8..66f92903 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetInternalServerErrorResponse */ -public class AssetInternalServerErrorResponseTest { +class AssetInternalServerErrorResponseTest { private final AssetInternalServerErrorResponse model = new AssetInternalServerErrorResponse(); /** Model tests for AssetInternalServerErrorResponse */ @Test - public void testAssetInternalServerErrorResponse() { + void testAssetInternalServerErrorResponse() { // TODO: test AssetInternalServerErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java index 686dc263..badc8583 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetMediaAttributes */ -public class AssetMediaAttributesTest { +class AssetMediaAttributesTest { private final AssetMediaAttributes model = new AssetMediaAttributes(); /** Model tests for AssetMediaAttributes */ @Test - public void testAssetMediaAttributes() { + void testAssetMediaAttributes() { // TODO: test AssetMediaAttributes } /** Test the property 'monochrome' */ @Test - public void monochromeTest() { + 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 index f0c087f3..8c212697 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetMedia */ -public class AssetMediaTest { +class AssetMediaTest { private final AssetMedia model = new AssetMedia(); /** Model tests for AssetMedia */ @Test - public void testAssetMedia() { + void testAssetMedia() { // TODO: test AssetMedia } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'attributes' */ @Test - public void attributesTest() { + void attributesTest() { // TODO: test attributes } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMetadataDtoTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMetadataDtoTest.java index ed6ee1f0..217c55ef 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetMetadataDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetMetadataDtoTest.java @@ -13,93 +13,93 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetMetadataDto */ -public class AssetMetadataDtoTest { +class AssetMetadataDtoTest { private final AssetMetadataDto model = new AssetMetadataDto(); /** Model tests for AssetMetadataDto */ @Test - public void testAssetMetadataDto() { + void testAssetMetadataDto() { // TODO: test AssetMetadataDto } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'networkProtocol' */ @Test - public void networkProtocolTest() { + void networkProtocolTest() { // TODO: test networkProtocol } /** Test the property 'totalSupply' */ @Test - public void totalSupplyTest() { + void totalSupplyTest() { // TODO: test totalSupply } /** Test the property 'holdersCount' */ @Test - public void holdersCountTest() { + void holdersCountTest() { // TODO: test holdersCount } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'issuerAddress' */ @Test - public void issuerAddressTest() { + void issuerAddressTest() { // TODO: test issuerAddress } /** Test the property 'testnet' */ @Test - public void testnetTest() { + void testnetTest() { // TODO: test testnet } /** Test the property 'blockchain' */ @Test - public void blockchainTest() { + void blockchainTest() { // TODO: test blockchain } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + void decimalsTest() { // TODO: test decimals } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java index 75d09898..23ce7435 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetMetadataRequest */ -public class AssetMetadataRequestTest { +class AssetMetadataRequestTest { private final AssetMetadataRequest model = new AssetMetadataRequest(); /** Model tests for AssetMetadataRequest */ @Test - public void testAssetMetadataRequest() { + void testAssetMetadataRequest() { // TODO: test AssetMetadataRequest } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java index fb936f0b..ac0ce071 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetMetadata */ -public class AssetMetadataTest { +class AssetMetadataTest { private final AssetMetadata model = new AssetMetadata(); /** Model tests for AssetMetadata */ @Test - public void testAssetMetadata() { + void testAssetMetadata() { // TODO: test AssetMetadata } /** Test the property 'scope' */ @Test - public void scopeTest() { + void scopeTest() { // TODO: test scope } /** Test the property 'deprecated' */ @Test - public void deprecatedTest() { + void deprecatedTest() { // TODO: test deprecated } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponseTest.java index 7478da68..434bbb3c 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetNotFoundErrorResponse */ -public class AssetNotFoundErrorResponseTest { +class AssetNotFoundErrorResponseTest { private final AssetNotFoundErrorResponse model = new AssetNotFoundErrorResponse(); /** Model tests for AssetNotFoundErrorResponse */ @Test - public void testAssetNotFoundErrorResponse() { + void testAssetNotFoundErrorResponse() { // TODO: test AssetNotFoundErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java index 73f07aef..e95e891d 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetNoteRequest */ -public class AssetNoteRequestTest { +class AssetNoteRequestTest { private final AssetNoteRequest model = new AssetNoteRequest(); /** Model tests for AssetNoteRequest */ @Test - public void testAssetNoteRequest() { + void testAssetNoteRequest() { // TODO: test AssetNoteRequest } /** Test the property 'text' */ @Test - public void textTest() { + 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 index a4b1feba..e9788ca0 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetNote */ -public class AssetNoteTest { +class AssetNoteTest { private final AssetNote model = new AssetNote(); /** Model tests for AssetNote */ @Test - public void testAssetNote() { + void testAssetNote() { // TODO: test AssetNote } /** Test the property 'text' */ @Test - public void textTest() { + void textTest() { // TODO: test text } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } /** Test the property 'userName' */ @Test - public void userNameTest() { + void userNameTest() { // TODO: test userName } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java b/src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java index 7cd46fcf..0aa84426 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetOnchain */ -public class AssetOnchainTest { +class AssetOnchainTest { private final AssetOnchain model = new AssetOnchain(); /** Model tests for AssetOnchain */ @Test - public void testAssetOnchain() { + void testAssetOnchain() { // TODO: test AssetOnchain } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + void decimalsTest() { // TODO: test decimals } /** Test the property 'standard' */ @Test - public void standardTest() { + void standardTest() { // TODO: test standard } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java index 84705cda..f62806cb 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetPriceForbiddenErrorResponse */ -public class AssetPriceForbiddenErrorResponseTest { +class AssetPriceForbiddenErrorResponseTest { private final AssetPriceForbiddenErrorResponse model = new AssetPriceForbiddenErrorResponse(); /** Model tests for AssetPriceForbiddenErrorResponse */ @Test - public void testAssetPriceForbiddenErrorResponse() { + void testAssetPriceForbiddenErrorResponse() { // TODO: test AssetPriceForbiddenErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 index f3fa348d..dbf17948 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetPriceNotFoundErrorResponse */ -public class AssetPriceNotFoundErrorResponseTest { +class AssetPriceNotFoundErrorResponseTest { private final AssetPriceNotFoundErrorResponse model = new AssetPriceNotFoundErrorResponse(); /** Model tests for AssetPriceNotFoundErrorResponse */ @Test - public void testAssetPriceNotFoundErrorResponse() { + void testAssetPriceNotFoundErrorResponse() { // TODO: test AssetPriceNotFoundErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 index 2f6f53b2..5680e1fe 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetPriceResponse */ -public class AssetPriceResponseTest { +class AssetPriceResponseTest { private final AssetPriceResponse model = new AssetPriceResponse(); /** Model tests for AssetPriceResponse */ @Test - public void testAssetPriceResponse() { + void testAssetPriceResponse() { // TODO: test AssetPriceResponse } /** Test the property 'legacyId' */ @Test - public void legacyIdTest() { + void legacyIdTest() { // TODO: test legacyId } /** Test the property 'lastUpdateAt' */ @Test - public void lastUpdateAtTest() { + void lastUpdateAtTest() { // TODO: test lastUpdateAt } /** Test the property 'currency' */ @Test - public void currencyTest() { + void currencyTest() { // TODO: test currency } /** Test the property 'price' */ @Test - public void priceTest() { + void priceTest() { // TODO: test price } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java index 83ec5d98..023542f4 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetResponse */ -public class AssetResponseTest { +class AssetResponseTest { private final AssetResponse model = new AssetResponse(); /** Model tests for AssetResponse */ @Test - public void testAssetResponse() { + void testAssetResponse() { // TODO: test AssetResponse } /** Test the property 'legacyId' */ @Test - public void legacyIdTest() { + void legacyIdTest() { // TODO: test legacyId } /** Test the property 'assetClass' */ @Test - public void assetClassTest() { + void assetClassTest() { // TODO: test assetClass } /** Test the property 'onchain' */ @Test - public void onchainTest() { + void onchainTest() { // TODO: test onchain } /** Test the property 'metadata' */ @Test - public void metadataTest() { + void metadataTest() { // TODO: test metadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java b/src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java index 7d751947..a9108da7 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetScope */ -public class AssetScopeTest { +class AssetScopeTest { /** Model tests for AssetScope */ @Test - public void testAssetScope() { + void testAssetScope() { // TODO: test AssetScope } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetTest.java b/src/test/java/com/fireblocks/sdk/model/AssetTest.java index ca9bdc47..3bf48086 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Asset */ -public class AssetTest { +class AssetTest { private final Asset model = new Asset(); /** Model tests for Asset */ @Test - public void testAsset() { + void testAsset() { // TODO: test Asset } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'legacyId' */ @Test - public void legacyIdTest() { + void legacyIdTest() { // TODO: test legacyId } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'displaySymbol' */ @Test - public void displaySymbolTest() { + void displaySymbolTest() { // TODO: test displaySymbol } /** Test the property 'assetClass' */ @Test - public void assetClassTest() { + void assetClassTest() { // TODO: test assetClass } /** Test the property 'onchain' */ @Test - public void onchainTest() { + void onchainTest() { // TODO: test onchain } /** Test the property 'metadata' */ @Test - public void metadataTest() { + void metadataTest() { // TODO: test metadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetTypeResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetTypeResponseTest.java index d6915ebc..8ee0a76e 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetTypeResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetTypeResponseTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetTypeResponse */ -public class AssetTypeResponseTest { +class AssetTypeResponseTest { private final AssetTypeResponse model = new AssetTypeResponse(); /** Model tests for AssetTypeResponse */ @Test - public void testAssetTypeResponse() { + void testAssetTypeResponse() { // TODO: test AssetTypeResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'nativeAsset' */ @Test - public void nativeAssetTest() { + void nativeAssetTest() { // TODO: test nativeAsset } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + void decimalsTest() { // TODO: test decimals } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java b/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java new file mode 100644 index 00000000..63c42328 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java @@ -0,0 +1,27 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for AssetTypesConfigInner */ +class AssetTypesConfigInnerTest { + private final AssetTypesConfigInner model = new AssetTypesConfigInner(); + + /** Model tests for AssetTypesConfigInner */ + @Test + void testAssetTypesConfigInner() { + // TODO: test AssetTypesConfigInner + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetWalletTest.java b/src/test/java/com/fireblocks/sdk/model/AssetWalletTest.java index 64601b88..49eedc11 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetWalletTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetWalletTest.java @@ -13,81 +13,81 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AssetWallet */ -public class AssetWalletTest { +class AssetWalletTest { private final AssetWallet model = new AssetWallet(); /** Model tests for AssetWallet */ @Test - public void testAssetWallet() { + void testAssetWallet() { // TODO: test AssetWallet } /** Test the property 'vaultId' */ @Test - public void vaultIdTest() { + void vaultIdTest() { // TODO: test vaultId } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'available' */ @Test - public void availableTest() { + void availableTest() { // TODO: test available } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } /** Test the property 'pending' */ @Test - public void pendingTest() { + void pendingTest() { // TODO: test pending } /** Test the property 'staked' */ @Test - public void stakedTest() { + void stakedTest() { // TODO: test staked } /** Test the property 'frozen' */ @Test - public void frozenTest() { + void frozenTest() { // TODO: test frozen } /** Test the property 'lockedAmount' */ @Test - public void lockedAmountTest() { + void lockedAmountTest() { // TODO: test lockedAmount } /** Test the property 'blockHeight' */ @Test - public void blockHeightTest() { + void blockHeightTest() { // TODO: test blockHeight } /** Test the property 'blockHash' */ @Test - public void blockHashTest() { + void blockHashTest() { // TODO: test blockHash } /** Test the property 'creationTimestamp' */ @Test - public void creationTimestampTest() { + void creationTimestampTest() { // TODO: test creationTimestamp } } diff --git a/src/test/java/com/fireblocks/sdk/model/AuditLogDataTest.java b/src/test/java/com/fireblocks/sdk/model/AuditLogDataTest.java index 7429f4f4..19cead3b 100644 --- a/src/test/java/com/fireblocks/sdk/model/AuditLogDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AuditLogDataTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AuditLogData */ -public class AuditLogDataTest { +class AuditLogDataTest { private final AuditLogData model = new AuditLogData(); /** Model tests for AuditLogData */ @Test - public void testAuditLogData() { + void testAuditLogData() { // TODO: test AuditLogData } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'timestamp' */ @Test - public void timestampTest() { + void timestampTest() { // TODO: test timestamp } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'user' */ @Test - public void userTest() { + void userTest() { // TODO: test user } /** Test the property 'subject' */ @Test - public void subjectTest() { + void subjectTest() { // TODO: test subject } /** Test the property 'event' */ @Test - public void eventTest() { + void eventTest() { // TODO: test event } /** Test the property 'tenantId' */ @Test - public void tenantIdTest() { + void tenantIdTest() { // TODO: test tenantId } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } } diff --git a/src/test/java/com/fireblocks/sdk/model/AuditorDataTest.java b/src/test/java/com/fireblocks/sdk/model/AuditorDataTest.java index 747c2a6e..bf572dd8 100644 --- a/src/test/java/com/fireblocks/sdk/model/AuditorDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AuditorDataTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AuditorData */ -public class AuditorDataTest { +class AuditorDataTest { private final AuditorData model = new AuditorData(); /** Model tests for AuditorData */ @Test - public void testAuditorData() { + void testAuditorData() { // TODO: test AuditorData } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'imageURL' */ @Test - public void imageURLTest() { + void imageURLTest() { // TODO: test imageURL } /** Test the property 'link' */ @Test - public void linkTest() { + void linkTest() { // TODO: test link } } diff --git a/src/test/java/com/fireblocks/sdk/model/AuthorizationGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/AuthorizationGroupsTest.java index 52659cf7..c15be97f 100644 --- a/src/test/java/com/fireblocks/sdk/model/AuthorizationGroupsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AuthorizationGroupsTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AuthorizationGroups */ -public class AuthorizationGroupsTest { +class AuthorizationGroupsTest { private final AuthorizationGroups model = new AuthorizationGroups(); /** Model tests for AuthorizationGroups */ @Test - public void testAuthorizationGroups() { + void testAuthorizationGroups() { // TODO: test AuthorizationGroups } /** Test the property 'th' */ @Test - public void thTest() { + void thTest() { // TODO: test th } /** Test the property 'users' */ @Test - public void usersTest() { + void usersTest() { // TODO: test users } } diff --git a/src/test/java/com/fireblocks/sdk/model/AuthorizationInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AuthorizationInfoTest.java index f190e356..db84a09d 100644 --- a/src/test/java/com/fireblocks/sdk/model/AuthorizationInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AuthorizationInfoTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for AuthorizationInfo */ -public class AuthorizationInfoTest { +class AuthorizationInfoTest { private final AuthorizationInfo model = new AuthorizationInfo(); /** Model tests for AuthorizationInfo */ @Test - public void testAuthorizationInfo() { + void testAuthorizationInfo() { // TODO: test AuthorizationInfo } /** Test the property 'allowOperatorAsAuthorizer' */ @Test - public void allowOperatorAsAuthorizerTest() { + void allowOperatorAsAuthorizerTest() { // TODO: test allowOperatorAsAuthorizer } /** Test the property 'logic' */ @Test - public void logicTest() { + void logicTest() { // TODO: test logic } /** Test the property 'groups' */ @Test - public void groupsTest() { + void groupsTest() { // TODO: test groups } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java similarity index 54% rename from src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java rename to src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java index ad6cc360..4296f9e6 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java @@ -13,28 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for AddAssetToExternalWalletRequestOneOf */ -public class AddAssetToExternalWalletRequestOneOfTest { - private final AddAssetToExternalWalletRequestOneOf model = - new AddAssetToExternalWalletRequestOneOf(); +/** Model tests for BasicAddressRequest */ +class BasicAddressRequestTest { + private final BasicAddressRequest model = new BasicAddressRequest(); - /** Model tests for AddAssetToExternalWalletRequestOneOf */ + /** Model tests for BasicAddressRequest */ @Test - public void testAddAssetToExternalWalletRequestOneOf() { - // TODO: test AddAssetToExternalWalletRequestOneOf + void testBasicAddressRequest() { + // TODO: test BasicAddressRequest } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } } diff --git a/src/test/java/com/fireblocks/sdk/model/BlockInfoTest.java b/src/test/java/com/fireblocks/sdk/model/BlockInfoTest.java index 7f43761c..fc625aba 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockInfoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockInfo */ -public class BlockInfoTest { +class BlockInfoTest { private final BlockInfo model = new BlockInfo(); /** Model tests for BlockInfo */ @Test - public void testBlockInfo() { + void testBlockInfo() { // TODO: test BlockInfo } /** Test the property 'blockHeight' */ @Test - public void blockHeightTest() { + void blockHeightTest() { // TODO: test blockHeight } /** Test the property 'blockHash' */ @Test - public void blockHashTest() { + void blockHashTest() { // TODO: test blockHash } } diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java index 86371f46..d1a03a03 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockchainExplorer */ -public class BlockchainExplorerTest { +class BlockchainExplorerTest { private final BlockchainExplorer model = new BlockchainExplorer(); /** Model tests for BlockchainExplorer */ @Test - public void testBlockchainExplorer() { + void testBlockchainExplorer() { // TODO: test BlockchainExplorer } /** Test the property 'base' */ @Test - public void baseTest() { + void baseTest() { // TODO: test base } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tx' */ @Test - public void txTest() { + void txTest() { // TODO: test tx } /** Test the property 'token' */ @Test - public void tokenTest() { + 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 index 95f8ca89..aca82daa 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockchainMedia */ -public class BlockchainMediaTest { +class BlockchainMediaTest { private final BlockchainMedia model = new BlockchainMedia(); /** Model tests for BlockchainMedia */ @Test - public void testBlockchainMedia() { + void testBlockchainMedia() { // TODO: test BlockchainMedia } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'type' */ @Test - public void typeTest() { + 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 index d40909f4..eaf1db1e 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockchainMetadata */ -public class BlockchainMetadataTest { +class BlockchainMetadataTest { private final BlockchainMetadata model = new BlockchainMetadata(); /** Model tests for BlockchainMetadata */ @Test - public void testBlockchainMetadata() { + void testBlockchainMetadata() { // TODO: test BlockchainMetadata } /** Test the property 'scope' */ @Test - public void scopeTest() { + void scopeTest() { // TODO: test scope } /** Test the property 'deprecated' */ @Test - public void deprecatedTest() { + void deprecatedTest() { // TODO: test deprecated } /** Test the property 'media' */ @Test - public void mediaTest() { + void mediaTest() { // TODO: test media } /** Test the property 'explorer' */ @Test - public void explorerTest() { + 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 index 7a80808f..33ce9ff2 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockchainNotFoundErrorResponse */ -public class BlockchainNotFoundErrorResponseTest { +class BlockchainNotFoundErrorResponseTest { private final BlockchainNotFoundErrorResponse model = new BlockchainNotFoundErrorResponse(); /** Model tests for BlockchainNotFoundErrorResponse */ @Test - public void testBlockchainNotFoundErrorResponse() { + void testBlockchainNotFoundErrorResponse() { // TODO: test BlockchainNotFoundErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 index 053807b0..4d14fa77 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockchainOnchain */ -public class BlockchainOnchainTest { +class BlockchainOnchainTest { private final BlockchainOnchain model = new BlockchainOnchain(); /** Model tests for BlockchainOnchain */ @Test - public void testBlockchainOnchain() { + void testBlockchainOnchain() { // TODO: test BlockchainOnchain } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'chainId' */ @Test - public void chainIdTest() { + void chainIdTest() { // TODO: test chainId } /** Test the property 'test' */ @Test - public void testTest() { + void testTest() { // TODO: test test } /** Test the property 'signingAlgo' */ @Test - public void signingAlgoTest() { + 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 index e515c132..e5af92f9 100644 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for BlockchainResponse */ -public class BlockchainResponseTest { +class BlockchainResponseTest { private final BlockchainResponse model = new BlockchainResponse(); /** Model tests for BlockchainResponse */ @Test - public void testBlockchainResponse() { + void testBlockchainResponse() { // TODO: test BlockchainResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'legacyId' */ @Test - public void legacyIdTest() { + void legacyIdTest() { // TODO: test legacyId } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'nativeAssetId' */ @Test - public void nativeAssetIdTest() { + void nativeAssetIdTest() { // TODO: test nativeAssetId } /** Test the property 'onchain' */ @Test - public void onchainTest() { + void onchainTest() { // TODO: test onchain } /** Test the property 'metadata' */ @Test - public void metadataTest() { + void metadataTest() { // TODO: test metadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java index fe419725..e9f9b7cd 100644 --- a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CallbackHandlerRequest */ -public class CallbackHandlerRequestTest { +class CallbackHandlerRequestTest { private final CallbackHandlerRequest model = new CallbackHandlerRequest(); /** Model tests for CallbackHandlerRequest */ @Test - public void testCallbackHandlerRequest() { + void testCallbackHandlerRequest() { // TODO: test CallbackHandlerRequest } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'publicKey' */ @Test - public void publicKeyTest() { + void publicKeyTest() { // TODO: test publicKey } /** Test the property 'cert' */ @Test - public void certTest() { + 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 index 41b70025..efd9bf8e 100644 --- a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CallbackHandler */ -public class CallbackHandlerTest { +class CallbackHandlerTest { private final CallbackHandler model = new CallbackHandler(); /** Model tests for CallbackHandler */ @Test - public void testCallbackHandler() { + void testCallbackHandler() { // TODO: test CallbackHandler } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'publicKey' */ @Test - public void publicKeyTest() { + void publicKeyTest() { // TODO: test publicKey } /** Test the property 'certPublicKeyHash' */ @Test - public void certPublicKeyHashTest() { + void certPublicKeyHashTest() { // TODO: test certPublicKeyHash } } diff --git a/src/test/java/com/fireblocks/sdk/model/CancelTransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CancelTransactionResponseTest.java index fd49259c..2bbe5fec 100644 --- a/src/test/java/com/fireblocks/sdk/model/CancelTransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CancelTransactionResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CancelTransactionResponse */ -public class CancelTransactionResponseTest { +class CancelTransactionResponseTest { private final CancelTransactionResponse model = new CancelTransactionResponse(); /** Model tests for CancelTransactionResponse */ @Test - public void testCancelTransactionResponse() { + void testCancelTransactionResponse() { // TODO: test CancelTransactionResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java b/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java index 60a6eedf..4b7e89f0 100644 --- a/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ChainDescriptor */ -public class ChainDescriptorTest { +class ChainDescriptorTest { /** Model tests for ChainDescriptor */ @Test - public void testChainDescriptor() { + 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/ChainInfoResponseTest.java index 8755d48d..3697fbaa 100644 --- a/src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ChainInfoResponse */ -public class ChainInfoResponseTest { +class ChainInfoResponseTest { private final ChainInfoResponse model = new ChainInfoResponse(); /** Model tests for ChainInfoResponse */ @Test - public void testChainInfoResponse() { + void testChainInfoResponse() { // TODO: test ChainInfoResponse } /** Test the property 'chainDescriptor' */ @Test - public void chainDescriptorTest() { + void chainDescriptorTest() { // TODO: test chainDescriptor } /** Test the property 'currentEpoch' */ @Test - public void currentEpochTest() { + void currentEpochTest() { // TODO: test currentEpoch } /** Test the property 'epochElapsed' */ @Test - public void epochElapsedTest() { + void epochElapsedTest() { // TODO: test epochElapsed } /** Test the property 'epochDuration' */ @Test - public void epochDurationTest() { + void epochDurationTest() { // TODO: test epochDuration } /** Test the property 'additionalInfo' */ @Test - public void additionalInfoTest() { + void additionalInfoTest() { // TODO: test additionalInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfigTest.java deleted file mode 100644 index 5bee526e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsReceiveConfigTest.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.Test; - -/** Model tests for ChannelDvnConfigWithConfirmationsReceiveConfig */ -public class ChannelDvnConfigWithConfirmationsReceiveConfigTest { - private final ChannelDvnConfigWithConfirmationsReceiveConfig model = - new ChannelDvnConfigWithConfirmationsReceiveConfig(); - - /** Model tests for ChannelDvnConfigWithConfirmationsReceiveConfig */ - @Test - public void testChannelDvnConfigWithConfirmationsReceiveConfig() { - // TODO: test ChannelDvnConfigWithConfirmationsReceiveConfig - } - - /** Test the property 'dvnAddresses' */ - @Test - public void dvnAddressesTest() { - // TODO: test dvnAddresses - } - - /** Test the property 'optionalDVNAddresses' */ - @Test - public void optionalDVNAddressesTest() { - // TODO: test optionalDVNAddresses - } - - /** Test the property 'optionalThreshold' */ - @Test - public void optionalThresholdTest() { - // TODO: test optionalThreshold - } - - /** Test the property 'confirmations' */ - @Test - public void confirmationsTest() { - // TODO: test confirmations - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfigTest.java deleted file mode 100644 index 86677eb2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsSendConfigTest.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.Test; - -/** Model tests for ChannelDvnConfigWithConfirmationsSendConfig */ -public class ChannelDvnConfigWithConfirmationsSendConfigTest { - private final ChannelDvnConfigWithConfirmationsSendConfig model = - new ChannelDvnConfigWithConfirmationsSendConfig(); - - /** Model tests for ChannelDvnConfigWithConfirmationsSendConfig */ - @Test - public void testChannelDvnConfigWithConfirmationsSendConfig() { - // TODO: test ChannelDvnConfigWithConfirmationsSendConfig - } - - /** Test the property 'dvnAddresses' */ - @Test - public void dvnAddressesTest() { - // TODO: test dvnAddresses - } - - /** Test the property 'optionalDVNAddresses' */ - @Test - public void optionalDVNAddressesTest() { - // TODO: test optionalDVNAddresses - } - - /** Test the property 'optionalThreshold' */ - @Test - public void optionalThresholdTest() { - // TODO: test optionalThreshold - } - - /** Test the property 'confirmations' */ - @Test - public void confirmationsTest() { - // TODO: test confirmations - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java b/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java index d2dae4a8..0268de91 100644 --- a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ChannelDvnConfigWithConfirmations */ -public class ChannelDvnConfigWithConfirmationsTest { +class ChannelDvnConfigWithConfirmationsTest { private final ChannelDvnConfigWithConfirmations model = new ChannelDvnConfigWithConfirmations(); /** Model tests for ChannelDvnConfigWithConfirmations */ @Test - public void testChannelDvnConfigWithConfirmations() { + void testChannelDvnConfigWithConfirmations() { // TODO: test ChannelDvnConfigWithConfirmations } /** Test the property 'sendConfig' */ @Test - public void sendConfigTest() { + void sendConfigTest() { // TODO: test sendConfig } /** Test the property 'receiveConfig' */ @Test - public void receiveConfigTest() { + void receiveConfigTest() { // TODO: test receiveConfig } } diff --git a/src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java index 3e6810a5..775f5fed 100644 --- a/src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ClaimRewardsRequest */ -public class ClaimRewardsRequestTest { +class ClaimRewardsRequestTest { private final ClaimRewardsRequest model = new ClaimRewardsRequest(); /** Model tests for ClaimRewardsRequest */ @Test - public void testClaimRewardsRequest() { + void testClaimRewardsRequest() { // TODO: test ClaimRewardsRequest } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + void txNoteTest() { // TODO: test txNote } } diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java index e14c95c6..aeab0082 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionBurnRequestDto */ -public class CollectionBurnRequestDtoTest { +class CollectionBurnRequestDtoTest { private final CollectionBurnRequestDto model = new CollectionBurnRequestDto(); /** Model tests for CollectionBurnRequestDto */ @Test - public void testCollectionBurnRequestDto() { + void testCollectionBurnRequestDto() { // TODO: test CollectionBurnRequestDto } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'tokenId' */ @Test - public void tokenIdTest() { + void tokenIdTest() { // TODO: test tokenId } /** Test the property 'amount' */ @Test - public void amountTest() { + 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 index b52fb64b..65aee98d 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionBurnResponseDto */ -public class CollectionBurnResponseDtoTest { +class CollectionBurnResponseDtoTest { private final CollectionBurnResponseDto model = new CollectionBurnResponseDto(); /** Model tests for CollectionBurnResponseDto */ @Test - public void testCollectionBurnResponseDto() { + void testCollectionBurnResponseDto() { // TODO: test CollectionBurnResponseDto } /** Test the property 'txId' */ @Test - public void txIdTest() { + 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 index c68a77e2..bd11971f 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionDeployRequestDto */ -public class CollectionDeployRequestDtoTest { +class CollectionDeployRequestDtoTest { private final CollectionDeployRequestDto model = new CollectionDeployRequestDto(); /** Model tests for CollectionDeployRequestDto */ @Test - public void testCollectionDeployRequestDto() { + void testCollectionDeployRequestDto() { // TODO: test CollectionDeployRequestDto } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'adminAddress' */ @Test - public void adminAddressTest() { + void adminAddressTest() { // TODO: test adminAddress } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + 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 index 75667e71..0a1c0bd0 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionLinkDto */ -public class CollectionLinkDtoTest { +class CollectionLinkDtoTest { private final CollectionLinkDto model = new CollectionLinkDto(); /** Model tests for CollectionLinkDto */ @Test - public void testCollectionLinkDto() { + void testCollectionLinkDto() { // TODO: test CollectionLinkDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'collectionMetadata' */ @Test - public void collectionMetadataTest() { + void collectionMetadataTest() { // TODO: test collectionMetadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionMetadataDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionMetadataDtoTest.java index 55c6bcc3..3dfbaf53 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionMetadataDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionMetadataDtoTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionMetadataDto */ -public class CollectionMetadataDtoTest { +class CollectionMetadataDtoTest { private final CollectionMetadataDto model = new CollectionMetadataDto(); /** Model tests for CollectionMetadataDto */ @Test - public void testCollectionMetadataDto() { + void testCollectionMetadataDto() { // TODO: test CollectionMetadataDto } /** Test the property 'fbCollectionId' */ @Test - public void fbCollectionIdTest() { + void fbCollectionIdTest() { // TODO: test fbCollectionId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'standard' */ @Test - public void standardTest() { + void standardTest() { // TODO: test standard } /** Test the property 'blockchainDescriptor' */ @Test - public void blockchainDescriptorTest() { + void blockchainDescriptorTest() { // TODO: test blockchainDescriptor } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } } diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java index 0cbf24b1..7f8d7b31 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionMintRequestDto */ -public class CollectionMintRequestDtoTest { +class CollectionMintRequestDtoTest { private final CollectionMintRequestDto model = new CollectionMintRequestDto(); /** Model tests for CollectionMintRequestDto */ @Test - public void testCollectionMintRequestDto() { + void testCollectionMintRequestDto() { // TODO: test CollectionMintRequestDto } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'to' */ @Test - public void toTest() { + void toTest() { // TODO: test to } /** Test the property 'tokenId' */ @Test - public void tokenIdTest() { + void tokenIdTest() { // TODO: test tokenId } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'metadataURI' */ @Test - public void metadataURITest() { + void metadataURITest() { // TODO: test metadataURI } /** Test the property 'metadata' */ @Test - public void metadataTest() { + 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 index 39dc24c4..44e1b2c6 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionMintResponseDto */ -public class CollectionMintResponseDtoTest { +class CollectionMintResponseDtoTest { private final CollectionMintResponseDto model = new CollectionMintResponseDto(); /** Model tests for CollectionMintResponseDto */ @Test - public void testCollectionMintResponseDto() { + void testCollectionMintResponseDto() { // TODO: test CollectionMintResponseDto } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } } diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionOwnershipResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionOwnershipResponseTest.java index 31fdff7b..ab6528c4 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionOwnershipResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionOwnershipResponseTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionOwnershipResponse */ -public class CollectionOwnershipResponseTest { +class CollectionOwnershipResponseTest { private final CollectionOwnershipResponse model = new CollectionOwnershipResponse(); /** Model tests for CollectionOwnershipResponse */ @Test - public void testCollectionOwnershipResponse() { + void testCollectionOwnershipResponse() { // TODO: test CollectionOwnershipResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'standard' */ @Test - public void standardTest() { + void standardTest() { // TODO: test standard } /** Test the property 'blockchainDescriptor' */ @Test - public void blockchainDescriptorTest() { + void blockchainDescriptorTest() { // TODO: test blockchainDescriptor } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } } diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java index df0237a1..fd34392d 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionTokenMetadataAttributeDto */ -public class CollectionTokenMetadataAttributeDtoTest { +class CollectionTokenMetadataAttributeDtoTest { private final CollectionTokenMetadataAttributeDto model = new CollectionTokenMetadataAttributeDto(); /** Model tests for CollectionTokenMetadataAttributeDto */ @Test - public void testCollectionTokenMetadataAttributeDto() { + void testCollectionTokenMetadataAttributeDto() { // TODO: test CollectionTokenMetadataAttributeDto } /** Test the property 'traitType' */ @Test - public void traitTypeTest() { + void traitTypeTest() { // TODO: test traitType } /** Test the property 'value' */ @Test - public void valueTest() { + void valueTest() { // TODO: test value } /** Test the property 'displayType' */ @Test - public void displayTypeTest() { + 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 index a53a9b19..37ac5d02 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionTokenMetadataDto */ -public class CollectionTokenMetadataDtoTest { +class CollectionTokenMetadataDtoTest { private final CollectionTokenMetadataDto model = new CollectionTokenMetadataDto(); /** Model tests for CollectionTokenMetadataDto */ @Test - public void testCollectionTokenMetadataDto() { + void testCollectionTokenMetadataDto() { // TODO: test CollectionTokenMetadataDto } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'image' */ @Test - public void imageTest() { + void imageTest() { // TODO: test image } /** Test the property 'animationUrl' */ @Test - public void animationUrlTest() { + void animationUrlTest() { // TODO: test animationUrl } /** Test the property 'externalUrl' */ @Test - public void externalUrlTest() { + void externalUrlTest() { // TODO: test externalUrl } /** Test the property 'attributes' */ @Test - public void attributesTest() { + 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 index 67908f19..c9c4b78a 100644 --- a/src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CollectionType */ -public class CollectionTypeTest { +class CollectionTypeTest { /** Model tests for CollectionType */ @Test - public void testCollectionType() { + void testCollectionType() { // TODO: test CollectionType } } diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java index cb207620..a01e2599 100644 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ComplianceResultFullPayload */ -public class ComplianceResultFullPayloadTest { +class ComplianceResultFullPayloadTest { private final ComplianceResultFullPayload model = new ComplianceResultFullPayload(); /** Model tests for ComplianceResultFullPayload */ @Test - public void testComplianceResultFullPayload() { + void testComplianceResultFullPayload() { // TODO: test ComplianceResultFullPayload } /** Test the property 'aml' */ @Test - public void amlTest() { + void amlTest() { // TODO: test aml } /** Test the property 'tr' */ @Test - public void trTest() { + void trTest() { // TODO: test tr } /** Test the property 'amlList' */ @Test - public void amlListTest() { + void amlListTest() { // TODO: test amlList } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'amlRegistration' */ @Test - public void amlRegistrationTest() { + 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 index 2eea2930..e6c12628 100644 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ComplianceResultStatusesEnum */ -public class ComplianceResultStatusesEnumTest { +class ComplianceResultStatusesEnumTest { /** Model tests for ComplianceResultStatusesEnum */ @Test - public void testComplianceResultStatusesEnum() { + 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/ComplianceResultsTest.java index b6e6bb8b..a1ab2c96 100644 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ComplianceResults */ -public class ComplianceResultsTest { +class ComplianceResultsTest { private final ComplianceResults model = new ComplianceResults(); /** Model tests for ComplianceResults */ @Test - public void testComplianceResults() { + void testComplianceResults() { // TODO: test ComplianceResults } /** Test the property 'aml' */ @Test - public void amlTest() { + void amlTest() { // TODO: test aml } /** Test the property 'tr' */ @Test - public void trTest() { + void trTest() { // TODO: test tr } /** Test the property 'amlList' */ @Test - public void amlListTest() { + void amlListTest() { // TODO: test amlList } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'amlRegistration' */ @Test - public void amlRegistrationTest() { + void amlRegistrationTest() { // TODO: test amlRegistration } } diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java index a0b577e8..9ae35904 100644 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java @@ -13,46 +13,46 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ComplianceScreeningResultFullPayload */ -public class ComplianceScreeningResultFullPayloadTest { +class ComplianceScreeningResultFullPayloadTest { private final ComplianceScreeningResultFullPayload model = new ComplianceScreeningResultFullPayload(); /** Model tests for ComplianceScreeningResultFullPayload */ @Test - public void testComplianceScreeningResultFullPayload() { + void testComplianceScreeningResultFullPayload() { // TODO: test ComplianceScreeningResultFullPayload } /** Test the property 'provider' */ @Test - public void providerTest() { + void providerTest() { // TODO: test provider } /** Test the property 'payload' */ @Test - public void payloadTest() { + void payloadTest() { // TODO: test payload } /** Test the property 'bypassReason' */ @Test - public void bypassReasonTest() { + void bypassReasonTest() { // TODO: test bypassReason } /** Test the property 'screeningStatus' */ @Test - public void screeningStatusTest() { + void screeningStatusTest() { // TODO: test screeningStatus } /** Test the property 'timestamp' */ @Test - public void timestampTest() { + void timestampTest() { // TODO: test timestamp } } diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultTest.java index 1a49f5a2..1ebacaff 100644 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ComplianceScreeningResult */ -public class ComplianceScreeningResultTest { +class ComplianceScreeningResultTest { private final ComplianceScreeningResult model = new ComplianceScreeningResult(); /** Model tests for ComplianceScreeningResult */ @Test - public void testComplianceScreeningResult() { + void testComplianceScreeningResult() { // TODO: test ComplianceScreeningResult } /** Test the property 'provider' */ @Test - public void providerTest() { + void providerTest() { // TODO: test provider } /** Test the property 'payload' */ @Test - public void payloadTest() { + void payloadTest() { // TODO: test payload } /** Test the property 'bypassReason' */ @Test - public void bypassReasonTest() { + void bypassReasonTest() { // TODO: test bypassReason } /** Test the property 'screeningStatus' */ @Test - public void screeningStatusTest() { + void screeningStatusTest() { // TODO: test screeningStatus } /** Test the property 'timestamp' */ @Test - public void timestampTest() { + void timestampTest() { // TODO: test timestamp } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigChangeRequestStatusTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigChangeRequestStatusTest.java index ce495f0a..b26b3cd7 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigChangeRequestStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigChangeRequestStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigChangeRequestStatus */ -public class ConfigChangeRequestStatusTest { +class ConfigChangeRequestStatusTest { /** Model tests for ConfigChangeRequestStatus */ @Test - public void testConfigChangeRequestStatus() { + void testConfigChangeRequestStatus() { // TODO: test ConfigChangeRequestStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshotTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshotTest.java index 60dab336..e4f6a1ae 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshotTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshotTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigConversionOperationSnapshot */ -public class ConfigConversionOperationSnapshotTest { +class ConfigConversionOperationSnapshotTest { private final ConfigConversionOperationSnapshot model = new ConfigConversionOperationSnapshot(); /** Model tests for ConfigConversionOperationSnapshot */ @Test - public void testConfigConversionOperationSnapshot() { + void testConfigConversionOperationSnapshot() { // TODO: test ConfigConversionOperationSnapshot } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshotTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshotTest.java index 7749ee45..2fe95153 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshotTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshotTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigDisbursementOperationSnapshot */ -public class ConfigDisbursementOperationSnapshotTest { +class ConfigDisbursementOperationSnapshotTest { private final ConfigDisbursementOperationSnapshot model = new ConfigDisbursementOperationSnapshot(); /** Model tests for ConfigDisbursementOperationSnapshot */ @Test - public void testConfigDisbursementOperationSnapshot() { + void testConfigDisbursementOperationSnapshot() { // TODO: test ConfigDisbursementOperationSnapshot } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigOperationSnapshotTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigOperationSnapshotTest.java index 3a7f67aa..efbb87ca 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigOperationSnapshotTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigOperationSnapshotTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigOperationSnapshot */ -public class ConfigOperationSnapshotTest { +class ConfigOperationSnapshotTest { private final ConfigOperationSnapshot model = new ConfigOperationSnapshot(); /** Model tests for ConfigOperationSnapshot */ @Test - public void testConfigOperationSnapshot() { + void testConfigOperationSnapshot() { // TODO: test ConfigOperationSnapshot } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigOperationStatusTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigOperationStatusTest.java index 1c9e9f90..c9ddf648 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigOperationStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigOperationStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigOperationStatus */ -public class ConfigOperationStatusTest { +class ConfigOperationStatusTest { /** Model tests for ConfigOperationStatus */ @Test - public void testConfigOperationStatus() { + void testConfigOperationStatus() { // TODO: test ConfigOperationStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigOperationTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigOperationTest.java index e5ed13e4..0588e64c 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigOperationTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigOperation */ -public class ConfigOperationTest { +class ConfigOperationTest { private final ConfigOperation model = new ConfigOperation(); /** Model tests for ConfigOperation */ @Test - public void testConfigOperation() { + void testConfigOperation() { // TODO: test ConfigOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshotTest.java b/src/test/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshotTest.java index 4f1e1d88..147b76e7 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshotTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshotTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConfigTransferOperationSnapshot */ -public class ConfigTransferOperationSnapshotTest { +class ConfigTransferOperationSnapshotTest { private final ConfigTransferOperationSnapshot model = new ConfigTransferOperationSnapshot(); /** Model tests for ConfigTransferOperationSnapshot */ @Test - public void testConfigTransferOperationSnapshot() { + void testConfigTransferOperationSnapshot() { // TODO: test ConfigTransferOperationSnapshot } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConsoleUserTest.java b/src/test/java/com/fireblocks/sdk/model/ConsoleUserTest.java index d07181f8..9c161759 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConsoleUserTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConsoleUserTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConsoleUser */ -public class ConsoleUserTest { +class ConsoleUserTest { private final ConsoleUser model = new ConsoleUser(); /** Model tests for ConsoleUser */ @Test - public void testConsoleUser() { + void testConsoleUser() { // TODO: test ConsoleUser } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } /** Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } /** Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } /** Test the property 'role' */ @Test - public void roleTest() { + void roleTest() { // TODO: test role } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'userType' */ @Test - public void userTypeTest() { + void userTypeTest() { // TODO: test userType } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java b/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java index bf5ecef0..c7e151b5 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractAbiResponseDtoAbiInner */ -public class ContractAbiResponseDtoAbiInnerTest { +class ContractAbiResponseDtoAbiInnerTest { private final ContractAbiResponseDtoAbiInner model = new ContractAbiResponseDtoAbiInner(); /** Model tests for ContractAbiResponseDtoAbiInner */ @Test - public void testContractAbiResponseDtoAbiInner() { + void testContractAbiResponseDtoAbiInner() { // TODO: test ContractAbiResponseDtoAbiInner } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'discriminator' */ @Test - public void discriminatorTest() { + void discriminatorTest() { // TODO: test discriminator } /** Test the property 'accounts' */ @Test - public void accountsTest() { + void accountsTest() { // TODO: test accounts } /** Test the property 'args' */ @Test - public void argsTest() { + void argsTest() { // TODO: test args } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoTest.java index c67435ed..48ccb8b5 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractAbiResponseDto */ -public class ContractAbiResponseDtoTest { +class ContractAbiResponseDtoTest { private final ContractAbiResponseDto model = new ContractAbiResponseDto(); /** Model tests for ContractAbiResponseDto */ @Test - public void testContractAbiResponseDto() { + void testContractAbiResponseDto() { // TODO: test ContractAbiResponseDto } /** Test the property 'abi' */ @Test - public void abiTest() { + void abiTest() { // TODO: test abi } /** Test the property 'implementationAbi' */ @Test - public void implementationAbiTest() { + void implementationAbiTest() { // TODO: test implementationAbi } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractAttributesTest.java b/src/test/java/com/fireblocks/sdk/model/ContractAttributesTest.java index 9b2bbccf..c99cfb14 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractAttributesTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractAttributesTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractAttributes */ -public class ContractAttributesTest { +class ContractAttributesTest { private final ContractAttributes model = new ContractAttributes(); /** Model tests for ContractAttributes */ @Test - public void testContractAttributes() { + void testContractAttributes() { // TODO: test ContractAttributes } /** Test the property 'useCases' */ @Test - public void useCasesTest() { + void useCasesTest() { // TODO: test useCases } /** Test the property 'standards' */ @Test - public void standardsTest() { + void standardsTest() { // TODO: test standards } /** Test the property 'auditor' */ @Test - public void auditorTest() { + void auditorTest() { // TODO: test auditor } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java index d341085f..e10deea5 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataDecodeDataType */ -public class ContractDataDecodeDataTypeTest { +class ContractDataDecodeDataTypeTest { /** Model tests for ContractDataDecodeDataType */ @Test - public void testContractDataDecodeDataType() { + 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 index 30c7c41b..7dac6c84 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataDecodeError */ -public class ContractDataDecodeErrorTest { +class ContractDataDecodeErrorTest { private final ContractDataDecodeError model = new ContractDataDecodeError(); /** Model tests for ContractDataDecodeError */ @Test - public void testContractDataDecodeError() { + void testContractDataDecodeError() { // TODO: test ContractDataDecodeError } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 index e6a28acf..d42133a3 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataDecodeRequestData */ -public class ContractDataDecodeRequestDataTest { +class ContractDataDecodeRequestDataTest { private final ContractDataDecodeRequestData model = new ContractDataDecodeRequestData(); /** Model tests for ContractDataDecodeRequestData */ @Test - public void testContractDataDecodeRequestData() { + void testContractDataDecodeRequestData() { // TODO: test ContractDataDecodeRequestData } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'topics' */ @Test - public void topicsTest() { + 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 index 7caa8049..a761cc68 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataDecodeRequest */ -public class ContractDataDecodeRequestTest { +class ContractDataDecodeRequestTest { private final ContractDataDecodeRequest model = new ContractDataDecodeRequest(); /** Model tests for ContractDataDecodeRequest */ @Test - public void testContractDataDecodeRequest() { + void testContractDataDecodeRequest() { // TODO: test ContractDataDecodeRequest } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'dataType' */ @Test - public void dataTypeTest() { + void dataTypeTest() { // TODO: test dataType } /** Test the property 'abi' */ @Test - public void abiTest() { + 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 index d4d75ff1..cb4d6209 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataDecodeResponseParams */ -public class ContractDataDecodeResponseParamsTest { +class ContractDataDecodeResponseParamsTest { private final ContractDataDecodeResponseParams model = new ContractDataDecodeResponseParams(); /** Model tests for ContractDataDecodeResponseParams */ @Test - public void testContractDataDecodeResponseParams() { + void testContractDataDecodeResponseParams() { // TODO: test ContractDataDecodeResponseParams } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'signature' */ @Test - public void signatureTest() { + void signatureTest() { // TODO: test signature } /** Test the property 'args' */ @Test - public void argsTest() { + 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 index d42b7ee2..8a516558 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataDecodedResponse */ -public class ContractDataDecodedResponseTest { +class ContractDataDecodedResponseTest { private final ContractDataDecodedResponse model = new ContractDataDecodedResponse(); /** Model tests for ContractDataDecodedResponse */ @Test - public void testContractDataDecodedResponse() { + void testContractDataDecodedResponse() { // TODO: test ContractDataDecodedResponse } /** Test the property 'result' */ @Test - public void resultTest() { + void resultTest() { // TODO: test result } /** Test the property 'type' */ @Test - public void typeTest() { + 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 index 082de0f4..0c2ed4e4 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDataLogDataParam */ -public class ContractDataLogDataParamTest { +class ContractDataLogDataParamTest { private final ContractDataLogDataParam model = new ContractDataLogDataParam(); /** Model tests for ContractDataLogDataParam */ @Test - public void testContractDataLogDataParam() { + void testContractDataLogDataParam() { // TODO: test ContractDataLogDataParam } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'topics' */ @Test - public void topicsTest() { + 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 00ce44bb..64f58c18 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDeployRequest */ -public class ContractDeployRequestTest { +class ContractDeployRequestTest { private final ContractDeployRequest model = new ContractDeployRequest(); /** Model tests for ContractDeployRequest */ @Test - public void testContractDeployRequest() { + void testContractDeployRequest() { // TODO: test ContractDeployRequest } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'constructorParameters' */ @Test - public void constructorParametersTest() { + void constructorParametersTest() { // TODO: test constructorParameters } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDeployResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDeployResponseTest.java index 0c26737a..a4efbc5c 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDeployResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDeployResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDeployResponse */ -public class ContractDeployResponseTest { +class ContractDeployResponseTest { private final ContractDeployResponse model = new ContractDeployResponse(); /** Model tests for ContractDeployResponse */ @Test - public void testContractDeployResponse() { + void testContractDeployResponse() { // TODO: test ContractDeployResponse } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDocTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDocTest.java index 959cca8b..1cfba282 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDocTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDocTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractDoc */ -public class ContractDocTest { +class ContractDocTest { private final ContractDoc model = new ContractDoc(); /** Model tests for ContractDoc */ @Test - public void testContractDoc() { + void testContractDoc() { // TODO: test ContractDoc } /** Test the property 'details' */ @Test - public void detailsTest() { + void detailsTest() { // TODO: test details } /** Test the property 'events' */ @Test - public void eventsTest() { + void eventsTest() { // TODO: test events } /** Test the property 'kind' */ @Test - public void kindTest() { + void kindTest() { // TODO: test kind } /** Test the property 'methods' */ @Test - public void methodsTest() { + void methodsTest() { // TODO: test methods } /** Test the property 'version' */ @Test - public void versionTest() { + void versionTest() { // TODO: test version } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractMetadataDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ContractMetadataDtoTest.java index 617b1be3..d2c18f6e 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractMetadataDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractMetadataDtoTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractMetadataDto */ -public class ContractMetadataDtoTest { +class ContractMetadataDtoTest { private final ContractMetadataDto model = new ContractMetadataDto(); /** Model tests for ContractMetadataDto */ @Test - public void testContractMetadataDto() { + void testContractMetadataDto() { // TODO: test ContractMetadataDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'contractTemplateId' */ @Test - public void contractTemplateIdTest() { + void contractTemplateIdTest() { // TODO: test contractTemplateId } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java new file mode 100644 index 00000000..0348ece9 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..85387a6c --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/ContractTemplateDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ContractTemplateDtoTest.java index 570fe58b..b31d5b3b 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractTemplateDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractTemplateDtoTest.java @@ -13,99 +13,99 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractTemplateDto */ -public class ContractTemplateDtoTest { +class ContractTemplateDtoTest { private final ContractTemplateDto model = new ContractTemplateDto(); /** Model tests for ContractTemplateDto */ @Test - public void testContractTemplateDto() { + void testContractTemplateDto() { // TODO: test ContractTemplateDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'longDescription' */ @Test - public void longDescriptionTest() { + void longDescriptionTest() { // TODO: test longDescription } /** Test the property 'abi' */ @Test - public void abiTest() { + void abiTest() { // TODO: test abi } /** Test the property 'attributes' */ @Test - public void attributesTest() { + void attributesTest() { // TODO: test attributes } /** Test the property 'docs' */ @Test - public void docsTest() { + void docsTest() { // TODO: test docs } /** Test the property 'owner' */ @Test - public void ownerTest() { + void ownerTest() { // TODO: test owner } /** Test the property 'vendor' */ @Test - public void vendorTest() { + void vendorTest() { // TODO: test vendor } /** Test the property 'isPublic' */ @Test - public void isPublicTest() { + void isPublicTest() { // TODO: test isPublic } /** Test the property 'canDeploy' */ @Test - public void canDeployTest() { + void canDeployTest() { // TODO: test canDeploy } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'implementationContractId' */ @Test - public void implementationContractIdTest() { + void implementationContractIdTest() { // TODO: test implementationContractId } /** Test the property 'initializationPhase' */ @Test - public void initializationPhaseTest() { + void initializationPhaseTest() { // TODO: test initializationPhase } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java index 53dfd83b..f36a44c8 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java @@ -13,75 +13,75 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractUploadRequest */ -public class ContractUploadRequestTest { +class ContractUploadRequestTest { private final ContractUploadRequest model = new ContractUploadRequest(); /** Model tests for ContractUploadRequest */ @Test - public void testContractUploadRequest() { + void testContractUploadRequest() { // TODO: test ContractUploadRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'longDescription' */ @Test - public void longDescriptionTest() { + void longDescriptionTest() { // TODO: test longDescription } /** Test the property 'bytecode' */ @Test - public void bytecodeTest() { + void bytecodeTest() { // TODO: test bytecode } /** Test the property 'sourcecode' */ @Test - public void sourcecodeTest() { + void sourcecodeTest() { // TODO: test sourcecode } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'docs' */ @Test - public void docsTest() { + void docsTest() { // TODO: test docs } /** Test the property 'abi' */ @Test - public void abiTest() { + void abiTest() { // TODO: test abi } /** Test the property 'attributes' */ @Test - public void attributesTest() { + void attributesTest() { // TODO: test attributes } /** Test the property 'protocol' */ @Test - public void protocolTest() { + 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 index cdfc9f6e..61a5eaa2 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ContractWithAbiDto */ -public class ContractWithAbiDtoTest { +class ContractWithAbiDtoTest { private final ContractWithAbiDto model = new ContractWithAbiDto(); /** Model tests for ContractWithAbiDto */ @Test - public void testContractWithAbiDto() { + void testContractWithAbiDto() { // TODO: test ContractWithAbiDto } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'abi' */ @Test - public void abiTest() { + void abiTest() { // TODO: test abi } /** Test the property 'isProxy' */ @Test - public void isProxyTest() { + void isProxyTest() { // TODO: test isProxy } /** Test the property 'implementation' */ @Test - public void implementationTest() { + void implementationTest() { // TODO: test implementation } /** Test the property 'isPublic' */ @Test - public void isPublicTest() { + void isPublicTest() { // TODO: test isPublic } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionConfigOperationTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionConfigOperationTest.java index 3bd644b2..e03d25eb 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionConfigOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionConfigOperationTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionConfigOperation */ -public class ConversionConfigOperationTest { +class ConversionConfigOperationTest { private final ConversionConfigOperation model = new ConversionConfigOperation(); /** Model tests for ConversionConfigOperation */ @Test - public void testConversionConfigOperation() { + void testConversionConfigOperation() { // TODO: test ConversionConfigOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationConfigParamsTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationConfigParamsTest.java index 84e2ec7b..6663c0ae 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationConfigParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationConfigParamsTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationConfigParams */ -public class ConversionOperationConfigParamsTest { +class ConversionOperationConfigParamsTest { private final ConversionOperationConfigParams model = new ConversionOperationConfigParams(); /** Model tests for ConversionOperationConfigParams */ @Test - public void testConversionOperationConfigParams() { + void testConversionOperationConfigParams() { // TODO: test ConversionOperationConfigParams } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'srcAssetId' */ @Test - public void srcAssetIdTest() { + void srcAssetIdTest() { // TODO: test srcAssetId } /** Test the property 'destAssetId' */ @Test - public void destAssetIdTest() { + void destAssetIdTest() { // TODO: test destAssetId } /** Test the property 'slippageBasisPoints' */ @Test - public void slippageBasisPointsTest() { + void slippageBasisPointsTest() { // TODO: test slippageBasisPoints } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutputTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutputTest.java index 256859fa..efc58c19 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutputTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationExecutionOutput */ -public class ConversionOperationExecutionOutputTest { +class ConversionOperationExecutionOutputTest { private final ConversionOperationExecutionOutput model = new ConversionOperationExecutionOutput(); /** Model tests for ConversionOperationExecutionOutput */ @Test - public void testConversionOperationExecutionOutput() { + void testConversionOperationExecutionOutput() { // TODO: test ConversionOperationExecutionOutput } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'conversionRate' */ @Test - public void conversionRateTest() { + void conversionRateTest() { // TODO: test conversionRate } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParamsTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParamsTest.java index f4d3f3f1..eace726f 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsExecutionParamsTest.java @@ -13,46 +13,46 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationExecutionParamsExecutionParams */ -public class ConversionOperationExecutionParamsExecutionParamsTest { +class ConversionOperationExecutionParamsExecutionParamsTest { private final ConversionOperationExecutionParamsExecutionParams model = new ConversionOperationExecutionParamsExecutionParams(); /** Model tests for ConversionOperationExecutionParamsExecutionParams */ @Test - public void testConversionOperationExecutionParamsExecutionParams() { + void testConversionOperationExecutionParamsExecutionParams() { // TODO: test ConversionOperationExecutionParamsExecutionParams } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'srcAssetId' */ @Test - public void srcAssetIdTest() { + void srcAssetIdTest() { // TODO: test srcAssetId } /** Test the property 'destAssetId' */ @Test - public void destAssetIdTest() { + void destAssetIdTest() { // TODO: test destAssetId } /** Test the property 'slippageBasisPoints' */ @Test - public void slippageBasisPointsTest() { + void slippageBasisPointsTest() { // TODO: test slippageBasisPoints } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsTest.java index 45ebab0e..6ed83327 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionParamsTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationExecutionParams */ -public class ConversionOperationExecutionParamsTest { +class ConversionOperationExecutionParamsTest { private final ConversionOperationExecutionParams model = new ConversionOperationExecutionParams(); /** Model tests for ConversionOperationExecutionParams */ @Test - public void testConversionOperationExecutionParams() { + void testConversionOperationExecutionParams() { // TODO: test ConversionOperationExecutionParams } /** Test the property 'configOperationId' */ @Test - public void configOperationIdTest() { + void configOperationIdTest() { // TODO: test configOperationId } /** Test the property 'executionParams' */ @Test - public void executionParamsTest() { + void executionParamsTest() { // TODO: test executionParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionTest.java index 3496cf0c..24c13dab 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationExecution */ -public class ConversionOperationExecutionTest { +class ConversionOperationExecutionTest { private final ConversionOperationExecution model = new ConversionOperationExecution(); /** Model tests for ConversionOperationExecution */ @Test - public void testConversionOperationExecution() { + void testConversionOperationExecution() { // TODO: test ConversionOperationExecution } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'startedAt' */ @Test - public void startedAtTest() { + void startedAtTest() { // TODO: test startedAt } /** Test the property 'finishedAt' */ @Test - public void finishedAtTest() { + void finishedAtTest() { // TODO: test finishedAt } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationFailureTest.java index 69ab3f14..2a072b9c 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationFailure */ -public class ConversionOperationFailureTest { +class ConversionOperationFailureTest { private final ConversionOperationFailure model = new ConversionOperationFailure(); /** Model tests for ConversionOperationFailure */ @Test - public void testConversionOperationFailure() { + void testConversionOperationFailure() { // TODO: test ConversionOperationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutputTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutputTest.java index 06f4c77c..1b035927 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewOutputTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationPreviewOutput */ -public class ConversionOperationPreviewOutputTest { +class ConversionOperationPreviewOutputTest { private final ConversionOperationPreviewOutput model = new ConversionOperationPreviewOutput(); /** Model tests for ConversionOperationPreviewOutput */ @Test - public void testConversionOperationPreviewOutput() { + void testConversionOperationPreviewOutput() { // TODO: test ConversionOperationPreviewOutput } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'conversionRate' */ @Test - public void conversionRateTest() { + void conversionRateTest() { // TODO: test conversionRate } /** Test the property 'timeSeconds' */ @Test - public void timeSecondsTest() { + void timeSecondsTest() { // TODO: test timeSeconds } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewTest.java index 0daa18a8..b0fe2d37 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationPreviewTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationPreview */ -public class ConversionOperationPreviewTest { +class ConversionOperationPreviewTest { private final ConversionOperationPreview model = new ConversionOperationPreview(); /** Model tests for ConversionOperationPreview */ @Test - public void testConversionOperationPreview() { + void testConversionOperationPreview() { // TODO: test ConversionOperationPreview } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionOperationTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionOperationTypeTest.java index 612d0978..c7e65aac 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionOperationTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionOperationTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionOperationType */ -public class ConversionOperationTypeTest { +class ConversionOperationTypeTest { /** Model tests for ConversionOperationType */ @Test - public void testConversionOperationType() { + void testConversionOperationType() { // TODO: test ConversionOperationType } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConversionValidationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/ConversionValidationFailureTest.java index 3d8f82c7..326e07d1 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConversionValidationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConversionValidationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConversionValidationFailure */ -public class ConversionValidationFailureTest { +class ConversionValidationFailureTest { private final ConversionValidationFailure model = new ConversionValidationFailure(); /** Model tests for ConversionValidationFailure */ @Test - public void testConversionValidationFailure() { + void testConversionValidationFailure() { // TODO: test ConversionValidationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConvertAssetsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ConvertAssetsRequestTest.java index e3821df0..e149a13d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConvertAssetsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConvertAssetsRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConvertAssetsRequest */ -public class ConvertAssetsRequestTest { +class ConvertAssetsRequestTest { private final ConvertAssetsRequest model = new ConvertAssetsRequest(); /** Model tests for ConvertAssetsRequest */ @Test - public void testConvertAssetsRequest() { + void testConvertAssetsRequest() { // TODO: test ConvertAssetsRequest } /** Test the property 'srcAsset' */ @Test - public void srcAssetTest() { + void srcAssetTest() { // TODO: test srcAsset } /** Test the property 'destAsset' */ @Test - public void destAssetTest() { + void destAssetTest() { // TODO: test destAsset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/ConvertAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConvertAssetsResponseTest.java index b92b8b01..bc7921cd 100644 --- a/src/test/java/com/fireblocks/sdk/model/ConvertAssetsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ConvertAssetsResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ConvertAssetsResponse */ -public class ConvertAssetsResponseTest { +class ConvertAssetsResponseTest { private final ConvertAssetsResponse model = new ConvertAssetsResponse(); /** Model tests for ConvertAssetsResponse */ @Test - public void testConvertAssetsResponse() { + void testConvertAssetsResponse() { // TODO: test ConvertAssetsResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/CosignerTest.java b/src/test/java/com/fireblocks/sdk/model/CosignerTest.java index 607d20a8..ce80cadc 100644 --- a/src/test/java/com/fireblocks/sdk/model/CosignerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CosignerTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Cosigner */ -public class CosignerTest { +class CosignerTest { private final Cosigner model = new Cosigner(); /** Model tests for Cosigner */ @Test - public void testCosigner() { + void testCosigner() { // TODO: test Cosigner } /** Test the property 'archived' */ @Test - public void archivedTest() { + void archivedTest() { // TODO: test archived } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'version' */ @Test - public void versionTest() { + void versionTest() { // TODO: test version } } diff --git a/src/test/java/com/fireblocks/sdk/model/CosignersPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CosignersPaginatedResponseTest.java index f97115d4..8de139a5 100644 --- a/src/test/java/com/fireblocks/sdk/model/CosignersPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CosignersPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CosignersPaginatedResponse */ -public class CosignersPaginatedResponseTest { +class CosignersPaginatedResponseTest { private final CosignersPaginatedResponse model = new CosignersPaginatedResponse(); /** Model tests for CosignersPaginatedResponse */ @Test - public void testCosignersPaginatedResponse() { + void testCosignersPaginatedResponse() { // TODO: test CosignersPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateAPIUserTest.java b/src/test/java/com/fireblocks/sdk/model/CreateAPIUserTest.java index 935167fc..26240855 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateAPIUserTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateAPIUserTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateAPIUser */ -public class CreateAPIUserTest { +class CreateAPIUserTest { private final CreateAPIUser model = new CreateAPIUser(); /** Model tests for CreateAPIUser */ @Test - public void testCreateAPIUser() { + void testCreateAPIUser() { // TODO: test CreateAPIUser } /** Test the property 'role' */ @Test - public void roleTest() { + void roleTest() { // TODO: test role } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'csrPem' */ @Test - public void csrPemTest() { + void csrPemTest() { // TODO: test csrPem } /** Test the property 'coSignerSetupType' */ @Test - public void coSignerSetupTypeTest() { + void coSignerSetupTypeTest() { // TODO: test coSignerSetupType } /** Test the property 'coSignerSetupIsFirstUser' */ @Test - public void coSignerSetupIsFirstUserTest() { + void coSignerSetupIsFirstUserTest() { // TODO: test coSignerSetupIsFirstUser } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateAddressRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateAddressRequestTest.java index 03796d3d..dbabc579 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateAddressRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateAddressRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateAddressRequest */ -public class CreateAddressRequestTest { +class CreateAddressRequestTest { private final CreateAddressRequest model = new CreateAddressRequest(); /** Model tests for CreateAddressRequest */ @Test - public void testCreateAddressRequest() { + void testCreateAddressRequest() { // TODO: test CreateAddressRequest } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateAddressResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CreateAddressResponseTest.java index 2f06d393..76ab9686 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateAddressResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateAddressResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateAddressResponse */ -public class CreateAddressResponseTest { +class CreateAddressResponseTest { private final CreateAddressResponse model = new CreateAddressResponse(); /** Model tests for CreateAddressResponse */ @Test - public void testCreateAddressResponse() { + void testCreateAddressResponse() { // TODO: test CreateAddressResponse } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'legacyAddress' */ @Test - public void legacyAddressTest() { + void legacyAddressTest() { // TODO: test legacyAddress } /** Test the property 'enterpriseAddress' */ @Test - public void enterpriseAddressTest() { + void enterpriseAddressTest() { // TODO: test enterpriseAddress } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'bip44AddressIndex' */ @Test - public void bip44AddressIndexTest() { + void bip44AddressIndexTest() { // TODO: test bip44AddressIndex } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateAssetsBulkRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateAssetsBulkRequestTest.java index 02b3b8d1..f80c1978 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateAssetsBulkRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateAssetsBulkRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateAssetsBulkRequest */ -public class CreateAssetsBulkRequestTest { +class CreateAssetsBulkRequestTest { private final CreateAssetsBulkRequest model = new CreateAssetsBulkRequest(); /** Model tests for CreateAssetsBulkRequest */ @Test - public void testCreateAssetsBulkRequest() { + void testCreateAssetsBulkRequest() { // TODO: test CreateAssetsBulkRequest } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'vaultAccountIdFrom' */ @Test - public void vaultAccountIdFromTest() { + void vaultAccountIdFromTest() { // TODO: test vaultAccountIdFrom } /** Test the property 'vaultAccountIdTo' */ @Test - public void vaultAccountIdToTest() { + void vaultAccountIdToTest() { // TODO: test vaultAccountIdTo } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateAssetsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateAssetsRequestTest.java index 6b5062df..03ead3a3 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateAssetsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateAssetsRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateAssetsRequest */ -public class CreateAssetsRequestTest { +class CreateAssetsRequestTest { private final CreateAssetsRequest model = new CreateAssetsRequest(); /** Model tests for CreateAssetsRequest */ @Test - public void testCreateAssetsRequest() { + void testCreateAssetsRequest() { // TODO: test CreateAssetsRequest } /** Test the property 'eosAccountName' */ @Test - public void eosAccountNameTest() { + void eosAccountNameTest() { // TODO: test eosAccountName } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConfigOperationRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateConfigOperationRequestTest.java index 31f95c21..e885ade3 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConfigOperationRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateConfigOperationRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateConfigOperationRequest */ -public class CreateConfigOperationRequestTest { +class CreateConfigOperationRequestTest { private final CreateConfigOperationRequest model = new CreateConfigOperationRequest(); /** Model tests for CreateConfigOperationRequest */ @Test - public void testCreateConfigOperationRequest() { + void testCreateConfigOperationRequest() { // TODO: test CreateConfigOperationRequest } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConnectionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateConnectionRequestTest.java index 90955341..ebdfcf08 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConnectionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateConnectionRequestTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateConnectionRequest */ -public class CreateConnectionRequestTest { +class CreateConnectionRequestTest { private final CreateConnectionRequest model = new CreateConnectionRequest(); /** Model tests for CreateConnectionRequest */ @Test - public void testCreateConnectionRequest() { + void testCreateConnectionRequest() { // TODO: test CreateConnectionRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'uri' */ @Test - public void uriTest() { + void uriTest() { // TODO: test uri } /** Test the property 'chainIds' */ @Test - public void chainIdsTest() { + void chainIdsTest() { // TODO: test chainIds } /** Test the property 'ncwId' */ @Test - public void ncwIdTest() { + void ncwIdTest() { // TODO: test ncwId } /** Test the property 'ncwAccountId' */ @Test - public void ncwAccountIdTest() { + void ncwAccountIdTest() { // TODO: test ncwAccountId } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConnectionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CreateConnectionResponseTest.java index 394fabfc..5af5f266 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConnectionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateConnectionResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateConnectionResponse */ -public class CreateConnectionResponseTest { +class CreateConnectionResponseTest { private final CreateConnectionResponse model = new CreateConnectionResponse(); /** Model tests for CreateConnectionResponse */ @Test - public void testCreateConnectionResponse() { + void testCreateConnectionResponse() { // TODO: test CreateConnectionResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'sessionMetadata' */ @Test - public void sessionMetadataTest() { + void sessionMetadataTest() { // TODO: test sessionMetadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConsoleUserTest.java b/src/test/java/com/fireblocks/sdk/model/CreateConsoleUserTest.java index 0e14623b..3eac8b2d 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConsoleUserTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateConsoleUserTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateConsoleUser */ -public class CreateConsoleUserTest { +class CreateConsoleUserTest { private final CreateConsoleUser model = new CreateConsoleUser(); /** Model tests for CreateConsoleUser */ @Test - public void testCreateConsoleUser() { + void testCreateConsoleUser() { // TODO: test CreateConsoleUser } /** Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } /** Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } /** Test the property 'role' */ @Test - public void roleTest() { + void roleTest() { // TODO: test role } /** Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateContractRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateContractRequestTest.java index 0c1dcefe..88a9d864 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateContractRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateContractRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateContractRequest */ -public class CreateContractRequestTest { +class CreateContractRequestTest { private final CreateContractRequest model = new CreateContractRequest(); /** Model tests for CreateContractRequest */ @Test - public void testCreateContractRequest() { + void testCreateContractRequest() { // TODO: test CreateContractRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequestTest.java index 005c31ca..93fe89d2 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequestTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateConversionConfigOperationRequest */ -public class CreateConversionConfigOperationRequestTest { +class CreateConversionConfigOperationRequestTest { private final CreateConversionConfigOperationRequest model = new CreateConversionConfigOperationRequest(); /** Model tests for CreateConversionConfigOperationRequest */ @Test - public void testCreateConversionConfigOperationRequest() { + void testCreateConversionConfigOperationRequest() { // TODO: test CreateConversionConfigOperationRequest } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequestTest.java index dd40ee47..03b9e68f 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequestTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateDisbursementConfigOperationRequest */ -public class CreateDisbursementConfigOperationRequestTest { +class CreateDisbursementConfigOperationRequestTest { private final CreateDisbursementConfigOperationRequest model = new CreateDisbursementConfigOperationRequest(); /** Model tests for CreateDisbursementConfigOperationRequest */ @Test - public void testCreateDisbursementConfigOperationRequest() { + void testCreateDisbursementConfigOperationRequest() { // TODO: test CreateDisbursementConfigOperationRequest } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateInternalTransferRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateInternalTransferRequestTest.java index 469b5f25..489d765b 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateInternalTransferRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateInternalTransferRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateInternalTransferRequest */ -public class CreateInternalTransferRequestTest { +class CreateInternalTransferRequestTest { private final CreateInternalTransferRequest model = new CreateInternalTransferRequest(); /** Model tests for CreateInternalTransferRequest */ @Test - public void testCreateInternalTransferRequest() { + void testCreateInternalTransferRequest() { // TODO: test CreateInternalTransferRequest } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'sourceType' */ @Test - public void sourceTypeTest() { + void sourceTypeTest() { // TODO: test sourceType } /** Test the property 'destType' */ @Test - public void destTypeTest() { + void destTypeTest() { // TODO: test destType } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequestTest.java index 41a74c6e..8c512e1e 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateInternalWalletAssetRequest */ -public class CreateInternalWalletAssetRequestTest { +class CreateInternalWalletAssetRequestTest { private final CreateInternalWalletAssetRequest model = new CreateInternalWalletAssetRequest(); /** Model tests for CreateInternalWalletAssetRequest */ @Test - public void testCreateInternalWalletAssetRequest() { + void testCreateInternalWalletAssetRequest() { // TODO: test CreateInternalWalletAssetRequest } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParamsTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParamsTest.java deleted file mode 100644 index df2524eb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestCreateParamsTest.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.Test; - -/** Model tests for CreateMultichainTokenRequestCreateParams */ -public class CreateMultichainTokenRequestCreateParamsTest { - private final CreateMultichainTokenRequestCreateParams model = - new CreateMultichainTokenRequestCreateParams(); - - /** Model tests for CreateMultichainTokenRequestCreateParams */ - @Test - public void testCreateMultichainTokenRequestCreateParams() { - // TODO: test CreateMultichainTokenRequestCreateParams - } - - /** Test the property 'contractId' */ - @Test - public void contractIdTest() { - // TODO: test contractId - } - - /** Test the property 'deployFunctionParams' */ - @Test - public void deployFunctionParamsTest() { - // TODO: test deployFunctionParams - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java index aaf1bd37..4e750bdd 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateMultichainTokenRequest */ -public class CreateMultichainTokenRequestTest { +class CreateMultichainTokenRequestTest { private final CreateMultichainTokenRequest model = new CreateMultichainTokenRequest(); /** Model tests for CreateMultichainTokenRequest */ @Test - public void testCreateMultichainTokenRequest() { + void testCreateMultichainTokenRequest() { // TODO: test CreateMultichainTokenRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'createParams' */ @Test - public void createParamsTest() { + void createParamsTest() { // TODO: test createParams } /** Test the property 'salt' */ @Test - public void saltTest() { + void saltTest() { // TODO: test salt } /** Test the property 'chains' */ @Test - public void chainsTest() { + void chainsTest() { // TODO: test chains } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + 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 97c6fe90..56fe7dbe 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateMultipleAccountsRequest */ -public class CreateMultipleAccountsRequestTest { +class CreateMultipleAccountsRequestTest { private final CreateMultipleAccountsRequest model = new CreateMultipleAccountsRequest(); /** Model tests for CreateMultipleAccountsRequest */ @Test - public void testCreateMultipleAccountsRequest() { + void testCreateMultipleAccountsRequest() { // TODO: test CreateMultipleAccountsRequest } /** Test the property 'count' */ @Test - public void countTest() { + void countTest() { // TODO: test count } /** Test the property 'baseAssetIds' */ @Test - public void baseAssetIdsTest() { + void baseAssetIdsTest() { // TODO: test baseAssetIds } /** Test the property 'names' */ @Test - public void namesTest() { + void namesTest() { // TODO: test names } /** Test the property 'vaultAccountNamesStartingIndex' */ @Test - public void vaultAccountNamesStartingIndexTest() { + void vaultAccountNamesStartingIndexTest() { // TODO: test vaultAccountNamesStartingIndex } /** Test the property 'prefix' */ @Test - public void prefixTest() { + void prefixTest() { // TODO: test prefix } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java index f8d2a991..b209ae51 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateMultipleDepositAddressesJobStatus */ -public class CreateMultipleDepositAddressesJobStatusTest { +class CreateMultipleDepositAddressesJobStatusTest { private final CreateMultipleDepositAddressesJobStatus model = new CreateMultipleDepositAddressesJobStatus(); /** Model tests for CreateMultipleDepositAddressesJobStatus */ @Test - public void testCreateMultipleDepositAddressesJobStatus() { + void testCreateMultipleDepositAddressesJobStatus() { // TODO: test CreateMultipleDepositAddressesJobStatus } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'addresses' */ @Test - public void addressesTest() { + void addressesTest() { // TODO: test addresses } /** Test the property 'errorMessage' */ @Test - public void errorMessageTest() { + 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 index 522c77db..ce39772a 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java @@ -13,52 +13,52 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateMultipleDepositAddressesRequest */ -public class CreateMultipleDepositAddressesRequestTest { +class CreateMultipleDepositAddressesRequestTest { private final CreateMultipleDepositAddressesRequest model = new CreateMultipleDepositAddressesRequest(); /** Model tests for CreateMultipleDepositAddressesRequest */ @Test - public void testCreateMultipleDepositAddressesRequest() { + void testCreateMultipleDepositAddressesRequest() { // TODO: test CreateMultipleDepositAddressesRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'count' */ @Test - public void countTest() { + void countTest() { // TODO: test count } /** Test the property 'descriptions' */ @Test - public void descriptionsTest() { + void descriptionsTest() { // TODO: test descriptions } /** Test the property 'vaultAccountToCopyDescFrom' */ @Test - public void vaultAccountToCopyDescFromTest() { + void vaultAccountToCopyDescFromTest() { // TODO: test vaultAccountToCopyDescFrom } /** Test the property 'vaultAccountToCopyDescFromIndex' */ @Test - public void vaultAccountToCopyDescFromIndexTest() { + 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 index 8af775ea..fd781989 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateMultipleVaultAccountsJobStatus */ -public class CreateMultipleVaultAccountsJobStatusTest { +class CreateMultipleVaultAccountsJobStatusTest { private final CreateMultipleVaultAccountsJobStatus model = new CreateMultipleVaultAccountsJobStatus(); /** Model tests for CreateMultipleVaultAccountsJobStatus */ @Test - public void testCreateMultipleVaultAccountsJobStatus() { + void testCreateMultipleVaultAccountsJobStatus() { // TODO: test CreateMultipleVaultAccountsJobStatus } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'vaultAccounts' */ @Test - public void vaultAccountsTest() { + void vaultAccountsTest() { // TODO: test vaultAccounts } /** Test the property 'errorMessage' */ @Test - public void errorMessageTest() { + void errorMessageTest() { // TODO: test errorMessage } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateNcwConnectionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateNcwConnectionRequestTest.java index b82afd75..f2cef125 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateNcwConnectionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateNcwConnectionRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateNcwConnectionRequest */ -public class CreateNcwConnectionRequestTest { +class CreateNcwConnectionRequestTest { private final CreateNcwConnectionRequest model = new CreateNcwConnectionRequest(); /** Model tests for CreateNcwConnectionRequest */ @Test - public void testCreateNcwConnectionRequest() { + void testCreateNcwConnectionRequest() { // TODO: test CreateNcwConnectionRequest } /** Test the property 'ncwId' */ @Test - public void ncwIdTest() { + void ncwIdTest() { // TODO: test ncwId } /** Test the property 'ncwAccountId' */ @Test - public void ncwAccountIdTest() { + void ncwAccountIdTest() { // TODO: test ncwAccountId } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'uri' */ @Test - public void uriTest() { + void uriTest() { // TODO: test uri } /** Test the property 'chainIds' */ @Test - public void chainIdsTest() { + void chainIdsTest() { // TODO: test chainIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateNetworkIdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateNetworkIdRequestTest.java index d1d81aca..b8fc9d0f 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateNetworkIdRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateNetworkIdRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateNetworkIdRequest */ -public class CreateNetworkIdRequestTest { +class CreateNetworkIdRequestTest { private final CreateNetworkIdRequest model = new CreateNetworkIdRequest(); /** Model tests for CreateNetworkIdRequest */ @Test - public void testCreateNetworkIdRequest() { + void testCreateNetworkIdRequest() { // TODO: test CreateNetworkIdRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'routingPolicy' */ @Test - public void routingPolicyTest() { + void routingPolicyTest() { // TODO: test routingPolicy } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreatePayoutRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreatePayoutRequestTest.java index d3d89413..ed6ef302 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreatePayoutRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreatePayoutRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreatePayoutRequest */ -public class CreatePayoutRequestTest { +class CreatePayoutRequestTest { private final CreatePayoutRequest model = new CreatePayoutRequest(); /** Model tests for CreatePayoutRequest */ @Test - public void testCreatePayoutRequest() { + void testCreatePayoutRequest() { // TODO: test CreatePayoutRequest } /** Test the property 'paymentAccount' */ @Test - public void paymentAccountTest() { + void paymentAccountTest() { // TODO: test paymentAccount } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java b/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java index 6f7a16a3..b083d6a1 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateSigningKeyDtoProofOfOwnership */ -public class CreateSigningKeyDtoProofOfOwnershipTest { +class CreateSigningKeyDtoProofOfOwnershipTest { private final CreateSigningKeyDtoProofOfOwnership model = new CreateSigningKeyDtoProofOfOwnership(); /** Model tests for CreateSigningKeyDtoProofOfOwnership */ @Test - public void testCreateSigningKeyDtoProofOfOwnership() { + void testCreateSigningKeyDtoProofOfOwnership() { // TODO: test CreateSigningKeyDtoProofOfOwnership } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'signature' */ @Test - public void signatureTest() { + 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 dfa752a3..8c7bc75c 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateSigningKeyDto */ -public class CreateSigningKeyDtoTest { +class CreateSigningKeyDtoTest { private final CreateSigningKeyDto model = new CreateSigningKeyDto(); /** Model tests for CreateSigningKeyDto */ @Test - public void testCreateSigningKeyDto() { + void testCreateSigningKeyDto() { // TODO: test CreateSigningKeyDto } /** Test the property 'signingDeviceKeyId' */ @Test - public void signingDeviceKeyIdTest() { + void signingDeviceKeyIdTest() { // TODO: test signingDeviceKeyId } /** Test the property 'signedCertPem' */ @Test - public void signedCertPemTest() { + void signedCertPemTest() { // TODO: test signedCertPem } /** Test the property 'agentUserId' */ @Test - public void agentUserIdTest() { + void agentUserIdTest() { // TODO: test agentUserId } /** Test the property 'proofOfOwnership' */ @Test - public void proofOfOwnershipTest() { + 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 index b1d5fe97..dfb41b34 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateTagRequest */ -public class CreateTagRequestTest { +class CreateTagRequestTest { private final CreateTagRequest model = new CreateTagRequest(); /** Model tests for CreateTagRequest */ @Test - public void testCreateTagRequest() { + void testCreateTagRequest() { // TODO: test CreateTagRequest } /** Test the property 'label' */ @Test - public void labelTest() { + void labelTest() { // TODO: test label } /** Test the property 'description' */ @Test - public void descriptionTest() { + 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 c3a67fbe..76f5f5d6 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateTokenRequestDtoCreateParams */ -public class CreateTokenRequestDtoCreateParamsTest { +class CreateTokenRequestDtoCreateParamsTest { private final CreateTokenRequestDtoCreateParams model = new CreateTokenRequestDtoCreateParams(); /** Model tests for CreateTokenRequestDtoCreateParams */ @Test - public void testCreateTokenRequestDtoCreateParams() { + void testCreateTokenRequestDtoCreateParams() { // TODO: test CreateTokenRequestDtoCreateParams } /** Test the property 'contractId' */ @Test - public void contractIdTest() { + void contractIdTest() { // TODO: test contractId } /** Test the property 'deployFunctionParams' */ @Test - public void deployFunctionParamsTest() { + void deployFunctionParamsTest() { // TODO: test deployFunctionParams } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'issuerAddress' */ @Test - public void issuerAddressTest() { + void issuerAddressTest() { // TODO: test issuerAddress } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + 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 f7b46647..94b46707 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateTokenRequestDto */ -public class CreateTokenRequestDtoTest { +class CreateTokenRequestDtoTest { private final CreateTokenRequestDto model = new CreateTokenRequestDto(); /** Model tests for CreateTokenRequestDto */ @Test - public void testCreateTokenRequestDto() { + void testCreateTokenRequestDto() { // TODO: test CreateTokenRequestDto } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'createParams' */ @Test - public void createParamsTest() { + void createParamsTest() { // TODO: test createParams } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTransactionResponseTest.java index c39da0a8..ccb8aa17 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTransactionResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateTransactionResponse */ -public class CreateTransactionResponseTest { +class CreateTransactionResponseTest { private final CreateTransactionResponse model = new CreateTransactionResponse(); /** Model tests for CreateTransactionResponse */ @Test - public void testCreateTransactionResponse() { + void testCreateTransactionResponse() { // TODO: test CreateTransactionResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'systemMessages' */ @Test - public void systemMessagesTest() { + void systemMessagesTest() { // TODO: test systemMessages } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequestTest.java index 7576c934..3304745a 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTransferConfigOperationRequestTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateTransferConfigOperationRequest */ -public class CreateTransferConfigOperationRequestTest { +class CreateTransferConfigOperationRequestTest { private final CreateTransferConfigOperationRequest model = new CreateTransferConfigOperationRequest(); /** Model tests for CreateTransferConfigOperationRequest */ @Test - public void testCreateTransferConfigOperationRequest() { + void testCreateTransferConfigOperationRequest() { // TODO: test CreateTransferConfigOperationRequest } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateUserGroupResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CreateUserGroupResponseTest.java index 76b6292d..a1856c66 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateUserGroupResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateUserGroupResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateUserGroupResponse */ -public class CreateUserGroupResponseTest { +class CreateUserGroupResponseTest { private final CreateUserGroupResponse model = new CreateUserGroupResponse(); /** Model tests for CreateUserGroupResponse */ @Test - public void testCreateUserGroupResponse() { + void testCreateUserGroupResponse() { // TODO: test CreateUserGroupResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'memberIds' */ @Test - public void memberIdsTest() { + void memberIdsTest() { // TODO: test memberIds } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyDtoTest.java index c6920c9c..7216de77 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateValidationKeyDto */ -public class CreateValidationKeyDtoTest { +class CreateValidationKeyDtoTest { private final CreateValidationKeyDto model = new CreateValidationKeyDto(); /** Model tests for CreateValidationKeyDto */ @Test - public void testCreateValidationKeyDto() { + void testCreateValidationKeyDto() { // TODO: test CreateValidationKeyDto } /** Test the property 'publicKeyPem' */ @Test - public void publicKeyPemTest() { + void publicKeyPemTest() { // TODO: test publicKeyPem } /** Test the property 'daysTillExpired' */ @Test - public void daysTillExpiredTest() { + void daysTillExpiredTest() { // TODO: test daysTillExpired } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDtoTest.java index 08f4690c..3bb95211 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDtoTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateValidationKeyResponseDto */ -public class CreateValidationKeyResponseDtoTest { +class CreateValidationKeyResponseDtoTest { private final CreateValidationKeyResponseDto model = new CreateValidationKeyResponseDto(); /** Model tests for CreateValidationKeyResponseDto */ @Test - public void testCreateValidationKeyResponseDto() { + void testCreateValidationKeyResponseDto() { // TODO: test CreateValidationKeyResponseDto } /** Test the property 'validationKey' */ @Test - public void validationKeyTest() { + void validationKeyTest() { // TODO: test validationKey } /** Test the property 'admins' */ @Test - public void adminsTest() { + void adminsTest() { // TODO: test admins } /** Test the property 'approvalThreshold' */ @Test - public void approvalThresholdTest() { + void approvalThresholdTest() { // TODO: test approvalThreshold } /** Test the property 'requestId' */ @Test - public void requestIdTest() { + void requestIdTest() { // TODO: test requestId } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequestTest.java index a9458762..2b0b476f 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequestTest.java @@ -13,40 +13,40 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateVaultAccountConnectionRequest */ -public class CreateVaultAccountConnectionRequestTest { +class CreateVaultAccountConnectionRequestTest { private final CreateVaultAccountConnectionRequest model = new CreateVaultAccountConnectionRequest(); /** Model tests for CreateVaultAccountConnectionRequest */ @Test - public void testCreateVaultAccountConnectionRequest() { + void testCreateVaultAccountConnectionRequest() { // TODO: test CreateVaultAccountConnectionRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'uri' */ @Test - public void uriTest() { + void uriTest() { // TODO: test uri } /** Test the property 'chainIds' */ @Test - public void chainIdsTest() { + void chainIdsTest() { // TODO: test chainIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java index cf290d3b..d1e0801e 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateVaultAccountRequest */ -public class CreateVaultAccountRequestTest { +class CreateVaultAccountRequestTest { private final CreateVaultAccountRequest model = new CreateVaultAccountRequest(); /** Model tests for CreateVaultAccountRequest */ @Test - public void testCreateVaultAccountRequest() { + void testCreateVaultAccountRequest() { // TODO: test CreateVaultAccountRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'hiddenOnUI' */ @Test - public void hiddenOnUITest() { + void hiddenOnUITest() { // TODO: test hiddenOnUI } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'autoFuel' */ @Test - public void autoFuelTest() { + void autoFuelTest() { // TODO: test autoFuel } /** Test the property 'vaultType' */ @Test - public void vaultTypeTest() { + void vaultTypeTest() { // TODO: test vaultType } /** Test the property 'autoAssign' */ @Test - public void autoAssignTest() { + void autoAssignTest() { // TODO: test autoAssign } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java b/src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java index bd823578..0e0276f3 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateVaultAssetResponse */ -public class CreateVaultAssetResponseTest { +class CreateVaultAssetResponseTest { private final CreateVaultAssetResponse model = new CreateVaultAssetResponse(); /** Model tests for CreateVaultAssetResponse */ @Test - public void testCreateVaultAssetResponse() { + void testCreateVaultAssetResponse() { // TODO: test CreateVaultAssetResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'legacyAddress' */ @Test - public void legacyAddressTest() { + void legacyAddressTest() { // TODO: test legacyAddress } /** Test the property 'enterpriseAddress' */ @Test - public void enterpriseAddressTest() { + void enterpriseAddressTest() { // TODO: test enterpriseAddress } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'eosAccountName' */ @Test - public void eosAccountNameTest() { + void eosAccountNameTest() { // TODO: test eosAccountName } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'activationTxId' */ @Test - public void activationTxIdTest() { + void activationTxIdTest() { // TODO: test activationTxId } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java index a6681440..aec89fe8 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateWalletRequest */ -public class CreateWalletRequestTest { +class CreateWalletRequestTest { private final CreateWalletRequest model = new CreateWalletRequest(); /** Model tests for CreateWalletRequest */ @Test - public void testCreateWalletRequest() { + void testCreateWalletRequest() { // TODO: test CreateWalletRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java index 7e3896a7..ddebb268 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateWebhookRequest */ -public class CreateWebhookRequestTest { +class CreateWebhookRequestTest { private final CreateWebhookRequest model = new CreateWebhookRequest(); /** Model tests for CreateWebhookRequest */ @Test - public void testCreateWebhookRequest() { + void testCreateWebhookRequest() { // TODO: test CreateWebhookRequest } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'events' */ @Test - public void eventsTest() { + void eventsTest() { // TODO: test events } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInnerTest.java index 6aaa0264..fa42902b 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInnerTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CreateWorkflowExecutionRequestParamsInner */ -public class CreateWorkflowExecutionRequestParamsInnerTest { +class CreateWorkflowExecutionRequestParamsInnerTest { private final CreateWorkflowExecutionRequestParamsInner model = new CreateWorkflowExecutionRequestParamsInner(); /** Model tests for CreateWorkflowExecutionRequestParamsInner */ @Test - public void testCreateWorkflowExecutionRequestParamsInner() { + void testCreateWorkflowExecutionRequestParamsInner() { // TODO: test CreateWorkflowExecutionRequestParamsInner } /** Test the property 'configOperationId' */ @Test - public void configOperationIdTest() { + void configOperationIdTest() { // TODO: test configOperationId } /** Test the property 'executionParams' */ @Test - public void executionParamsTest() { + void executionParamsTest() { // TODO: test executionParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/CustomRoutingDestTest.java b/src/test/java/com/fireblocks/sdk/model/CustomRoutingDestTest.java index eb595f9e..5e72aa24 100644 --- a/src/test/java/com/fireblocks/sdk/model/CustomRoutingDestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CustomRoutingDestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for CustomRoutingDest */ -public class CustomRoutingDestTest { +class CustomRoutingDestTest { private final CustomRoutingDest model = new CustomRoutingDest(); /** Model tests for CustomRoutingDest */ @Test - public void testCustomRoutingDest() { + void testCustomRoutingDest() { // TODO: test CustomRoutingDest } /** Test the property 'scheme' */ @Test - public void schemeTest() { + void schemeTest() { // TODO: test scheme } /** Test the property 'dstType' */ @Test - public void dstTypeTest() { + void dstTypeTest() { // TODO: test dstType } /** Test the property 'dstId' */ @Test - public void dstIdTest() { + void dstIdTest() { // TODO: test dstId } } diff --git a/src/test/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDestTest.java b/src/test/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDestTest.java index 3cba8c71..a2685345 100644 --- a/src/test/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DefaultNetworkRoutingDest */ -public class DefaultNetworkRoutingDestTest { +class DefaultNetworkRoutingDestTest { private final DefaultNetworkRoutingDest model = new DefaultNetworkRoutingDest(); /** Model tests for DefaultNetworkRoutingDest */ @Test - public void testDefaultNetworkRoutingDest() { + void testDefaultNetworkRoutingDest() { // TODO: test DefaultNetworkRoutingDest } /** Test the property 'scheme' */ @Test - public void schemeTest() { + void schemeTest() { // TODO: test scheme } } diff --git a/src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java b/src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java index 982dde69..1c5d63ec 100644 --- a/src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DelegationSummary */ -public class DelegationSummaryTest { +class DelegationSummaryTest { private final DelegationSummary model = new DelegationSummary(); /** Model tests for DelegationSummary */ @Test - public void testDelegationSummary() { + void testDelegationSummary() { // TODO: test DelegationSummary } /** Test the property 'active' */ @Test - public void activeTest() { + void activeTest() { // TODO: test active } /** Test the property 'inactive' */ @Test - public void inactiveTest() { + void inactiveTest() { // TODO: test inactive } /** Test the property 'rewardsAmount' */ @Test - public void rewardsAmountTest() { + void rewardsAmountTest() { // TODO: test rewardsAmount } /** Test the property 'totalStaked' */ @Test - public void totalStakedTest() { + void totalStakedTest() { // TODO: test totalStaked } } diff --git a/src/test/java/com/fireblocks/sdk/model/DelegationTest.java b/src/test/java/com/fireblocks/sdk/model/DelegationTest.java index c809bd5b..eba7ace9 100644 --- a/src/test/java/com/fireblocks/sdk/model/DelegationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DelegationTest.java @@ -13,123 +13,123 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Delegation */ -public class DelegationTest { +class DelegationTest { private final Delegation model = new Delegation(); /** Model tests for Delegation */ @Test - public void testDelegation() { + void testDelegation() { // TODO: test Delegation } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'validatorName' */ @Test - public void validatorNameTest() { + void validatorNameTest() { // TODO: test validatorName } /** Test the property 'providerName' */ @Test - public void providerNameTest() { + void providerNameTest() { // TODO: test providerName } /** Test the property 'chainDescriptor' */ @Test - public void chainDescriptorTest() { + void chainDescriptorTest() { // TODO: test chainDescriptor } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'rewardsAmount' */ @Test - public void rewardsAmountTest() { + void rewardsAmountTest() { // TODO: test rewardsAmount } /** Test the property 'dateCreated' */ @Test - public void dateCreatedTest() { + void dateCreatedTest() { // TODO: test dateCreated } /** Test the property 'dateUpdated' */ @Test - public void dateUpdatedTest() { + void dateUpdatedTest() { // TODO: test dateUpdated } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'relatedTransactions' */ @Test - public void relatedTransactionsTest() { + void relatedTransactionsTest() { // TODO: test relatedTransactions } /** Test the property 'validatorAddress' */ @Test - public void validatorAddressTest() { + void validatorAddressTest() { // TODO: test validatorAddress } /** Test the property 'providerId' */ @Test - public void providerIdTest() { + void providerIdTest() { // TODO: test providerId } /** Test the property 'availableActions' */ @Test - public void availableActionsTest() { + void availableActionsTest() { // TODO: test availableActions } /** Test the property 'inProgress' */ @Test - public void inProgressTest() { + void inProgressTest() { // TODO: test inProgress } /** Test the property 'inProgressTxId' */ @Test - public void inProgressTxIdTest() { + void inProgressTxIdTest() { // TODO: test inProgressTxId } /** Test the property 'blockchainPositionInfo' */ @Test - public void blockchainPositionInfoTest() { + void blockchainPositionInfoTest() { // TODO: test blockchainPositionInfo } /** Test the property 'relatedRequests' */ @Test - public void relatedRequestsTest() { + void relatedRequestsTest() { // TODO: test relatedRequests } } diff --git a/src/test/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponseTest.java index cd7f87f8..66be27fc 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeleteNetworkConnectionResponse */ -public class DeleteNetworkConnectionResponseTest { +class DeleteNetworkConnectionResponseTest { private final DeleteNetworkConnectionResponse model = new DeleteNetworkConnectionResponse(); /** Model tests for DeleteNetworkConnectionResponse */ @Test - public void testDeleteNetworkConnectionResponse() { + void testDeleteNetworkConnectionResponse() { // TODO: test DeleteNetworkConnectionResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/DeleteNetworkIdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DeleteNetworkIdResponseTest.java index b62c5b9b..ff80c84e 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeleteNetworkIdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeleteNetworkIdResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeleteNetworkIdResponse */ -public class DeleteNetworkIdResponseTest { +class DeleteNetworkIdResponseTest { private final DeleteNetworkIdResponse model = new DeleteNetworkIdResponse(); /** Model tests for DeleteNetworkIdResponse */ @Test - public void testDeleteNetworkIdResponse() { + void testDeleteNetworkIdResponse() { // TODO: test DeleteNetworkIdResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java index 07fe2f0c..c9e90984 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeployLayerZeroAdaptersRequest */ -public class DeployLayerZeroAdaptersRequestTest { +class DeployLayerZeroAdaptersRequestTest { private final DeployLayerZeroAdaptersRequest model = new DeployLayerZeroAdaptersRequest(); /** Model tests for DeployLayerZeroAdaptersRequest */ @Test - public void testDeployLayerZeroAdaptersRequest() { + void testDeployLayerZeroAdaptersRequest() { // TODO: test DeployLayerZeroAdaptersRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'createParams' */ @Test - public void createParamsTest() { + void createParamsTest() { // TODO: test createParams } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'salt' */ @Test - public void saltTest() { + 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 index 35559e45..6873fc61 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeployableAddressResponse */ -public class DeployableAddressResponseTest { +class DeployableAddressResponseTest { private final DeployableAddressResponse model = new DeployableAddressResponse(); /** Model tests for DeployableAddressResponse */ @Test - public void testDeployableAddressResponse() { + void testDeployableAddressResponse() { // TODO: test DeployableAddressResponse } /** Test the property 'address' */ @Test - public void addressTest() { + 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 index 8c292bdf..ba0ee26f 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeployedContractNotFoundError */ -public class DeployedContractNotFoundErrorTest { +class DeployedContractNotFoundErrorTest { private final DeployedContractNotFoundError model = new DeployedContractNotFoundError(); /** Model tests for DeployedContractNotFoundError */ @Test - public void testDeployedContractNotFoundError() { + void testDeployedContractNotFoundError() { // TODO: test DeployedContractNotFoundError } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 e7fb5b83..660d2c71 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeployedContractResponseDto */ -public class DeployedContractResponseDtoTest { +class DeployedContractResponseDtoTest { private final DeployedContractResponseDto model = new DeployedContractResponseDto(); /** Model tests for DeployedContractResponseDto */ @Test - public void testDeployedContractResponseDto() { + void testDeployedContractResponseDto() { // TODO: test DeployedContractResponseDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'contractTemplateId' */ @Test - public void contractTemplateIdTest() { + void contractTemplateIdTest() { // TODO: test contractTemplateId } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } /** Test the property 'gaslessConfig' */ @Test - public void gaslessConfigTest() { + void gaslessConfigTest() { // TODO: test gaslessConfig } /** Test the property 'multichainDeploymentMetadata' */ @Test - public void multichainDeploymentMetadataTest() { + void multichainDeploymentMetadataTest() { // TODO: test multichainDeploymentMetadata } /** Test the property 'solanaConfig' */ @Test - public void solanaConfigTest() { + void solanaConfigTest() { // TODO: test solanaConfig } } diff --git a/src/test/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponseTest.java index 11d3870f..03e65467 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DeployedContractsPaginatedResponse */ -public class DeployedContractsPaginatedResponseTest { +class DeployedContractsPaginatedResponseTest { private final DeployedContractsPaginatedResponse model = new DeployedContractsPaginatedResponse(); /** Model tests for DeployedContractsPaginatedResponse */ @Test - public void testDeployedContractsPaginatedResponse() { + void testDeployedContractsPaginatedResponse() { // TODO: test DeployedContractsPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponseTest.java index 1840bdb3..c3ff2298 100644 --- a/src/test/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DepositFundsFromLinkedDDAResponse */ -public class DepositFundsFromLinkedDDAResponseTest { +class DepositFundsFromLinkedDDAResponseTest { private final DepositFundsFromLinkedDDAResponse model = new DepositFundsFromLinkedDDAResponse(); /** Model tests for DepositFundsFromLinkedDDAResponse */ @Test - public void testDepositFundsFromLinkedDDAResponse() { + void testDepositFundsFromLinkedDDAResponse() { // TODO: test DepositFundsFromLinkedDDAResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java b/src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java similarity index 50% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java rename to src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java index c96c87fa..39cbc288 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java @@ -13,22 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleRawMessageSigningDerivationPath */ -public class PolicyRuleRawMessageSigningDerivationPathTest { - private final PolicyRuleRawMessageSigningDerivationPath model = - new PolicyRuleRawMessageSigningDerivationPath(); +/** Model tests for DerivationPathConfig */ +class DerivationPathConfigTest { + private final DerivationPathConfig model = new DerivationPathConfig(); - /** Model tests for PolicyRuleRawMessageSigningDerivationPath */ + /** Model tests for DerivationPathConfig */ @Test - public void testPolicyRuleRawMessageSigningDerivationPath() { - // TODO: test PolicyRuleRawMessageSigningDerivationPath + void testDerivationPathConfig() { + // TODO: test DerivationPathConfig } /** Test the property 'path' */ @Test - public void pathTest() { + 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/DesignatedSignersConfigTest.java b/src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java new file mode 100644 index 00000000..24420ce2 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..7f5fc1fd --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java @@ -0,0 +1,63 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/DestinationTest.java b/src/test/java/com/fireblocks/sdk/model/DestinationTest.java index 89fadf10..38991d26 100644 --- a/src/test/java/com/fireblocks/sdk/model/DestinationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DestinationTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Destination */ -public class DestinationTest { +class DestinationTest { private final Destination model = new Destination(); /** Model tests for Destination */ @Test - public void testDestination() { + void testDestination() { // TODO: test Destination } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'accountType' */ @Test - public void accountTypeTest() { + void accountTypeTest() { // TODO: test accountType } /** Test the property 'oneTimeAddress' */ @Test - public void oneTimeAddressTest() { + void oneTimeAddressTest() { // TODO: test oneTimeAddress } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } } diff --git a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java index 7c160cee..a04908aa 100644 --- a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java @@ -13,52 +13,52 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DestinationTransferPeerPathResponse */ -public class DestinationTransferPeerPathResponseTest { +class DestinationTransferPeerPathResponseTest { private final DestinationTransferPeerPathResponse model = new DestinationTransferPeerPathResponse(); /** Model tests for DestinationTransferPeerPathResponse */ @Test - public void testDestinationTransferPeerPathResponse() { + void testDestinationTransferPeerPathResponse() { // TODO: test DestinationTransferPeerPathResponse } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'subType' */ @Test - public void subTypeTest() { + void subTypeTest() { // TODO: test subType } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'walletId' */ @Test - public void walletIdTest() { + void walletIdTest() { // TODO: test walletId } /** Test the property 'tradingAccount' */ @Test - public void tradingAccountTest() { + 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 915f3f72..02f3896e 100644 --- a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DestinationTransferPeerPath */ -public class DestinationTransferPeerPathTest { +class DestinationTransferPeerPathTest { private final DestinationTransferPeerPath model = new DestinationTransferPeerPath(); /** Model tests for DestinationTransferPeerPath */ @Test - public void testDestinationTransferPeerPath() { + void testDestinationTransferPeerPath() { // TODO: test DestinationTransferPeerPath } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'subType' */ @Test - public void subTypeTest() { + void subTypeTest() { // TODO: test subType } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'walletId' */ @Test - public void walletIdTest() { + void walletIdTest() { // TODO: test walletId } /** Test the property 'oneTimeAddress' */ @Test - public void oneTimeAddressTest() { + void oneTimeAddressTest() { // TODO: test oneTimeAddress } /** Test the property 'isCollateral' */ @Test - public void isCollateralTest() { + void isCollateralTest() { // TODO: test isCollateral } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementAmountInstructionTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementAmountInstructionTest.java index 89363b9d..8f716930 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementAmountInstructionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementAmountInstructionTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementAmountInstruction */ -public class DisbursementAmountInstructionTest { +class DisbursementAmountInstructionTest { private final DisbursementAmountInstruction model = new DisbursementAmountInstruction(); /** Model tests for DisbursementAmountInstruction */ @Test - public void testDisbursementAmountInstruction() { + void testDisbursementAmountInstruction() { // TODO: test DisbursementAmountInstruction } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementConfigOperationTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementConfigOperationTest.java index f7bd3f99..4ec825cf 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementConfigOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementConfigOperationTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementConfigOperation */ -public class DisbursementConfigOperationTest { +class DisbursementConfigOperationTest { private final DisbursementConfigOperation model = new DisbursementConfigOperation(); /** Model tests for DisbursementConfigOperation */ @Test - public void testDisbursementConfigOperation() { + void testDisbursementConfigOperation() { // TODO: test DisbursementConfigOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionOutputTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionOutputTest.java index 6458b0b2..5f88c3b0 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionOutputTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementInstructionOutput */ -public class DisbursementInstructionOutputTest { +class DisbursementInstructionOutputTest { private final DisbursementInstructionOutput model = new DisbursementInstructionOutput(); /** Model tests for DisbursementInstructionOutput */ @Test - public void testDisbursementInstructionOutput() { + void testDisbursementInstructionOutput() { // TODO: test DisbursementInstructionOutput } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionTest.java index a9136941..929ceab5 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementInstructionTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementInstruction */ -public class DisbursementInstructionTest { +class DisbursementInstructionTest { private final DisbursementInstruction model = new DisbursementInstruction(); /** Model tests for DisbursementInstruction */ @Test - public void testDisbursementInstruction() { + void testDisbursementInstruction() { // TODO: test DisbursementInstruction } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'percentage' */ @Test - public void percentageTest() { + void percentageTest() { // TODO: test percentage } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationConfigParamsTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationConfigParamsTest.java index a183d158..d3456847 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationConfigParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationConfigParamsTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationConfigParams */ -public class DisbursementOperationConfigParamsTest { +class DisbursementOperationConfigParamsTest { private final DisbursementOperationConfigParams model = new DisbursementOperationConfigParams(); /** Model tests for DisbursementOperationConfigParams */ @Test - public void testDisbursementOperationConfigParams() { + void testDisbursementOperationConfigParams() { // TODO: test DisbursementOperationConfigParams } /** Test the property 'paymentAccount' */ @Test - public void paymentAccountTest() { + void paymentAccountTest() { // TODO: test paymentAccount } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutputTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutputTest.java index bca1c677..02193fea 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutputTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationExecutionOutput */ -public class DisbursementOperationExecutionOutputTest { +class DisbursementOperationExecutionOutputTest { private final DisbursementOperationExecutionOutput model = new DisbursementOperationExecutionOutput(); /** Model tests for DisbursementOperationExecutionOutput */ @Test - public void testDisbursementOperationExecutionOutput() { + void testDisbursementOperationExecutionOutput() { // TODO: test DisbursementOperationExecutionOutput } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParamsTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParamsTest.java index f17cacd4..e1ece081 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParamsTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationExecutionParamsExecutionParams */ -public class DisbursementOperationExecutionParamsExecutionParamsTest { +class DisbursementOperationExecutionParamsExecutionParamsTest { private final DisbursementOperationExecutionParamsExecutionParams model = new DisbursementOperationExecutionParamsExecutionParams(); /** Model tests for DisbursementOperationExecutionParamsExecutionParams */ @Test - public void testDisbursementOperationExecutionParamsExecutionParams() { + void testDisbursementOperationExecutionParamsExecutionParams() { // TODO: test DisbursementOperationExecutionParamsExecutionParams } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'paymentAccount' */ @Test - public void paymentAccountTest() { + void paymentAccountTest() { // TODO: test paymentAccount } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsTest.java index e7b68def..584d3bf7 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationExecutionParams */ -public class DisbursementOperationExecutionParamsTest { +class DisbursementOperationExecutionParamsTest { private final DisbursementOperationExecutionParams model = new DisbursementOperationExecutionParams(); /** Model tests for DisbursementOperationExecutionParams */ @Test - public void testDisbursementOperationExecutionParams() { + void testDisbursementOperationExecutionParams() { // TODO: test DisbursementOperationExecutionParams } /** Test the property 'configOperationId' */ @Test - public void configOperationIdTest() { + void configOperationIdTest() { // TODO: test configOperationId } /** Test the property 'executionParams' */ @Test - public void executionParamsTest() { + void executionParamsTest() { // TODO: test executionParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionTest.java index a06ab24b..fe5980e8 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationExecutionTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationExecution */ -public class DisbursementOperationExecutionTest { +class DisbursementOperationExecutionTest { private final DisbursementOperationExecution model = new DisbursementOperationExecution(); /** Model tests for DisbursementOperationExecution */ @Test - public void testDisbursementOperationExecution() { + void testDisbursementOperationExecution() { // TODO: test DisbursementOperationExecution } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'payoutId' */ @Test - public void payoutIdTest() { + void payoutIdTest() { // TODO: test payoutId } /** Test the property 'startedAt' */ @Test - public void startedAtTest() { + void startedAtTest() { // TODO: test startedAt } /** Test the property 'finishedAt' */ @Test - public void finishedAtTest() { + void finishedAtTest() { // TODO: test finishedAt } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationInputTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationInputTest.java index e543123d..c76bab8d 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationInputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationInputTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationInput */ -public class DisbursementOperationInputTest { +class DisbursementOperationInputTest { private final DisbursementOperationInput model = new DisbursementOperationInput(); /** Model tests for DisbursementOperationInput */ @Test - public void testDisbursementOperationInput() { + void testDisbursementOperationInput() { // TODO: test DisbursementOperationInput } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'paymentAccount' */ @Test - public void paymentAccountTest() { + void paymentAccountTest() { // TODO: test paymentAccount } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInnerTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInnerTest.java index 1350545f..ed5e396c 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputInstructionSetInnerTest.java @@ -13,40 +13,40 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationPreviewOutputInstructionSetInner */ -public class DisbursementOperationPreviewOutputInstructionSetInnerTest { +class DisbursementOperationPreviewOutputInstructionSetInnerTest { private final DisbursementOperationPreviewOutputInstructionSetInner model = new DisbursementOperationPreviewOutputInstructionSetInner(); /** Model tests for DisbursementOperationPreviewOutputInstructionSetInner */ @Test - public void testDisbursementOperationPreviewOutputInstructionSetInner() { + void testDisbursementOperationPreviewOutputInstructionSetInner() { // TODO: test DisbursementOperationPreviewOutputInstructionSetInner } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } /** Test the property 'timeSeconds' */ @Test - public void timeSecondsTest() { + void timeSecondsTest() { // TODO: test timeSeconds } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputTest.java index 5caf88c2..21ef0f72 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutputTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationPreviewOutput */ -public class DisbursementOperationPreviewOutputTest { +class DisbursementOperationPreviewOutputTest { private final DisbursementOperationPreviewOutput model = new DisbursementOperationPreviewOutput(); /** Model tests for DisbursementOperationPreviewOutput */ @Test - public void testDisbursementOperationPreviewOutput() { + void testDisbursementOperationPreviewOutput() { // TODO: test DisbursementOperationPreviewOutput } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewTest.java index 2b644760..990fdf67 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationPreviewTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationPreview */ -public class DisbursementOperationPreviewTest { +class DisbursementOperationPreviewTest { private final DisbursementOperationPreview model = new DisbursementOperationPreview(); /** Model tests for DisbursementOperationPreview */ @Test - public void testDisbursementOperationPreview() { + void testDisbursementOperationPreview() { // TODO: test DisbursementOperationPreview } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationTypeTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationTypeTest.java index 7f1c45ca..c537d577 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementOperationTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementOperationTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementOperationType */ -public class DisbursementOperationTypeTest { +class DisbursementOperationTypeTest { /** Model tests for DisbursementOperationType */ @Test - public void testDisbursementOperationType() { + void testDisbursementOperationType() { // TODO: test DisbursementOperationType } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementPercentageInstructionTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementPercentageInstructionTest.java index d6da8397..7011a708 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementPercentageInstructionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementPercentageInstructionTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementPercentageInstruction */ -public class DisbursementPercentageInstructionTest { +class DisbursementPercentageInstructionTest { private final DisbursementPercentageInstruction model = new DisbursementPercentageInstruction(); /** Model tests for DisbursementPercentageInstruction */ @Test - public void testDisbursementPercentageInstruction() { + void testDisbursementPercentageInstruction() { // TODO: test DisbursementPercentageInstruction } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'percentage' */ @Test - public void percentageTest() { + void percentageTest() { // TODO: test percentage } } diff --git a/src/test/java/com/fireblocks/sdk/model/DisbursementValidationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/DisbursementValidationFailureTest.java index 37e8ec27..6b2097e7 100644 --- a/src/test/java/com/fireblocks/sdk/model/DisbursementValidationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DisbursementValidationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DisbursementValidationFailure */ -public class DisbursementValidationFailureTest { +class DisbursementValidationFailureTest { private final DisbursementValidationFailure model = new DisbursementValidationFailure(); /** Model tests for DisbursementValidationFailure */ @Test - public void testDisbursementValidationFailure() { + void testDisbursementValidationFailure() { // TODO: test DisbursementValidationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/DispatchPayoutResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DispatchPayoutResponseTest.java index e2eb6e21..0df774a0 100644 --- a/src/test/java/com/fireblocks/sdk/model/DispatchPayoutResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DispatchPayoutResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DispatchPayoutResponse */ -public class DispatchPayoutResponseTest { +class DispatchPayoutResponseTest { private final DispatchPayoutResponse model = new DispatchPayoutResponse(); /** Model tests for DispatchPayoutResponse */ @Test - public void testDispatchPayoutResponse() { + void testDispatchPayoutResponse() { // TODO: test DispatchPayoutResponse } /** Test the property 'payoutId' */ @Test - public void payoutIdTest() { + void payoutIdTest() { // TODO: test payoutId } } diff --git a/src/test/java/com/fireblocks/sdk/model/DraftResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DraftResponseTest.java index 9538732f..f24f7bd7 100644 --- a/src/test/java/com/fireblocks/sdk/model/DraftResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DraftResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DraftResponse */ -public class DraftResponseTest { +class DraftResponseTest { private final DraftResponse model = new DraftResponse(); /** Model tests for DraftResponse */ @Test - public void testDraftResponse() { + void testDraftResponse() { // TODO: test DraftResponse } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'rules' */ @Test - public void rulesTest() { + void rulesTest() { // TODO: test rules } /** Test the property 'draftId' */ @Test - public void draftIdTest() { + void draftIdTest() { // TODO: test draftId } /** Test the property 'metadata' */ @Test - public void metadataTest() { + void metadataTest() { // TODO: test metadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponseTest.java index c0d7ef9e..c9802885 100644 --- a/src/test/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DraftReviewAndValidationResponse */ -public class DraftReviewAndValidationResponseTest { +class DraftReviewAndValidationResponseTest { private final DraftReviewAndValidationResponse model = new DraftReviewAndValidationResponse(); /** Model tests for DraftReviewAndValidationResponse */ @Test - public void testDraftReviewAndValidationResponse() { + void testDraftReviewAndValidationResponse() { // TODO: test DraftReviewAndValidationResponse } /** Test the property 'draftResponse' */ @Test - public void draftResponseTest() { + void draftResponseTest() { // TODO: test draftResponse } /** Test the property 'validation' */ @Test - public void validationTest() { + void validationTest() { // TODO: test validation } } diff --git a/src/test/java/com/fireblocks/sdk/model/DropTransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/DropTransactionRequestTest.java index 1118ecb7..d65b3ff6 100644 --- a/src/test/java/com/fireblocks/sdk/model/DropTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DropTransactionRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DropTransactionRequest */ -public class DropTransactionRequestTest { +class DropTransactionRequestTest { private final DropTransactionRequest model = new DropTransactionRequest(); /** Model tests for DropTransactionRequest */ @Test - public void testDropTransactionRequest() { + void testDropTransactionRequest() { // TODO: test DropTransactionRequest } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'gasPrice' */ @Test - public void gasPriceTest() { + void gasPriceTest() { // TODO: test gasPrice } } diff --git a/src/test/java/com/fireblocks/sdk/model/DropTransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DropTransactionResponseTest.java index e7aa54b5..30e88577 100644 --- a/src/test/java/com/fireblocks/sdk/model/DropTransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DropTransactionResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DropTransactionResponse */ -public class DropTransactionResponseTest { +class DropTransactionResponseTest { private final DropTransactionResponse model = new DropTransactionResponse(); /** Model tests for DropTransactionResponse */ @Test - public void testDropTransactionResponse() { + void testDropTransactionResponse() { // TODO: test DropTransactionResponse } /** Test the property 'txStatus' */ @Test - public void txStatusTest() { + void txStatusTest() { // TODO: test txStatus } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } /** Test the property 'replacedTxHash' */ @Test - public void replacedTxHashTest() { + void replacedTxHashTest() { // TODO: test replacedTxHash } } diff --git a/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java b/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java index bfd6d342..30f24153 100644 --- a/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DvnConfig */ -public class DvnConfigTest { +class DvnConfigTest { private final DvnConfig model = new DvnConfig(); /** Model tests for DvnConfig */ @Test - public void testDvnConfig() { + void testDvnConfig() { // TODO: test DvnConfig } /** Test the property 'dvnAddresses' */ @Test - public void dvnAddressesTest() { + void dvnAddressesTest() { // TODO: test dvnAddresses } /** Test the property 'optionalDVNAddresses' */ @Test - public void optionalDVNAddressesTest() { + void optionalDVNAddressesTest() { // TODO: test optionalDVNAddresses } /** Test the property 'optionalThreshold' */ @Test - public void optionalThresholdTest() { + 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 index 406aa7af..3e6565ee 100644 --- a/src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for DvnConfigWithConfirmations */ -public class DvnConfigWithConfirmationsTest { +class DvnConfigWithConfirmationsTest { private final DvnConfigWithConfirmations model = new DvnConfigWithConfirmations(); /** Model tests for DvnConfigWithConfirmations */ @Test - public void testDvnConfigWithConfirmations() { + void testDvnConfigWithConfirmations() { // TODO: test DvnConfigWithConfirmations } /** Test the property 'dvnAddresses' */ @Test - public void dvnAddressesTest() { + void dvnAddressesTest() { // TODO: test dvnAddresses } /** Test the property 'optionalDVNAddresses' */ @Test - public void optionalDVNAddressesTest() { + void optionalDVNAddressesTest() { // TODO: test optionalDVNAddresses } /** Test the property 'optionalThreshold' */ @Test - public void optionalThresholdTest() { + void optionalThresholdTest() { // TODO: test optionalThreshold } /** Test the property 'confirmations' */ @Test - public void confirmationsTest() { + 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 851b0544..baa7ef5c 100644 --- a/src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EVMTokenCreateParamsDto */ -public class EVMTokenCreateParamsDtoTest { +class EVMTokenCreateParamsDtoTest { private final EVMTokenCreateParamsDto model = new EVMTokenCreateParamsDto(); /** Model tests for EVMTokenCreateParamsDto */ @Test - public void testEVMTokenCreateParamsDto() { + void testEVMTokenCreateParamsDto() { // TODO: test EVMTokenCreateParamsDto } /** Test the property 'contractId' */ @Test - public void contractIdTest() { + void contractIdTest() { // TODO: test contractId } /** Test the property 'deployFunctionParams' */ @Test - public void deployFunctionParamsTest() { + void deployFunctionParamsTest() { // TODO: test deployFunctionParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponseTest.java index 351dbd12..4da823e0 100644 --- a/src/test/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponseTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EditGasStationConfigurationResponse */ -public class EditGasStationConfigurationResponseTest { +class EditGasStationConfigurationResponseTest { private final EditGasStationConfigurationResponse model = new EditGasStationConfigurationResponse(); /** Model tests for EditGasStationConfigurationResponse */ @Test - public void testEditGasStationConfigurationResponse() { + void testEditGasStationConfigurationResponse() { // TODO: test EditGasStationConfigurationResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java index c6d10999..2ea990c4 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletAccount */ -public class EmbeddedWalletAccountTest { +class EmbeddedWalletAccountTest { private final EmbeddedWalletAccount model = new EmbeddedWalletAccount(); /** Model tests for EmbeddedWalletAccount */ @Test - public void testEmbeddedWalletAccount() { + void testEmbeddedWalletAccount() { // TODO: test EmbeddedWalletAccount } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'walletId' */ @Test - public void walletIdTest() { + 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 index 1bda3155..c242856d 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java @@ -13,111 +13,111 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletAddressDetails */ -public class EmbeddedWalletAddressDetailsTest { +class EmbeddedWalletAddressDetailsTest { private final EmbeddedWalletAddressDetails model = new EmbeddedWalletAddressDetails(); /** Model tests for EmbeddedWalletAddressDetails */ @Test - public void testEmbeddedWalletAddressDetails() { + void testEmbeddedWalletAddressDetails() { // TODO: test EmbeddedWalletAddressDetails } /** Test the property 'accountName' */ @Test - public void accountNameTest() { + void accountNameTest() { // TODO: test accountName } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'addressType' */ @Test - public void addressTypeTest() { + void addressTypeTest() { // TODO: test addressType } /** Test the property 'addressDescription' */ @Test - public void addressDescriptionTest() { + void addressDescriptionTest() { // TODO: test addressDescription } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'addressIndex' */ @Test - public void addressIndexTest() { + void addressIndexTest() { // TODO: test addressIndex } /** Test the property 'change' */ @Test - public void changeTest() { + void changeTest() { // TODO: test change } /** Test the property 'coinType' */ @Test - public void coinTypeTest() { + void coinTypeTest() { // TODO: test coinType } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'addressFormat' */ @Test - public void addressFormatTest() { + void addressFormatTest() { // TODO: test addressFormat } /** Test the property 'legacyAddress' */ @Test - public void legacyAddressTest() { + void legacyAddressTest() { // TODO: test legacyAddress } /** Test the property 'paymentAddress' */ @Test - public void paymentAddressTest() { + void paymentAddressTest() { // TODO: test paymentAddress } /** Test the property 'userDefined' */ @Test - public void userDefinedTest() { + void userDefinedTest() { // TODO: test userDefined } /** Test the property 'state' */ @Test - public void stateTest() { + 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 index a10cfe50..240ac8ee 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletAlgoritm */ -public class EmbeddedWalletAlgoritmTest { +class EmbeddedWalletAlgoritmTest { private final EmbeddedWalletAlgoritm model = new EmbeddedWalletAlgoritm(); /** Model tests for EmbeddedWalletAlgoritm */ @Test - public void testEmbeddedWalletAlgoritm() { + void testEmbeddedWalletAlgoritm() { // TODO: test EmbeddedWalletAlgoritm } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + 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 index ebe3340d..650d6f76 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletAssetBalance */ -public class EmbeddedWalletAssetBalanceTest { +class EmbeddedWalletAssetBalanceTest { private final EmbeddedWalletAssetBalance model = new EmbeddedWalletAssetBalance(); /** Model tests for EmbeddedWalletAssetBalance */ @Test - public void testEmbeddedWalletAssetBalance() { + void testEmbeddedWalletAssetBalance() { // TODO: test EmbeddedWalletAssetBalance } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } /** Test the property 'available' */ @Test - public void availableTest() { + void availableTest() { // TODO: test available } /** Test the property 'pending' */ @Test - public void pendingTest() { + void pendingTest() { // TODO: test pending } /** Test the property 'frozen' */ @Test - public void frozenTest() { + void frozenTest() { // TODO: test frozen } /** Test the property 'lockedAmount' */ @Test - public void lockedAmountTest() { + void lockedAmountTest() { // TODO: test lockedAmount } /** Test the property 'blockHeight' */ @Test - public void blockHeightTest() { + void blockHeightTest() { // TODO: test blockHeight } /** Test the property 'blockHash' */ @Test - public void blockHashTest() { + void blockHashTest() { // TODO: test blockHash } /** Test the property 'rewardInfo' */ @Test - public void rewardInfoTest() { + 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 index 70e35e8c..c89fbbd6 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java @@ -13,117 +13,117 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletAssetResponse */ -public class EmbeddedWalletAssetResponseTest { +class EmbeddedWalletAssetResponseTest { private final EmbeddedWalletAssetResponse model = new EmbeddedWalletAssetResponse(); /** Model tests for EmbeddedWalletAssetResponse */ @Test - public void testEmbeddedWalletAssetResponse() { + void testEmbeddedWalletAssetResponse() { // TODO: test EmbeddedWalletAssetResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + void decimalsTest() { // TODO: test decimals } /** Test the property 'networkProtocol' */ @Test - public void networkProtocolTest() { + void networkProtocolTest() { // TODO: test networkProtocol } /** Test the property 'testnet' */ @Test - public void testnetTest() { + void testnetTest() { // TODO: test testnet } /** Test the property 'hasFee' */ @Test - public void hasFeeTest() { + void hasFeeTest() { // TODO: test hasFee } /** Test the property 'baseAsset' */ @Test - public void baseAssetTest() { + void baseAssetTest() { // TODO: test baseAsset } /** Test the property 'ethNetwork' */ @Test - public void ethNetworkTest() { + void ethNetworkTest() { // TODO: test ethNetwork } /** Test the property 'ethContractAddress' */ @Test - public void ethContractAddressTest() { + void ethContractAddressTest() { // TODO: test ethContractAddress } /** Test the property 'issuerAddress' */ @Test - public void issuerAddressTest() { + void issuerAddressTest() { // TODO: test issuerAddress } /** Test the property 'blockchainSymbol' */ @Test - public void blockchainSymbolTest() { + void blockchainSymbolTest() { // TODO: test blockchainSymbol } /** Test the property 'deprecated' */ @Test - public void deprecatedTest() { + void deprecatedTest() { // TODO: test deprecated } /** Test the property 'coinType' */ @Test - public void coinTypeTest() { + void coinTypeTest() { // TODO: test coinType } /** Test the property 'blockchain' */ @Test - public void blockchainTest() { + void blockchainTest() { // TODO: test blockchain } /** Test the property 'blockchainDisplayName' */ @Test - public void blockchainDisplayNameTest() { + void blockchainDisplayNameTest() { // TODO: test blockchainDisplayName } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + 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 index 6a346a56..e370596e 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletAssetRewardInfo */ -public class EmbeddedWalletAssetRewardInfoTest { +class EmbeddedWalletAssetRewardInfoTest { private final EmbeddedWalletAssetRewardInfo model = new EmbeddedWalletAssetRewardInfo(); /** Model tests for EmbeddedWalletAssetRewardInfo */ @Test - public void testEmbeddedWalletAssetRewardInfo() { + void testEmbeddedWalletAssetRewardInfo() { // TODO: test EmbeddedWalletAssetRewardInfo } /** Test the property 'pendingRewards' */ @Test - public void pendingRewardsTest() { + 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 index b250cdc0..1ac4248a 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ -public class EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest { +class EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest { private final EmbeddedWalletDeviceKeySetupResponseSetupStatusInner model = new EmbeddedWalletDeviceKeySetupResponseSetupStatusInner(); /** Model tests for EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ @Test - public void testEmbeddedWalletDeviceKeySetupResponseSetupStatusInner() { + void testEmbeddedWalletDeviceKeySetupResponseSetupStatusInner() { // TODO: test EmbeddedWalletDeviceKeySetupResponseSetupStatusInner } /** Test the property 'algorithmName' */ @Test - public void algorithmNameTest() { + void algorithmNameTest() { // TODO: test algorithmName } /** Test the property 'confirmed' */ @Test - public void confirmedTest() { + void confirmedTest() { // TODO: test confirmed } /** Test the property 'backedUp' */ @Test - public void backedUpTest() { + 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 index 07e83f6c..d747039c 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java @@ -13,40 +13,40 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletDeviceKeySetupResponse */ -public class EmbeddedWalletDeviceKeySetupResponseTest { +class EmbeddedWalletDeviceKeySetupResponseTest { private final EmbeddedWalletDeviceKeySetupResponse model = new EmbeddedWalletDeviceKeySetupResponse(); /** Model tests for EmbeddedWalletDeviceKeySetupResponse */ @Test - public void testEmbeddedWalletDeviceKeySetupResponse() { + void testEmbeddedWalletDeviceKeySetupResponse() { // TODO: test EmbeddedWalletDeviceKeySetupResponse } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'deviceId' */ @Test - public void deviceIdTest() { + void deviceIdTest() { // TODO: test deviceId } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } /** Test the property 'setupStatus' */ @Test - public void setupStatusTest() { + 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 index 59f510c4..4e81807f 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletDevice */ -public class EmbeddedWalletDeviceTest { +class EmbeddedWalletDeviceTest { private final EmbeddedWalletDevice model = new EmbeddedWalletDevice(); /** Model tests for EmbeddedWalletDevice */ @Test - public void testEmbeddedWalletDevice() { + void testEmbeddedWalletDevice() { // TODO: test EmbeddedWalletDevice } /** Test the property 'deviceId' */ @Test - public void deviceIdTest() { + void deviceIdTest() { // TODO: test deviceId } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } /** Test the property 'physicalDeviceId' */ @Test - public void physicalDeviceIdTest() { + 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 index 01a902f2..af45329c 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletLatestBackupKey */ -public class EmbeddedWalletLatestBackupKeyTest { +class EmbeddedWalletLatestBackupKeyTest { private final EmbeddedWalletLatestBackupKey model = new EmbeddedWalletLatestBackupKey(); /** Model tests for EmbeddedWalletLatestBackupKey */ @Test - public void testEmbeddedWalletLatestBackupKey() { + void testEmbeddedWalletLatestBackupKey() { // TODO: test EmbeddedWalletLatestBackupKey } /** Test the property 'deviceId' */ @Test - public void deviceIdTest() { + void deviceIdTest() { // TODO: test deviceId } /** Test the property 'publicKey' */ @Test - public void publicKeyTest() { + void publicKeyTest() { // TODO: test publicKey } /** Test the property 'keyId' */ @Test - public void keyIdTest() { + void keyIdTest() { // TODO: test keyId } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + 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 index 88f0377b..ef612508 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletLatestBackupResponse */ -public class EmbeddedWalletLatestBackupResponseTest { +class EmbeddedWalletLatestBackupResponseTest { private final EmbeddedWalletLatestBackupResponse model = new EmbeddedWalletLatestBackupResponse(); /** Model tests for EmbeddedWalletLatestBackupResponse */ @Test - public void testEmbeddedWalletLatestBackupResponse() { + void testEmbeddedWalletLatestBackupResponse() { // TODO: test EmbeddedWalletLatestBackupResponse } /** Test the property 'passphraseId' */ @Test - public void passphraseIdTest() { + void passphraseIdTest() { // TODO: test passphraseId } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'keys' */ @Test - public void keysTest() { + 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 index 33ab6422..8ef434ed 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletPaginatedAddressesResponse */ -public class EmbeddedWalletPaginatedAddressesResponseTest { +class EmbeddedWalletPaginatedAddressesResponseTest { private final EmbeddedWalletPaginatedAddressesResponse model = new EmbeddedWalletPaginatedAddressesResponse(); /** Model tests for EmbeddedWalletPaginatedAddressesResponse */ @Test - public void testEmbeddedWalletPaginatedAddressesResponse() { + void testEmbeddedWalletPaginatedAddressesResponse() { // TODO: test EmbeddedWalletPaginatedAddressesResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 index dc388802..2f43488e 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletPaginatedAssetsResponse */ -public class EmbeddedWalletPaginatedAssetsResponseTest { +class EmbeddedWalletPaginatedAssetsResponseTest { private final EmbeddedWalletPaginatedAssetsResponse model = new EmbeddedWalletPaginatedAssetsResponse(); /** Model tests for EmbeddedWalletPaginatedAssetsResponse */ @Test - public void testEmbeddedWalletPaginatedAssetsResponse() { + void testEmbeddedWalletPaginatedAssetsResponse() { // TODO: test EmbeddedWalletPaginatedAssetsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 index b9453e57..347a6ada 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletPaginatedWalletsResponse */ -public class EmbeddedWalletPaginatedWalletsResponseTest { +class EmbeddedWalletPaginatedWalletsResponseTest { private final EmbeddedWalletPaginatedWalletsResponse model = new EmbeddedWalletPaginatedWalletsResponse(); /** Model tests for EmbeddedWalletPaginatedWalletsResponse */ @Test - public void testEmbeddedWalletPaginatedWalletsResponse() { + void testEmbeddedWalletPaginatedWalletsResponse() { // TODO: test EmbeddedWalletPaginatedWalletsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 index 0dec8a36..b272cb52 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWalletSetUpStatus */ -public class EmbeddedWalletSetUpStatusTest { +class EmbeddedWalletSetUpStatusTest { private final EmbeddedWalletSetUpStatus model = new EmbeddedWalletSetUpStatus(); /** Model tests for EmbeddedWalletSetUpStatus */ @Test - public void testEmbeddedWalletSetUpStatus() { + void testEmbeddedWalletSetUpStatus() { // TODO: test EmbeddedWalletSetUpStatus } /** Test the property 'status' */ @Test - public void statusTest() { + 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 index adccd0b7..c9b98451 100644 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EmbeddedWallet */ -public class EmbeddedWalletTest { +class EmbeddedWalletTest { private final EmbeddedWallet model = new EmbeddedWallet(); /** Model tests for EmbeddedWallet */ @Test - public void testEmbeddedWallet() { + void testEmbeddedWallet() { // TODO: test EmbeddedWallet } /** Test the property 'walletId' */ @Test - public void walletIdTest() { + void walletIdTest() { // TODO: test walletId } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/ErrorResponseErrorTest.java b/src/test/java/com/fireblocks/sdk/model/ErrorResponseErrorTest.java index 513fd071..e7f099ce 100644 --- a/src/test/java/com/fireblocks/sdk/model/ErrorResponseErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ErrorResponseErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ErrorResponseError */ -public class ErrorResponseErrorTest { +class ErrorResponseErrorTest { private final ErrorResponseError model = new ErrorResponseError(); /** Model tests for ErrorResponseError */ @Test - public void testErrorResponseError() { + void testErrorResponseError() { // TODO: test ErrorResponseError } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } } diff --git a/src/test/java/com/fireblocks/sdk/model/ErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ErrorResponseTest.java index d896b133..842ae111 100644 --- a/src/test/java/com/fireblocks/sdk/model/ErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ErrorResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ErrorResponse */ -public class ErrorResponseTest { +class ErrorResponseTest { private final ErrorResponse model = new ErrorResponse(); /** Model tests for ErrorResponse */ @Test - public void testErrorResponse() { + void testErrorResponse() { // TODO: test ErrorResponse } /** Test the property 'error' */ @Test - public void errorTest() { + void errorTest() { // TODO: test error } } diff --git a/src/test/java/com/fireblocks/sdk/model/ErrorSchemaTest.java b/src/test/java/com/fireblocks/sdk/model/ErrorSchemaTest.java index 374deb21..0179aee1 100644 --- a/src/test/java/com/fireblocks/sdk/model/ErrorSchemaTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ErrorSchemaTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ErrorSchema */ -public class ErrorSchemaTest { +class ErrorSchemaTest { private final ErrorSchema model = new ErrorSchema(); /** Model tests for ErrorSchema */ @Test - public void testErrorSchema() { + void testErrorSchema() { // TODO: test ErrorSchema } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java index e5183638..b112d28c 100644 --- a/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EstimatedFeeDetails */ -public class EstimatedFeeDetailsTest { +class EstimatedFeeDetailsTest { private final EstimatedFeeDetails model = new EstimatedFeeDetails(); /** Model tests for EstimatedFeeDetails */ @Test - public void testEstimatedFeeDetails() { + void testEstimatedFeeDetails() { // TODO: test EstimatedFeeDetails } /** Test the property 'low' */ @Test - public void lowTest() { + void lowTest() { // TODO: test low } /** Test the property 'medium' */ @Test - public void mediumTest() { + void mediumTest() { // TODO: test medium } /** Test the property 'high' */ @Test - public void highTest() { + void highTest() { // TODO: test high } } diff --git a/src/test/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponseTest.java index 8baaa76e..f021d775 100644 --- a/src/test/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EstimatedNetworkFeeResponse */ -public class EstimatedNetworkFeeResponseTest { +class EstimatedNetworkFeeResponseTest { private final EstimatedNetworkFeeResponse model = new EstimatedNetworkFeeResponse(); /** Model tests for EstimatedNetworkFeeResponse */ @Test - public void testEstimatedNetworkFeeResponse() { + void testEstimatedNetworkFeeResponse() { // TODO: test EstimatedNetworkFeeResponse } /** Test the property 'low' */ @Test - public void lowTest() { + void lowTest() { // TODO: test low } /** Test the property 'medium' */ @Test - public void mediumTest() { + void mediumTest() { // TODO: test medium } /** Test the property 'high' */ @Test - public void highTest() { + 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 f0387ce1..895571dd 100644 --- a/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for EstimatedTransactionFeeResponse */ -public class EstimatedTransactionFeeResponseTest { +class EstimatedTransactionFeeResponseTest { private final EstimatedTransactionFeeResponse model = new EstimatedTransactionFeeResponse(); /** Model tests for EstimatedTransactionFeeResponse */ @Test - public void testEstimatedTransactionFeeResponse() { + void testEstimatedTransactionFeeResponse() { // TODO: test EstimatedTransactionFeeResponse } /** Test the property 'low' */ @Test - public void lowTest() { + void lowTest() { // TODO: test low } /** Test the property 'medium' */ @Test - public void mediumTest() { + void mediumTest() { // TODO: test medium } /** Test the property 'high' */ @Test - public void highTest() { + void highTest() { // TODO: test high } /** Test the property 'feeDetails' */ @Test - public void feeDetailsTest() { + void feeDetailsTest() { // TODO: test feeDetails } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeAccountTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeAccountTest.java index f21bd7f4..bea0d722 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeAccountTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeAccount */ -public class ExchangeAccountTest { +class ExchangeAccountTest { private final ExchangeAccount model = new ExchangeAccount(); /** Model tests for ExchangeAccount */ @Test - public void testExchangeAccount() { + void testExchangeAccount() { // TODO: test ExchangeAccount } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'assets' */ @Test - public void assetsTest() { + void assetsTest() { // TODO: test assets } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } /** Test the property 'tradingAccounts' */ @Test - public void tradingAccountsTest() { + void tradingAccountsTest() { // TODO: test tradingAccounts } /** Test the property 'isSubaccount' */ @Test - public void isSubaccountTest() { + void isSubaccountTest() { // TODO: test isSubaccount } /** Test the property 'mainAccountId' */ @Test - public void mainAccountIdTest() { + void mainAccountIdTest() { // TODO: test mainAccountId } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPagingTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPagingTest.java index 4c14b55c..9dcc79f8 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPagingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedPagingTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeAccountsPagedPaging */ -public class ExchangeAccountsPagedPagingTest { +class ExchangeAccountsPagedPagingTest { private final ExchangeAccountsPagedPaging model = new ExchangeAccountsPagedPaging(); /** Model tests for ExchangeAccountsPagedPaging */ @Test - public void testExchangeAccountsPagedPaging() { + void testExchangeAccountsPagedPaging() { // TODO: test ExchangeAccountsPagedPaging } /** Test the property 'after' */ @Test - public void afterTest() { + void afterTest() { // TODO: test after } /** Test the property 'before' */ @Test - public void beforeTest() { + void beforeTest() { // TODO: test before } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedTest.java index c85f9570..d0919dbd 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeAccountsPagedTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeAccountsPaged */ -public class ExchangeAccountsPagedTest { +class ExchangeAccountsPagedTest { private final ExchangeAccountsPaged model = new ExchangeAccountsPaged(); /** Model tests for ExchangeAccountsPaged */ @Test - public void testExchangeAccountsPaged() { + void testExchangeAccountsPaged() { // TODO: test ExchangeAccountsPaged } /** Test the property 'exchangeAccount' */ @Test - public void exchangeAccountTest() { + void exchangeAccountTest() { // TODO: test exchangeAccount } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } /** Test the property 'prevUrl' */ @Test - public void prevUrlTest() { + void prevUrlTest() { // TODO: test prevUrl } /** Test the property 'nextUrl' */ @Test - public void nextUrlTest() { + void nextUrlTest() { // TODO: test nextUrl } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java index 5344f72a..98346fed 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeAsset */ -public class ExchangeAssetTest { +class ExchangeAssetTest { private final ExchangeAsset model = new ExchangeAsset(); /** Model tests for ExchangeAsset */ @Test - public void testExchangeAsset() { + void testExchangeAsset() { // TODO: test ExchangeAsset } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } /** Test the property 'lockedAmount' */ @Test - public void lockedAmountTest() { + void lockedAmountTest() { // TODO: test lockedAmount } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } /** Test the property 'available' */ @Test - public void availableTest() { + void availableTest() { // TODO: test available } /** Test the property 'credit' */ @Test - public void creditTest() { + void creditTest() { // TODO: test credit } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponseTest.java index 5c2f72df..55af51f9 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeSettlementTransactionsResponse */ -public class ExchangeSettlementTransactionsResponseTest { +class ExchangeSettlementTransactionsResponseTest { private final ExchangeSettlementTransactionsResponse model = new ExchangeSettlementTransactionsResponse(); /** Model tests for ExchangeSettlementTransactionsResponse */ @Test - public void testExchangeSettlementTransactionsResponse() { + void testExchangeSettlementTransactionsResponse() { // TODO: test ExchangeSettlementTransactionsResponse } /** Test the property 'toExchange' */ @Test - public void toExchangeTest() { + void toExchangeTest() { // TODO: test toExchange } /** Test the property 'toCollateral' */ @Test - public void toCollateralTest() { + void toCollateralTest() { // TODO: test toCollateral } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeTradingAccountTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeTradingAccountTest.java index 80b64df2..e37cc2ee 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeTradingAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeTradingAccountTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeTradingAccount */ -public class ExchangeTradingAccountTest { +class ExchangeTradingAccountTest { private final ExchangeTradingAccount model = new ExchangeTradingAccount(); /** Model tests for ExchangeTradingAccount */ @Test - public void testExchangeTradingAccount() { + void testExchangeTradingAccount() { // TODO: test ExchangeTradingAccount } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'assets' */ @Test - public void assetsTest() { + void assetsTest() { // TODO: test assets } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeTypeTest.java index dfdb642f..a9db54eb 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExchangeType */ -public class ExchangeTypeTest { +class ExchangeTypeTest { /** Model tests for ExchangeType */ @Test - public void testExchangeType() { + void testExchangeType() { // TODO: test ExchangeType } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionConversionOperationTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionConversionOperationTest.java index 53041d3c..a6489ca0 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionConversionOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecutionConversionOperationTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExecutionConversionOperation */ -public class ExecutionConversionOperationTest { +class ExecutionConversionOperationTest { private final ExecutionConversionOperation model = new ExecutionConversionOperation(); /** Model tests for ExecutionConversionOperation */ @Test - public void testExecutionConversionOperation() { + void testExecutionConversionOperation() { // TODO: test ExecutionConversionOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } /** Test the property 'operationType' */ @Test - public void operationTypeTest() { + void operationTypeTest() { // TODO: test operationType } /** Test the property 'preview' */ @Test - public void previewTest() { + void previewTest() { // TODO: test preview } /** Test the property 'execution' */ @Test - public void executionTest() { + void executionTest() { // TODO: test execution } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionDisbursementOperationTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionDisbursementOperationTest.java index 7c06396c..592d0366 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionDisbursementOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecutionDisbursementOperationTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExecutionDisbursementOperation */ -public class ExecutionDisbursementOperationTest { +class ExecutionDisbursementOperationTest { private final ExecutionDisbursementOperation model = new ExecutionDisbursementOperation(); /** Model tests for ExecutionDisbursementOperation */ @Test - public void testExecutionDisbursementOperation() { + void testExecutionDisbursementOperation() { // TODO: test ExecutionDisbursementOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } /** Test the property 'operationType' */ @Test - public void operationTypeTest() { + void operationTypeTest() { // TODO: test operationType } /** Test the property 'preview' */ @Test - public void previewTest() { + void previewTest() { // TODO: test preview } /** Test the property 'execution' */ @Test - public void executionTest() { + void executionTest() { // TODO: test execution } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionOperationStatusTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionOperationStatusTest.java index c856632f..2ff1c7db 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionOperationStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecutionOperationStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExecutionOperationStatus */ -public class ExecutionOperationStatusTest { +class ExecutionOperationStatusTest { /** Model tests for ExecutionOperationStatus */ @Test - public void testExecutionOperationStatus() { + void testExecutionOperationStatus() { // TODO: test ExecutionOperationStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionScreeningOperationTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionScreeningOperationTest.java index 5d2e537b..056f447d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionScreeningOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecutionScreeningOperationTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExecutionScreeningOperation */ -public class ExecutionScreeningOperationTest { +class ExecutionScreeningOperationTest { private final ExecutionScreeningOperation model = new ExecutionScreeningOperation(); /** Model tests for ExecutionScreeningOperation */ @Test - public void testExecutionScreeningOperation() { + void testExecutionScreeningOperation() { // TODO: test ExecutionScreeningOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'operationType' */ @Test - public void operationTypeTest() { + void operationTypeTest() { // TODO: test operationType } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } /** Test the property 'execution' */ @Test - public void executionTest() { + void executionTest() { // TODO: test execution } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionTransferOperationTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionTransferOperationTest.java index 1f9f0a48..768c282d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionTransferOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecutionTransferOperationTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExecutionTransferOperation */ -public class ExecutionTransferOperationTest { +class ExecutionTransferOperationTest { private final ExecutionTransferOperation model = new ExecutionTransferOperation(); /** Model tests for ExecutionTransferOperation */ @Test - public void testExecutionTransferOperation() { + void testExecutionTransferOperation() { // TODO: test ExecutionTransferOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } /** Test the property 'operationType' */ @Test - public void operationTypeTest() { + void operationTypeTest() { // TODO: test operationType } /** Test the property 'preview' */ @Test - public void previewTest() { + void previewTest() { // TODO: test preview } /** Test the property 'execution' */ @Test - public void executionTest() { + void executionTest() { // TODO: test execution } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExternalWalletAssetTest.java b/src/test/java/com/fireblocks/sdk/model/ExternalWalletAssetTest.java index 5681e1cd..e1775fe0 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExternalWalletAssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExternalWalletAssetTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ExternalWalletAsset */ -public class ExternalWalletAssetTest { +class ExternalWalletAssetTest { private final ExternalWalletAsset model = new ExternalWalletAsset(); /** Model tests for ExternalWalletAsset */ @Test - public void testExternalWalletAsset() { + void testExternalWalletAsset() { // TODO: test ExternalWalletAsset } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } /** Test the property 'lockedAmount' */ @Test - public void lockedAmountTest() { + void lockedAmountTest() { // TODO: test lockedAmount } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'activationTime' */ @Test - public void activationTimeTest() { + void activationTimeTest() { // TODO: test activationTime } /** Test the property 'additionalInfo' */ @Test - public void additionalInfoTest() { + void additionalInfoTest() { // TODO: test additionalInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java index 73c8db80..1521e1f1 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java +++ b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FeeBreakdownOneOf1 */ -public class FeeBreakdownOneOf1Test { +class FeeBreakdownOneOf1Test { private final FeeBreakdownOneOf1 model = new FeeBreakdownOneOf1(); /** Model tests for FeeBreakdownOneOf1 */ @Test - public void testFeeBreakdownOneOf1() { + void testFeeBreakdownOneOf1() { // TODO: test FeeBreakdownOneOf1 } /** Test the property 'baseFee' */ @Test - public void baseFeeTest() { + void baseFeeTest() { // TODO: test baseFee } /** Test the property 'priorityFee' */ @Test - public void priorityFeeTest() { + void priorityFeeTest() { // TODO: test priorityFee } /** Test the property 'totalFee' */ @Test - public void totalFeeTest() { + 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 index c73686b2..e8cb116b 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FeeBreakdownOneOf */ -public class FeeBreakdownOneOfTest { +class FeeBreakdownOneOfTest { private final FeeBreakdownOneOf model = new FeeBreakdownOneOf(); /** Model tests for FeeBreakdownOneOf */ @Test - public void testFeeBreakdownOneOf() { + void testFeeBreakdownOneOf() { // TODO: test FeeBreakdownOneOf } /** Test the property 'baseFee' */ @Test - public void baseFeeTest() { + void baseFeeTest() { // TODO: test baseFee } /** Test the property 'priorityFee' */ @Test - public void priorityFeeTest() { + void priorityFeeTest() { // TODO: test priorityFee } /** Test the property 'rent' */ @Test - public void rentTest() { + void rentTest() { // TODO: test rent } /** Test the property 'totalFee' */ @Test - public void totalFeeTest() { + 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 index 5dbc1bc8..ab9bef14 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FeeBreakdown */ -public class FeeBreakdownTest { +class FeeBreakdownTest { private final FeeBreakdown model = new FeeBreakdown(); /** Model tests for FeeBreakdown */ @Test - public void testFeeBreakdown() { + void testFeeBreakdown() { // TODO: test FeeBreakdown } /** Test the property 'baseFee' */ @Test - public void baseFeeTest() { + void baseFeeTest() { // TODO: test baseFee } /** Test the property 'priorityFee' */ @Test - public void priorityFeeTest() { + void priorityFeeTest() { // TODO: test priorityFee } /** Test the property 'rent' */ @Test - public void rentTest() { + void rentTest() { // TODO: test rent } /** Test the property 'totalFee' */ @Test - public void totalFeeTest() { + 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 2b416be5..8f45fbe6 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FeeInfo */ -public class FeeInfoTest { +class FeeInfoTest { private final FeeInfo model = new FeeInfo(); /** Model tests for FeeInfo */ @Test - public void testFeeInfo() { + void testFeeInfo() { // TODO: test FeeInfo } /** Test the property 'networkFee' */ @Test - public void networkFeeTest() { + void networkFeeTest() { // TODO: test networkFee } /** Test the property 'serviceFee' */ @Test - public void serviceFeeTest() { + void serviceFeeTest() { // TODO: test serviceFee } /** Test the property 'gasPrice' */ @Test - public void gasPriceTest() { + void gasPriceTest() { // TODO: test gasPrice } /** Test the property 'paidByRelay' */ @Test - public void paidByRelayTest() { + void paidByRelayTest() { // TODO: test paidByRelay } /** Test the property 'relayType' */ @Test - public void relayTypeTest() { + void relayTypeTest() { // TODO: test relayType } /** Test the property 'relayId' */ @Test - public void relayIdTest() { + void relayIdTest() { // TODO: test relayId } /** Test the property 'relayName' */ @Test - public void relayNameTest() { + void relayNameTest() { // TODO: test relayName } /** Test the property 'feeUSD' */ @Test - public void feeUSDTest() { + 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 index 16435f35..07988b98 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FeeLevel */ -public class FeeLevelTest { +class FeeLevelTest { /** Model tests for FeeLevel */ @Test - public void testFeeLevel() { + void testFeeLevel() { // TODO: test FeeLevel } } diff --git a/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java index 51837234..f8d5808a 100644 --- a/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FetchAbiRequestDto */ -public class FetchAbiRequestDtoTest { +class FetchAbiRequestDtoTest { private final FetchAbiRequestDto model = new FetchAbiRequestDto(); /** Model tests for FetchAbiRequestDto */ @Test - public void testFetchAbiRequestDto() { + void testFetchAbiRequestDto() { // TODO: test FetchAbiRequestDto } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } } diff --git a/src/test/java/com/fireblocks/sdk/model/FiatAccountTest.java b/src/test/java/com/fireblocks/sdk/model/FiatAccountTest.java index f4341799..67c0f460 100644 --- a/src/test/java/com/fireblocks/sdk/model/FiatAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FiatAccountTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FiatAccount */ -public class FiatAccountTest { +class FiatAccountTest { private final FiatAccount model = new FiatAccount(); /** Model tests for FiatAccount */ @Test - public void testFiatAccount() { + void testFiatAccount() { // TODO: test FiatAccount } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'assets' */ @Test - public void assetsTest() { + void assetsTest() { // TODO: test assets } } diff --git a/src/test/java/com/fireblocks/sdk/model/FiatAccountTypeTest.java b/src/test/java/com/fireblocks/sdk/model/FiatAccountTypeTest.java index a51ea793..53979c71 100644 --- a/src/test/java/com/fireblocks/sdk/model/FiatAccountTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FiatAccountTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FiatAccountType */ -public class FiatAccountTypeTest { +class FiatAccountTypeTest { /** Model tests for FiatAccountType */ @Test - public void testFiatAccountType() { + void testFiatAccountType() { // TODO: test FiatAccountType } } diff --git a/src/test/java/com/fireblocks/sdk/model/FiatAssetTest.java b/src/test/java/com/fireblocks/sdk/model/FiatAssetTest.java index a1609eed..a6b849ee 100644 --- a/src/test/java/com/fireblocks/sdk/model/FiatAssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FiatAssetTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FiatAsset */ -public class FiatAssetTest { +class FiatAssetTest { private final FiatAsset model = new FiatAsset(); /** Model tests for FiatAsset */ @Test - public void testFiatAsset() { + void testFiatAsset() { // TODO: test FiatAsset } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } } diff --git a/src/test/java/com/fireblocks/sdk/model/FreezeTransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/FreezeTransactionResponseTest.java index 84225a8f..0dc15c4e 100644 --- a/src/test/java/com/fireblocks/sdk/model/FreezeTransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FreezeTransactionResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FreezeTransactionResponse */ -public class FreezeTransactionResponseTest { +class FreezeTransactionResponseTest { private final FreezeTransactionResponse model = new FreezeTransactionResponse(); /** Model tests for FreezeTransactionResponse */ @Test - public void testFreezeTransactionResponse() { + void testFreezeTransactionResponse() { // TODO: test FreezeTransactionResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/FunctionDocTest.java b/src/test/java/com/fireblocks/sdk/model/FunctionDocTest.java index a3fee470..ed865362 100644 --- a/src/test/java/com/fireblocks/sdk/model/FunctionDocTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FunctionDocTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for FunctionDoc */ -public class FunctionDocTest { +class FunctionDocTest { private final FunctionDoc model = new FunctionDoc(); /** Model tests for FunctionDoc */ @Test - public void testFunctionDoc() { + void testFunctionDoc() { // TODO: test FunctionDoc } /** Test the property 'details' */ @Test - public void detailsTest() { + void detailsTest() { // TODO: test details } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } /** Test the property 'returns' */ @Test - public void returnsTest() { + void returnsTest() { // TODO: test returns } } diff --git a/src/test/java/com/fireblocks/sdk/model/FundsTest.java b/src/test/java/com/fireblocks/sdk/model/FundsTest.java index 3ce627d1..bd758da1 100644 --- a/src/test/java/com/fireblocks/sdk/model/FundsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FundsTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Funds */ -public class FundsTest { +class FundsTest { private final Funds model = new Funds(); /** Model tests for Funds */ @Test - public void testFunds() { + void testFunds() { // TODO: test Funds } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationResponseTest.java index 51f58d5a..71eda4e3 100644 --- a/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GasStationConfigurationResponse */ -public class GasStationConfigurationResponseTest { +class GasStationConfigurationResponseTest { private final GasStationConfigurationResponse model = new GasStationConfigurationResponse(); /** Model tests for GasStationConfigurationResponse */ @Test - public void testGasStationConfigurationResponse() { + void testGasStationConfigurationResponse() { // TODO: test GasStationConfigurationResponse } /** Test the property 'gasThreshold' */ @Test - public void gasThresholdTest() { + void gasThresholdTest() { // TODO: test gasThreshold } /** Test the property 'gasCap' */ @Test - public void gasCapTest() { + void gasCapTest() { // TODO: test gasCap } /** Test the property 'maxGasPrice' */ @Test - public void maxGasPriceTest() { + void maxGasPriceTest() { // TODO: test maxGasPrice } } diff --git a/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationTest.java b/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationTest.java index d1445af8..e00b645b 100644 --- a/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GasStationConfigurationTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GasStationConfiguration */ -public class GasStationConfigurationTest { +class GasStationConfigurationTest { private final GasStationConfiguration model = new GasStationConfiguration(); /** Model tests for GasStationConfiguration */ @Test - public void testGasStationConfiguration() { + void testGasStationConfiguration() { // TODO: test GasStationConfiguration } /** Test the property 'gasThreshold' */ @Test - public void gasThresholdTest() { + void gasThresholdTest() { // TODO: test gasThreshold } /** Test the property 'gasCap' */ @Test - public void gasCapTest() { + void gasCapTest() { // TODO: test gasCap } /** Test the property 'maxGasPrice' */ @Test - public void maxGasPriceTest() { + void maxGasPriceTest() { // TODO: test maxGasPrice } } diff --git a/src/test/java/com/fireblocks/sdk/model/GasStationPropertiesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GasStationPropertiesResponseTest.java index 41b87676..59b21aec 100644 --- a/src/test/java/com/fireblocks/sdk/model/GasStationPropertiesResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GasStationPropertiesResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GasStationPropertiesResponse */ -public class GasStationPropertiesResponseTest { +class GasStationPropertiesResponseTest { private final GasStationPropertiesResponse model = new GasStationPropertiesResponse(); /** Model tests for GasStationPropertiesResponse */ @Test - public void testGasStationPropertiesResponse() { + void testGasStationPropertiesResponse() { // TODO: test GasStationPropertiesResponse } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } /** Test the property '_configuration' */ @Test - public void _configurationTest() { + void _configurationTest() { // TODO: test _configuration } } diff --git a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java b/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java index 0b1139f6..c451957e 100644 --- a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GasslessStandardConfigurationsGaslessStandardConfigurationsValue */ -public class GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest { +class GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest { private final GasslessStandardConfigurationsGaslessStandardConfigurationsValue model = new GasslessStandardConfigurationsGaslessStandardConfigurationsValue(); /** Model tests for GasslessStandardConfigurationsGaslessStandardConfigurationsValue */ @Test - public void testGasslessStandardConfigurationsGaslessStandardConfigurationsValue() { + void testGasslessStandardConfigurationsGaslessStandardConfigurationsValue() { // TODO: test GasslessStandardConfigurationsGaslessStandardConfigurationsValue } /** Test the property 'lastOnChainCheck' */ @Test - public void lastOnChainCheckTest() { + void lastOnChainCheckTest() { // TODO: test lastOnChainCheck } /** Test the property 'forwarderAddresses' */ @Test - public void forwarderAddressesTest() { + 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 index f13a684f..598c2e09 100644 --- a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GasslessStandardConfigurations */ -public class GasslessStandardConfigurationsTest { +class GasslessStandardConfigurationsTest { private final GasslessStandardConfigurations model = new GasslessStandardConfigurations(); /** Model tests for GasslessStandardConfigurations */ @Test - public void testGasslessStandardConfigurations() { + void testGasslessStandardConfigurations() { // TODO: test GasslessStandardConfigurations } /** Test the property 'gaslessStandardConfigurations' */ @Test - public void gaslessStandardConfigurationsTest() { + void gaslessStandardConfigurationsTest() { // TODO: test gaslessStandardConfigurations } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetAPIUsersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetAPIUsersResponseTest.java index 310876da..0c061e7b 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetAPIUsersResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetAPIUsersResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetAPIUsersResponse */ -public class GetAPIUsersResponseTest { +class GetAPIUsersResponseTest { private final GetAPIUsersResponse model = new GetAPIUsersResponse(); /** Model tests for GetAPIUsersResponse */ @Test - public void testGetAPIUsersResponse() { + void testGetAPIUsersResponse() { // TODO: test GetAPIUsersResponse } /** Test the property 'users' */ @Test - public void usersTest() { + void usersTest() { // TODO: test users } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseTest.java index 295a0336..ebbb4a4e 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetAuditLogsResponse */ -public class GetAuditLogsResponseTest { +class GetAuditLogsResponseTest { private final GetAuditLogsResponse model = new GetAuditLogsResponse(); /** Model tests for GetAuditLogsResponse */ @Test - public void testGetAuditLogsResponse() { + void testGetAuditLogsResponse() { // TODO: test GetAuditLogsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'cursor' */ @Test - public void cursorTest() { + void cursorTest() { // TODO: test cursor } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetConnectionsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetConnectionsResponseTest.java index 748bb363..1f7aa02f 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetConnectionsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetConnectionsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetConnectionsResponse */ -public class GetConnectionsResponseTest { +class GetConnectionsResponseTest { private final GetConnectionsResponse model = new GetConnectionsResponse(); /** Model tests for GetConnectionsResponse */ @Test - public void testGetConnectionsResponse() { + void testGetConnectionsResponse() { // TODO: test GetConnectionsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetConsoleUsersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetConsoleUsersResponseTest.java index cd4915a8..6fc2b1a3 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetConsoleUsersResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetConsoleUsersResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetConsoleUsersResponse */ -public class GetConsoleUsersResponseTest { +class GetConsoleUsersResponseTest { private final GetConsoleUsersResponse model = new GetConsoleUsersResponse(); /** Model tests for GetConsoleUsersResponse */ @Test - public void testGetConsoleUsersResponse() { + void testGetConsoleUsersResponse() { // TODO: test GetConsoleUsersResponse } /** Test the property 'users' */ @Test - public void usersTest() { + void usersTest() { // TODO: test users } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java b/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java index 407f9e34..fc4834a4 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetDeployableAddressRequest */ -public class GetDeployableAddressRequestTest { +class GetDeployableAddressRequestTest { private final GetDeployableAddressRequest model = new GetDeployableAddressRequest(); /** Model tests for GetDeployableAddressRequest */ @Test - public void testGetDeployableAddressRequest() { + void testGetDeployableAddressRequest() { // TODO: test GetDeployableAddressRequest } /** Test the property 'chainDescriptor' */ @Test - public void chainDescriptorTest() { + void chainDescriptorTest() { // TODO: test chainDescriptor } /** Test the property 'templateId' */ @Test - public void templateIdTest() { + void templateIdTest() { // TODO: test templateId } /** Test the property 'initParams' */ @Test - public void initParamsTest() { + void initParamsTest() { // TODO: test initParams } /** Test the property 'salt' */ @Test - public void saltTest() { + 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 index 6d5c1a33..4c1f7dd1 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetExchangeAccountsCredentialsPublicKeyResponse */ -public class GetExchangeAccountsCredentialsPublicKeyResponseTest { +class GetExchangeAccountsCredentialsPublicKeyResponseTest { private final GetExchangeAccountsCredentialsPublicKeyResponse model = new GetExchangeAccountsCredentialsPublicKeyResponse(); /** Model tests for GetExchangeAccountsCredentialsPublicKeyResponse */ @Test - public void testGetExchangeAccountsCredentialsPublicKeyResponse() { + void testGetExchangeAccountsCredentialsPublicKeyResponse() { // TODO: test GetExchangeAccountsCredentialsPublicKeyResponse } /** Test the property 'publicKey' */ @Test - public void publicKeyTest() { + void publicKeyTest() { // TODO: test publicKey } /** Test the property 'tenantId' */ @Test - public void tenantIdTest() { + void tenantIdTest() { // TODO: test tenantId } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetFilterParameterTest.java b/src/test/java/com/fireblocks/sdk/model/GetFilterParameterTest.java index 60050385..761c1d06 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetFilterParameterTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetFilterParameterTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetFilterParameter */ -public class GetFilterParameterTest { +class GetFilterParameterTest { private final GetFilterParameter model = new GetFilterParameter(); /** Model tests for GetFilterParameter */ @Test - public void testGetFilterParameter() { + void testGetFilterParameter() { // TODO: test GetFilterParameter } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'connectionMethod' */ @Test - public void connectionMethodTest() { + void connectionMethodTest() { // TODO: test connectionMethod } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'appUrl' */ @Test - public void appUrlTest() { + void appUrlTest() { // TODO: test appUrl } /** Test the property 'appName' */ @Test - public void appNameTest() { + void appNameTest() { // TODO: test appName } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java index 5e793392..54060f9f 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetLayerZeroDvnConfigResponse */ -public class GetLayerZeroDvnConfigResponseTest { +class GetLayerZeroDvnConfigResponseTest { private final GetLayerZeroDvnConfigResponse model = new GetLayerZeroDvnConfigResponse(); /** Model tests for GetLayerZeroDvnConfigResponse */ @Test - public void testGetLayerZeroDvnConfigResponse() { + void testGetLayerZeroDvnConfigResponse() { // TODO: test GetLayerZeroDvnConfigResponse } /** Test the property 'sourceAdapterTokenLinkId' */ @Test - public void sourceAdapterTokenLinkIdTest() { + void sourceAdapterTokenLinkIdTest() { // TODO: test sourceAdapterTokenLinkId } /** Test the property 'channelConfigs' */ @Test - public void channelConfigsTest() { + 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 index d791e728..04da14dc 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetLayerZeroPeersResponse */ -public class GetLayerZeroPeersResponseTest { +class GetLayerZeroPeersResponseTest { private final GetLayerZeroPeersResponse model = new GetLayerZeroPeersResponse(); /** Model tests for GetLayerZeroPeersResponse */ @Test - public void testGetLayerZeroPeersResponse() { + void testGetLayerZeroPeersResponse() { // TODO: test GetLayerZeroPeersResponse } /** Test the property 'adapterTokenLinkId' */ @Test - public void adapterTokenLinkIdTest() { + void adapterTokenLinkIdTest() { // TODO: test adapterTokenLinkId } /** Test the property 'adapterAddress' */ @Test - public void adapterAddressTest() { + void adapterAddressTest() { // TODO: test adapterAddress } /** Test the property 'peers' */ @Test - public void peersTest() { + 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 index 3b0f9741..bd9b6445 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetLinkedCollectionsPaginatedResponse */ -public class GetLinkedCollectionsPaginatedResponseTest { +class GetLinkedCollectionsPaginatedResponseTest { private final GetLinkedCollectionsPaginatedResponse model = new GetLinkedCollectionsPaginatedResponse(); /** Model tests for GetLinkedCollectionsPaginatedResponse */ @Test - public void testGetLinkedCollectionsPaginatedResponse() { + void testGetLinkedCollectionsPaginatedResponse() { // TODO: test GetLinkedCollectionsPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponseTest.java index a0d03b7d..3cce489f 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetMaxSpendableAmountResponse */ -public class GetMaxSpendableAmountResponseTest { +class GetMaxSpendableAmountResponseTest { private final GetMaxSpendableAmountResponse model = new GetMaxSpendableAmountResponse(); /** Model tests for GetMaxSpendableAmountResponse */ @Test - public void testGetMaxSpendableAmountResponse() { + void testGetMaxSpendableAmountResponse() { // TODO: test GetMaxSpendableAmountResponse } /** Test the property 'maxSpendableAmount' */ @Test - public void maxSpendableAmountTest() { + void maxSpendableAmountTest() { // TODO: test maxSpendableAmount } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java index 7a6a9090..72caf88b 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetMpcKeysResponse */ -public class GetMpcKeysResponseTest { +class GetMpcKeysResponseTest { private final GetMpcKeysResponse model = new GetMpcKeysResponse(); /** Model tests for GetMpcKeysResponse */ @Test - public void testGetMpcKeysResponse() { + void testGetMpcKeysResponse() { // TODO: test GetMpcKeysResponse } /** Test the property 'tenantId' */ @Test - public void tenantIdTest() { + void tenantIdTest() { // TODO: test tenantId } /** Test the property 'keys' */ @Test - public void keysTest() { + void keysTest() { // TODO: test keys } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetNFTsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetNFTsResponseTest.java index 67b4cee1..267f8c8c 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetNFTsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetNFTsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetNFTsResponse */ -public class GetNFTsResponseTest { +class GetNFTsResponseTest { private final GetNFTsResponse model = new GetNFTsResponse(); /** Model tests for GetNFTsResponse */ @Test - public void testGetNFTsResponse() { + void testGetNFTsResponse() { // TODO: test GetNFTsResponse } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetOtaStatusResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetOtaStatusResponseTest.java index 5c2e99e6..0ce1cc62 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetOtaStatusResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetOtaStatusResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetOtaStatusResponse */ -public class GetOtaStatusResponseTest { +class GetOtaStatusResponseTest { private final GetOtaStatusResponse model = new GetOtaStatusResponse(); /** Model tests for GetOtaStatusResponse */ @Test - public void testGetOtaStatusResponse() { + void testGetOtaStatusResponse() { // TODO: test GetOtaStatusResponse } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetOwnershipTokensResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetOwnershipTokensResponseTest.java index 2dc42cb4..13702c73 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetOwnershipTokensResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetOwnershipTokensResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetOwnershipTokensResponse */ -public class GetOwnershipTokensResponseTest { +class GetOwnershipTokensResponseTest { private final GetOwnershipTokensResponse model = new GetOwnershipTokensResponse(); /** Model tests for GetOwnershipTokensResponse */ @Test - public void testGetOwnershipTokensResponse() { + void testGetOwnershipTokensResponse() { // TODO: test GetOwnershipTokensResponse } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetSigningKeyResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/GetSigningKeyResponseDtoTest.java index 5774d0c1..dedbcf4b 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetSigningKeyResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetSigningKeyResponseDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetSigningKeyResponseDto */ -public class GetSigningKeyResponseDtoTest { +class GetSigningKeyResponseDtoTest { private final GetSigningKeyResponseDto model = new GetSigningKeyResponseDto(); /** Model tests for GetSigningKeyResponseDto */ @Test - public void testGetSigningKeyResponseDto() { + void testGetSigningKeyResponseDto() { // TODO: test GetSigningKeyResponseDto } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetTransactionOperationTest.java b/src/test/java/com/fireblocks/sdk/model/GetTransactionOperationTest.java index 8748e8d5..ba1b68de 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetTransactionOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetTransactionOperationTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetTransactionOperation */ -public class GetTransactionOperationTest { +class GetTransactionOperationTest { /** Model tests for GetTransactionOperation */ @Test - public void testGetTransactionOperation() { + void testGetTransactionOperation() { // TODO: test GetTransactionOperation } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetValidationKeyResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/GetValidationKeyResponseDtoTest.java index 08a45ee9..6b1113fe 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetValidationKeyResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetValidationKeyResponseDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetValidationKeyResponseDto */ -public class GetValidationKeyResponseDtoTest { +class GetValidationKeyResponseDtoTest { private final GetValidationKeyResponseDto model = new GetValidationKeyResponseDto(); /** Model tests for GetValidationKeyResponseDto */ @Test - public void testGetValidationKeyResponseDto() { + void testGetValidationKeyResponseDto() { // TODO: test GetValidationKeyResponseDto } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponseTest.java index 405a66f6..94efb9ee 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetWhitelistIpAddressesResponse */ -public class GetWhitelistIpAddressesResponseTest { +class GetWhitelistIpAddressesResponseTest { private final GetWhitelistIpAddressesResponse model = new GetWhitelistIpAddressesResponse(); /** Model tests for GetWhitelistIpAddressesResponse */ @Test - public void testGetWhitelistIpAddressesResponse() { + void testGetWhitelistIpAddressesResponse() { // TODO: test GetWhitelistIpAddressesResponse } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } /** Test the property 'whitelistedIps' */ @Test - public void whitelistedIpsTest() { + void whitelistedIpsTest() { // TODO: test whitelistedIps } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponseTest.java index cb27ec00..8cbe2495 100644 --- a/src/test/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for GetWorkspaceStatusResponse */ -public class GetWorkspaceStatusResponseTest { +class GetWorkspaceStatusResponseTest { private final GetWorkspaceStatusResponse model = new GetWorkspaceStatusResponse(); /** Model tests for GetWorkspaceStatusResponse */ @Test - public void testGetWorkspaceStatusResponse() { + void testGetWorkspaceStatusResponse() { // TODO: test GetWorkspaceStatusResponse } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/HttpContractDoesNotExistErrorTest.java b/src/test/java/com/fireblocks/sdk/model/HttpContractDoesNotExistErrorTest.java index a0dd23e8..00db96ca 100644 --- a/src/test/java/com/fireblocks/sdk/model/HttpContractDoesNotExistErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/HttpContractDoesNotExistErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for HttpContractDoesNotExistError */ -public class HttpContractDoesNotExistErrorTest { +class HttpContractDoesNotExistErrorTest { private final HttpContractDoesNotExistError model = new HttpContractDoesNotExistError(); /** Model tests for HttpContractDoesNotExistError */ @Test - public void testHttpContractDoesNotExistError() { + void testHttpContractDoesNotExistError() { // TODO: test HttpContractDoesNotExistError } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java similarity index 60% rename from src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java rename to src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java index f135198e..a12200ca 100644 --- a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java +++ b/src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java @@ -13,82 +13,81 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf */ -public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest { - private final AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf model = - new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf(); +/** Model tests for IbanPaymentInfo */ +class IbanPaymentInfoTest { + private final IbanPaymentInfo model = new IbanPaymentInfo(); - /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf */ + /** Model tests for IbanPaymentInfo */ @Test - public void testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf() { - // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + void testIbanPaymentInfo() { + // TODO: test IbanPaymentInfo } /** Test the property 'accountHolderGivenName' */ @Test - public void accountHolderGivenNameTest() { + void accountHolderGivenNameTest() { // TODO: test accountHolderGivenName } /** Test the property 'accountHolderSurname' */ @Test - public void accountHolderSurnameTest() { + void accountHolderSurnameTest() { // TODO: test accountHolderSurname } /** Test the property 'accountHolderCity' */ @Test - public void accountHolderCityTest() { + void accountHolderCityTest() { // TODO: test accountHolderCity } /** Test the property 'accountHolderCountry' */ @Test - public void accountHolderCountryTest() { + void accountHolderCountryTest() { // TODO: test accountHolderCountry } /** Test the property 'accountHolderAddress1' */ @Test - public void accountHolderAddress1Test() { + void accountHolderAddress1Test() { // TODO: test accountHolderAddress1 } /** Test the property 'accountHolderAddress2' */ @Test - public void accountHolderAddress2Test() { + void accountHolderAddress2Test() { // TODO: test accountHolderAddress2 } /** Test the property 'accountHolderDistrict' */ @Test - public void accountHolderDistrictTest() { + void accountHolderDistrictTest() { // TODO: test accountHolderDistrict } /** Test the property 'accountHolderPostalCode' */ @Test - public void accountHolderPostalCodeTest() { + void accountHolderPostalCodeTest() { // TODO: test accountHolderPostalCode } /** Test the property 'iban' */ @Test - public void ibanTest() { + void ibanTest() { // TODO: test iban } /** Test the property 'ibanCity' */ @Test - public void ibanCityTest() { + void ibanCityTest() { // TODO: test ibanCity } /** Test the property 'ibanCountry' */ @Test - public void ibanCountryTest() { + void ibanCountryTest() { // TODO: test ibanCountry } } diff --git a/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java b/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java index ef3b0ad7..b5479c5c 100644 --- a/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for IdlType */ -public class IdlTypeTest { +class IdlTypeTest { /** Model tests for IdlType */ @Test - public void testIdlType() { + void testIdlType() { // TODO: test IdlType } } diff --git a/src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java b/src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java new file mode 100644 index 00000000..f3fc6fde --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java @@ -0,0 +1,63 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..e91ab323 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java @@ -0,0 +1,63 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/InstructionAmountTest.java b/src/test/java/com/fireblocks/sdk/model/InstructionAmountTest.java index a2f0a8f2..db22b4bd 100644 --- a/src/test/java/com/fireblocks/sdk/model/InstructionAmountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/InstructionAmountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for InstructionAmount */ -public class InstructionAmountTest { +class InstructionAmountTest { private final InstructionAmount model = new InstructionAmount(); /** Model tests for InstructionAmount */ @Test - public void testInstructionAmount() { + void testInstructionAmount() { // TODO: test InstructionAmount } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } } diff --git a/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java b/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java index 22ff289c..f50cced9 100644 --- a/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for InternalTransferResponse */ -public class InternalTransferResponseTest { +class InternalTransferResponseTest { private final InternalTransferResponse model = new InternalTransferResponse(); /** Model tests for InternalTransferResponse */ @Test - public void testInternalTransferResponse() { + void testInternalTransferResponse() { // TODO: test InternalTransferResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } /** Test the property 'id' */ @Test - public void idTest() { + 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 index 7ae59b88..0a712c08 100644 --- a/src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for InvalidParamaterValueError */ -public class InvalidParamaterValueErrorTest { +class InvalidParamaterValueErrorTest { private final InvalidParamaterValueError model = new InvalidParamaterValueError(); /** Model tests for InvalidParamaterValueError */ @Test - public void testInvalidParamaterValueError() { + void testInvalidParamaterValueError() { // TODO: test InvalidParamaterValueError } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/JobCreatedTest.java b/src/test/java/com/fireblocks/sdk/model/JobCreatedTest.java index fc74c954..401e1427 100644 --- a/src/test/java/com/fireblocks/sdk/model/JobCreatedTest.java +++ b/src/test/java/com/fireblocks/sdk/model/JobCreatedTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for JobCreated */ -public class JobCreatedTest { +class JobCreatedTest { private final JobCreated model = new JobCreated(); /** Model tests for JobCreated */ @Test - public void testJobCreated() { + void testJobCreated() { // TODO: test JobCreated } /** Test the property 'jobId' */ @Test - public void jobIdTest() { + void jobIdTest() { // TODO: test jobId } } diff --git a/src/test/java/com/fireblocks/sdk/model/JobTest.java b/src/test/java/com/fireblocks/sdk/model/JobTest.java index df8e55db..81c860d3 100644 --- a/src/test/java/com/fireblocks/sdk/model/JobTest.java +++ b/src/test/java/com/fireblocks/sdk/model/JobTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Job */ -public class JobTest { +class JobTest { private final Job model = new Job(); /** Model tests for Job */ @Test - public void testJob() { + void testJob() { // TODO: test Job } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'tenantId' */ @Test - public void tenantIdTest() { + void tenantIdTest() { // TODO: test tenantId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } /** Test the property 'created' */ @Test - public void createdTest() { + void createdTest() { // TODO: test created } /** Test the property 'updated' */ @Test - public void updatedTest() { + void updatedTest() { // TODO: test updated } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } /** Test the property 'tasks' */ @Test - public void tasksTest() { + void tasksTest() { // TODO: test tasks } } diff --git a/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java b/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java index bd5553c9..94988fb0 100644 --- a/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for LayerZeroAdapterCreateParams */ -public class LayerZeroAdapterCreateParamsTest { +class LayerZeroAdapterCreateParamsTest { private final LayerZeroAdapterCreateParams model = new LayerZeroAdapterCreateParams(); /** Model tests for LayerZeroAdapterCreateParams */ @Test - public void testLayerZeroAdapterCreateParams() { + void testLayerZeroAdapterCreateParams() { // TODO: test LayerZeroAdapterCreateParams } /** Test the property 'tokenLinkId' */ @Test - public void tokenLinkIdTest() { + void tokenLinkIdTest() { // TODO: test tokenLinkId } /** Test the property 'delegateAddress' */ @Test - public void delegateAddressTest() { + void delegateAddressTest() { // TODO: test delegateAddress } /** Test the property 'defaultAdminAddress' */ @Test - public void defaultAdminAddressTest() { + void defaultAdminAddressTest() { // TODO: test defaultAdminAddress } /** Test the property 'pauserAddress' */ @Test - public void pauserAddressTest() { + 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 new file mode 100644 index 00000000..31062330 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java @@ -0,0 +1,75 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 62582399..fb11fde2 100644 --- a/src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for LeanAbiFunction */ -public class LeanAbiFunctionTest { +class LeanAbiFunctionTest { private final LeanAbiFunction model = new LeanAbiFunction(); /** Model tests for LeanAbiFunction */ @Test - public void testLeanAbiFunction() { + void testLeanAbiFunction() { // TODO: test LeanAbiFunction } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } } diff --git a/src/test/java/com/fireblocks/sdk/model/LeanContractDtoTest.java b/src/test/java/com/fireblocks/sdk/model/LeanContractDtoTest.java index 7744c1fb..cbff6354 100644 --- a/src/test/java/com/fireblocks/sdk/model/LeanContractDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LeanContractDtoTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for LeanContractDto */ -public class LeanContractDtoTest { +class LeanContractDtoTest { private final LeanContractDto model = new LeanContractDto(); /** Model tests for LeanContractDto */ @Test - public void testLeanContractDto() { + void testLeanContractDto() { // TODO: test LeanContractDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'attributes' */ @Test - public void attributesTest() { + void attributesTest() { // TODO: test attributes } /** Test the property 'isPublic' */ @Test - public void isPublicTest() { + void isPublicTest() { // TODO: test isPublic } /** Test the property 'canDeploy' */ @Test - public void canDeployTest() { + void canDeployTest() { // TODO: test canDeploy } /** Test the property 'owner' */ @Test - public void ownerTest() { + void ownerTest() { // TODO: test owner } /** Test the property 'vendor' */ @Test - public void vendorTest() { + void vendorTest() { // TODO: test vendor } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDtoTest.java index 68a623bb..d82095d4 100644 --- a/src/test/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDtoTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for LeanDeployedContractResponseDto */ -public class LeanDeployedContractResponseDtoTest { +class LeanDeployedContractResponseDtoTest { private final LeanDeployedContractResponseDto model = new LeanDeployedContractResponseDto(); /** Model tests for LeanDeployedContractResponseDto */ @Test - public void testLeanDeployedContractResponseDto() { + void testLeanDeployedContractResponseDto() { // TODO: test LeanDeployedContractResponseDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'contractTemplateId' */ @Test - public void contractTemplateIdTest() { + void contractTemplateIdTest() { // TODO: test contractTemplateId } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java new file mode 100644 index 00000000..c22f9d7d --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java @@ -0,0 +1,25 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..5511682c --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..5686c819 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java @@ -0,0 +1,40 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..6ed74041 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..c3dd6e06 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..7cc8ce94 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..6a84093d --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyRuleAmountAggregationTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java similarity index 59% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregationTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java index 25bb8081..8c7636e6 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleAmountAggregation */ -public class PolicyRuleAmountAggregationTest { - private final PolicyRuleAmountAggregation model = new PolicyRuleAmountAggregation(); +/** Model tests for LegacyPolicyRuleAmountAggregation */ +class LegacyPolicyRuleAmountAggregationTest { + private final LegacyPolicyRuleAmountAggregation model = new LegacyPolicyRuleAmountAggregation(); - /** Model tests for PolicyRuleAmountAggregation */ + /** Model tests for LegacyPolicyRuleAmountAggregation */ @Test - public void testPolicyRuleAmountAggregation() { - // TODO: test PolicyRuleAmountAggregation + void testLegacyPolicyRuleAmountAggregation() { + // TODO: test LegacyPolicyRuleAmountAggregation } /** Test the property 'operators' */ @Test - public void operatorsTest() { + void operatorsTest() { // TODO: test operators } /** Test the property 'srcTransferPeers' */ @Test - public void srcTransferPeersTest() { + void srcTransferPeersTest() { // TODO: test srcTransferPeers } /** Test the property 'dstTransferPeers' */ @Test - public void dstTransferPeersTest() { + void dstTransferPeersTest() { // TODO: test dstTransferPeers } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java new file mode 100644 index 00000000..4aecf994 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java @@ -0,0 +1,27 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyRuleAuthorizationGroupsGroupsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java similarity index 54% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInnerTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java index 9b1395e2..c4527e70 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleAuthorizationGroupsGroupsInner */ -public class PolicyRuleAuthorizationGroupsGroupsInnerTest { - private final PolicyRuleAuthorizationGroupsGroupsInner model = - new PolicyRuleAuthorizationGroupsGroupsInner(); +/** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */ +class LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest { + private final LegacyPolicyRuleAuthorizationGroupsGroupsInner model = + new LegacyPolicyRuleAuthorizationGroupsGroupsInner(); - /** Model tests for PolicyRuleAuthorizationGroupsGroupsInner */ + /** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */ @Test - public void testPolicyRuleAuthorizationGroupsGroupsInner() { - // TODO: test PolicyRuleAuthorizationGroupsGroupsInner + void testLegacyPolicyRuleAuthorizationGroupsGroupsInner() { + // TODO: test LegacyPolicyRuleAuthorizationGroupsGroupsInner } /** Test the property 'users' */ @Test - public void usersTest() { + void usersTest() { // TODO: test users } /** Test the property 'usersGroups' */ @Test - public void usersGroupsTest() { + void usersGroupsTest() { // TODO: test usersGroups } /** Test the property 'th' */ @Test - public void thTest() { + void thTest() { // TODO: test th } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java similarity index 58% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java index 9b71d798..c9a1724c 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java @@ -13,33 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleAuthorizationGroups */ -public class PolicyRuleAuthorizationGroupsTest { - private final PolicyRuleAuthorizationGroups model = new PolicyRuleAuthorizationGroups(); +/** Model tests for LegacyPolicyRuleAuthorizationGroups */ +class LegacyPolicyRuleAuthorizationGroupsTest { + private final LegacyPolicyRuleAuthorizationGroups model = + new LegacyPolicyRuleAuthorizationGroups(); - /** Model tests for PolicyRuleAuthorizationGroups */ + /** Model tests for LegacyPolicyRuleAuthorizationGroups */ @Test - public void testPolicyRuleAuthorizationGroups() { - // TODO: test PolicyRuleAuthorizationGroups + void testLegacyPolicyRuleAuthorizationGroups() { + // TODO: test LegacyPolicyRuleAuthorizationGroups } /** Test the property 'logic' */ @Test - public void logicTest() { + void logicTest() { // TODO: test logic } /** Test the property 'allowOperatorAsAuthorizer' */ @Test - public void allowOperatorAsAuthorizerTest() { + void allowOperatorAsAuthorizerTest() { // TODO: test allowOperatorAsAuthorizer } /** Test the property 'groups' */ @Test - public void groupsTest() { + void groupsTest() { // TODO: test groups } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java new file mode 100644 index 00000000..74aa112b --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyRuleDesignatedSignersTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java similarity index 57% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSignersTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java index c3a63d9f..247133d1 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSignersTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleDesignatedSigners */ -public class PolicyRuleDesignatedSignersTest { - private final PolicyRuleDesignatedSigners model = new PolicyRuleDesignatedSigners(); +/** Model tests for LegacyPolicyRuleDesignatedSigners */ +class LegacyPolicyRuleDesignatedSignersTest { + private final LegacyPolicyRuleDesignatedSigners model = new LegacyPolicyRuleDesignatedSigners(); - /** Model tests for PolicyRuleDesignatedSigners */ + /** Model tests for LegacyPolicyRuleDesignatedSigners */ @Test - public void testPolicyRuleDesignatedSigners() { - // TODO: test PolicyRuleDesignatedSigners + void testLegacyPolicyRuleDesignatedSigners() { + // TODO: test LegacyPolicyRuleDesignatedSigners } /** Test the property 'users' */ @Test - public void usersTest() { + void usersTest() { // TODO: test users } /** Test the property 'usersGroups' */ @Test - public void usersGroupsTest() { + void usersGroupsTest() { // TODO: test usersGroups } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java similarity index 61% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java index 0dc15ba4..db810e3b 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleDst */ -public class PolicyRuleDstTest { - private final PolicyRuleDst model = new PolicyRuleDst(); +/** Model tests for LegacyPolicyRuleDst */ +class LegacyPolicyRuleDstTest { + private final LegacyPolicyRuleDst model = new LegacyPolicyRuleDst(); - /** Model tests for PolicyRuleDst */ + /** Model tests for LegacyPolicyRuleDst */ @Test - public void testPolicyRuleDst() { - // TODO: test PolicyRuleDst + void testLegacyPolicyRuleDst() { + // TODO: test LegacyPolicyRuleDst } /** Test the property 'ids' */ @Test - public void idsTest() { + void idsTest() { // TODO: test ids } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java new file mode 100644 index 00000000..ef414606 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyRuleOperatorsTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java similarity index 63% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleOperatorsTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java index 139e5c5b..a9ef2aed 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleOperatorsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleOperators */ -public class PolicyRuleOperatorsTest { - private final PolicyRuleOperators model = new PolicyRuleOperators(); +/** Model tests for LegacyPolicyRuleOperators */ +class LegacyPolicyRuleOperatorsTest { + private final LegacyPolicyRuleOperators model = new LegacyPolicyRuleOperators(); - /** Model tests for PolicyRuleOperators */ + /** Model tests for LegacyPolicyRuleOperators */ @Test - public void testPolicyRuleOperators() { - // TODO: test PolicyRuleOperators + void testLegacyPolicyRuleOperators() { + // TODO: test LegacyPolicyRuleOperators } /** Test the property 'wildcard' */ @Test - public void wildcardTest() { + void wildcardTest() { // TODO: test wildcard } /** Test the property 'users' */ @Test - public void usersTest() { + void usersTest() { // TODO: test users } /** Test the property 'usersGroups' */ @Test - public void usersGroupsTest() { + void usersGroupsTest() { // TODO: test usersGroups } /** Test the property 'services' */ @Test - public void servicesTest() { + void servicesTest() { // TODO: test services } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java new file mode 100644 index 00000000..bc587797 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java @@ -0,0 +1,34 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyRuleRawMessageSigningTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java similarity index 57% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java index 86d9ecb8..41a212ea 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleRawMessageSigning */ -public class PolicyRuleRawMessageSigningTest { - private final PolicyRuleRawMessageSigning model = new PolicyRuleRawMessageSigning(); +/** Model tests for LegacyPolicyRuleRawMessageSigning */ +class LegacyPolicyRuleRawMessageSigningTest { + private final LegacyPolicyRuleRawMessageSigning model = new LegacyPolicyRuleRawMessageSigning(); - /** Model tests for PolicyRuleRawMessageSigning */ + /** Model tests for LegacyPolicyRuleRawMessageSigning */ @Test - public void testPolicyRuleRawMessageSigning() { - // TODO: test PolicyRuleRawMessageSigning + void testLegacyPolicyRuleRawMessageSigning() { + // TODO: test LegacyPolicyRuleRawMessageSigning } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + void algorithmTest() { // TODO: test algorithm } /** Test the property 'derivationPath' */ @Test - public void derivationPathTest() { + void derivationPathTest() { // TODO: test derivationPath } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java similarity index 61% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java index 9e8dcdbc..6deb7926 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleSrc */ -public class PolicyRuleSrcTest { - private final PolicyRuleSrc model = new PolicyRuleSrc(); +/** Model tests for LegacyPolicyRuleSrc */ +class LegacyPolicyRuleSrcTest { + private final LegacyPolicyRuleSrc model = new LegacyPolicyRuleSrc(); - /** Model tests for PolicyRuleSrc */ + /** Model tests for LegacyPolicyRuleSrc */ @Test - public void testPolicyRuleSrc() { - // TODO: test PolicyRuleSrc + void testLegacyPolicyRuleSrc() { + // TODO: test LegacyPolicyRuleSrc } /** Test the property 'ids' */ @Test - public void idsTest() { + void idsTest() { // TODO: test ids } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java new file mode 100644 index 00000000..8cc3c851 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java @@ -0,0 +1,201 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyRulesTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java similarity index 62% rename from src/test/java/com/fireblocks/sdk/model/PolicyRulesTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java index 83285234..bbce1a42 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRulesTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRules */ -public class PolicyRulesTest { - private final PolicyRules model = new PolicyRules(); +/** Model tests for LegacyPolicyRules */ +class LegacyPolicyRulesTest { + private final LegacyPolicyRules model = new LegacyPolicyRules(); - /** Model tests for PolicyRules */ + /** Model tests for LegacyPolicyRules */ @Test - public void testPolicyRules() { - // TODO: test PolicyRules + void testLegacyPolicyRules() { + // TODO: test LegacyPolicyRules } /** Test the property 'rules' */ @Test - public void rulesTest() { + void rulesTest() { // TODO: test rules } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java similarity index 60% rename from src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java index e8d6c6c8..bd9323fe 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java @@ -13,15 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicyRuleAmount */ -public class PolicyRuleAmountTest { - private final PolicyRuleAmount model = new PolicyRuleAmount(); - - /** Model tests for PolicyRuleAmount */ +/** Model tests for LegacyPolicySrcOrDestSubType */ +class LegacyPolicySrcOrDestSubTypeTest { + /** Model tests for LegacyPolicySrcOrDestSubType */ @Test - public void testPolicyRuleAmount() { - // TODO: test PolicyRuleAmount + void testLegacyPolicySrcOrDestSubType() { + // TODO: test LegacyPolicySrcOrDestSubType } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java similarity index 58% rename from src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java index c80dd24e..7093db3f 100644 --- a/src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for AmountAggregationTimePeriodMethod */ -public class AmountAggregationTimePeriodMethodTest { - /** Model tests for AmountAggregationTimePeriodMethod */ +/** Model tests for LegacyPolicySrcOrDestType */ +class LegacyPolicySrcOrDestTypeTest { + /** Model tests for LegacyPolicySrcOrDestType */ @Test - public void testAmountAggregationTimePeriodMethod() { - // TODO: test AmountAggregationTimePeriodMethod + void testLegacyPolicySrcOrDestType() { + // TODO: test LegacyPolicySrcOrDestType } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java similarity index 63% rename from src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java rename to src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java index c6e36cb9..01a4c6e5 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; -/** Model tests for PolicySrcOrDestSubType */ -public class PolicySrcOrDestSubTypeTest { - /** Model tests for PolicySrcOrDestSubType */ +/** Model tests for LegacyPolicyStatus */ +class LegacyPolicyStatusTest { + /** Model tests for LegacyPolicyStatus */ @Test - public void testPolicySrcOrDestSubType() { - // TODO: test PolicySrcOrDestSubType + 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 new file mode 100644 index 00000000..c7f21f3f --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..80fc0d6e --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java @@ -0,0 +1,33 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..44b68e53 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..73420389 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java @@ -0,0 +1,27 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/ListAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java index aca084d1..38d58a1b 100644 --- a/src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ListAssetsResponse */ -public class ListAssetsResponseTest { +class ListAssetsResponseTest { private final ListAssetsResponse model = new ListAssetsResponse(); /** Model tests for ListAssetsResponse */ @Test - public void testListAssetsResponse() { + void testListAssetsResponse() { // TODO: test ListAssetsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 index 9a45b294..e4b72e31 100644 --- a/src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ListBlockchainsResponse */ -public class ListBlockchainsResponseTest { +class ListBlockchainsResponseTest { private final ListBlockchainsResponse model = new ListBlockchainsResponse(); /** Model tests for ListBlockchainsResponse */ @Test - public void testListBlockchainsResponse() { + void testListBlockchainsResponse() { // TODO: test ListBlockchainsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java index 06cfa2af..1fcf2768 100644 --- a/src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ListOwnedCollectionsResponse */ -public class ListOwnedCollectionsResponseTest { +class ListOwnedCollectionsResponseTest { private final ListOwnedCollectionsResponse model = new ListOwnedCollectionsResponse(); /** Model tests for ListOwnedCollectionsResponse */ @Test - public void testListOwnedCollectionsResponse() { + void testListOwnedCollectionsResponse() { // TODO: test ListOwnedCollectionsResponse } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/ListOwnedTokensResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ListOwnedTokensResponseTest.java index 76514a13..ebb20b86 100644 --- a/src/test/java/com/fireblocks/sdk/model/ListOwnedTokensResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ListOwnedTokensResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ListOwnedTokensResponse */ -public class ListOwnedTokensResponseTest { +class ListOwnedTokensResponseTest { private final ListOwnedTokensResponse model = new ListOwnedTokensResponse(); /** Model tests for ListOwnedTokensResponse */ @Test - public void testListOwnedTokensResponse() { + void testListOwnedTokensResponse() { // TODO: test ListOwnedTokensResponse } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/MediaEntityResponseTest.java b/src/test/java/com/fireblocks/sdk/model/MediaEntityResponseTest.java index 5819fa3f..e9598cc7 100644 --- a/src/test/java/com/fireblocks/sdk/model/MediaEntityResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/MediaEntityResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for MediaEntityResponse */ -public class MediaEntityResponseTest { +class MediaEntityResponseTest { private final MediaEntityResponse model = new MediaEntityResponse(); /** Model tests for MediaEntityResponse */ @Test - public void testMediaEntityResponse() { + void testMediaEntityResponse() { // TODO: test MediaEntityResponse } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'contentType' */ @Test - public void contentTypeTest() { + void contentTypeTest() { // TODO: test contentType } } diff --git a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java index e8c2c9f8..54913619 100644 --- a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for MergeStakeAccountsRequest */ -public class MergeStakeAccountsRequestTest { +class MergeStakeAccountsRequestTest { private final MergeStakeAccountsRequest model = new MergeStakeAccountsRequest(); /** Model tests for MergeStakeAccountsRequest */ @Test - public void testMergeStakeAccountsRequest() { + void testMergeStakeAccountsRequest() { // TODO: test MergeStakeAccountsRequest } /** Test the property 'sourceId' */ @Test - public void sourceIdTest() { + void sourceIdTest() { // TODO: test sourceId } /** Test the property 'destinationId' */ @Test - public void destinationIdTest() { + void destinationIdTest() { // TODO: test destinationId } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + 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 index 7dfa846b..574a34b5 100644 --- a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for MergeStakeAccountsResponse */ -public class MergeStakeAccountsResponseTest { +class MergeStakeAccountsResponseTest { private final MergeStakeAccountsResponse model = new MergeStakeAccountsResponse(); /** Model tests for MergeStakeAccountsResponse */ @Test - public void testMergeStakeAccountsResponse() { + void testMergeStakeAccountsResponse() { // TODO: test MergeStakeAccountsResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } } diff --git a/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDtoTest.java index d92aa339..9b5f79f6 100644 --- a/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ModifySigningKeyAgentIdDto */ -public class ModifySigningKeyAgentIdDtoTest { +class ModifySigningKeyAgentIdDtoTest { private final ModifySigningKeyAgentIdDto model = new ModifySigningKeyAgentIdDto(); /** Model tests for ModifySigningKeyAgentIdDto */ @Test - public void testModifySigningKeyAgentIdDto() { + void testModifySigningKeyAgentIdDto() { // TODO: test ModifySigningKeyAgentIdDto } /** Test the property 'agentUserId' */ @Test - public void agentUserIdTest() { + void agentUserIdTest() { // TODO: test agentUserId } } diff --git a/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyDtoTest.java index dff886b7..d28e7a5f 100644 --- a/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ModifySigningKeyDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ModifySigningKeyDto */ -public class ModifySigningKeyDtoTest { +class ModifySigningKeyDtoTest { private final ModifySigningKeyDto model = new ModifySigningKeyDto(); /** Model tests for ModifySigningKeyDto */ @Test - public void testModifySigningKeyDto() { + void testModifySigningKeyDto() { // TODO: test ModifySigningKeyDto } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } } diff --git a/src/test/java/com/fireblocks/sdk/model/ModifyValidationKeyDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ModifyValidationKeyDtoTest.java index c3adcd04..4ae11291 100644 --- a/src/test/java/com/fireblocks/sdk/model/ModifyValidationKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ModifyValidationKeyDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ModifyValidationKeyDto */ -public class ModifyValidationKeyDtoTest { +class ModifyValidationKeyDtoTest { private final ModifyValidationKeyDto model = new ModifyValidationKeyDto(); /** Model tests for ModifyValidationKeyDto */ @Test - public void testModifyValidationKeyDto() { + void testModifyValidationKeyDto() { // TODO: test ModifyValidationKeyDto } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java new file mode 100644 index 00000000..7ab4e230 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java @@ -0,0 +1,81 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 index 51a74515..5ea77614 100644 --- a/src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for MpcKey */ -public class MpcKeyTest { +class MpcKeyTest { private final MpcKey model = new MpcKey(); /** Model tests for MpcKey */ @Test - public void testMpcKey() { + void testMpcKey() { // TODO: test MpcKey } /** Test the property 'keyId' */ @Test - public void keyIdTest() { + void keyIdTest() { // TODO: test keyId } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + void algorithmTest() { // TODO: test algorithm } /** Test the property 'players' */ @Test - public void playersTest() { + void playersTest() { // TODO: test players } /** Test the property 'lastPreprocessedIndex' */ @Test - public void lastPreprocessedIndexTest() { + 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 index f2d7c696..15f47216 100644 --- a/src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for MultichainDeploymentMetadata */ -public class MultichainDeploymentMetadataTest { +class MultichainDeploymentMetadataTest { private final MultichainDeploymentMetadata model = new MultichainDeploymentMetadata(); /** Model tests for MultichainDeploymentMetadata */ @Test - public void testMultichainDeploymentMetadata() { + void testMultichainDeploymentMetadata() { // TODO: test MultichainDeploymentMetadata } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'templateId' */ @Test - public void templateIdTest() { + void templateIdTest() { // TODO: test templateId } /** Test the property 'deploymentSalt' */ @Test - public void deploymentSaltTest() { + void deploymentSaltTest() { // TODO: test deploymentSalt } /** Test the property 'initParams' */ @Test - public void initParamsTest() { + void initParamsTest() { // TODO: test initParams } /** Test the property 'encodedInitParams' */ @Test - public void encodedInitParamsTest() { + void encodedInitParamsTest() { // TODO: test encodedInitParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkChannelTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkChannelTest.java index 6a6e969d..1a8a16b6 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkChannelTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkChannelTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkChannel */ -public class NetworkChannelTest { +class NetworkChannelTest { private final NetworkChannel model = new NetworkChannel(); /** Model tests for NetworkChannel */ @Test - public void testNetworkChannel() { + void testNetworkChannel() { // TODO: test NetworkChannel } /** Test the property 'networkId' */ @Test - public void networkIdTest() { + void networkIdTest() { // TODO: test networkId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionResponseTest.java index f54d9682..97534ded 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionResponseTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkConnectionResponse */ -public class NetworkConnectionResponseTest { +class NetworkConnectionResponseTest { private final NetworkConnectionResponse model = new NetworkConnectionResponse(); /** Model tests for NetworkConnectionResponse */ @Test - public void testNetworkConnectionResponse() { + void testNetworkConnectionResponse() { // TODO: test NetworkConnectionResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'localChannel' */ @Test - public void localChannelTest() { + void localChannelTest() { // TODO: test localChannel } /** Test the property 'remoteChannel' */ @Test - public void remoteChannelTest() { + void remoteChannelTest() { // TODO: test remoteChannel } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'localNetworkId' */ @Test - public void localNetworkIdTest() { + void localNetworkIdTest() { // TODO: test localNetworkId } /** Test the property 'remoteNetworkId' */ @Test - public void remoteNetworkIdTest() { + void remoteNetworkIdTest() { // TODO: test remoteNetworkId } /** Test the property 'routingPolicy' */ @Test - public void routingPolicyTest() { + void routingPolicyTest() { // TODO: test routingPolicy } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValueTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValueTest.java index 96a47067..10ef892c 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValueTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkConnectionRoutingPolicyValue */ -public class NetworkConnectionRoutingPolicyValueTest { +class NetworkConnectionRoutingPolicyValueTest { private final NetworkConnectionRoutingPolicyValue model = new NetworkConnectionRoutingPolicyValue(); /** Model tests for NetworkConnectionRoutingPolicyValue */ @Test - public void testNetworkConnectionRoutingPolicyValue() { + void testNetworkConnectionRoutingPolicyValue() { // TODO: test NetworkConnectionRoutingPolicyValue } /** Test the property 'scheme' */ @Test - public void schemeTest() { + void schemeTest() { // TODO: test scheme } /** Test the property 'dstType' */ @Test - public void dstTypeTest() { + void dstTypeTest() { // TODO: test dstType } /** Test the property 'dstId' */ @Test - public void dstIdTest() { + void dstIdTest() { // TODO: test dstId } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionStatusTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionStatusTest.java index b272452f..d7c2f77e 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkConnectionStatus */ -public class NetworkConnectionStatusTest { +class NetworkConnectionStatusTest { /** Model tests for NetworkConnectionStatus */ @Test - public void testNetworkConnectionStatus() { + void testNetworkConnectionStatus() { // TODO: test NetworkConnectionStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionTest.java index 4a876444..4b3f97c5 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkConnectionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkConnectionTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkConnection */ -public class NetworkConnectionTest { +class NetworkConnectionTest { private final NetworkConnection model = new NetworkConnection(); /** Model tests for NetworkConnection */ @Test - public void testNetworkConnection() { + void testNetworkConnection() { // TODO: test NetworkConnection } /** Test the property 'localNetworkId' */ @Test - public void localNetworkIdTest() { + void localNetworkIdTest() { // TODO: test localNetworkId } /** Test the property 'remoteNetworkId' */ @Test - public void remoteNetworkIdTest() { + void remoteNetworkIdTest() { // TODO: test remoteNetworkId } /** Test the property 'routingPolicy' */ @Test - public void routingPolicyTest() { + void routingPolicyTest() { // TODO: test routingPolicy } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkFeeTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkFeeTest.java index 3eb0e077..af28da2b 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkFeeTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkFee */ -public class NetworkFeeTest { +class NetworkFeeTest { private final NetworkFee model = new NetworkFee(); /** Model tests for NetworkFee */ @Test - public void testNetworkFee() { + void testNetworkFee() { // TODO: test NetworkFee } /** Test the property 'feePerByte' */ @Test - public void feePerByteTest() { + void feePerByteTest() { // TODO: test feePerByte } /** Test the property 'gasPrice' */ @Test - public void gasPriceTest() { + void gasPriceTest() { // TODO: test gasPrice } /** Test the property 'networkFee' */ @Test - public void networkFeeTest() { + void networkFeeTest() { // TODO: test networkFee } /** Test the property 'baseFee' */ @Test - public void baseFeeTest() { + void baseFeeTest() { // TODO: test baseFee } /** Test the property 'priorityFee' */ @Test - public void priorityFeeTest() { + void priorityFeeTest() { // TODO: test priorityFee } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java index 63e3032b..2f0f953d 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkIdResponse */ -public class NetworkIdResponseTest { +class NetworkIdResponseTest { private final NetworkIdResponse model = new NetworkIdResponse(); /** Model tests for NetworkIdResponse */ @Test - public void testNetworkIdResponse() { + void testNetworkIdResponse() { // TODO: test NetworkIdResponse } /** Test the property 'routingPolicy' */ @Test - public void routingPolicyTest() { + void routingPolicyTest() { // TODO: test routingPolicy } /** Test the property 'isDiscoverable' */ @Test - public void isDiscoverableTest() { + void isDiscoverableTest() { // TODO: test isDiscoverable } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValueTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValueTest.java index c4455517..afc63858 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValueTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkIdRoutingPolicyValue */ -public class NetworkIdRoutingPolicyValueTest { +class NetworkIdRoutingPolicyValueTest { private final NetworkIdRoutingPolicyValue model = new NetworkIdRoutingPolicyValue(); /** Model tests for NetworkIdRoutingPolicyValue */ @Test - public void testNetworkIdRoutingPolicyValue() { + void testNetworkIdRoutingPolicyValue() { // TODO: test NetworkIdRoutingPolicyValue } /** Test the property 'scheme' */ @Test - public void schemeTest() { + void schemeTest() { // TODO: test scheme } /** Test the property 'dstType' */ @Test - public void dstTypeTest() { + void dstTypeTest() { // TODO: test dstType } /** Test the property 'dstId' */ @Test - public void dstIdTest() { + void dstIdTest() { // TODO: test dstId } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkIdTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkIdTest.java index 6cc837a0..a412e453 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkIdTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkIdTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkId */ -public class NetworkIdTest { +class NetworkIdTest { private final NetworkId model = new NetworkId(); /** Model tests for NetworkId */ @Test - public void testNetworkId() { + void testNetworkId() { // TODO: test NetworkId } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkRecordTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkRecordTest.java index d699d97c..245f636c 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkRecordTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkRecordTest.java @@ -13,93 +13,93 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NetworkRecord */ -public class NetworkRecordTest { +class NetworkRecordTest { private final NetworkRecord model = new NetworkRecord(); /** Model tests for NetworkRecord */ @Test - public void testNetworkRecord() { + void testNetworkRecord() { // TODO: test NetworkRecord } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } /** Test the property 'networkFee' */ @Test - public void networkFeeTest() { + void networkFeeTest() { // TODO: test networkFee } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'netAmount' */ @Test - public void netAmountTest() { + void netAmountTest() { // TODO: test netAmount } /** Test the property 'isDropped' */ @Test - public void isDroppedTest() { + void isDroppedTest() { // TODO: test isDropped } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'destinationAddress' */ @Test - public void destinationAddressTest() { + void destinationAddressTest() { // TODO: test destinationAddress } /** Test the property 'sourceAddress' */ @Test - public void sourceAddressTest() { + void sourceAddressTest() { // TODO: test sourceAddress } /** Test the property 'amountUSD' */ @Test - public void amountUSDTest() { + void amountUSDTest() { // TODO: test amountUSD } /** Test the property 'index' */ @Test - public void indexTest() { + void indexTest() { // TODO: test index } /** Test the property 'rewardInfo' */ @Test - public void rewardInfoTest() { + void rewardInfoTest() { // TODO: test rewardInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java b/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java index e2400b34..cce77ce8 100644 --- a/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NewAddress */ -public class NewAddressTest { +class NewAddressTest { private final NewAddress model = new NewAddress(); /** Model tests for NewAddress */ @Test - public void testNewAddress() { + void testNewAddress() { // TODO: test NewAddress } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'index' */ @Test - public void indexTest() { + void indexTest() { // TODO: test index } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteFeeTest.java b/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteFeeTest.java index 2e335332..e5cc1773 100644 --- a/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteFeeTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NonWalletQuoteFee */ -public class NonWalletQuoteFeeTest { +class NonWalletQuoteFeeTest { private final NonWalletQuoteFee model = new NonWalletQuoteFee(); /** Model tests for NonWalletQuoteFee */ @Test - public void testNonWalletQuoteFee() { + void testNonWalletQuoteFee() { // TODO: test NonWalletQuoteFee } /** Test the property 'networkExecutionFee' */ @Test - public void networkExecutionFeeTest() { + void networkExecutionFeeTest() { // TODO: test networkExecutionFee } /** Test the property 'networkFeeAssetId' */ @Test - public void networkFeeAssetIdTest() { + void networkFeeAssetIdTest() { // TODO: test networkFeeAssetId } /** Test the property 'providerFee' */ @Test - public void providerFeeTest() { + void providerFeeTest() { // TODO: test providerFee } /** Test the property 'providerFeeAssetId' */ @Test - public void providerFeeAssetIdTest() { + void providerFeeAssetIdTest() { // TODO: test providerFeeAssetId } /** Test the property 'providerFeeRate' */ @Test - public void providerFeeRateTest() { + void providerFeeRateTest() { // TODO: test providerFeeRate } } diff --git a/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteResponseTest.java index 276455fc..4ac9bcd3 100644 --- a/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NonWalletQuoteResponseTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NonWalletQuoteResponse */ -public class NonWalletQuoteResponseTest { +class NonWalletQuoteResponseTest { private final NonWalletQuoteResponse model = new NonWalletQuoteResponse(); /** Model tests for NonWalletQuoteResponse */ @Test - public void testNonWalletQuoteResponse() { + void testNonWalletQuoteResponse() { // TODO: test NonWalletQuoteResponse } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'inputAmount' */ @Test - public void inputAmountTest() { + void inputAmountTest() { // TODO: test inputAmount } /** Test the property 'inputAsset' */ @Test - public void inputAssetTest() { + void inputAssetTest() { // TODO: test inputAsset } /** Test the property 'slippageTolerance' */ @Test - public void slippageToleranceTest() { + void slippageToleranceTest() { // TODO: test slippageTolerance } /** Test the property 'outputMinAmount' */ @Test - public void outputMinAmountTest() { + void outputMinAmountTest() { // TODO: test outputMinAmount } /** Test the property 'outputMaxAmount' */ @Test - public void outputMaxAmountTest() { + void outputMaxAmountTest() { // TODO: test outputMaxAmount } /** Test the property 'outputAsset' */ @Test - public void outputAssetTest() { + void outputAssetTest() { // TODO: test outputAsset } /** Test the property 'additionalData' */ @Test - public void additionalDataTest() { + void additionalDataTest() { // TODO: test additionalData } /** Test the property 'estimatedFees' */ @Test - public void estimatedFeesTest() { + void estimatedFeesTest() { // TODO: test estimatedFees } } diff --git a/src/test/java/com/fireblocks/sdk/model/NoneNetworkRoutingDestTest.java b/src/test/java/com/fireblocks/sdk/model/NoneNetworkRoutingDestTest.java index 1e24c41b..0908cdca 100644 --- a/src/test/java/com/fireblocks/sdk/model/NoneNetworkRoutingDestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NoneNetworkRoutingDestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NoneNetworkRoutingDest */ -public class NoneNetworkRoutingDestTest { +class NoneNetworkRoutingDestTest { private final NoneNetworkRoutingDest model = new NoneNetworkRoutingDest(); /** Model tests for NoneNetworkRoutingDest */ @Test - public void testNoneNetworkRoutingDest() { + void testNoneNetworkRoutingDest() { // TODO: test NoneNetworkRoutingDest } /** Test the property 'scheme' */ @Test - public void schemeTest() { + void schemeTest() { // TODO: test scheme } } diff --git a/src/test/java/com/fireblocks/sdk/model/NotFoundExceptionTest.java b/src/test/java/com/fireblocks/sdk/model/NotFoundExceptionTest.java index 614fd27a..e21e1bab 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotFoundExceptionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotFoundExceptionTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NotFoundException */ -public class NotFoundExceptionTest { +class NotFoundExceptionTest { private final NotFoundException model = new NotFoundException(); /** Model tests for NotFoundException */ @Test - public void testNotFoundException() { + void testNotFoundException() { // TODO: test NotFoundException } /** Test the property 'statusCode' */ @Test - public void statusCodeTest() { + void statusCodeTest() { // TODO: test statusCode } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'error' */ @Test - public void errorTest() { + void errorTest() { // TODO: test error } } diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java index fda70dfe..408ce66a 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NotificationAttempt */ -public class NotificationAttemptTest { +class NotificationAttemptTest { private final NotificationAttempt model = new NotificationAttempt(); /** Model tests for NotificationAttempt */ @Test - public void testNotificationAttempt() { + void testNotificationAttempt() { // TODO: test NotificationAttempt } /** Test the property 'sentTime' */ @Test - public void sentTimeTest() { + void sentTimeTest() { // TODO: test sentTime } /** Test the property 'duration' */ @Test - public void durationTest() { + void durationTest() { // TODO: test duration } /** Test the property 'responseCode' */ @Test - public void responseCodeTest() { + void responseCodeTest() { // TODO: test responseCode } /** Test the property 'failureReason' */ @Test - public void failureReasonTest() { + 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 index 8a02da6a..d1ac1301 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NotificationAttemptsPaginatedResponse */ -public class NotificationAttemptsPaginatedResponseTest { +class NotificationAttemptsPaginatedResponseTest { private final NotificationAttemptsPaginatedResponse model = new NotificationAttemptsPaginatedResponse(); /** Model tests for NotificationAttemptsPaginatedResponse */ @Test - public void testNotificationAttemptsPaginatedResponse() { + void testNotificationAttemptsPaginatedResponse() { // TODO: test NotificationAttemptsPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 index ca23a4a8..d51f408a 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java @@ -13,27 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NotificationPaginatedResponse */ -public class NotificationPaginatedResponseTest { +class NotificationPaginatedResponseTest { private final NotificationPaginatedResponse model = new NotificationPaginatedResponse(); /** Model tests for NotificationPaginatedResponse */ @Test - public void testNotificationPaginatedResponse() { + void testNotificationPaginatedResponse() { // TODO: test NotificationPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } + /** Test the property 'total' */ + @Test + void totalTest() { + // TODO: test total + } + /** Test the property 'next' */ @Test - public void nextTest() { + 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 index 59ed1f9d..dfaa1748 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NotificationStatus */ -public class NotificationStatusTest { +class NotificationStatusTest { /** Model tests for NotificationStatus */ @Test - public void testNotificationStatus() { + 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 index 5531beba..f029f3fd 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotificationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotificationTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Notification */ -public class NotificationTest { +class NotificationTest { private final Notification model = new Notification(); /** Model tests for Notification */ @Test - public void testNotification() { + void testNotification() { // TODO: test Notification } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'eventType' */ @Test - public void eventTypeTest() { + void eventTypeTest() { // TODO: test eventType } /** Test the property 'resourceId' */ @Test - public void resourceIdTest() { + 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 index 170f46af..8d318cba 100644 --- a/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for NotificationWithData */ -public class NotificationWithDataTest { +class NotificationWithDataTest { private final NotificationWithData model = new NotificationWithData(); /** Model tests for NotificationWithData */ @Test - public void testNotificationWithData() { + void testNotificationWithData() { // TODO: test NotificationWithData } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'eventType' */ @Test - public void eventTypeTest() { + void eventTypeTest() { // TODO: test eventType } /** Test the property 'resourceId' */ @Test - public void resourceIdTest() { + void resourceIdTest() { // TODO: test resourceId } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/OneTimeAddressAccountTest.java b/src/test/java/com/fireblocks/sdk/model/OneTimeAddressAccountTest.java index eec8c71f..7a3d5760 100644 --- a/src/test/java/com/fireblocks/sdk/model/OneTimeAddressAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/OneTimeAddressAccountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for OneTimeAddressAccount */ -public class OneTimeAddressAccountTest { +class OneTimeAddressAccountTest { private final OneTimeAddressAccount model = new OneTimeAddressAccount(); /** Model tests for OneTimeAddressAccount */ @Test - public void testOneTimeAddressAccount() { + void testOneTimeAddressAccount() { // TODO: test OneTimeAddressAccount } /** Test the property 'oneTimeAddress' */ @Test - public void oneTimeAddressTest() { + void oneTimeAddressTest() { // TODO: test oneTimeAddress } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } } diff --git a/src/test/java/com/fireblocks/sdk/model/OneTimeAddressTest.java b/src/test/java/com/fireblocks/sdk/model/OneTimeAddressTest.java index fd839863..c90a105c 100644 --- a/src/test/java/com/fireblocks/sdk/model/OneTimeAddressTest.java +++ b/src/test/java/com/fireblocks/sdk/model/OneTimeAddressTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for OneTimeAddress */ -public class OneTimeAddressTest { +class OneTimeAddressTest { private final OneTimeAddress model = new OneTimeAddress(); /** Model tests for OneTimeAddress */ @Test - public void testOneTimeAddress() { + void testOneTimeAddress() { // TODO: test OneTimeAddress } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } } diff --git a/src/test/java/com/fireblocks/sdk/model/OperationExecutionFailureTest.java b/src/test/java/com/fireblocks/sdk/model/OperationExecutionFailureTest.java index 0d12beaf..8ae75739 100644 --- a/src/test/java/com/fireblocks/sdk/model/OperationExecutionFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/OperationExecutionFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for OperationExecutionFailure */ -public class OperationExecutionFailureTest { +class OperationExecutionFailureTest { private final OperationExecutionFailure model = new OperationExecutionFailure(); /** Model tests for OperationExecutionFailure */ @Test - public void testOperationExecutionFailure() { + void testOperationExecutionFailure() { // TODO: test OperationExecutionFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponsePagingTest.java b/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponsePagingTest.java index 1deb2ecd..c1587091 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponsePagingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponsePagingTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaginatedAddressResponsePaging */ -public class PaginatedAddressResponsePagingTest { +class PaginatedAddressResponsePagingTest { private final PaginatedAddressResponsePaging model = new PaginatedAddressResponsePaging(); /** Model tests for PaginatedAddressResponsePaging */ @Test - public void testPaginatedAddressResponsePaging() { + void testPaginatedAddressResponsePaging() { // TODO: test PaginatedAddressResponsePaging } /** Test the property 'before' */ @Test - public void beforeTest() { + void beforeTest() { // TODO: test before } /** Test the property 'after' */ @Test - public void afterTest() { + void afterTest() { // TODO: test after } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponseTest.java index 95ae4496..b3f0b60c 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaginatedAddressResponse */ -public class PaginatedAddressResponseTest { +class PaginatedAddressResponseTest { private final PaginatedAddressResponse model = new PaginatedAddressResponse(); /** Model tests for PaginatedAddressResponse */ @Test - public void testPaginatedAddressResponse() { + void testPaginatedAddressResponse() { // TODO: test PaginatedAddressResponse } /** Test the property 'addresses' */ @Test - public void addressesTest() { + void addressesTest() { // TODO: test addresses } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePagingTest.java b/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePagingTest.java index c2745353..e18eaa1c 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePagingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePagingTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaginatedAssetWalletResponsePaging */ -public class PaginatedAssetWalletResponsePagingTest { +class PaginatedAssetWalletResponsePagingTest { private final PaginatedAssetWalletResponsePaging model = new PaginatedAssetWalletResponsePaging(); /** Model tests for PaginatedAssetWalletResponsePaging */ @Test - public void testPaginatedAssetWalletResponsePaging() { + void testPaginatedAssetWalletResponsePaging() { // TODO: test PaginatedAssetWalletResponsePaging } /** Test the property 'before' */ @Test - public void beforeTest() { + void beforeTest() { // TODO: test before } /** Test the property 'after' */ @Test - public void afterTest() { + void afterTest() { // TODO: test after } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponseTest.java index 2cc3dfd2..9872e9f9 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaginatedAssetWalletResponse */ -public class PaginatedAssetWalletResponseTest { +class PaginatedAssetWalletResponseTest { private final PaginatedAssetWalletResponse model = new PaginatedAssetWalletResponse(); /** Model tests for PaginatedAssetWalletResponse */ @Test - public void testPaginatedAssetWalletResponse() { + void testPaginatedAssetWalletResponse() { // TODO: test PaginatedAssetWalletResponse } /** Test the property 'assetWallets' */ @Test - public void assetWalletsTest() { + void assetWalletsTest() { // TODO: test assetWallets } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java index 4f73b8a4..cfb3745f 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaginatedAssetsResponse */ -public class PaginatedAssetsResponseTest { +class PaginatedAssetsResponseTest { private final PaginatedAssetsResponse model = new PaginatedAssetsResponse(); /** Model tests for PaginatedAssetsResponse */ @Test - public void testPaginatedAssetsResponse() { + void testPaginatedAssetsResponse() { // TODO: test PaginatedAssetsResponse } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/PagingTest.java b/src/test/java/com/fireblocks/sdk/model/PagingTest.java index bf6763b2..c6d9884e 100644 --- a/src/test/java/com/fireblocks/sdk/model/PagingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PagingTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Paging */ -public class PagingTest { +class PagingTest { private final Paging model = new Paging(); /** Model tests for Paging */ @Test - public void testPaging() { + void testPaging() { // TODO: test Paging } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java b/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java index 88cc8010..0a36b623 100644 --- a/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PairApiKeyRequest */ -public class PairApiKeyRequestTest { +class PairApiKeyRequestTest { private final PairApiKeyRequest model = new PairApiKeyRequest(); /** Model tests for PairApiKeyRequest */ @Test - public void testPairApiKeyRequest() { + void testPairApiKeyRequest() { // TODO: test PairApiKeyRequest } /** Test the property 'callbackHandler' */ @Test - public void callbackHandlerTest() { + 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 index 4a09d11a..b98a6f37 100644 --- a/src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PairApiKeyResponse */ -public class PairApiKeyResponseTest { +class PairApiKeyResponseTest { private final PairApiKeyResponse model = new PairApiKeyResponse(); /** Model tests for PairApiKeyResponse */ @Test - public void testPairApiKeyResponse() { + void testPairApiKeyResponse() { // TODO: test PairApiKeyResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'callbackHandler' */ @Test - public void callbackHandlerTest() { + void callbackHandlerTest() { // TODO: test callbackHandler } } diff --git a/src/test/java/com/fireblocks/sdk/model/ParameterTest.java b/src/test/java/com/fireblocks/sdk/model/ParameterTest.java index 19191cb1..0a6b5ccd 100644 --- a/src/test/java/com/fireblocks/sdk/model/ParameterTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ParameterTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Parameter */ -public class ParameterTest { +class ParameterTest { private final Parameter model = new Parameter(); /** Model tests for Parameter */ @Test - public void testParameter() { + void testParameter() { // TODO: test Parameter } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'internalType' */ @Test - public void internalTypeTest() { + void internalTypeTest() { // TODO: test internalType } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'components' */ @Test - public void componentsTest() { + void componentsTest() { // TODO: test components } } diff --git a/src/test/java/com/fireblocks/sdk/model/ParameterWithValueTest.java b/src/test/java/com/fireblocks/sdk/model/ParameterWithValueTest.java index fb2f596c..f21cd80d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ParameterWithValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ParameterWithValueTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ParameterWithValue */ -public class ParameterWithValueTest { +class ParameterWithValueTest { private final ParameterWithValue model = new ParameterWithValue(); /** Model tests for ParameterWithValue */ @Test - public void testParameterWithValue() { + void testParameterWithValue() { // TODO: test ParameterWithValue } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'internalType' */ @Test - public void internalTypeTest() { + void internalTypeTest() { // TODO: test internalType } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'components' */ @Test - public void componentsTest() { + void componentsTest() { // TODO: test components } /** Test the property 'value' */ @Test - public void valueTest() { + void valueTest() { // TODO: test value } /** Test the property 'functionValue' */ @Test - public void functionValueTest() { + void functionValueTest() { // TODO: test functionValue } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayeeAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PayeeAccountResponseTest.java index 21f5091a..30b12b4a 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayeeAccountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayeeAccountResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayeeAccountResponse */ -public class PayeeAccountResponseTest { +class PayeeAccountResponseTest { private final PayeeAccountResponse model = new PayeeAccountResponse(); /** Model tests for PayeeAccountResponse */ @Test - public void testPayeeAccountResponse() { + void testPayeeAccountResponse() { // TODO: test PayeeAccountResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayeeAccountTest.java b/src/test/java/com/fireblocks/sdk/model/PayeeAccountTest.java index 65cef41b..3a502dcd 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayeeAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayeeAccountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayeeAccount */ -public class PayeeAccountTest { +class PayeeAccountTest { private final PayeeAccount model = new PayeeAccount(); /** Model tests for PayeeAccount */ @Test - public void testPayeeAccount() { + void testPayeeAccount() { // TODO: test PayeeAccount } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayeeAccountTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PayeeAccountTypeTest.java index c913d743..bb2bba29 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayeeAccountTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayeeAccountTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayeeAccountType */ -public class PayeeAccountTypeTest { +class PayeeAccountTypeTest { /** Model tests for PayeeAccountType */ @Test - public void testPayeeAccountType() { + void testPayeeAccountType() { // TODO: test PayeeAccountType } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaymentAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PaymentAccountResponseTest.java index ddf6e9c1..e5f43744 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaymentAccountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaymentAccountResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaymentAccountResponse */ -public class PaymentAccountResponseTest { +class PaymentAccountResponseTest { private final PaymentAccountResponse model = new PaymentAccountResponse(); /** Model tests for PaymentAccountResponse */ @Test - public void testPaymentAccountResponse() { + void testPaymentAccountResponse() { // TODO: test PaymentAccountResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaymentAccountTest.java b/src/test/java/com/fireblocks/sdk/model/PaymentAccountTest.java index 94bac01b..f79182e9 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaymentAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaymentAccountTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaymentAccount */ -public class PaymentAccountTest { +class PaymentAccountTest { private final PaymentAccount model = new PaymentAccount(); /** Model tests for PaymentAccount */ @Test - public void testPaymentAccount() { + void testPaymentAccount() { // TODO: test PaymentAccount } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/PaymentAccountTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PaymentAccountTypeTest.java index 3bd9570d..cc22367b 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaymentAccountTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PaymentAccountTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PaymentAccountType */ -public class PaymentAccountTypeTest { +class PaymentAccountTypeTest { /** Model tests for PaymentAccountType */ @Test - public void testPaymentAccountType() { + void testPaymentAccountType() { // TODO: test PaymentAccountType } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutInitMethodTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutInitMethodTest.java index 2d444082..d3d516fe 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutInitMethodTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutInitMethodTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutInitMethod */ -public class PayoutInitMethodTest { +class PayoutInitMethodTest { /** Model tests for PayoutInitMethod */ @Test - public void testPayoutInitMethod() { + void testPayoutInitMethod() { // TODO: test PayoutInitMethod } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutInstructionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutInstructionResponseTest.java index dfc5d98c..18545a23 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutInstructionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutInstructionResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutInstructionResponse */ -public class PayoutInstructionResponseTest { +class PayoutInstructionResponseTest { private final PayoutInstructionResponse model = new PayoutInstructionResponse(); /** Model tests for PayoutInstructionResponse */ @Test - public void testPayoutInstructionResponse() { + void testPayoutInstructionResponse() { // TODO: test PayoutInstructionResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } /** Test the property 'transactions' */ @Test - public void transactionsTest() { + void transactionsTest() { // TODO: test transactions } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutInstructionStateTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutInstructionStateTest.java index f4cd0b6f..2499d863 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutInstructionStateTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutInstructionStateTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutInstructionState */ -public class PayoutInstructionStateTest { +class PayoutInstructionStateTest { /** Model tests for PayoutInstructionState */ @Test - public void testPayoutInstructionState() { + void testPayoutInstructionState() { // TODO: test PayoutInstructionState } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutInstructionTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutInstructionTest.java index 004b8b34..70ff62e6 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutInstructionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutInstructionTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutInstruction */ -public class PayoutInstructionTest { +class PayoutInstructionTest { private final PayoutInstruction model = new PayoutInstruction(); /** Model tests for PayoutInstruction */ @Test - public void testPayoutInstruction() { + void testPayoutInstruction() { // TODO: test PayoutInstruction } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'payeeAccount' */ @Test - public void payeeAccountTest() { + void payeeAccountTest() { // TODO: test payeeAccount } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutResponseTest.java index 53baa438..55f929a2 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutResponseTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutResponse */ -public class PayoutResponseTest { +class PayoutResponseTest { private final PayoutResponse model = new PayoutResponse(); /** Model tests for PayoutResponse */ @Test - public void testPayoutResponse() { + void testPayoutResponse() { // TODO: test PayoutResponse } /** Test the property 'payoutId' */ @Test - public void payoutIdTest() { + void payoutIdTest() { // TODO: test payoutId } /** Test the property 'paymentAccount' */ @Test - public void paymentAccountTest() { + void paymentAccountTest() { // TODO: test paymentAccount } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'reasonOfFailure' */ @Test - public void reasonOfFailureTest() { + void reasonOfFailureTest() { // TODO: test reasonOfFailure } /** Test the property 'initMethod' */ @Test - public void initMethodTest() { + void initMethodTest() { // TODO: test initMethod } /** Test the property 'instructionSet' */ @Test - public void instructionSetTest() { + void instructionSetTest() { // TODO: test instructionSet } /** Test the property 'reportUrl' */ @Test - public void reportUrlTest() { + void reportUrlTest() { // TODO: test reportUrl } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutStateTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutStateTest.java index 57b5a291..d08439f0 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutStateTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutStateTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutState */ -public class PayoutStateTest { +class PayoutStateTest { /** Model tests for PayoutState */ @Test - public void testPayoutState() { + void testPayoutState() { // TODO: test PayoutState } } diff --git a/src/test/java/com/fireblocks/sdk/model/PayoutStatusTest.java b/src/test/java/com/fireblocks/sdk/model/PayoutStatusTest.java index 8e84e82f..dd6ba4ac 100644 --- a/src/test/java/com/fireblocks/sdk/model/PayoutStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PayoutStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PayoutStatus */ -public class PayoutStatusTest { +class PayoutStatusTest { /** Model tests for PayoutStatus */ @Test - public void testPayoutStatus() { + void testPayoutStatus() { // TODO: test PayoutStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java b/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java index 5369411f..ab4fa68d 100644 --- a/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PeerAdapterInfo */ -public class PeerAdapterInfoTest { +class PeerAdapterInfoTest { private final PeerAdapterInfo model = new PeerAdapterInfo(); /** Model tests for PeerAdapterInfo */ @Test - public void testPeerAdapterInfo() { + void testPeerAdapterInfo() { // TODO: test PeerAdapterInfo } /** Test the property 'adapterTokenLinkId' */ @Test - public void adapterTokenLinkIdTest() { + void adapterTokenLinkIdTest() { // TODO: test adapterTokenLinkId } /** Test the property 'adapterAddress' */ @Test - public void adapterAddressTest() { + void adapterAddressTest() { // TODO: test adapterAddress } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } } diff --git a/src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java new file mode 100644 index 00000000..dbb15354 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java @@ -0,0 +1,81 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PlayersTest.java b/src/test/java/com/fireblocks/sdk/model/PlayersTest.java index 7adbd905..04def2a8 100644 --- a/src/test/java/com/fireblocks/sdk/model/PlayersTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PlayersTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Players */ -public class PlayersTest { +class PlayersTest { private final Players model = new Players(); /** Model tests for Players */ @Test - public void testPlayers() { + void testPlayers() { // TODO: test Players } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyAndValidationResponseTest.java index 012f6526..082c884d 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyAndValidationResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyAndValidationResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyAndValidationResponse */ -public class PolicyAndValidationResponseTest { +class PolicyAndValidationResponseTest { private final PolicyAndValidationResponse model = new PolicyAndValidationResponse(); /** Model tests for PolicyAndValidationResponse */ @Test - public void testPolicyAndValidationResponse() { + void testPolicyAndValidationResponse() { // TODO: test PolicyAndValidationResponse } /** Test the property 'policy' */ @Test - public void policyTest() { + void policyTest() { // TODO: test policy } /** Test the property 'validation' */ @Test - public void validationTest() { + void validationTest() { // TODO: test validation } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyCheckResultTest.java index 1038bd0d..540a25a6 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyCheckResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyCheckResultTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyCheckResult */ -public class PolicyCheckResultTest { +class PolicyCheckResultTest { private final PolicyCheckResult model = new PolicyCheckResult(); /** Model tests for PolicyCheckResult */ @Test - public void testPolicyCheckResult() { + void testPolicyCheckResult() { // TODO: test PolicyCheckResult } /** Test the property 'errors' */ @Test - public void errorsTest() { + void errorsTest() { // TODO: test errors } /** Test the property 'results' */ @Test - public void resultsTest() { + void resultsTest() { // TODO: test results } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java index c26add21..6e71c38a 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java @@ -13,39 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyMetadata */ -public class PolicyMetadataTest { +class PolicyMetadataTest { private final PolicyMetadata model = new PolicyMetadata(); /** Model tests for PolicyMetadata */ @Test - public void testPolicyMetadata() { + void testPolicyMetadata() { // TODO: test PolicyMetadata } /** Test the property 'editedBy' */ @Test - public void editedByTest() { + void editedByTest() { // TODO: test editedBy } /** Test the property 'editedAt' */ @Test - public void editedAtTest() { + void editedAtTest() { // TODO: test editedAt } /** Test the property 'publishedBy' */ @Test - public void publishedByTest() { + void publishedByTest() { // TODO: test publishedBy } /** Test the property 'publishedAt' */ @Test - public void publishedAtTest() { + 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 new file mode 100644 index 00000000..40a50c3c --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java @@ -0,0 +1,25 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyResponseTest.java index cd7295be..d8200821 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyResponse */ -public class PolicyResponseTest { +class PolicyResponseTest { private final PolicyResponse model = new PolicyResponse(); /** Model tests for PolicyResponse */ @Test - public void testPolicyResponse() { + void testPolicyResponse() { // TODO: test PolicyResponse } /** Test the property 'rules' */ @Test - public void rulesTest() { + void rulesTest() { // TODO: test rules } /** Test the property 'metadata' */ @Test - public void metadataTest() { + void metadataTest() { // TODO: test metadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleCheckResultTest.java index 483a7627..e283087b 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleCheckResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleCheckResultTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyRuleCheckResult */ -public class PolicyRuleCheckResultTest { +class PolicyRuleCheckResultTest { private final PolicyRuleCheckResult model = new PolicyRuleCheckResult(); /** Model tests for PolicyRuleCheckResult */ @Test - public void testPolicyRuleCheckResult() { + void testPolicyRuleCheckResult() { // TODO: test PolicyRuleCheckResult } /** Test the property 'index' */ @Test - public void indexTest() { + void indexTest() { // TODO: test index } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'errors' */ @Test - public void errorsTest() { + void errorsTest() { // TODO: test errors } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleErrorTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleErrorTest.java index ee2599d7..fd5da1ef 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleErrorTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyRuleError */ -public class PolicyRuleErrorTest { +class PolicyRuleErrorTest { private final PolicyRuleError model = new PolicyRuleError(); /** Model tests for PolicyRuleError */ @Test - public void testPolicyRuleError() { + void testPolicyRuleError() { // TODO: test PolicyRuleError } /** Test the property 'errorMessage' */ @Test - public void errorMessageTest() { + void errorMessageTest() { // TODO: test errorMessage } /** Test the property 'errorCode' */ @Test - public void errorCodeTest() { + void errorCodeTest() { // TODO: test errorCode } /** Test the property 'errorCodeName' */ @Test - public void errorCodeNameTest() { + void errorCodeNameTest() { // TODO: test errorCodeName } /** Test the property 'errorField' */ @Test - public void errorFieldTest() { + void errorFieldTest() { // TODO: test errorField } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java index 77c9955b..3d3eafe3 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java @@ -13,189 +13,159 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyRule */ -public class PolicyRuleTest { +class PolicyRuleTest { private final PolicyRule model = new PolicyRule(); /** Model tests for PolicyRule */ @Test - public void testPolicyRule() { + void testPolicyRule() { // TODO: test PolicyRule } - /** Test the property 'operator' */ + /** Test the property 'name' */ @Test - public void operatorTest() { - // TODO: test operator + void nameTest() { + // TODO: test name } - /** Test the property 'operators' */ + /** Test the property 'id' */ @Test - public void operatorsTest() { - // TODO: test operators + void idTest() { + // TODO: test id } - /** Test the property 'transactionType' */ + /** Test the property 'policyEngineVersion' */ @Test - public void transactionTypeTest() { - // TODO: test transactionType - } - - /** Test the property 'designatedSigner' */ - @Test - public void designatedSignerTest() { - // TODO: test designatedSigner - } - - /** Test the property 'designatedSigners' */ - @Test - public void designatedSignersTest() { - // TODO: test designatedSigners + void policyEngineVersionTest() { + // TODO: test policyEngineVersion } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } - /** Test the property 'action' */ - @Test - public void actionTest() { - // TODO: test action - } - - /** Test the property 'asset' */ - @Test - public void assetTest() { - // TODO: test asset - } - - /** Test the property 'srcType' */ + /** Test the property 'subType' */ @Test - public void srcTypeTest() { - // TODO: test srcType + void subTypeTest() { + // TODO: test subType } - /** Test the property 'srcSubType' */ + /** Test the property 'initiator' */ @Test - public void srcSubTypeTest() { - // TODO: test srcSubType + void initiatorTest() { + // TODO: test initiator } - /** Test the property 'srcId' */ - @Test - public void srcIdTest() { - // TODO: test srcId - } - - /** Test the property 'src' */ + /** Test the property 'asset' */ @Test - public void srcTest() { - // TODO: test src + void assetTest() { + // TODO: test asset } - /** Test the property 'dstType' */ + /** Test the property 'source' */ @Test - public void dstTypeTest() { - // TODO: test dstType + void sourceTest() { + // TODO: test source } - /** Test the property 'dstSubType' */ + /** Test the property 'destination' */ @Test - public void dstSubTypeTest() { - // TODO: test dstSubType + void destinationTest() { + // TODO: test destination } - /** Test the property 'dstId' */ + /** Test the property 'account' */ @Test - public void dstIdTest() { - // TODO: test dstId + void accountTest() { + // TODO: test account } - /** Test the property 'dst' */ + /** Test the property 'verdict' */ @Test - public void dstTest() { - // TODO: test dst + void verdictTest() { + // TODO: test verdict } - /** Test the property 'dstAddressType' */ + /** Test the property 'amountOverTime' */ @Test - public void dstAddressTypeTest() { - // TODO: test dstAddressType + void amountOverTimeTest() { + // TODO: test amountOverTime } - /** Test the property 'amountCurrency' */ + /** Test the property 'amount' */ @Test - public void amountCurrencyTest() { - // TODO: test amountCurrency + void amountTest() { + // TODO: test amount } - /** Test the property 'amountScope' */ + /** Test the property 'externalDescriptor' */ @Test - public void amountScopeTest() { - // TODO: test amountScope + void externalDescriptorTest() { + // TODO: test externalDescriptor } - /** Test the property 'amount' */ + /** Test the property 'method' */ @Test - public void amountTest() { - // TODO: test amount + void methodTest() { + // TODO: test method } - /** Test the property 'periodSec' */ + /** Test the property 'isGlobalPolicy' */ @Test - public void periodSecTest() { - // TODO: test periodSec + void isGlobalPolicyTest() { + // TODO: test isGlobalPolicy } - /** Test the property 'authorizers' */ + /** Test the property 'programCall' */ @Test - public void authorizersTest() { - // TODO: test authorizers + void programCallTest() { + // TODO: test programCall } - /** Test the property 'authorizersCount' */ + /** Test the property 'screeningMetadata' */ @Test - public void authorizersCountTest() { - // TODO: test authorizersCount + void screeningMetadataTest() { + // TODO: test screeningMetadata } - /** Test the property 'authorizationGroups' */ + /** Test the property 'quoteAsset' */ @Test - public void authorizationGroupsTest() { - // TODO: test authorizationGroups + void quoteAssetTest() { + // TODO: test quoteAsset } - /** Test the property 'amountAggregation' */ + /** Test the property 'baseAsset' */ @Test - public void amountAggregationTest() { - // TODO: test amountAggregation + void baseAssetTest() { + // TODO: test baseAsset } - /** Test the property 'rawMessageSigning' */ + /** Test the property 'quoteAmount' */ @Test - public void rawMessageSigningTest() { - // TODO: test rawMessageSigning + void quoteAmountTest() { + // TODO: test quoteAmount } - /** Test the property 'applyForApprove' */ + /** Test the property 'baseAmount' */ @Test - public void applyForApproveTest() { - // TODO: test applyForApprove + void baseAmountTest() { + // TODO: test baseAmount } - /** Test the property 'applyForTypedMessage' */ + /** Test the property 'derivationPath' */ @Test - public void applyForTypedMessageTest() { - // TODO: test applyForTypedMessage + void derivationPathTest() { + // TODO: test derivationPath } - /** Test the property 'externalDescriptor' */ + /** Test the property 'index' */ @Test - public void externalDescriptorTest() { - // TODO: test externalDescriptor + void indexTest() { + // TODO: test index } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyStatusTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyStatusTest.java index cb4491ef..e4d032fb 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyStatus */ -public class PolicyStatusTest { +class PolicyStatusTest { /** Model tests for PolicyStatus */ @Test - public void testPolicyStatus() { + void testPolicyStatus() { // TODO: test PolicyStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java new file mode 100644 index 00000000..cfaa505b --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java @@ -0,0 +1,25 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/PolicyValidationTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyValidationTest.java index daf71d78..5f4bc50a 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyValidationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyValidationTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PolicyValidation */ -public class PolicyValidationTest { +class PolicyValidationTest { private final PolicyValidation model = new PolicyValidation(); /** Model tests for PolicyValidation */ @Test - public void testPolicyValidation() { + void testPolicyValidation() { // TODO: test PolicyValidation } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'checkResult' */ @Test - public void checkResultTest() { + void checkResultTest() { // TODO: test checkResult } } diff --git a/src/test/java/com/fireblocks/sdk/model/PreScreeningTest.java b/src/test/java/com/fireblocks/sdk/model/PreScreeningTest.java index 8609f76a..35a4000e 100644 --- a/src/test/java/com/fireblocks/sdk/model/PreScreeningTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PreScreeningTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PreScreening */ -public class PreScreeningTest { +class PreScreeningTest { private final PreScreening model = new PreScreening(); /** Model tests for PreScreening */ @Test - public void testPreScreening() { + void testPreScreening() { // TODO: test PreScreening } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java new file mode 100644 index 00000000..351d185c --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java @@ -0,0 +1,33 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/ProviderAdditionalDataTest.java b/src/test/java/com/fireblocks/sdk/model/ProviderAdditionalDataTest.java index 97bd64cd..183a248d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ProviderAdditionalDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ProviderAdditionalDataTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ProviderAdditionalData */ -public class ProviderAdditionalDataTest { +class ProviderAdditionalDataTest { private final ProviderAdditionalData model = new ProviderAdditionalData(); /** Model tests for ProviderAdditionalData */ @Test - public void testProviderAdditionalData() { + void testProviderAdditionalData() { // TODO: test ProviderAdditionalData } /** Test the property 'priceImpact' */ @Test - public void priceImpactTest() { + void priceImpactTest() { // TODO: test priceImpact } } diff --git a/src/test/java/com/fireblocks/sdk/model/ProviderCategoryEnumTest.java b/src/test/java/com/fireblocks/sdk/model/ProviderCategoryEnumTest.java index 798b2e6d..3506fd4f 100644 --- a/src/test/java/com/fireblocks/sdk/model/ProviderCategoryEnumTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ProviderCategoryEnumTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ProviderCategoryEnum */ -public class ProviderCategoryEnumTest { +class ProviderCategoryEnumTest { /** Model tests for ProviderCategoryEnum */ @Test - public void testProviderCategoryEnum() { + void testProviderCategoryEnum() { // TODO: test ProviderCategoryEnum } } diff --git a/src/test/java/com/fireblocks/sdk/model/ProviderTest.java b/src/test/java/com/fireblocks/sdk/model/ProviderTest.java index 13abe62a..f6f95265 100644 --- a/src/test/java/com/fireblocks/sdk/model/ProviderTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ProviderTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Provider */ -public class ProviderTest { +class ProviderTest { private final Provider model = new Provider(); /** Model tests for Provider */ @Test - public void testProvider() { + void testProvider() { // TODO: test Provider } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'providerName' */ @Test - public void providerNameTest() { + void providerNameTest() { // TODO: test providerName } /** Test the property 'validators' */ @Test - public void validatorsTest() { + void validatorsTest() { // TODO: test validators } /** Test the property 'iconUrl' */ @Test - public void iconUrlTest() { + void iconUrlTest() { // TODO: test iconUrl } /** Test the property 'termsOfServiceUrl' */ @Test - public void termsOfServiceUrlTest() { + void termsOfServiceUrlTest() { // TODO: test termsOfServiceUrl } /** Test the property 'isTermsOfServiceApproved' */ @Test - public void isTermsOfServiceApprovedTest() { + void isTermsOfServiceApprovedTest() { // TODO: test isTermsOfServiceApproved } /** Test the property 'isPrivate' */ @Test - public void isPrivateTest() { + void isPrivateTest() { // TODO: test isPrivate } /** Test the property 'isLiquidStaking' */ @Test - public void isLiquidStakingTest() { + void isLiquidStakingTest() { // TODO: test isLiquidStaking } } diff --git a/src/test/java/com/fireblocks/sdk/model/PublicKeyInformationTest.java b/src/test/java/com/fireblocks/sdk/model/PublicKeyInformationTest.java index ef135321..5f201e33 100644 --- a/src/test/java/com/fireblocks/sdk/model/PublicKeyInformationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PublicKeyInformationTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PublicKeyInformation */ -public class PublicKeyInformationTest { +class PublicKeyInformationTest { private final PublicKeyInformation model = new PublicKeyInformation(); /** Model tests for PublicKeyInformation */ @Test - public void testPublicKeyInformation() { + void testPublicKeyInformation() { // TODO: test PublicKeyInformation } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + void algorithmTest() { // TODO: test algorithm } /** Test the property 'derivationPath' */ @Test - public void derivationPathTest() { + void derivationPathTest() { // TODO: test derivationPath } /** Test the property 'publicKey' */ @Test - public void publicKeyTest() { + void publicKeyTest() { // TODO: test publicKey } } diff --git a/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java b/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java index a37517a1..ac3c329f 100644 --- a/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java @@ -13,21 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PublishDraftRequest */ -public class PublishDraftRequestTest { +class PublishDraftRequestTest { private final PublishDraftRequest model = new PublishDraftRequest(); /** Model tests for PublishDraftRequest */ @Test - public void testPublishDraftRequest() { + void testPublishDraftRequest() { // TODO: test PublishDraftRequest } + /** Test the property 'policyTypes' */ + @Test + void policyTypesTest() { + // TODO: test policyTypes + } + /** Test the property 'draftId' */ @Test - public void draftIdTest() { + void draftIdTest() { // TODO: test draftId } } diff --git a/src/test/java/com/fireblocks/sdk/model/PublishResultTest.java b/src/test/java/com/fireblocks/sdk/model/PublishResultTest.java index 989dcb85..43c4c0c1 100644 --- a/src/test/java/com/fireblocks/sdk/model/PublishResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PublishResultTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for PublishResult */ -public class PublishResultTest { +class PublishResultTest { private final PublishResult model = new PublishResult(); /** Model tests for PublishResult */ @Test - public void testPublishResult() { + void testPublishResult() { // TODO: test PublishResult } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'rules' */ @Test - public void rulesTest() { + void rulesTest() { // TODO: test rules } /** Test the property 'checkResult' */ @Test - public void checkResultTest() { + void checkResultTest() { // TODO: test checkResult } /** Test the property 'metadata' */ @Test - public void metadataTest() { + void metadataTest() { // TODO: test metadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteFeeTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteFeeTest.java index e4ba86f4..76520666 100644 --- a/src/test/java/com/fireblocks/sdk/model/QuoteFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/QuoteFeeTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for QuoteFee */ -public class QuoteFeeTest { +class QuoteFeeTest { private final QuoteFee model = new QuoteFee(); /** Model tests for QuoteFee */ @Test - public void testQuoteFee() { + void testQuoteFee() { // TODO: test QuoteFee } /** Test the property 'networkExecutionFee' */ @Test - public void networkExecutionFeeTest() { + void networkExecutionFeeTest() { // TODO: test networkExecutionFee } /** Test the property 'networkFeeAssetId' */ @Test - public void networkFeeAssetIdTest() { + void networkFeeAssetIdTest() { // TODO: test networkFeeAssetId } /** Test the property 'providerFee' */ @Test - public void providerFeeTest() { + void providerFeeTest() { // TODO: test providerFee } /** Test the property 'providerFeeAssetId' */ @Test - public void providerFeeAssetIdTest() { + void providerFeeAssetIdTest() { // TODO: test providerFeeAssetId } /** Test the property 'providerFeeRate' */ @Test - public void providerFeeRateTest() { + void providerFeeRateTest() { // TODO: test providerFeeRate } /** Test the property 'networkApproveFee' */ @Test - public void networkApproveFeeTest() { + void networkApproveFeeTest() { // TODO: test networkApproveFee } } diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteRequestTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteRequestTest.java index de2f71f2..6420687b 100644 --- a/src/test/java/com/fireblocks/sdk/model/QuoteRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/QuoteRequestTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for QuoteRequest */ -public class QuoteRequestTest { +class QuoteRequestTest { private final QuoteRequest model = new QuoteRequest(); /** Model tests for QuoteRequest */ @Test - public void testQuoteRequest() { + void testQuoteRequest() { // TODO: test QuoteRequest } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'inputAmount' */ @Test - public void inputAmountTest() { + void inputAmountTest() { // TODO: test inputAmount } /** Test the property 'inputAsset' */ @Test - public void inputAssetTest() { + void inputAssetTest() { // TODO: test inputAsset } /** Test the property 'outputAsset' */ @Test - public void outputAssetTest() { + void outputAssetTest() { // TODO: test outputAsset } /** Test the property 'slippageTolerance' */ @Test - public void slippageToleranceTest() { + void slippageToleranceTest() { // TODO: test slippageTolerance } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } } diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteResponseTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteResponseTest.java index 3e3f25ed..1c7c2778 100644 --- a/src/test/java/com/fireblocks/sdk/model/QuoteResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/QuoteResponseTest.java @@ -13,87 +13,87 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for QuoteResponse */ -public class QuoteResponseTest { +class QuoteResponseTest { private final QuoteResponse model = new QuoteResponse(); /** Model tests for QuoteResponse */ @Test - public void testQuoteResponse() { + void testQuoteResponse() { // TODO: test QuoteResponse } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'inputAmount' */ @Test - public void inputAmountTest() { + void inputAmountTest() { // TODO: test inputAmount } /** Test the property 'inputAsset' */ @Test - public void inputAssetTest() { + void inputAssetTest() { // TODO: test inputAsset } /** Test the property 'slippageTolerance' */ @Test - public void slippageToleranceTest() { + void slippageToleranceTest() { // TODO: test slippageTolerance } /** Test the property 'outputMinAmount' */ @Test - public void outputMinAmountTest() { + void outputMinAmountTest() { // TODO: test outputMinAmount } /** Test the property 'outputMaxAmount' */ @Test - public void outputMaxAmountTest() { + void outputMaxAmountTest() { // TODO: test outputMaxAmount } /** Test the property 'outputAsset' */ @Test - public void outputAssetTest() { + void outputAssetTest() { // TODO: test outputAsset } /** Test the property 'additionalData' */ @Test - public void additionalDataTest() { + void additionalDataTest() { // TODO: test additionalData } /** Test the property 'providerQuoteId' */ @Test - public void providerQuoteIdTest() { + void providerQuoteIdTest() { // TODO: test providerQuoteId } /** Test the property 'expiredAt' */ @Test - public void expiredAtTest() { + void expiredAtTest() { // TODO: test expiredAt } /** Test the property 'requiredActions' */ @Test - public void requiredActionsTest() { + void requiredActionsTest() { // TODO: test requiredActions } /** Test the property 'estimatedFees' */ @Test - public void estimatedFeesTest() { + void estimatedFeesTest() { // TODO: test estimatedFees } } diff --git a/src/test/java/com/fireblocks/sdk/model/ReadAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/ReadAbiFunctionTest.java index 35ff833b..8baa0070 100644 --- a/src/test/java/com/fireblocks/sdk/model/ReadAbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ReadAbiFunctionTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ReadAbiFunction */ -public class ReadAbiFunctionTest { +class ReadAbiFunctionTest { private final ReadAbiFunction model = new ReadAbiFunction(); /** Model tests for ReadAbiFunction */ @Test - public void testReadAbiFunction() { + void testReadAbiFunction() { // TODO: test ReadAbiFunction } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java index 80d990d2..fa15beb1 100644 --- a/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ReadCallFunctionDtoAbiFunction */ -public class ReadCallFunctionDtoAbiFunctionTest { +class ReadCallFunctionDtoAbiFunctionTest { private final ReadCallFunctionDtoAbiFunction model = new ReadCallFunctionDtoAbiFunction(); /** Model tests for ReadCallFunctionDtoAbiFunction */ @Test - public void testReadCallFunctionDtoAbiFunction() { + void testReadCallFunctionDtoAbiFunction() { // TODO: test ReadCallFunctionDtoAbiFunction } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'discriminator' */ @Test - public void discriminatorTest() { + void discriminatorTest() { // TODO: test discriminator } /** Test the property 'accounts' */ @Test - public void accountsTest() { + void accountsTest() { // TODO: test accounts } /** Test the property 'args' */ @Test - public void argsTest() { + void argsTest() { // TODO: test args } } diff --git a/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoTest.java index af7e2768..1b609788 100644 --- a/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ReadCallFunctionDto */ -public class ReadCallFunctionDtoTest { +class ReadCallFunctionDtoTest { private final ReadCallFunctionDto model = new ReadCallFunctionDto(); /** Model tests for ReadCallFunctionDto */ @Test - public void testReadCallFunctionDto() { + void testReadCallFunctionDto() { // TODO: test ReadCallFunctionDto } /** Test the property 'abiFunction' */ @Test - public void abiFunctionTest() { + void abiFunctionTest() { // TODO: test abiFunction } } diff --git a/src/test/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponseTest.java index 2876c841..cd466367 100644 --- a/src/test/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RedeemFundsToLinkedDDAResponse */ -public class RedeemFundsToLinkedDDAResponseTest { +class RedeemFundsToLinkedDDAResponseTest { private final RedeemFundsToLinkedDDAResponse model = new RedeemFundsToLinkedDDAResponse(); /** Model tests for RedeemFundsToLinkedDDAResponse */ @Test - public void testRedeemFundsToLinkedDDAResponse() { + void testRedeemFundsToLinkedDDAResponse() { // TODO: test RedeemFundsToLinkedDDAResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/RegisterNewAssetRequestTest.java b/src/test/java/com/fireblocks/sdk/model/RegisterNewAssetRequestTest.java index a1400363..564751c4 100644 --- a/src/test/java/com/fireblocks/sdk/model/RegisterNewAssetRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RegisterNewAssetRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RegisterNewAssetRequest */ -public class RegisterNewAssetRequestTest { +class RegisterNewAssetRequestTest { private final RegisterNewAssetRequest model = new RegisterNewAssetRequest(); /** Model tests for RegisterNewAssetRequest */ @Test - public void testRegisterNewAssetRequest() { + void testRegisterNewAssetRequest() { // TODO: test RegisterNewAssetRequest } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } } diff --git a/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java index e279774b..6a0ee3b7 100644 --- a/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ReissueMultichainTokenRequest */ -public class ReissueMultichainTokenRequestTest { +class ReissueMultichainTokenRequestTest { private final ReissueMultichainTokenRequest model = new ReissueMultichainTokenRequest(); /** Model tests for ReissueMultichainTokenRequest */ @Test - public void testReissueMultichainTokenRequest() { + void testReissueMultichainTokenRequest() { // TODO: test ReissueMultichainTokenRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'chains' */ @Test - public void chainsTest() { + void chainsTest() { // TODO: test chains } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + 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 index bbf4b7f7..4575bc79 100644 --- a/src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RelatedRequest */ -public class RelatedRequestTest { +class RelatedRequestTest { private final RelatedRequest model = new RelatedRequest(); /** Model tests for RelatedRequest */ @Test - public void testRelatedRequest() { + void testRelatedRequest() { // TODO: test RelatedRequest } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'inProgress' */ @Test - public void inProgressTest() { + void inProgressTest() { // TODO: test inProgress } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'txId' */ @Test - public void txIdTest() { + 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/RelatedTransactionTest.java index 1bdfaf78..b93a72c9 100644 --- a/src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RelatedTransaction */ -public class RelatedTransactionTest { +class RelatedTransactionTest { private final RelatedTransaction model = new RelatedTransaction(); /** Model tests for RelatedTransaction */ @Test - public void testRelatedTransaction() { + void testRelatedTransaction() { // TODO: test RelatedTransaction } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } /** Test the property 'completed' */ @Test - public void completedTest() { + void completedTest() { // TODO: test completed } } diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveCollateralRequestBodyTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveCollateralRequestBodyTest.java index 3e4f5a7d..0aa208c3 100644 --- a/src/test/java/com/fireblocks/sdk/model/RemoveCollateralRequestBodyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RemoveCollateralRequestBodyTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RemoveCollateralRequestBody */ -public class RemoveCollateralRequestBodyTest { +class RemoveCollateralRequestBodyTest { private final RemoveCollateralRequestBody model = new RemoveCollateralRequestBody(); /** Model tests for RemoveCollateralRequestBody */ @Test - public void testRemoveCollateralRequestBody() { + void testRemoveCollateralRequestBody() { // TODO: test RemoveCollateralRequestBody } /** Test the property 'transactionRequest' */ @Test - public void transactionRequestTest() { + void transactionRequestTest() { // TODO: test transactionRequest } /** Test the property 'isDstCollateral' */ @Test - public void isDstCollateralTest() { + void isDstCollateralTest() { // TODO: test isDstCollateral } } diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java index 832d8360..19f75a70 100644 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RemoveLayerZeroAdapterFailedResult */ -public class RemoveLayerZeroAdapterFailedResultTest { +class RemoveLayerZeroAdapterFailedResultTest { private final RemoveLayerZeroAdapterFailedResult model = new RemoveLayerZeroAdapterFailedResult(); /** Model tests for RemoveLayerZeroAdapterFailedResult */ @Test - public void testRemoveLayerZeroAdapterFailedResult() { + void testRemoveLayerZeroAdapterFailedResult() { // TODO: test RemoveLayerZeroAdapterFailedResult } /** Test the property 'adapterTokenLinkId' */ @Test - public void adapterTokenLinkIdTest() { + 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 index 3e2dcf6f..16eb4965 100644 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RemoveLayerZeroAdaptersRequest */ -public class RemoveLayerZeroAdaptersRequestTest { +class RemoveLayerZeroAdaptersRequestTest { private final RemoveLayerZeroAdaptersRequest model = new RemoveLayerZeroAdaptersRequest(); /** Model tests for RemoveLayerZeroAdaptersRequest */ @Test - public void testRemoveLayerZeroAdaptersRequest() { + void testRemoveLayerZeroAdaptersRequest() { // TODO: test RemoveLayerZeroAdaptersRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'adapterTokenLinkIds' */ @Test - public void adapterTokenLinkIdsTest() { + 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 index 103e90ea..4a8e1d15 100644 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RemoveLayerZeroAdaptersResponse */ -public class RemoveLayerZeroAdaptersResponseTest { +class RemoveLayerZeroAdaptersResponseTest { private final RemoveLayerZeroAdaptersResponse model = new RemoveLayerZeroAdaptersResponse(); /** Model tests for RemoveLayerZeroAdaptersResponse */ @Test - public void testRemoveLayerZeroAdaptersResponse() { + void testRemoveLayerZeroAdaptersResponse() { // TODO: test RemoveLayerZeroAdaptersResponse } /** Test the property 'deactivated' */ @Test - public void deactivatedTest() { + void deactivatedTest() { // TODO: test deactivated } /** Test the property 'failed' */ @Test - public void failedTest() { + 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 index 71a8371b..c34714f6 100644 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RemoveLayerZeroPeersRequest */ -public class RemoveLayerZeroPeersRequestTest { +class RemoveLayerZeroPeersRequestTest { private final RemoveLayerZeroPeersRequest model = new RemoveLayerZeroPeersRequest(); /** Model tests for RemoveLayerZeroPeersRequest */ @Test - public void testRemoveLayerZeroPeersRequest() { + void testRemoveLayerZeroPeersRequest() { // TODO: test RemoveLayerZeroPeersRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'sourceAdapterTokenLinkId' */ @Test - public void sourceAdapterTokenLinkIdTest() { + void sourceAdapterTokenLinkIdTest() { // TODO: test sourceAdapterTokenLinkId } /** Test the property 'destinationAdapterTokenLinkIds' */ @Test - public void destinationAdapterTokenLinkIdsTest() { + void destinationAdapterTokenLinkIdsTest() { // TODO: test destinationAdapterTokenLinkIds } /** Test the property 'bidirectional' */ @Test - public void bidirectionalTest() { + 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 index 709126b3..21ffe77d 100644 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RemoveLayerZeroPeersResponse */ -public class RemoveLayerZeroPeersResponseTest { +class RemoveLayerZeroPeersResponseTest { private final RemoveLayerZeroPeersResponse model = new RemoveLayerZeroPeersResponse(); /** Model tests for RemoveLayerZeroPeersResponse */ @Test - public void testRemoveLayerZeroPeersResponse() { + void testRemoveLayerZeroPeersResponse() { // TODO: test RemoveLayerZeroPeersResponse } /** Test the property 'txnIds' */ @Test - public void txnIdsTest() { + void txnIdsTest() { // TODO: test txnIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/RenameCosignerTest.java b/src/test/java/com/fireblocks/sdk/model/RenameCosignerTest.java index 7701d386..038cb9c7 100644 --- a/src/test/java/com/fireblocks/sdk/model/RenameCosignerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RenameCosignerTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RenameCosigner */ -public class RenameCosignerTest { +class RenameCosignerTest { private final RenameCosigner model = new RenameCosigner(); /** Model tests for RenameCosigner */ @Test - public void testRenameCosigner() { + void testRenameCosigner() { // TODO: test RenameCosigner } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/RenameVaultAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RenameVaultAccountResponseTest.java index 097fcc0f..41493f3c 100644 --- a/src/test/java/com/fireblocks/sdk/model/RenameVaultAccountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RenameVaultAccountResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RenameVaultAccountResponse */ -public class RenameVaultAccountResponseTest { +class RenameVaultAccountResponseTest { private final RenameVaultAccountResponse model = new RenameVaultAccountResponse(); /** Model tests for RenameVaultAccountResponse */ @Test - public void testRenameVaultAccountResponse() { + void testRenameVaultAccountResponse() { // TODO: test RenameVaultAccountResponse } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } } diff --git a/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java b/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java index f0970808..064fc123 100644 --- a/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RescanTransaction */ -public class RescanTransactionTest { +class RescanTransactionTest { private final RescanTransaction model = new RescanTransaction(); /** Model tests for RescanTransaction */ @Test - public void testRescanTransaction() { + void testRescanTransaction() { // TODO: test RescanTransaction } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + 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 index 8f2c52cb..b59ec17b 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java @@ -13,40 +13,40 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendFailedNotificationsJobStatusResponse */ -public class ResendFailedNotificationsJobStatusResponseTest { +class ResendFailedNotificationsJobStatusResponseTest { private final ResendFailedNotificationsJobStatusResponse model = new ResendFailedNotificationsJobStatusResponse(); /** Model tests for ResendFailedNotificationsJobStatusResponse */ @Test - public void testResendFailedNotificationsJobStatusResponse() { + void testResendFailedNotificationsJobStatusResponse() { // TODO: test ResendFailedNotificationsJobStatusResponse } /** Test the property 'jobId' */ @Test - public void jobIdTest() { + void jobIdTest() { // TODO: test jobId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'processed' */ @Test - public void processedTest() { + void processedTest() { // TODO: test processed } /** Test the property 'total' */ @Test - public void totalTest() { + 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 index 1b06c9e7..55f6e872 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendFailedNotificationsRequest */ -public class ResendFailedNotificationsRequestTest { +class ResendFailedNotificationsRequestTest { private final ResendFailedNotificationsRequest model = new ResendFailedNotificationsRequest(); /** Model tests for ResendFailedNotificationsRequest */ @Test - public void testResendFailedNotificationsRequest() { + void testResendFailedNotificationsRequest() { // TODO: test ResendFailedNotificationsRequest } /** Test the property 'startTime' */ @Test - public void startTimeTest() { + void startTimeTest() { // TODO: test startTime } /** Test the property 'events' */ @Test - public void eventsTest() { + 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 index fdb8c6cc..57ba062e 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendFailedNotificationsResponse */ -public class ResendFailedNotificationsResponseTest { +class ResendFailedNotificationsResponseTest { private final ResendFailedNotificationsResponse model = new ResendFailedNotificationsResponse(); /** Model tests for ResendFailedNotificationsResponse */ @Test - public void testResendFailedNotificationsResponse() { + void testResendFailedNotificationsResponse() { // TODO: test ResendFailedNotificationsResponse } /** Test the property 'total' */ @Test - public void totalTest() { + 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 index cb1acebd..2e1b0351 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendNotificationsByResourceIdRequest */ -public class ResendNotificationsByResourceIdRequestTest { +class ResendNotificationsByResourceIdRequestTest { private final ResendNotificationsByResourceIdRequest model = new ResendNotificationsByResourceIdRequest(); /** Model tests for ResendNotificationsByResourceIdRequest */ @Test - public void testResendNotificationsByResourceIdRequest() { + void testResendNotificationsByResourceIdRequest() { // TODO: test ResendNotificationsByResourceIdRequest } /** Test the property 'resourceId' */ @Test - public void resourceIdTest() { + void resourceIdTest() { // TODO: test resourceId } /** Test the property 'excludeStatuses' */ @Test - public void excludeStatusesTest() { + void excludeStatusesTest() { // TODO: test excludeStatuses } } diff --git a/src/test/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequestTest.java index ded69710..0154d153 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendTransactionWebhooksRequest */ -public class ResendTransactionWebhooksRequestTest { +class ResendTransactionWebhooksRequestTest { private final ResendTransactionWebhooksRequest model = new ResendTransactionWebhooksRequest(); /** Model tests for ResendTransactionWebhooksRequest */ @Test - public void testResendTransactionWebhooksRequest() { + void testResendTransactionWebhooksRequest() { // TODO: test ResendTransactionWebhooksRequest } /** Test the property 'resendCreated' */ @Test - public void resendCreatedTest() { + void resendCreatedTest() { // TODO: test resendCreated } /** Test the property 'resendStatusUpdated' */ @Test - public void resendStatusUpdatedTest() { + void resendStatusUpdatedTest() { // TODO: test resendStatusUpdated } } diff --git a/src/test/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponseTest.java index 858a2755..80e7b089 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponseTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendWebhooksByTransactionIdResponse */ -public class ResendWebhooksByTransactionIdResponseTest { +class ResendWebhooksByTransactionIdResponseTest { private final ResendWebhooksByTransactionIdResponse model = new ResendWebhooksByTransactionIdResponse(); /** Model tests for ResendWebhooksByTransactionIdResponse */ @Test - public void testResendWebhooksByTransactionIdResponse() { + void testResendWebhooksByTransactionIdResponse() { // TODO: test ResendWebhooksByTransactionIdResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/ResendWebhooksResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ResendWebhooksResponseTest.java index b8a23b4c..2f8515d2 100644 --- a/src/test/java/com/fireblocks/sdk/model/ResendWebhooksResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ResendWebhooksResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ResendWebhooksResponse */ -public class ResendWebhooksResponseTest { +class ResendWebhooksResponseTest { private final ResendWebhooksResponse model = new ResendWebhooksResponse(); /** Model tests for ResendWebhooksResponse */ @Test - public void testResendWebhooksResponse() { + void testResendWebhooksResponse() { // TODO: test ResendWebhooksResponse } /** Test the property 'messagesCount' */ @Test - public void messagesCountTest() { + void messagesCountTest() { // TODO: test messagesCount } } diff --git a/src/test/java/com/fireblocks/sdk/model/RespondToConnectionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/RespondToConnectionRequestTest.java index c06e9791..e07eaf14 100644 --- a/src/test/java/com/fireblocks/sdk/model/RespondToConnectionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RespondToConnectionRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RespondToConnectionRequest */ -public class RespondToConnectionRequestTest { +class RespondToConnectionRequestTest { private final RespondToConnectionRequest model = new RespondToConnectionRequest(); /** Model tests for RespondToConnectionRequest */ @Test - public void testRespondToConnectionRequest() { + void testRespondToConnectionRequest() { // TODO: test RespondToConnectionRequest } /** Test the property 'approve' */ @Test - public void approveTest() { + void approveTest() { // TODO: test approve } } diff --git a/src/test/java/com/fireblocks/sdk/model/RewardInfoTest.java b/src/test/java/com/fireblocks/sdk/model/RewardInfoTest.java index 3cc87c91..dc53ac58 100644 --- a/src/test/java/com/fireblocks/sdk/model/RewardInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RewardInfoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RewardInfo */ -public class RewardInfoTest { +class RewardInfoTest { private final RewardInfo model = new RewardInfo(); /** Model tests for RewardInfo */ @Test - public void testRewardInfo() { + void testRewardInfo() { // TODO: test RewardInfo } /** Test the property 'srcRewards' */ @Test - public void srcRewardsTest() { + void srcRewardsTest() { // TODO: test srcRewards } /** Test the property 'destRewards' */ @Test - public void destRewardsTest() { + void destRewardsTest() { // TODO: test destRewards } } diff --git a/src/test/java/com/fireblocks/sdk/model/RewardsInfoTest.java b/src/test/java/com/fireblocks/sdk/model/RewardsInfoTest.java index d9a016c9..0b0eaa0c 100644 --- a/src/test/java/com/fireblocks/sdk/model/RewardsInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RewardsInfoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for RewardsInfo */ -public class RewardsInfoTest { +class RewardsInfoTest { private final RewardsInfo model = new RewardsInfo(); /** Model tests for RewardsInfo */ @Test - public void testRewardsInfo() { + void testRewardsInfo() { // TODO: test RewardsInfo } /** Test the property 'pendingRewards' */ @Test - public void pendingRewardsTest() { + void pendingRewardsTest() { // TODO: test pendingRewards } } diff --git a/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java b/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java index 24656d40..2e521e16 100644 --- a/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SOLAccount */ -public class SOLAccountTest { +class SOLAccountTest { private final SOLAccount model = new SOLAccount(); /** Model tests for SOLAccount */ @Test - public void testSOLAccount() { + void testSOLAccount() { // TODO: test SOLAccount } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'signer' */ @Test - public void signerTest() { + void signerTest() { // TODO: test signer } /** Test the property 'writable' */ @Test - public void writableTest() { + void writableTest() { // TODO: test writable } /** Test the property 'address' */ @Test - public void addressTest() { + 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 index 810d1beb..a4b1bb4a 100644 --- a/src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SOLAccountWithValue */ -public class SOLAccountWithValueTest { +class SOLAccountWithValueTest { private final SOLAccountWithValue model = new SOLAccountWithValue(); /** Model tests for SOLAccountWithValue */ @Test - public void testSOLAccountWithValue() { + void testSOLAccountWithValue() { // TODO: test SOLAccountWithValue } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'signer' */ @Test - public void signerTest() { + void signerTest() { // TODO: test signer } /** Test the property 'writable' */ @Test - public void writableTest() { + void writableTest() { // TODO: test writable } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequestTest.java index 2e902459..36fb4399 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningConfigurationsRequest */ -public class ScreeningConfigurationsRequestTest { +class ScreeningConfigurationsRequestTest { private final ScreeningConfigurationsRequest model = new ScreeningConfigurationsRequest(); /** Model tests for ScreeningConfigurationsRequest */ @Test - public void testScreeningConfigurationsRequest() { + void testScreeningConfigurationsRequest() { // TODO: test ScreeningConfigurationsRequest } /** Test the property 'bypassScreeningDuringServiceOutages' */ @Test - public void bypassScreeningDuringServiceOutagesTest() { + void bypassScreeningDuringServiceOutagesTest() { // TODO: test bypassScreeningDuringServiceOutages } /** Test the property 'inboundTransactionDelay' */ @Test - public void inboundTransactionDelayTest() { + void inboundTransactionDelayTest() { // TODO: test inboundTransactionDelay } /** Test the property 'outboundTransactionDelay' */ @Test - public void outboundTransactionDelayTest() { + void outboundTransactionDelayTest() { // TODO: test outboundTransactionDelay } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java new file mode 100644 index 00000000..15cb387a --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java @@ -0,0 +1,93 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/ScreeningOperationExecutionOutputTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutputTest.java index ad24588e..c712e1d9 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutputTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningOperationExecutionOutput */ -public class ScreeningOperationExecutionOutputTest { +class ScreeningOperationExecutionOutputTest { private final ScreeningOperationExecutionOutput model = new ScreeningOperationExecutionOutput(); /** Model tests for ScreeningOperationExecutionOutput */ @Test - public void testScreeningOperationExecutionOutput() { + void testScreeningOperationExecutionOutput() { // TODO: test ScreeningOperationExecutionOutput } /** Test the property 'verdicts' */ @Test - public void verdictsTest() { + void verdictsTest() { // TODO: test verdicts } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionTest.java index b1a3946d..ac19a1a4 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningOperationExecution */ -public class ScreeningOperationExecutionTest { +class ScreeningOperationExecutionTest { private final ScreeningOperationExecution model = new ScreeningOperationExecution(); /** Model tests for ScreeningOperationExecution */ @Test - public void testScreeningOperationExecution() { + void testScreeningOperationExecution() { // TODO: test ScreeningOperationExecution } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'startedAt' */ @Test - public void startedAtTest() { + void startedAtTest() { // TODO: test startedAt } /** Test the property 'finishedAt' */ @Test - public void finishedAtTest() { + void finishedAtTest() { // TODO: test finishedAt } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationFailureTest.java index 656f3513..a2e6da32 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningOperationFailure */ -public class ScreeningOperationFailureTest { +class ScreeningOperationFailureTest { private final ScreeningOperationFailure model = new ScreeningOperationFailure(); /** Model tests for ScreeningOperationFailure */ @Test - public void testScreeningOperationFailure() { + void testScreeningOperationFailure() { // TODO: test ScreeningOperationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationTypeTest.java index c173839c..ea6cefa9 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningOperationTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningOperationTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningOperationType */ -public class ScreeningOperationTypeTest { +class ScreeningOperationTypeTest { /** Model tests for ScreeningOperationType */ @Test - public void testScreeningOperationType() { + void testScreeningOperationType() { // TODO: test ScreeningOperationType } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningPolicyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningPolicyResponseTest.java index 6934fac1..95e4d7cb 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningPolicyResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningPolicyResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningPolicyResponse */ -public class ScreeningPolicyResponseTest { +class ScreeningPolicyResponseTest { private final ScreeningPolicyResponse model = new ScreeningPolicyResponse(); /** Model tests for ScreeningPolicyResponse */ @Test - public void testScreeningPolicyResponse() { + void testScreeningPolicyResponse() { // TODO: test ScreeningPolicyResponse } /** Test the property 'policy' */ @Test - public void policyTest() { + void policyTest() { // TODO: test policy } /** Test the property 'policyStatus' */ @Test - public void policyStatusTest() { + void policyStatusTest() { // TODO: test policyStatus } /** Test the property 'isDefault' */ @Test - public void isDefaultTest() { + void isDefaultTest() { // TODO: test isDefault } /** Test the property 'createDate' */ @Test - public void createDateTest() { + void createDateTest() { // TODO: test createDate } /** Test the property 'lastUpdate' */ @Test - public void lastUpdateTest() { + void lastUpdateTest() { // TODO: test lastUpdate } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponseTest.java index 60e7e246..cd32ba8d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponseTest.java @@ -13,52 +13,52 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningProviderRulesConfigurationResponse */ -public class ScreeningProviderRulesConfigurationResponseTest { +class ScreeningProviderRulesConfigurationResponseTest { private final ScreeningProviderRulesConfigurationResponse model = new ScreeningProviderRulesConfigurationResponse(); /** Model tests for ScreeningProviderRulesConfigurationResponse */ @Test - public void testScreeningProviderRulesConfigurationResponse() { + void testScreeningProviderRulesConfigurationResponse() { // TODO: test ScreeningProviderRulesConfigurationResponse } /** Test the property 'direction' */ @Test - public void directionTest() { + void directionTest() { // TODO: test direction } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'amountUSD' */ @Test - public void amountUSDTest() { + void amountUSDTest() { // TODO: test amountUSD } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'action' */ @Test - public void actionTest() { + void actionTest() { // TODO: test action } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java index 56f1166a..ce3d45f2 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningUpdateConfigurations */ -public class ScreeningUpdateConfigurationsTest { +class ScreeningUpdateConfigurationsTest { private final ScreeningUpdateConfigurations model = new ScreeningUpdateConfigurations(); /** Model tests for ScreeningUpdateConfigurations */ @Test - public void testScreeningUpdateConfigurations() { + void testScreeningUpdateConfigurations() { // TODO: test ScreeningUpdateConfigurations } /** Test the property 'disableBypass' */ @Test - public void disableBypassTest() { + void disableBypassTest() { // TODO: test disableBypass } /** Test the property 'disableUnfreeze' */ @Test - public void disableUnfreezeTest() { + void disableUnfreezeTest() { // TODO: test disableUnfreeze } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningValidationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningValidationFailureTest.java index 641f9dc2..a7ebd4be 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningValidationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningValidationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningValidationFailure */ -public class ScreeningValidationFailureTest { +class ScreeningValidationFailureTest { private final ScreeningValidationFailure model = new ScreeningValidationFailure(); /** Model tests for ScreeningValidationFailure */ @Test - public void testScreeningValidationFailure() { + void testScreeningValidationFailure() { // TODO: test ScreeningValidationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRuleTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRuleTest.java index 88b8cf81..9d8397ff 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRuleTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRuleTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningVerdictMatchedRule */ -public class ScreeningVerdictMatchedRuleTest { +class ScreeningVerdictMatchedRuleTest { private final ScreeningVerdictMatchedRule model = new ScreeningVerdictMatchedRule(); /** Model tests for ScreeningVerdictMatchedRule */ @Test - public void testScreeningVerdictMatchedRule() { + void testScreeningVerdictMatchedRule() { // TODO: test ScreeningVerdictMatchedRule } /** Test the property 'action' */ @Test - public void actionTest() { + void actionTest() { // TODO: test action } /** Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } } diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictTest.java index 5c9eddec..eefcfd60 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningVerdictTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ScreeningVerdict */ -public class ScreeningVerdictTest { +class ScreeningVerdictTest { private final ScreeningVerdict model = new ScreeningVerdict(); /** Model tests for ScreeningVerdict */ @Test - public void testScreeningVerdict() { + void testScreeningVerdict() { // TODO: test ScreeningVerdict } /** Test the property 'verdict' */ @Test - public void verdictTest() { + void verdictTest() { // TODO: test verdict } /** Test the property 'executionOperationId' */ @Test - public void executionOperationIdTest() { + void executionOperationIdTest() { // TODO: test executionOperationId } /** Test the property 'account' */ @Test - public void accountTest() { + void accountTest() { // TODO: test account } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'matchedRule' */ @Test - public void matchedRuleTest() { + void matchedRuleTest() { // TODO: test matchedRule } } diff --git a/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java index 8119c889..01eb0465 100644 --- a/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SearchNetworkIdsResponse */ -public class SearchNetworkIdsResponseTest { +class SearchNetworkIdsResponseTest { private final SearchNetworkIdsResponse model = new SearchNetworkIdsResponse(); /** Model tests for SearchNetworkIdsResponse */ @Test - public void testSearchNetworkIdsResponse() { + void testSearchNetworkIdsResponse() { // TODO: test SearchNetworkIdsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 new file mode 100644 index 00000000..22588658 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java @@ -0,0 +1,111 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/SessionDTOTest.java b/src/test/java/com/fireblocks/sdk/model/SessionDTOTest.java index 4e7de7fe..420f7993 100644 --- a/src/test/java/com/fireblocks/sdk/model/SessionDTOTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SessionDTOTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SessionDTO */ -public class SessionDTOTest { +class SessionDTOTest { private final SessionDTO model = new SessionDTO(); /** Model tests for SessionDTO */ @Test - public void testSessionDTO() { + void testSessionDTO() { // TODO: test SessionDTO } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'userId' */ @Test - public void userIdTest() { + void userIdTest() { // TODO: test userId } /** Test the property 'sessionMetadata' */ @Test - public void sessionMetadataTest() { + void sessionMetadataTest() { // TODO: test sessionMetadata } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'chainIds' */ @Test - public void chainIdsTest() { + void chainIdsTest() { // TODO: test chainIds } /** Test the property 'connectionType' */ @Test - public void connectionTypeTest() { + void connectionTypeTest() { // TODO: test connectionType } /** Test the property 'connectionMethod' */ @Test - public void connectionMethodTest() { + void connectionMethodTest() { // TODO: test connectionMethod } /** Test the property 'creationDate' */ @Test - public void creationDateTest() { + void creationDateTest() { // TODO: test creationDate } } diff --git a/src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java index 5daa26e7..9f22e1c1 100644 --- a/src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SessionMetadata */ -public class SessionMetadataTest { +class SessionMetadataTest { private final SessionMetadata model = new SessionMetadata(); /** Model tests for SessionMetadata */ @Test - public void testSessionMetadata() { + void testSessionMetadata() { // TODO: test SessionMetadata } /** Test the property 'appUrl' */ @Test - public void appUrlTest() { + void appUrlTest() { // TODO: test appUrl } /** Test the property 'appName' */ @Test - public void appNameTest() { + void appNameTest() { // TODO: test appName } /** Test the property 'appDescription' */ @Test - public void appDescriptionTest() { + void appDescriptionTest() { // TODO: test appDescription } /** Test the property 'appIcon' */ @Test - public void appIconTest() { + void appIconTest() { // TODO: test appIcon } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java index 88b16339..6cd6b93c 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetAdminQuorumThresholdRequest */ -public class SetAdminQuorumThresholdRequestTest { +class SetAdminQuorumThresholdRequestTest { private final SetAdminQuorumThresholdRequest model = new SetAdminQuorumThresholdRequest(); /** Model tests for SetAdminQuorumThresholdRequest */ @Test - public void testSetAdminQuorumThresholdRequest() { + void testSetAdminQuorumThresholdRequest() { // TODO: test SetAdminQuorumThresholdRequest } /** Test the property 'adminQuorumThreshold' */ @Test - public void adminQuorumThresholdTest() { + void adminQuorumThresholdTest() { // TODO: test adminQuorumThreshold } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java index c2ae3d27..88054288 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetAdminQuorumThresholdResponse */ -public class SetAdminQuorumThresholdResponseTest { +class SetAdminQuorumThresholdResponseTest { private final SetAdminQuorumThresholdResponse model = new SetAdminQuorumThresholdResponse(); /** Model tests for SetAdminQuorumThresholdResponse */ @Test - public void testSetAdminQuorumThresholdResponse() { + void testSetAdminQuorumThresholdResponse() { // TODO: test SetAdminQuorumThresholdResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java index c6b1a4eb..b682dab8 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetAssetPriceRequest */ -public class SetAssetPriceRequestTest { +class SetAssetPriceRequestTest { private final SetAssetPriceRequest model = new SetAssetPriceRequest(); /** Model tests for SetAssetPriceRequest */ @Test - public void testSetAssetPriceRequest() { + void testSetAssetPriceRequest() { // TODO: test SetAssetPriceRequest } /** Test the property 'currency' */ @Test - public void currencyTest() { + void currencyTest() { // TODO: test currency } /** Test the property 'price' */ @Test - public void priceTest() { + void priceTest() { // TODO: test price } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java index 5e8cb1fa..e5824eaa 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetAutoFuelRequest */ -public class SetAutoFuelRequestTest { +class SetAutoFuelRequestTest { private final SetAutoFuelRequest model = new SetAutoFuelRequest(); /** Model tests for SetAutoFuelRequest */ @Test - public void testSetAutoFuelRequest() { + void testSetAutoFuelRequest() { // TODO: test SetAutoFuelRequest } /** Test the property 'autoFuel' */ @Test - public void autoFuelTest() { + void autoFuelTest() { // TODO: test autoFuel } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java index 74766036..51f81ffe 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetConfirmationsThresholdRequest */ -public class SetConfirmationsThresholdRequestTest { +class SetConfirmationsThresholdRequestTest { private final SetConfirmationsThresholdRequest model = new SetConfirmationsThresholdRequest(); /** Model tests for SetConfirmationsThresholdRequest */ @Test - public void testSetConfirmationsThresholdRequest() { + void testSetConfirmationsThresholdRequest() { // TODO: test SetConfirmationsThresholdRequest } /** Test the property 'numOfConfirmations' */ @Test - public void numOfConfirmationsTest() { + void numOfConfirmationsTest() { // TODO: test numOfConfirmations } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponseTest.java index 3e158481..f3c664a8 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetConfirmationsThresholdResponse */ -public class SetConfirmationsThresholdResponseTest { +class SetConfirmationsThresholdResponseTest { private final SetConfirmationsThresholdResponse model = new SetConfirmationsThresholdResponse(); /** Model tests for SetConfirmationsThresholdResponse */ @Test - public void testSetConfirmationsThresholdResponse() { + void testSetConfirmationsThresholdResponse() { // TODO: test SetConfirmationsThresholdResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } /** Test the property 'transactions' */ @Test - public void transactionsTest() { + void transactionsTest() { // TODO: test transactions } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequestTest.java index a7cd8df6..0454948b 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetCustomerRefIdForAddressRequest */ -public class SetCustomerRefIdForAddressRequestTest { +class SetCustomerRefIdForAddressRequestTest { private final SetCustomerRefIdForAddressRequest model = new SetCustomerRefIdForAddressRequest(); /** Model tests for SetCustomerRefIdForAddressRequest */ @Test - public void testSetCustomerRefIdForAddressRequest() { + void testSetCustomerRefIdForAddressRequest() { // TODO: test SetCustomerRefIdForAddressRequest } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdRequestTest.java index 6d137d16..6771681b 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetCustomerRefIdRequest */ -public class SetCustomerRefIdRequestTest { +class SetCustomerRefIdRequestTest { private final SetCustomerRefIdRequest model = new SetCustomerRefIdRequest(); /** Model tests for SetCustomerRefIdRequest */ @Test - public void testSetCustomerRefIdRequest() { + void testSetCustomerRefIdRequest() { // TODO: test SetCustomerRefIdRequest } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java index c421bd1c..9cb13a3f 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetLayerZeroDvnConfigRequest */ -public class SetLayerZeroDvnConfigRequestTest { +class SetLayerZeroDvnConfigRequestTest { private final SetLayerZeroDvnConfigRequest model = new SetLayerZeroDvnConfigRequest(); /** Model tests for SetLayerZeroDvnConfigRequest */ @Test - public void testSetLayerZeroDvnConfigRequest() { + void testSetLayerZeroDvnConfigRequest() { // TODO: test SetLayerZeroDvnConfigRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'sourceAdapterTokenLinkId' */ @Test - public void sourceAdapterTokenLinkIdTest() { + void sourceAdapterTokenLinkIdTest() { // TODO: test sourceAdapterTokenLinkId } /** Test the property 'destinationAdapterTokenLinkId' */ @Test - public void destinationAdapterTokenLinkIdTest() { + void destinationAdapterTokenLinkIdTest() { // TODO: test destinationAdapterTokenLinkId } /** Test the property 'sendConfig' */ @Test - public void sendConfigTest() { + void sendConfigTest() { // TODO: test sendConfig } /** Test the property 'receiveConfig' */ @Test - public void receiveConfigTest() { + 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 index 24a004ae..93c372bb 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetLayerZeroDvnConfigResponse */ -public class SetLayerZeroDvnConfigResponseTest { +class SetLayerZeroDvnConfigResponseTest { private final SetLayerZeroDvnConfigResponse model = new SetLayerZeroDvnConfigResponse(); /** Model tests for SetLayerZeroDvnConfigResponse */ @Test - public void testSetLayerZeroDvnConfigResponse() { + void testSetLayerZeroDvnConfigResponse() { // TODO: test SetLayerZeroDvnConfigResponse } /** Test the property 'txnIds' */ @Test - public void txnIdsTest() { + 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 index 4f1a6444..29dad278 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetLayerZeroPeersRequest */ -public class SetLayerZeroPeersRequestTest { +class SetLayerZeroPeersRequestTest { private final SetLayerZeroPeersRequest model = new SetLayerZeroPeersRequest(); /** Model tests for SetLayerZeroPeersRequest */ @Test - public void testSetLayerZeroPeersRequest() { + void testSetLayerZeroPeersRequest() { // TODO: test SetLayerZeroPeersRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'sourceAdapterTokenLinkId' */ @Test - public void sourceAdapterTokenLinkIdTest() { + void sourceAdapterTokenLinkIdTest() { // TODO: test sourceAdapterTokenLinkId } /** Test the property 'destinationAdapterTokenLinkIds' */ @Test - public void destinationAdapterTokenLinkIdsTest() { + void destinationAdapterTokenLinkIdsTest() { // TODO: test destinationAdapterTokenLinkIds } /** Test the property 'bidirectional' */ @Test - public void bidirectionalTest() { + 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 index d1110bc0..24487d07 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetLayerZeroPeersResponse */ -public class SetLayerZeroPeersResponseTest { +class SetLayerZeroPeersResponseTest { private final SetLayerZeroPeersResponse model = new SetLayerZeroPeersResponse(); /** Model tests for SetLayerZeroPeersResponse */ @Test - public void testSetLayerZeroPeersResponse() { + void testSetLayerZeroPeersResponse() { // TODO: test SetLayerZeroPeersResponse } /** Test the property 'txnIds' */ @Test - public void txnIdsTest() { + void txnIdsTest() { // TODO: test txnIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequestTest.java index eaf5ede9..2e615c59 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequestTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetNetworkIdDiscoverabilityRequest */ -public class SetNetworkIdDiscoverabilityRequestTest { +class SetNetworkIdDiscoverabilityRequestTest { private final SetNetworkIdDiscoverabilityRequest model = new SetNetworkIdDiscoverabilityRequest(); /** Model tests for SetNetworkIdDiscoverabilityRequest */ @Test - public void testSetNetworkIdDiscoverabilityRequest() { + void testSetNetworkIdDiscoverabilityRequest() { // TODO: test SetNetworkIdDiscoverabilityRequest } /** Test the property 'isDiscoverable' */ @Test - public void isDiscoverableTest() { + void isDiscoverableTest() { // TODO: test isDiscoverable } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdNameRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdNameRequestTest.java index 419a2dc0..d144cccd 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdNameRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdNameRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetNetworkIdNameRequest */ -public class SetNetworkIdNameRequestTest { +class SetNetworkIdNameRequestTest { private final SetNetworkIdNameRequest model = new SetNetworkIdNameRequest(); /** Model tests for SetNetworkIdNameRequest */ @Test - public void testSetNetworkIdNameRequest() { + void testSetNetworkIdNameRequest() { // TODO: test SetNetworkIdNameRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdResponseTest.java index f524e228..f17af053 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetNetworkIdResponse */ -public class SetNetworkIdResponseTest { +class SetNetworkIdResponseTest { private final SetNetworkIdResponse model = new SetNetworkIdResponse(); /** Model tests for SetNetworkIdResponse */ @Test - public void testSetNetworkIdResponse() { + void testSetNetworkIdResponse() { // TODO: test SetNetworkIdResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequestTest.java index c6b1ed70..4a299c4f 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetNetworkIdRoutingPolicyRequest */ -public class SetNetworkIdRoutingPolicyRequestTest { +class SetNetworkIdRoutingPolicyRequestTest { private final SetNetworkIdRoutingPolicyRequest model = new SetNetworkIdRoutingPolicyRequest(); /** Model tests for SetNetworkIdRoutingPolicyRequest */ @Test - public void testSetNetworkIdRoutingPolicyRequest() { + void testSetNetworkIdRoutingPolicyRequest() { // TODO: test SetNetworkIdRoutingPolicyRequest } /** Test the property 'routingPolicy' */ @Test - public void routingPolicyTest() { + void routingPolicyTest() { // TODO: test routingPolicy } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetOtaStatusRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetOtaStatusRequestTest.java index 97685a43..def959e6 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetOtaStatusRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetOtaStatusRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetOtaStatusRequest */ -public class SetOtaStatusRequestTest { +class SetOtaStatusRequestTest { private final SetOtaStatusRequest model = new SetOtaStatusRequest(); /** Model tests for SetOtaStatusRequest */ @Test - public void testSetOtaStatusRequest() { + void testSetOtaStatusRequest() { // TODO: test SetOtaStatusRequest } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOfTest.java index 8063cc73..b45e9d01 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOfTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOfTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetOtaStatusResponseOneOf */ -public class SetOtaStatusResponseOneOfTest { +class SetOtaStatusResponseOneOfTest { private final SetOtaStatusResponseOneOf model = new SetOtaStatusResponseOneOf(); /** Model tests for SetOtaStatusResponseOneOf */ @Test - public void testSetOtaStatusResponseOneOf() { + void testSetOtaStatusResponseOneOf() { // TODO: test SetOtaStatusResponseOneOf } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseTest.java index 778918b1..680dec9e 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetOtaStatusResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetOtaStatusResponse */ -public class SetOtaStatusResponseTest { +class SetOtaStatusResponseTest { private final SetOtaStatusResponse model = new SetOtaStatusResponse(); /** Model tests for SetOtaStatusResponse */ @Test - public void testSetOtaStatusResponse() { + void testSetOtaStatusResponse() { // TODO: test SetOtaStatusResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyRequestTest.java index 0690e535..b91f41b3 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetRoutingPolicyRequest */ -public class SetRoutingPolicyRequestTest { +class SetRoutingPolicyRequestTest { private final SetRoutingPolicyRequest model = new SetRoutingPolicyRequest(); /** Model tests for SetRoutingPolicyRequest */ @Test - public void testSetRoutingPolicyRequest() { + void testSetRoutingPolicyRequest() { // TODO: test SetRoutingPolicyRequest } /** Test the property 'routingPolicy' */ @Test - public void routingPolicyTest() { + void routingPolicyTest() { // TODO: test routingPolicy } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyResponseTest.java index 6185025c..1dcb078d 100644 --- a/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SetRoutingPolicyResponse */ -public class SetRoutingPolicyResponseTest { +class SetRoutingPolicyResponseTest { private final SetRoutingPolicyResponse model = new SetRoutingPolicyResponse(); /** Model tests for SetRoutingPolicyResponse */ @Test - public void testSetRoutingPolicyResponse() { + void testSetRoutingPolicyResponse() { // TODO: test SetRoutingPolicyResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/SettlementRequestBodyTest.java b/src/test/java/com/fireblocks/sdk/model/SettlementRequestBodyTest.java index 99ca53c9..8f072f34 100644 --- a/src/test/java/com/fireblocks/sdk/model/SettlementRequestBodyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SettlementRequestBodyTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SettlementRequestBody */ -public class SettlementRequestBodyTest { +class SettlementRequestBodyTest { private final SettlementRequestBody model = new SettlementRequestBody(); /** Model tests for SettlementRequestBody */ @Test - public void testSettlementRequestBody() { + void testSettlementRequestBody() { // TODO: test SettlementRequestBody } /** Test the property 'mainExchangeAccountId' */ @Test - public void mainExchangeAccountIdTest() { + void mainExchangeAccountIdTest() { // TODO: test mainExchangeAccountId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SettlementResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SettlementResponseTest.java index 97dc0a14..3af39df1 100644 --- a/src/test/java/com/fireblocks/sdk/model/SettlementResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SettlementResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SettlementResponse */ -public class SettlementResponseTest { +class SettlementResponseTest { private final SettlementResponse model = new SettlementResponse(); /** Model tests for SettlementResponse */ @Test - public void testSettlementResponse() { + void testSettlementResponse() { // TODO: test SettlementResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'initiator' */ @Test - public void initiatorTest() { + void initiatorTest() { // TODO: test initiator } /** Test the property 'exchangeReply' */ @Test - public void exchangeReplyTest() { + void exchangeReplyTest() { // TODO: test exchangeReply } /** Test the property 'fireblocksInitiatedTransactions' */ @Test - public void fireblocksInitiatedTransactionsTest() { + void fireblocksInitiatedTransactionsTest() { // TODO: test fireblocksInitiatedTransactions } /** Test the property 'exchangeRequestedTransactions' */ @Test - public void exchangeRequestedTransactionsTest() { + void exchangeRequestedTransactionsTest() { // TODO: test exchangeRequestedTransactions } } diff --git a/src/test/java/com/fireblocks/sdk/model/SignedMessageSignatureTest.java b/src/test/java/com/fireblocks/sdk/model/SignedMessageSignatureTest.java index d271a447..875af743 100644 --- a/src/test/java/com/fireblocks/sdk/model/SignedMessageSignatureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SignedMessageSignatureTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SignedMessageSignature */ -public class SignedMessageSignatureTest { +class SignedMessageSignatureTest { private final SignedMessageSignature model = new SignedMessageSignature(); /** Model tests for SignedMessageSignature */ @Test - public void testSignedMessageSignature() { + void testSignedMessageSignature() { // TODO: test SignedMessageSignature } /** Test the property 'fullSig' */ @Test - public void fullSigTest() { + void fullSigTest() { // TODO: test fullSig } /** Test the property 'r' */ @Test - public void rTest() { + void rTest() { // TODO: test r } /** Test the property 's' */ @Test - public void sTest() { + void sTest() { // TODO: test s } /** Test the property 'v' */ @Test - public void vTest() { + void vTest() { // TODO: test v } } diff --git a/src/test/java/com/fireblocks/sdk/model/SignedMessageTest.java b/src/test/java/com/fireblocks/sdk/model/SignedMessageTest.java index f43bba66..9f014359 100644 --- a/src/test/java/com/fireblocks/sdk/model/SignedMessageTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SignedMessageTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SignedMessage */ -public class SignedMessageTest { +class SignedMessageTest { private final SignedMessage model = new SignedMessage(); /** Model tests for SignedMessage */ @Test - public void testSignedMessage() { + void testSignedMessage() { // TODO: test SignedMessage } /** Test the property 'content' */ @Test - public void contentTest() { + void contentTest() { // TODO: test content } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + void algorithmTest() { // TODO: test algorithm } /** Test the property 'derivationPath' */ @Test - public void derivationPathTest() { + void derivationPathTest() { // TODO: test derivationPath } /** Test the property 'signature' */ @Test - public void signatureTest() { + void signatureTest() { // TODO: test signature } /** Test the property 'publicKey' */ @Test - public void publicKeyTest() { + void publicKeyTest() { // TODO: test publicKey } } diff --git a/src/test/java/com/fireblocks/sdk/model/SigningKeyDtoTest.java b/src/test/java/com/fireblocks/sdk/model/SigningKeyDtoTest.java index e94a8b8d..5f177939 100644 --- a/src/test/java/com/fireblocks/sdk/model/SigningKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SigningKeyDtoTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SigningKeyDto */ -public class SigningKeyDtoTest { +class SigningKeyDtoTest { private final SigningKeyDto model = new SigningKeyDto(); /** Model tests for SigningKeyDto */ @Test - public void testSigningKeyDto() { + void testSigningKeyDto() { // TODO: test SigningKeyDto } /** Test the property 'keyId' */ @Test - public void keyIdTest() { + void keyIdTest() { // TODO: test keyId } /** Test the property 'signingDeviceKeyId' */ @Test - public void signingDeviceKeyIdTest() { + void signingDeviceKeyIdTest() { // TODO: test signingDeviceKeyId } /** Test the property 'publicKeyPem' */ @Test - public void publicKeyPemTest() { + void publicKeyPemTest() { // TODO: test publicKeyPem } /** Test the property 'algorithm' */ @Test - public void algorithmTest() { + void algorithmTest() { // TODO: test algorithm } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'agentUserId' */ @Test - public void agentUserIdTest() { + void agentUserIdTest() { // TODO: test agentUserId } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java index d3bd0b3f..0fb524ae 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferApproveTerm */ -public class SmartTransferApproveTermTest { +class SmartTransferApproveTermTest { private final SmartTransferApproveTerm model = new SmartTransferApproveTerm(); /** Model tests for SmartTransferApproveTerm */ @Test - public void testSmartTransferApproveTerm() { + void testSmartTransferApproveTerm() { // TODO: test SmartTransferApproveTerm } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'srcId' */ @Test - public void srcIdTest() { + void srcIdTest() { // TODO: test srcId } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponseTest.java index 229d0da8..da1a2dc0 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferBadRequestResponse */ -public class SmartTransferBadRequestResponseTest { +class SmartTransferBadRequestResponseTest { private final SmartTransferBadRequestResponse model = new SmartTransferBadRequestResponse(); /** Model tests for SmartTransferBadRequestResponse */ @Test - public void testSmartTransferBadRequestResponse() { + void testSmartTransferBadRequestResponse() { // TODO: test SmartTransferBadRequestResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java index 8acd4790..16367ad7 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferCoinStatistic */ -public class SmartTransferCoinStatisticTest { +class SmartTransferCoinStatisticTest { private final SmartTransferCoinStatistic model = new SmartTransferCoinStatistic(); /** Model tests for SmartTransferCoinStatistic */ @Test - public void testSmartTransferCoinStatistic() { + void testSmartTransferCoinStatistic() { // TODO: test SmartTransferCoinStatistic } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTermTest.java index ad8cb51c..1dab7c9a 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTermTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferCreateTicketTerm */ -public class SmartTransferCreateTicketTermTest { +class SmartTransferCreateTicketTermTest { private final SmartTransferCreateTicketTerm model = new SmartTransferCreateTicketTerm(); /** Model tests for SmartTransferCreateTicketTerm */ @Test - public void testSmartTransferCreateTicketTerm() { + void testSmartTransferCreateTicketTerm() { // TODO: test SmartTransferCreateTicketTerm } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fromNetworkId' */ @Test - public void fromNetworkIdTest() { + void fromNetworkIdTest() { // TODO: test fromNetworkId } /** Test the property 'toNetworkId' */ @Test - public void toNetworkIdTest() { + void toNetworkIdTest() { // TODO: test toNetworkId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTest.java index 939e381e..d093bc5b 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferCreateTicket */ -public class SmartTransferCreateTicketTest { +class SmartTransferCreateTicketTest { private final SmartTransferCreateTicket model = new SmartTransferCreateTicket(); /** Model tests for SmartTransferCreateTicket */ @Test - public void testSmartTransferCreateTicket() { + void testSmartTransferCreateTicket() { // TODO: test SmartTransferCreateTicket } /** Test the property 'createdByNetworkId' */ @Test - public void createdByNetworkIdTest() { + void createdByNetworkIdTest() { // TODO: test createdByNetworkId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'expiresIn' */ @Test - public void expiresInTest() { + void expiresInTest() { // TODO: test expiresIn } /** Test the property 'terms' */ @Test - public void termsTest() { + void termsTest() { // TODO: test terms } /** Test the property 'externalRefId' */ @Test - public void externalRefIdTest() { + void externalRefIdTest() { // TODO: test externalRefId } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } /** Test the property 'submit' */ @Test - public void submitTest() { + void submitTest() { // TODO: test submit } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponseTest.java index 25270496..082b153d 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferForbiddenResponse */ -public class SmartTransferForbiddenResponseTest { +class SmartTransferForbiddenResponseTest { private final SmartTransferForbiddenResponse model = new SmartTransferForbiddenResponse(); /** Model tests for SmartTransferForbiddenResponse */ @Test - public void testSmartTransferForbiddenResponse() { + void testSmartTransferForbiddenResponse() { // TODO: test SmartTransferForbiddenResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java index 3550e468..be62eeeb 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferFundDvpTicket */ -public class SmartTransferFundDvpTicketTest { +class SmartTransferFundDvpTicketTest { private final SmartTransferFundDvpTicket model = new SmartTransferFundDvpTicket(); /** Model tests for SmartTransferFundDvpTicket */ @Test - public void testSmartTransferFundDvpTicket() { + void testSmartTransferFundDvpTicket() { // TODO: test SmartTransferFundDvpTicket } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferFundTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferFundTermTest.java index 42414f5f..bf034d57 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferFundTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferFundTermTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferFundTerm */ -public class SmartTransferFundTermTest { +class SmartTransferFundTermTest { private final SmartTransferFundTerm model = new SmartTransferFundTerm(); /** Model tests for SmartTransferFundTerm */ @Test - public void testSmartTransferFundTerm() { + void testSmartTransferFundTerm() { // TODO: test SmartTransferFundTerm } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'networkConnectionId' */ @Test - public void networkConnectionIdTest() { + void networkConnectionIdTest() { // TODO: test networkConnectionId } /** Test the property 'srcId' */ @Test - public void srcIdTest() { + void srcIdTest() { // TODO: test srcId } /** Test the property 'srcType' */ @Test - public void srcTypeTest() { + void srcTypeTest() { // TODO: test srcType } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTermTest.java index 179987ea..b91192af 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTermTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferManuallyFundTerm */ -public class SmartTransferManuallyFundTermTest { +class SmartTransferManuallyFundTermTest { private final SmartTransferManuallyFundTerm model = new SmartTransferManuallyFundTerm(); /** Model tests for SmartTransferManuallyFundTerm */ @Test - public void testSmartTransferManuallyFundTerm() { + void testSmartTransferManuallyFundTerm() { // TODO: test SmartTransferManuallyFundTerm } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponseTest.java index 124b3d5b..f354c0f8 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferNotFoundResponse */ -public class SmartTransferNotFoundResponseTest { +class SmartTransferNotFoundResponseTest { private final SmartTransferNotFoundResponse model = new SmartTransferNotFoundResponse(); /** Model tests for SmartTransferNotFoundResponse */ @Test - public void testSmartTransferNotFoundResponse() { + void testSmartTransferNotFoundResponse() { // TODO: test SmartTransferNotFoundResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpirationTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpirationTest.java index 657851ba..07e8deac 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpirationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpirationTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferSetTicketExpiration */ -public class SmartTransferSetTicketExpirationTest { +class SmartTransferSetTicketExpirationTest { private final SmartTransferSetTicketExpiration model = new SmartTransferSetTicketExpiration(); /** Model tests for SmartTransferSetTicketExpiration */ @Test - public void testSmartTransferSetTicketExpiration() { + void testSmartTransferSetTicketExpiration() { // TODO: test SmartTransferSetTicketExpiration } /** Test the property 'expiresIn' */ @Test - public void expiresInTest() { + void expiresInTest() { // TODO: test expiresIn } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalIdTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalIdTest.java index 911a4600..7e7f2dad 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalIdTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalIdTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferSetTicketExternalId */ -public class SmartTransferSetTicketExternalIdTest { +class SmartTransferSetTicketExternalIdTest { private final SmartTransferSetTicketExternalId model = new SmartTransferSetTicketExternalId(); /** Model tests for SmartTransferSetTicketExternalId */ @Test - public void testSmartTransferSetTicketExternalId() { + void testSmartTransferSetTicketExternalId() { // TODO: test SmartTransferSetTicketExternalId } /** Test the property 'externalRefId' */ @Test - public void externalRefIdTest() { + void externalRefIdTest() { // TODO: test externalRefId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferSetUserGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferSetUserGroupsTest.java index 9384e84c..95098c44 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferSetUserGroupsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferSetUserGroupsTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferSetUserGroups */ -public class SmartTransferSetUserGroupsTest { +class SmartTransferSetUserGroupsTest { private final SmartTransferSetUserGroups model = new SmartTransferSetUserGroups(); /** Model tests for SmartTransferSetUserGroups */ @Test - public void testSmartTransferSetUserGroups() { + void testSmartTransferSetUserGroups() { // TODO: test SmartTransferSetUserGroups } /** Test the property 'userGroupIds' */ @Test - public void userGroupIdsTest() { + void userGroupIdsTest() { // TODO: test userGroupIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java index 8a9d3e97..9debcc48 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferStatisticInflow */ -public class SmartTransferStatisticInflowTest { +class SmartTransferStatisticInflowTest { private final SmartTransferStatisticInflow model = new SmartTransferStatisticInflow(); /** Model tests for SmartTransferStatisticInflow */ @Test - public void testSmartTransferStatisticInflow() { + void testSmartTransferStatisticInflow() { // TODO: test SmartTransferStatisticInflow } /** Test the property 'coins' */ @Test - public void coinsTest() { + void coinsTest() { // TODO: test coins } /** Test the property 'ticketCount' */ @Test - public void ticketCountTest() { + 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 index b64601a8..c19843c4 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferStatisticOutflow */ -public class SmartTransferStatisticOutflowTest { +class SmartTransferStatisticOutflowTest { private final SmartTransferStatisticOutflow model = new SmartTransferStatisticOutflow(); /** Model tests for SmartTransferStatisticOutflow */ @Test - public void testSmartTransferStatisticOutflow() { + void testSmartTransferStatisticOutflow() { // TODO: test SmartTransferStatisticOutflow } /** Test the property 'coins' */ @Test - public void coinsTest() { + void coinsTest() { // TODO: test coins } /** Test the property 'ticketCount' */ @Test - public void ticketCountTest() { + 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 index 78578942..fe1319d6 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferStatistic */ -public class SmartTransferStatisticTest { +class SmartTransferStatisticTest { private final SmartTransferStatistic model = new SmartTransferStatistic(); /** Model tests for SmartTransferStatistic */ @Test - public void testSmartTransferStatistic() { + void testSmartTransferStatistic() { // TODO: test SmartTransferStatistic } /** Test the property 'inflow' */ @Test - public void inflowTest() { + void inflowTest() { // TODO: test inflow } /** Test the property 'outflow' */ @Test - public void outflowTest() { + void outflowTest() { // TODO: test outflow } /** Test the property 'totalActiveTickets' */ @Test - public void totalActiveTicketsTest() { + void totalActiveTicketsTest() { // TODO: test totalActiveTickets } /** Test the property 'totalInactiveTickets' */ @Test - public void totalInactiveTicketsTest() { + void totalInactiveTicketsTest() { // TODO: test totalInactiveTickets } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferSubmitTicketTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferSubmitTicketTest.java index 989c56f2..f6f0fc96 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferSubmitTicketTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferSubmitTicketTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferSubmitTicket */ -public class SmartTransferSubmitTicketTest { +class SmartTransferSubmitTicketTest { private final SmartTransferSubmitTicket model = new SmartTransferSubmitTicket(); /** Model tests for SmartTransferSubmitTicket */ @Test - public void testSmartTransferSubmitTicket() { + void testSmartTransferSubmitTicket() { // TODO: test SmartTransferSubmitTicket } /** Test the property 'expiresIn' */ @Test - public void expiresInTest() { + void expiresInTest() { // TODO: test expiresIn } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponseTest.java index b7792df5..bf71bc1f 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponseTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferTicketFilteredResponse */ -public class SmartTransferTicketFilteredResponseTest { +class SmartTransferTicketFilteredResponseTest { private final SmartTransferTicketFilteredResponse model = new SmartTransferTicketFilteredResponse(); /** Model tests for SmartTransferTicketFilteredResponse */ @Test - public void testSmartTransferTicketFilteredResponse() { + void testSmartTransferTicketFilteredResponse() { // TODO: test SmartTransferTicketFilteredResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'after' */ @Test - public void afterTest() { + void afterTest() { // TODO: test after } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketResponseTest.java index 63908d58..a65e7df8 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferTicketResponse */ -public class SmartTransferTicketResponseTest { +class SmartTransferTicketResponseTest { private final SmartTransferTicketResponse model = new SmartTransferTicketResponse(); /** Model tests for SmartTransferTicketResponse */ @Test - public void testSmartTransferTicketResponse() { + void testSmartTransferTicketResponse() { // TODO: test SmartTransferTicketResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponseTest.java index 43e99f40..300b177e 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferTicketTermResponse */ -public class SmartTransferTicketTermResponseTest { +class SmartTransferTicketTermResponseTest { private final SmartTransferTicketTermResponse model = new SmartTransferTicketTermResponse(); /** Model tests for SmartTransferTicketTermResponse */ @Test - public void testSmartTransferTicketTermResponse() { + void testSmartTransferTicketTermResponse() { // TODO: test SmartTransferTicketTermResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java index 1f542232..d3c84428 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java @@ -13,111 +13,111 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferTicketTerm */ -public class SmartTransferTicketTermTest { +class SmartTransferTicketTermTest { private final SmartTransferTicketTerm model = new SmartTransferTicketTerm(); /** Model tests for SmartTransferTicketTerm */ @Test - public void testSmartTransferTicketTerm() { + void testSmartTransferTicketTerm() { // TODO: test SmartTransferTicketTerm } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'ticketId' */ @Test - public void ticketIdTest() { + void ticketIdTest() { // TODO: test ticketId } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'dvpSrcDstVaultId' */ @Test - public void dvpSrcDstVaultIdTest() { + void dvpSrcDstVaultIdTest() { // TODO: test dvpSrcDstVaultId } /** Test the property 'amountUsd' */ @Test - public void amountUsdTest() { + void amountUsdTest() { // TODO: test amountUsd } /** Test the property 'fromNetworkId' */ @Test - public void fromNetworkIdTest() { + void fromNetworkIdTest() { // TODO: test fromNetworkId } /** Test the property 'fromNetworkIdName' */ @Test - public void fromNetworkIdNameTest() { + void fromNetworkIdNameTest() { // TODO: test fromNetworkIdName } /** Test the property 'toNetworkId' */ @Test - public void toNetworkIdTest() { + void toNetworkIdTest() { // TODO: test toNetworkId } /** Test the property 'toNetworkIdName' */ @Test - public void toNetworkIdNameTest() { + void toNetworkIdNameTest() { // TODO: test toNetworkIdName } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } /** Test the property 'fbTxId' */ @Test - public void fbTxIdTest() { + void fbTxIdTest() { // TODO: test fbTxId } /** Test the property 'txStatus' */ @Test - public void txStatusTest() { + void txStatusTest() { // TODO: test txStatus } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java index f7d54726..4fc2ea98 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java @@ -13,147 +13,147 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferTicket */ -public class SmartTransferTicketTest { +class SmartTransferTicketTest { private final SmartTransferTicket model = new SmartTransferTicket(); /** Model tests for SmartTransferTicket */ @Test - public void testSmartTransferTicket() { + void testSmartTransferTicket() { // TODO: test SmartTransferTicket } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'direction' */ @Test - public void directionTest() { + void directionTest() { // TODO: test direction } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'dvpExecutionStatus' */ @Test - public void dvpExecutionStatusTest() { + void dvpExecutionStatusTest() { // TODO: test dvpExecutionStatus } /** Test the property 'orderCreatedByNetworkId' */ @Test - public void orderCreatedByNetworkIdTest() { + void orderCreatedByNetworkIdTest() { // TODO: test orderCreatedByNetworkId } /** Test the property 'terms' */ @Test - public void termsTest() { + void termsTest() { // TODO: test terms } /** Test the property 'expiresIn' */ @Test - public void expiresInTest() { + void expiresInTest() { // TODO: test expiresIn } /** Test the property 'expiresAt' */ @Test - public void expiresAtTest() { + void expiresAtTest() { // TODO: test expiresAt } /** Test the property 'submittedAt' */ @Test - public void submittedAtTest() { + void submittedAtTest() { // TODO: test submittedAt } /** Test the property 'expiredAt' */ @Test - public void expiredAtTest() { + void expiredAtTest() { // TODO: test expiredAt } /** Test the property 'canceledAt' */ @Test - public void canceledAtTest() { + void canceledAtTest() { // TODO: test canceledAt } /** Test the property 'fulfilledAt' */ @Test - public void fulfilledAtTest() { + void fulfilledAtTest() { // TODO: test fulfilledAt } /** Test the property 'externalRefId' */ @Test - public void externalRefIdTest() { + void externalRefIdTest() { // TODO: test externalRefId } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } /** Test the property 'createdByNetworkId' */ @Test - public void createdByNetworkIdTest() { + void createdByNetworkIdTest() { // TODO: test createdByNetworkId } /** Test the property 'createdByNetworkIdName' */ @Test - public void createdByNetworkIdNameTest() { + void createdByNetworkIdNameTest() { // TODO: test createdByNetworkIdName } /** Test the property 'canceledByNetworkIdName' */ @Test - public void canceledByNetworkIdNameTest() { + void canceledByNetworkIdNameTest() { // TODO: test canceledByNetworkIdName } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } /** Test the property 'canceledByMe' */ @Test - public void canceledByMeTest() { + void canceledByMeTest() { // TODO: test canceledByMe } /** Test the property 'createdByMe' */ @Test - public void createdByMeTest() { + void createdByMeTest() { // TODO: test createdByMe } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTermTest.java index cfae0f0a..a1113374 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTermTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferUpdateTicketTerm */ -public class SmartTransferUpdateTicketTermTest { +class SmartTransferUpdateTicketTermTest { private final SmartTransferUpdateTicketTerm model = new SmartTransferUpdateTicketTerm(); /** Model tests for SmartTransferUpdateTicketTerm */ @Test - public void testSmartTransferUpdateTicketTerm() { + void testSmartTransferUpdateTicketTerm() { // TODO: test SmartTransferUpdateTicketTerm } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fromNetworkId' */ @Test - public void fromNetworkIdTest() { + void fromNetworkIdTest() { // TODO: test fromNetworkId } /** Test the property 'toNetworkId' */ @Test - public void toNetworkIdTest() { + void toNetworkIdTest() { // TODO: test toNetworkId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponseTest.java index b7f43e7f..9b190bc6 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferUserGroupsResponse */ -public class SmartTransferUserGroupsResponseTest { +class SmartTransferUserGroupsResponseTest { private final SmartTransferUserGroupsResponse model = new SmartTransferUserGroupsResponse(); /** Model tests for SmartTransferUserGroupsResponse */ @Test - public void testSmartTransferUserGroupsResponse() { + void testSmartTransferUserGroupsResponse() { // TODO: test SmartTransferUserGroupsResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsTest.java index f466e652..577c42f4 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SmartTransferUserGroups */ -public class SmartTransferUserGroupsTest { +class SmartTransferUserGroupsTest { private final SmartTransferUserGroups model = new SmartTransferUserGroups(); /** Model tests for SmartTransferUserGroups */ @Test - public void testSmartTransferUserGroups() { + void testSmartTransferUserGroups() { // TODO: test SmartTransferUserGroups } /** Test the property 'userGroupIds' */ @Test - public void userGroupIdsTest() { + void userGroupIdsTest() { // TODO: test userGroupIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java b/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java index 3792b667..466f16bb 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolParameter */ -public class SolParameterTest { +class SolParameterTest { private final SolParameter model = new SolParameter(); /** Model tests for SolParameter */ @Test - public void testSolParameter() { + void testSolParameter() { // TODO: test SolParameter } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'type' */ @Test - public void typeTest() { + 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 index 4c1f79c6..f966a422 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolParameterWithValue */ -public class SolParameterWithValueTest { +class SolParameterWithValueTest { private final SolParameterWithValue model = new SolParameterWithValue(); /** Model tests for SolParameterWithValue */ @Test - public void testSolParameterWithValue() { + void testSolParameterWithValue() { // TODO: test SolParameterWithValue } /** Test the property 'value' */ @Test - public void valueTest() { + void valueTest() { // TODO: test value } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'type' */ @Test - public void typeTest() { + 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/SolanaBlockchainDataTest.java index d221fd7e..88ec80b9 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolanaBlockchainData */ -public class SolanaBlockchainDataTest { +class SolanaBlockchainDataTest { private final SolanaBlockchainData model = new SolanaBlockchainData(); /** Model tests for SolanaBlockchainData */ @Test - public void testSolanaBlockchainData() { + void testSolanaBlockchainData() { // TODO: test SolanaBlockchainData } /** Test the property 'stakeAccountAddress' */ @Test - public void stakeAccountAddressTest() { + void stakeAccountAddressTest() { // TODO: test stakeAccountAddress } /** Test the property 'stakeAccountDerivationChangeValue' */ @Test - public void stakeAccountDerivationChangeValueTest() { + 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 index 62bff5e9..77fe30a2 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolanaConfig */ -public class SolanaConfigTest { +class SolanaConfigTest { private final SolanaConfig model = new SolanaConfig(); /** Model tests for SolanaConfig */ @Test - public void testSolanaConfig() { + void testSolanaConfig() { // TODO: test SolanaConfig } /** Test the property 'extensions' */ @Test - public void extensionsTest() { + void extensionsTest() { // TODO: test extensions } /** Test the property 'type' */ @Test - public void typeTest() { + 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 index 51d00c4c..db2dcc24 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolanaInstruction */ -public class SolanaInstructionTest { +class SolanaInstructionTest { private final SolanaInstruction model = new SolanaInstruction(); /** Model tests for SolanaInstruction */ @Test - public void testSolanaInstruction() { + void testSolanaInstruction() { // TODO: test SolanaInstruction } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'discriminator' */ @Test - public void discriminatorTest() { + void discriminatorTest() { // TODO: test discriminator } /** Test the property 'accounts' */ @Test - public void accountsTest() { + void accountsTest() { // TODO: test accounts } /** Test the property 'args' */ @Test - public void argsTest() { + 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 index 3f74416f..6dd85650 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolanaInstructionWithValue */ -public class SolanaInstructionWithValueTest { +class SolanaInstructionWithValueTest { private final SolanaInstructionWithValue model = new SolanaInstructionWithValue(); /** Model tests for SolanaInstructionWithValue */ @Test - public void testSolanaInstructionWithValue() { + void testSolanaInstructionWithValue() { // TODO: test SolanaInstructionWithValue } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'discriminator' */ @Test - public void discriminatorTest() { + void discriminatorTest() { // TODO: test discriminator } /** Test the property 'accounts' */ @Test - public void accountsTest() { + void accountsTest() { // TODO: test accounts } /** Test the property 'args' */ @Test - public void argsTest() { + 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 index 6f8789c5..e0e942dc 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SolanaSimpleCreateParams */ -public class SolanaSimpleCreateParamsTest { +class SolanaSimpleCreateParamsTest { private final SolanaSimpleCreateParams model = new SolanaSimpleCreateParams(); /** Model tests for SolanaSimpleCreateParams */ @Test - public void testSolanaSimpleCreateParams() { + void testSolanaSimpleCreateParams() { // TODO: test SolanaSimpleCreateParams } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + 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 fb5d1e7a..b68cb08b 100644 --- a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SourceTransferPeerPathResponse */ -public class SourceTransferPeerPathResponseTest { +class SourceTransferPeerPathResponseTest { private final SourceTransferPeerPathResponse model = new SourceTransferPeerPathResponse(); /** Model tests for SourceTransferPeerPathResponse */ @Test - public void testSourceTransferPeerPathResponse() { + void testSourceTransferPeerPathResponse() { // TODO: test SourceTransferPeerPathResponse } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'subType' */ @Test - public void subTypeTest() { + void subTypeTest() { // TODO: test subType } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'walletId' */ @Test - public void walletIdTest() { + void walletIdTest() { // TODO: test walletId } /** Test the property 'tradingAccount' */ @Test - public void tradingAccountTest() { + 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 9cc4803b..e3d8b589 100644 --- a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SourceTransferPeerPath */ -public class SourceTransferPeerPathTest { +class SourceTransferPeerPathTest { private final SourceTransferPeerPath model = new SourceTransferPeerPath(); /** Model tests for SourceTransferPeerPath */ @Test - public void testSourceTransferPeerPath() { + void testSourceTransferPeerPath() { // TODO: test SourceTransferPeerPath } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'subType' */ @Test - public void subTypeTest() { + void subTypeTest() { // TODO: test subType } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'walletId' */ @Test - public void walletIdTest() { + void walletIdTest() { // TODO: test walletId } /** Test the property 'isCollateral' */ @Test - public void isCollateralTest() { + void isCollateralTest() { // TODO: test isCollateral } } diff --git a/src/test/java/com/fireblocks/sdk/model/SpamOwnershipResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SpamOwnershipResponseTest.java index bba7aa32..aa418b4f 100644 --- a/src/test/java/com/fireblocks/sdk/model/SpamOwnershipResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SpamOwnershipResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SpamOwnershipResponse */ -public class SpamOwnershipResponseTest { +class SpamOwnershipResponseTest { private final SpamOwnershipResponse model = new SpamOwnershipResponse(); /** Model tests for SpamOwnershipResponse */ @Test - public void testSpamOwnershipResponse() { + void testSpamOwnershipResponse() { // TODO: test SpamOwnershipResponse } /** Test the property 'result' */ @Test - public void resultTest() { + void resultTest() { // TODO: test result } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } } diff --git a/src/test/java/com/fireblocks/sdk/model/SpamTokenResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SpamTokenResponseTest.java index 99cc438b..3a2109b6 100644 --- a/src/test/java/com/fireblocks/sdk/model/SpamTokenResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SpamTokenResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SpamTokenResponse */ -public class SpamTokenResponseTest { +class SpamTokenResponseTest { private final SpamTokenResponse model = new SpamTokenResponse(); /** Model tests for SpamTokenResponse */ @Test - public void testSpamTokenResponse() { + void testSpamTokenResponse() { // TODO: test SpamTokenResponse } /** Test the property 'result' */ @Test - public void resultTest() { + void resultTest() { // TODO: test result } } diff --git a/src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java new file mode 100644 index 00000000..d1ce8781 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java @@ -0,0 +1,81 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/SpeiBasicPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java new file mode 100644 index 00000000..e01df45a --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for SpeiBasicPaymentInfo */ +class SpeiBasicPaymentInfoTest { + private final SpeiBasicPaymentInfo model = new SpeiBasicPaymentInfo(); + + /** Model tests for SpeiBasicPaymentInfo */ + @Test + void testSpeiBasicPaymentInfo() { + // TODO: test SpeiBasicPaymentInfo + } + + /** 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/SplitRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java index 175487c5..27d80258 100644 --- a/src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SplitRequest */ -public class SplitRequestTest { +class SplitRequestTest { private final SplitRequest model = new SplitRequest(); /** Model tests for SplitRequest */ @Test - public void testSplitRequest() { + void testSplitRequest() { // TODO: test SplitRequest } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + void txNoteTest() { // TODO: test txNote } } diff --git a/src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java index 0a0d4c74..80ed1324 100644 --- a/src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SplitResponse */ -public class SplitResponseTest { +class SplitResponseTest { private final SplitResponse model = new SplitResponse(); /** Model tests for SplitResponse */ @Test - public void testSplitResponse() { + void testSplitResponse() { // TODO: test SplitResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } } diff --git a/src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java b/src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java deleted file mode 100644 index 0bb22143..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.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.Test; - -/** Model tests for SrcOrDestAttributesInner */ -public class SrcOrDestAttributesInnerTest { - private final SrcOrDestAttributesInner model = new SrcOrDestAttributesInner(); - - /** Model tests for SrcOrDestAttributesInner */ - @Test - public 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/StakeRequestTest.java index 851ffdf4..b09a5537 100644 --- a/src/test/java/com/fireblocks/sdk/model/StakeRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StakeRequestTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for StakeRequest */ -public class StakeRequestTest { +class StakeRequestTest { private final StakeRequest model = new StakeRequest(); /** Model tests for StakeRequest */ @Test - public void testStakeRequest() { + void testStakeRequest() { // TODO: test StakeRequest } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'providerId' */ @Test - public void providerIdTest() { + void providerIdTest() { // TODO: test providerId } /** Test the property 'stakeAmount' */ @Test - public void stakeAmountTest() { + void stakeAmountTest() { // TODO: test stakeAmount } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + void txNoteTest() { // TODO: test txNote } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } } diff --git a/src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java b/src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java index 34c826c5..4253e5bc 100644 --- a/src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for StakeResponse */ -public class StakeResponseTest { +class StakeResponseTest { private final StakeResponse model = new StakeResponse(); /** Model tests for StakeResponse */ @Test - public void testStakeResponse() { + void testStakeResponse() { // TODO: test StakeResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } } diff --git a/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java b/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java index 6535fb06..f344bb4d 100644 --- a/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for StakingProvider */ -public class StakingProviderTest { +class StakingProviderTest { /** Model tests for StakingProvider */ @Test - public void testStakingProvider() { + 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 index 7a1177f6..cf327d94 100644 --- a/src/test/java/com/fireblocks/sdk/model/StatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StatusTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Status */ -public class StatusTest { +class StatusTest { private final Status model = new Status(); /** Model tests for Status */ @Test - public void testStatus() { + void testStatus() { // TODO: test Status } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDtoTest.java b/src/test/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDtoTest.java index 9283c823..6c9faa73 100644 --- a/src/test/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDtoTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for StellarRippleCreateParamsDto */ -public class StellarRippleCreateParamsDtoTest { +class StellarRippleCreateParamsDtoTest { private final StellarRippleCreateParamsDto model = new StellarRippleCreateParamsDto(); /** Model tests for StellarRippleCreateParamsDto */ @Test - public void testStellarRippleCreateParamsDto() { + void testStellarRippleCreateParamsDto() { // TODO: test StellarRippleCreateParamsDto } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'issuerAddress' */ @Test - public void issuerAddressTest() { + void issuerAddressTest() { // TODO: test issuerAddress } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapFlowErrorTest.java b/src/test/java/com/fireblocks/sdk/model/SwapFlowErrorTest.java index a7250137..3fbab124 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapFlowErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapFlowErrorTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapFlowError */ -public class SwapFlowErrorTest { +class SwapFlowErrorTest { private final SwapFlowError model = new SwapFlowError(); /** Model tests for SwapFlowError */ @Test - public void testSwapFlowError() { + void testSwapFlowError() { // TODO: test SwapFlowError } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapOperationRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SwapOperationRequestTest.java index 6bbffe7b..2c15a1b0 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapOperationRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapOperationRequestTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapOperationRequest */ -public class SwapOperationRequestTest { +class SwapOperationRequestTest { private final SwapOperationRequest model = new SwapOperationRequest(); /** Model tests for SwapOperationRequest */ @Test - public void testSwapOperationRequest() { + void testSwapOperationRequest() { // TODO: test SwapOperationRequest } /** Test the property 'providerQuoteId' */ @Test - public void providerQuoteIdTest() { + void providerQuoteIdTest() { // TODO: test providerQuoteId } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + void txNoteTest() { // TODO: test txNote } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapOperationTest.java b/src/test/java/com/fireblocks/sdk/model/SwapOperationTest.java index 99c2999e..a4e7a78b 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapOperationTest.java @@ -13,123 +13,123 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapOperation */ -public class SwapOperationTest { +class SwapOperationTest { private final SwapOperation model = new SwapOperation(); /** Model tests for SwapOperation */ @Test - public void testSwapOperation() { + void testSwapOperation() { // TODO: test SwapOperation } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'accountId' */ @Test - public void accountIdTest() { + void accountIdTest() { // TODO: test accountId } /** Test the property 'providerId' */ @Test - public void providerIdTest() { + void providerIdTest() { // TODO: test providerId } /** Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'inputAmount' */ @Test - public void inputAmountTest() { + void inputAmountTest() { // TODO: test inputAmount } /** Test the property 'inputAsset' */ @Test - public void inputAssetTest() { + void inputAssetTest() { // TODO: test inputAsset } /** Test the property 'slippageTolerance' */ @Test - public void slippageToleranceTest() { + void slippageToleranceTest() { // TODO: test slippageTolerance } /** Test the property 'outputMinAmount' */ @Test - public void outputMinAmountTest() { + void outputMinAmountTest() { // TODO: test outputMinAmount } /** Test the property 'outputMaxAmount' */ @Test - public void outputMaxAmountTest() { + void outputMaxAmountTest() { // TODO: test outputMaxAmount } /** Test the property 'outputAsset' */ @Test - public void outputAssetTest() { + void outputAssetTest() { // TODO: test outputAsset } /** Test the property 'outputFinalAmount' */ @Test - public void outputFinalAmountTest() { + void outputFinalAmountTest() { // TODO: test outputFinalAmount } /** Test the property 'requiredActions' */ @Test - public void requiredActionsTest() { + void requiredActionsTest() { // TODO: test requiredActions } /** Test the property 'error' */ @Test - public void errorTest() { + void errorTest() { // TODO: test error } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } /** Test the property 'createdBy' */ @Test - public void createdByTest() { + void createdByTest() { // TODO: test createdBy } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponseTest.java index 07935d6b..fe0af80b 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapOperationsPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapOperationsPaginatedResponse */ -public class SwapOperationsPaginatedResponseTest { +class SwapOperationsPaginatedResponseTest { private final SwapOperationsPaginatedResponse model = new SwapOperationsPaginatedResponse(); /** Model tests for SwapOperationsPaginatedResponse */ @Test - public void testSwapOperationsPaginatedResponse() { + void testSwapOperationsPaginatedResponse() { // TODO: test SwapOperationsPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapProviderProtocolsEnumTest.java b/src/test/java/com/fireblocks/sdk/model/SwapProviderProtocolsEnumTest.java index d9bb7c6b..3b6c8826 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapProviderProtocolsEnumTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapProviderProtocolsEnumTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapProviderProtocolsEnum */ -public class SwapProviderProtocolsEnumTest { +class SwapProviderProtocolsEnumTest { /** Model tests for SwapProviderProtocolsEnum */ @Test - public void testSwapProviderProtocolsEnum() { + void testSwapProviderProtocolsEnum() { // TODO: test SwapProviderProtocolsEnum } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapProviderTest.java b/src/test/java/com/fireblocks/sdk/model/SwapProviderTest.java index d8e8a60b..0f86f77c 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapProviderTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapProviderTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapProvider */ -public class SwapProviderTest { +class SwapProviderTest { private final SwapProvider model = new SwapProvider(); /** Model tests for SwapProvider */ @Test - public void testSwapProvider() { + void testSwapProvider() { // TODO: test SwapProvider } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'protocols' */ @Test - public void protocolsTest() { + void protocolsTest() { // TODO: test protocols } /** Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } /** Test the property 'isTermsApprovalRequired' */ @Test - public void isTermsApprovalRequiredTest() { + void isTermsApprovalRequiredTest() { // TODO: test isTermsApprovalRequired } /** Test the property 'termsOfServiceUrl' */ @Test - public void termsOfServiceUrlTest() { + void termsOfServiceUrlTest() { // TODO: test termsOfServiceUrl } /** Test the property 'isTermsOfServiceApproved' */ @Test - public void isTermsOfServiceApprovedTest() { + void isTermsOfServiceApprovedTest() { // TODO: test isTermsOfServiceApproved } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponseTest.java index 15f5b4e5..e89d0b72 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapProvidersPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapProvidersPaginatedResponse */ -public class SwapProvidersPaginatedResponseTest { +class SwapProvidersPaginatedResponseTest { private final SwapProvidersPaginatedResponse model = new SwapProvidersPaginatedResponse(); /** Model tests for SwapProvidersPaginatedResponse */ @Test - public void testSwapProvidersPaginatedResponse() { + void testSwapProvidersPaginatedResponse() { // TODO: test SwapProvidersPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionTest.java b/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionTest.java index e745250e..f7aaaf42 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapRequiredAction */ -public class SwapRequiredActionTest { +class SwapRequiredActionTest { private final SwapRequiredAction model = new SwapRequiredAction(); /** Model tests for SwapRequiredAction */ @Test - public void testSwapRequiredAction() { + void testSwapRequiredAction() { // TODO: test SwapRequiredAction } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } } diff --git a/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionsEnumTest.java b/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionsEnumTest.java index 65c74772..e851d49c 100644 --- a/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionsEnumTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SwapRequiredActionsEnumTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SwapRequiredActionsEnum */ -public class SwapRequiredActionsEnumTest { +class SwapRequiredActionsEnumTest { /** Model tests for SwapRequiredActionsEnum */ @Test - public void testSwapRequiredActionsEnum() { + void testSwapRequiredActionsEnum() { // TODO: test SwapRequiredActionsEnum } } diff --git a/src/test/java/com/fireblocks/sdk/model/SystemMessageInfoTest.java b/src/test/java/com/fireblocks/sdk/model/SystemMessageInfoTest.java index 859924b1..e48f8dc8 100644 --- a/src/test/java/com/fireblocks/sdk/model/SystemMessageInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SystemMessageInfoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for SystemMessageInfo */ -public class SystemMessageInfoTest { +class SystemMessageInfoTest { private final SystemMessageInfo model = new SystemMessageInfo(); /** Model tests for SystemMessageInfo */ @Test - public void testSystemMessageInfo() { + void testSystemMessageInfo() { // TODO: test SystemMessageInfo } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } } diff --git a/src/test/java/com/fireblocks/sdk/model/TagTest.java b/src/test/java/com/fireblocks/sdk/model/TagTest.java index fb1b066c..e1111abd 100644 --- a/src/test/java/com/fireblocks/sdk/model/TagTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TagTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'label' */ @Test - public void labelTest() { + void labelTest() { // TODO: test label } /** Test the property 'description' */ @Test - public void descriptionTest() { + 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 index 01c2a8eb..e506528a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TagsPagedResponse */ -public class TagsPagedResponseTest { +class TagsPagedResponseTest { private final TagsPagedResponse model = new TagsPagedResponse(); /** Model tests for TagsPagedResponse */ @Test - public void testTagsPagedResponse() { + void testTagsPagedResponse() { // TODO: test TagsPagedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/TaskTest.java b/src/test/java/com/fireblocks/sdk/model/TaskTest.java index c5be4d84..a700b55f 100644 --- a/src/test/java/com/fireblocks/sdk/model/TaskTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TaskTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Task */ -public class TaskTest { +class TaskTest { private final Task model = new Task(); /** Model tests for Task */ @Test - public void testTask() { + void testTask() { // TODO: test Task } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'jobId' */ @Test - public void jobIdTest() { + void jobIdTest() { // TODO: test jobId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'tenantId' */ @Test - public void tenantIdTest() { + void tenantIdTest() { // TODO: test tenantId } /** Test the property 'created' */ @Test - public void createdTest() { + void createdTest() { // TODO: test created } /** Test the property 'updated' */ @Test - public void updatedTest() { + void updatedTest() { // TODO: test updated } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } } diff --git a/src/test/java/com/fireblocks/sdk/model/TemplatesPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TemplatesPaginatedResponseTest.java index 6b26bdb2..c33be76f 100644 --- a/src/test/java/com/fireblocks/sdk/model/TemplatesPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TemplatesPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TemplatesPaginatedResponse */ -public class TemplatesPaginatedResponseTest { +class TemplatesPaginatedResponseTest { private final TemplatesPaginatedResponse model = new TemplatesPaginatedResponse(); /** Model tests for TemplatesPaginatedResponse */ @Test - public void testTemplatesPaginatedResponse() { + void testTemplatesPaginatedResponse() { // TODO: test TemplatesPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/ThirdPartyRoutingTest.java b/src/test/java/com/fireblocks/sdk/model/ThirdPartyRoutingTest.java index 9d0349d4..af1f112a 100644 --- a/src/test/java/com/fireblocks/sdk/model/ThirdPartyRoutingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ThirdPartyRoutingTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ThirdPartyRouting */ -public class ThirdPartyRoutingTest { +class ThirdPartyRoutingTest { private final ThirdPartyRouting model = new ThirdPartyRouting(); /** Model tests for ThirdPartyRouting */ @Test - public void testThirdPartyRouting() { + void testThirdPartyRouting() { // TODO: test ThirdPartyRouting } /** Test the property 'isThirdPartyRouting' */ @Test - public void isThirdPartyRoutingTest() { + void isThirdPartyRoutingTest() { // TODO: test isThirdPartyRouting } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java b/src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java new file mode 100644 index 00000000..5760a3c0 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java @@ -0,0 +1,51 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 new file mode 100644 index 00000000..f300d0ed --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java @@ -0,0 +1,25 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/ToCollateralTransactionTest.java b/src/test/java/com/fireblocks/sdk/model/ToCollateralTransactionTest.java index eac2b6b1..7747224e 100644 --- a/src/test/java/com/fireblocks/sdk/model/ToCollateralTransactionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ToCollateralTransactionTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ToCollateralTransaction */ -public class ToCollateralTransactionTest { +class ToCollateralTransactionTest { private final ToCollateralTransaction model = new ToCollateralTransaction(); /** Model tests for ToCollateralTransaction */ @Test - public void testToCollateralTransaction() { + void testToCollateralTransaction() { // TODO: test ToCollateralTransaction } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'srcAddress' */ @Test - public void srcAddressTest() { + void srcAddressTest() { // TODO: test srcAddress } /** Test the property 'srcTag' */ @Test - public void srcTagTest() { + void srcTagTest() { // TODO: test srcTag } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } } diff --git a/src/test/java/com/fireblocks/sdk/model/ToExchangeTransactionTest.java b/src/test/java/com/fireblocks/sdk/model/ToExchangeTransactionTest.java index 3cbeee94..246bdba7 100644 --- a/src/test/java/com/fireblocks/sdk/model/ToExchangeTransactionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ToExchangeTransactionTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ToExchangeTransaction */ -public class ToExchangeTransactionTest { +class ToExchangeTransactionTest { private final ToExchangeTransaction model = new ToExchangeTransaction(); /** Model tests for ToExchangeTransaction */ @Test - public void testToExchangeTransaction() { + void testToExchangeTransaction() { // TODO: test ToExchangeTransaction } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'dstAddress' */ @Test - public void dstAddressTest() { + void dstAddressTest() { // TODO: test dstAddress } /** Test the property 'dstTag' */ @Test - public void dstTagTest() { + void dstTagTest() { // TODO: test dstTag } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenCollectionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TokenCollectionResponseTest.java index e053eabd..58323848 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenCollectionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenCollectionResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenCollectionResponse */ -public class TokenCollectionResponseTest { +class TokenCollectionResponseTest { private final TokenCollectionResponse model = new TokenCollectionResponse(); /** Model tests for TokenCollectionResponse */ @Test - public void testTokenCollectionResponse() { + void testTokenCollectionResponse() { // TODO: test TokenCollectionResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java index 4ba54606..2179e454 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenInfoNotFoundErrorResponse */ -public class TokenInfoNotFoundErrorResponseTest { +class TokenInfoNotFoundErrorResponseTest { private final TokenInfoNotFoundErrorResponse model = new TokenInfoNotFoundErrorResponse(); /** Model tests for TokenInfoNotFoundErrorResponse */ @Test - public void testTokenInfoNotFoundErrorResponse() { + void testTokenInfoNotFoundErrorResponse() { // TODO: test TokenInfoNotFoundErrorResponse } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTest.java b/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTest.java index 64efe6a0..6f03ee51 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenLinkDto */ -public class TokenLinkDtoTest { +class TokenLinkDtoTest { private final TokenLinkDto model = new TokenLinkDto(); /** Model tests for TokenLinkDto */ @Test - public void testTokenLinkDto() { + void testTokenLinkDto() { // TODO: test TokenLinkDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'refId' */ @Test - public void refIdTest() { + void refIdTest() { // TODO: test refId } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'tokenMetadata' */ @Test - public void tokenMetadataTest() { + void tokenMetadataTest() { // TODO: test tokenMetadata } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadataTest.java index 8e443826..14f83cd3 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadataTest.java @@ -13,129 +13,129 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenLinkDtoTokenMetadata */ -public class TokenLinkDtoTokenMetadataTest { +class TokenLinkDtoTokenMetadataTest { private final TokenLinkDtoTokenMetadata model = new TokenLinkDtoTokenMetadata(); /** Model tests for TokenLinkDtoTokenMetadata */ @Test - public void testTokenLinkDtoTokenMetadata() { + void testTokenLinkDtoTokenMetadata() { // TODO: test TokenLinkDtoTokenMetadata } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'symbol' */ @Test - public void symbolTest() { + void symbolTest() { // TODO: test symbol } /** Test the property 'networkProtocol' */ @Test - public void networkProtocolTest() { + void networkProtocolTest() { // TODO: test networkProtocol } /** Test the property 'totalSupply' */ @Test - public void totalSupplyTest() { + void totalSupplyTest() { // TODO: test totalSupply } /** Test the property 'holdersCount' */ @Test - public void holdersCountTest() { + void holdersCountTest() { // TODO: test holdersCount } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'issuerAddress' */ @Test - public void issuerAddressTest() { + void issuerAddressTest() { // TODO: test issuerAddress } /** Test the property 'testnet' */ @Test - public void testnetTest() { + void testnetTest() { // TODO: test testnet } /** Test the property 'blockchain' */ @Test - public void blockchainTest() { + void blockchainTest() { // TODO: test blockchain } /** Test the property 'decimals' */ @Test - public void decimalsTest() { + void decimalsTest() { // TODO: test decimals } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'fbCollectionId' */ @Test - public void fbCollectionIdTest() { + void fbCollectionIdTest() { // TODO: test fbCollectionId } /** Test the property 'standard' */ @Test - public void standardTest() { + void standardTest() { // TODO: test standard } /** Test the property 'blockchainDescriptor' */ @Test - public void blockchainDescriptorTest() { + void blockchainDescriptorTest() { // TODO: test blockchainDescriptor } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'blockchainId' */ @Test - public void blockchainIdTest() { + void blockchainIdTest() { // TODO: test blockchainId } /** Test the property 'contractTemplateId' */ @Test - public void contractTemplateIdTest() { + void contractTemplateIdTest() { // TODO: test contractTemplateId } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenLinkExistsHttpErrorTest.java b/src/test/java/com/fireblocks/sdk/model/TokenLinkExistsHttpErrorTest.java index d277b7b9..bb84b7da 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkExistsHttpErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenLinkExistsHttpErrorTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenLinkExistsHttpError */ -public class TokenLinkExistsHttpErrorTest { +class TokenLinkExistsHttpErrorTest { private final TokenLinkExistsHttpError model = new TokenLinkExistsHttpError(); /** Model tests for TokenLinkExistsHttpError */ @Test - public void testTokenLinkExistsHttpError() { + void testTokenLinkExistsHttpError() { // TODO: test TokenLinkExistsHttpError } /** Test the property 'statusCode' */ @Test - public void statusCodeTest() { + void statusCodeTest() { // TODO: test statusCode } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'error' */ @Test - public void errorTest() { + void errorTest() { // TODO: test error } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java b/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java index 66a315a9..99342d23 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenLinkNotMultichainCompatibleHttpError */ -public class TokenLinkNotMultichainCompatibleHttpErrorTest { +class TokenLinkNotMultichainCompatibleHttpErrorTest { private final TokenLinkNotMultichainCompatibleHttpError model = new TokenLinkNotMultichainCompatibleHttpError(); /** Model tests for TokenLinkNotMultichainCompatibleHttpError */ @Test - public void testTokenLinkNotMultichainCompatibleHttpError() { + void testTokenLinkNotMultichainCompatibleHttpError() { // TODO: test TokenLinkNotMultichainCompatibleHttpError } /** Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } /** Test the property 'code' */ @Test - public void codeTest() { + 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 9445f097..04536968 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenLinkRequestDto */ -public class TokenLinkRequestDtoTest { +class TokenLinkRequestDtoTest { private final TokenLinkRequestDto model = new TokenLinkRequestDto(); /** Model tests for TokenLinkRequestDto */ @Test - public void testTokenLinkRequestDto() { + void testTokenLinkRequestDto() { // TODO: test TokenLinkRequestDto } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'refId' */ @Test - public void refIdTest() { + void refIdTest() { // TODO: test refId } /** Test the property 'displayName' */ @Test - public void displayNameTest() { + void displayNameTest() { // TODO: test displayName } /** Test the property 'baseAssetId' */ @Test - public void baseAssetIdTest() { + void baseAssetIdTest() { // TODO: test baseAssetId } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenOwnershipResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TokenOwnershipResponseTest.java index 01af7518..b9ae3430 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenOwnershipResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenOwnershipResponseTest.java @@ -13,123 +13,123 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenOwnershipResponse */ -public class TokenOwnershipResponseTest { +class TokenOwnershipResponseTest { private final TokenOwnershipResponse model = new TokenOwnershipResponse(); /** Model tests for TokenOwnershipResponse */ @Test - public void testTokenOwnershipResponse() { + void testTokenOwnershipResponse() { // TODO: test TokenOwnershipResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'tokenId' */ @Test - public void tokenIdTest() { + void tokenIdTest() { // TODO: test tokenId } /** Test the property 'standard' */ @Test - public void standardTest() { + void standardTest() { // TODO: test standard } /** Test the property 'metadataURI' */ @Test - public void metadataURITest() { + void metadataURITest() { // TODO: test metadataURI } /** Test the property 'cachedMetadataURI' */ @Test - public void cachedMetadataURITest() { + void cachedMetadataURITest() { // TODO: test cachedMetadataURI } /** Test the property 'media' */ @Test - public void mediaTest() { + void mediaTest() { // TODO: test media } /** Test the property 'spam' */ @Test - public void spamTest() { + void spamTest() { // TODO: test spam } /** Test the property 'collection' */ @Test - public void collectionTest() { + void collectionTest() { // TODO: test collection } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'ownershipStartTime' */ @Test - public void ownershipStartTimeTest() { + void ownershipStartTimeTest() { // TODO: test ownershipStartTime } /** Test the property 'ownershipLastUpdateTime' */ @Test - public void ownershipLastUpdateTimeTest() { + void ownershipLastUpdateTimeTest() { // TODO: test ownershipLastUpdateTime } /** Test the property 'blockchainDescriptor' */ @Test - public void blockchainDescriptorTest() { + void blockchainDescriptorTest() { // TODO: test blockchainDescriptor } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'ncwId' */ @Test - public void ncwIdTest() { + void ncwIdTest() { // TODO: test ncwId } /** Test the property 'ncwAccountId' */ @Test - public void ncwAccountIdTest() { + void ncwAccountIdTest() { // TODO: test ncwAccountId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayloadTest.java b/src/test/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayloadTest.java index d133df05..eec191eb 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayloadTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayloadTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenOwnershipSpamUpdatePayload */ -public class TokenOwnershipSpamUpdatePayloadTest { +class TokenOwnershipSpamUpdatePayloadTest { private final TokenOwnershipSpamUpdatePayload model = new TokenOwnershipSpamUpdatePayload(); /** Model tests for TokenOwnershipSpamUpdatePayload */ @Test - public void testTokenOwnershipSpamUpdatePayload() { + void testTokenOwnershipSpamUpdatePayload() { // TODO: test TokenOwnershipSpamUpdatePayload } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'spam' */ @Test - public void spamTest() { + void spamTest() { // TODO: test spam } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayloadTest.java b/src/test/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayloadTest.java index c72b40ce..0f498d32 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayloadTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayloadTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenOwnershipStatusUpdatePayload */ -public class TokenOwnershipStatusUpdatePayloadTest { +class TokenOwnershipStatusUpdatePayloadTest { private final TokenOwnershipStatusUpdatePayload model = new TokenOwnershipStatusUpdatePayload(); /** Model tests for TokenOwnershipStatusUpdatePayload */ @Test - public void testTokenOwnershipStatusUpdatePayload() { + void testTokenOwnershipStatusUpdatePayload() { // TODO: test TokenOwnershipStatusUpdatePayload } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokenResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TokenResponseTest.java index de0465e9..f8440838 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenResponseTest.java @@ -13,81 +13,81 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokenResponse */ -public class TokenResponseTest { +class TokenResponseTest { private final TokenResponse model = new TokenResponse(); /** Model tests for TokenResponse */ @Test - public void testTokenResponse() { + void testTokenResponse() { // TODO: test TokenResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'tokenId' */ @Test - public void tokenIdTest() { + void tokenIdTest() { // TODO: test tokenId } /** Test the property 'standard' */ @Test - public void standardTest() { + void standardTest() { // TODO: test standard } /** Test the property 'metadataURI' */ @Test - public void metadataURITest() { + void metadataURITest() { // TODO: test metadataURI } /** Test the property 'cachedMetadataURI' */ @Test - public void cachedMetadataURITest() { + void cachedMetadataURITest() { // TODO: test cachedMetadataURI } /** Test the property 'media' */ @Test - public void mediaTest() { + void mediaTest() { // TODO: test media } /** Test the property 'spam' */ @Test - public void spamTest() { + void spamTest() { // TODO: test spam } /** Test the property 'collection' */ @Test - public void collectionTest() { + void collectionTest() { // TODO: test collection } /** Test the property 'blockchainDescriptor' */ @Test - public void blockchainDescriptorTest() { + void blockchainDescriptorTest() { // TODO: test blockchainDescriptor } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/TokensPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TokensPaginatedResponseTest.java index 5d4c84e3..cb8f8099 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokensPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokensPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TokensPaginatedResponse */ -public class TokensPaginatedResponseTest { +class TokensPaginatedResponseTest { private final TokensPaginatedResponse model = new TokensPaginatedResponse(); /** Model tests for TokensPaginatedResponse */ @Test - public void testTokensPaginatedResponse() { + void testTokensPaginatedResponse() { // TODO: test TokensPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/TradingAccountTypeTest.java b/src/test/java/com/fireblocks/sdk/model/TradingAccountTypeTest.java index c4c07891..94f5d40e 100644 --- a/src/test/java/com/fireblocks/sdk/model/TradingAccountTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TradingAccountTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TradingAccountType */ -public class TradingAccountTypeTest { +class TradingAccountTypeTest { /** Model tests for TradingAccountType */ @Test - public void testTradingAccountType() { + void testTradingAccountType() { // TODO: test TradingAccountType } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionFeeTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionFeeTest.java index de85368c..f712f6f4 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionFeeTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionFee */ -public class TransactionFeeTest { +class TransactionFeeTest { private final TransactionFee model = new TransactionFee(); /** Model tests for TransactionFee */ @Test - public void testTransactionFee() { + void testTransactionFee() { // TODO: test TransactionFee } /** Test the property 'feePerByte' */ @Test - public void feePerByteTest() { + void feePerByteTest() { // TODO: test feePerByte } /** Test the property 'gasPrice' */ @Test - public void gasPriceTest() { + void gasPriceTest() { // TODO: test gasPrice } /** Test the property 'gasLimit' */ @Test - public void gasLimitTest() { + void gasLimitTest() { // TODO: test gasLimit } /** Test the property 'networkFee' */ @Test - public void networkFeeTest() { + void networkFeeTest() { // TODO: test networkFee } /** Test the property 'baseFee' */ @Test - public void baseFeeTest() { + void baseFeeTest() { // TODO: test baseFee } /** Test the property 'priorityFee' */ @Test - public void priorityFeeTest() { + void priorityFeeTest() { // TODO: test priorityFee } /** Test the property 'maxFeePerGasDelta' */ @Test - public void maxFeePerGasDeltaTest() { + void maxFeePerGasDeltaTest() { // TODO: test maxFeePerGasDelta } /** Test the property 'l1Fee' */ @Test - public void l1FeeTest() { + void l1FeeTest() { // TODO: test l1Fee } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionOperationTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionOperationTest.java index f669a2a8..d0121510 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionOperationTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionOperation */ -public class TransactionOperationTest { +class TransactionOperationTest { /** Model tests for TransactionOperation */ @Test - public void testTransactionOperation() { + void testTransactionOperation() { // TODO: test TransactionOperation } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java index 226ae9d0..33d30d7e 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java @@ -13,99 +13,99 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionReceiptResponse */ -public class TransactionReceiptResponseTest { +class TransactionReceiptResponseTest { private final TransactionReceiptResponse model = new TransactionReceiptResponse(); /** Model tests for TransactionReceiptResponse */ @Test - public void testTransactionReceiptResponse() { + void testTransactionReceiptResponse() { // TODO: test TransactionReceiptResponse } /** Test the property 'blockHash' */ @Test - public void blockHashTest() { + void blockHashTest() { // TODO: test blockHash } /** Test the property 'blockNumber' */ @Test - public void blockNumberTest() { + void blockNumberTest() { // TODO: test blockNumber } /** Test the property 'contractAddress' */ @Test - public void contractAddressTest() { + void contractAddressTest() { // TODO: test contractAddress } /** Test the property 'cumulativeGasUsed' */ @Test - public void cumulativeGasUsedTest() { + void cumulativeGasUsedTest() { // TODO: test cumulativeGasUsed } /** Test the property 'effectiveGasPrice' */ @Test - public void effectiveGasPriceTest() { + void effectiveGasPriceTest() { // TODO: test effectiveGasPrice } /** Test the property 'from' */ @Test - public void fromTest() { + void fromTest() { // TODO: test from } /** Test the property 'gasUsed' */ @Test - public void gasUsedTest() { + void gasUsedTest() { // TODO: test gasUsed } /** Test the property 'logs' */ @Test - public void logsTest() { + void logsTest() { // TODO: test logs } /** Test the property 'logsBloom' */ @Test - public void logsBloomTest() { + void logsBloomTest() { // TODO: test logsBloom } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'to' */ @Test - public void toTest() { + void toTest() { // TODO: test to } /** Test the property 'transactionHash' */ @Test - public void transactionHashTest() { + void transactionHashTest() { // TODO: test transactionHash } /** Test the property 'transactionIndex' */ @Test - public void transactionIndexTest() { + void transactionIndexTest() { // TODO: test transactionIndex } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestAmountTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestAmountTest.java index 64813cb9..295c3536 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestAmountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestAmountTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestAmount */ -public class TransactionRequestAmountTest { +class TransactionRequestAmountTest { private final TransactionRequestAmount model = new TransactionRequestAmount(); /** Model tests for TransactionRequestAmount */ @Test - public void testTransactionRequestAmount() { + void testTransactionRequestAmount() { // TODO: test TransactionRequestAmount } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java index 3889d16b..572649db 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestDestination */ -public class TransactionRequestDestinationTest { +class TransactionRequestDestinationTest { private final TransactionRequestDestination model = new TransactionRequestDestination(); /** Model tests for TransactionRequestDestination */ @Test - public void testTransactionRequestDestination() { + void testTransactionRequestDestination() { // TODO: test TransactionRequestDestination } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } /** Test the property 'travelRuleMessageId' */ @Test - public void travelRuleMessageIdTest() { + void travelRuleMessageIdTest() { // TODO: test travelRuleMessageId } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestFeeTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestFeeTest.java index 9c6c62ba..46971c20 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestFeeTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestFee */ -public class TransactionRequestFeeTest { +class TransactionRequestFeeTest { private final TransactionRequestFee model = new TransactionRequestFee(); /** Model tests for TransactionRequestFee */ @Test - public void testTransactionRequestFee() { + void testTransactionRequestFee() { // TODO: test TransactionRequestFee } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasLimitTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasLimitTest.java index 873af88a..9c5b674d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasLimitTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasLimitTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestGasLimit */ -public class TransactionRequestGasLimitTest { +class TransactionRequestGasLimitTest { private final TransactionRequestGasLimit model = new TransactionRequestGasLimit(); /** Model tests for TransactionRequestGasLimit */ @Test - public void testTransactionRequestGasLimit() { + void testTransactionRequestGasLimit() { // TODO: test TransactionRequestGasLimit } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasPriceTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasPriceTest.java index 441d26d4..78479e66 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasPriceTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestGasPriceTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestGasPrice */ -public class TransactionRequestGasPriceTest { +class TransactionRequestGasPriceTest { private final TransactionRequestGasPrice model = new TransactionRequestGasPrice(); /** Model tests for TransactionRequestGasPrice */ @Test - public void testTransactionRequestGasPrice() { + void testTransactionRequestGasPrice() { // TODO: test TransactionRequestGasPrice } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkFeeTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkFeeTest.java index f5d0aa5b..44f148e9 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkFeeTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestNetworkFee */ -public class TransactionRequestNetworkFeeTest { +class TransactionRequestNetworkFeeTest { private final TransactionRequestNetworkFee model = new TransactionRequestNetworkFee(); /** Model tests for TransactionRequestNetworkFee */ @Test - public void testTransactionRequestNetworkFee() { + void testTransactionRequestNetworkFee() { // TODO: test TransactionRequestNetworkFee } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkStakingTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkStakingTest.java index 5f260d3c..057c1da0 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkStakingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestNetworkStakingTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestNetworkStaking */ -public class TransactionRequestNetworkStakingTest { +class TransactionRequestNetworkStakingTest { private final TransactionRequestNetworkStaking model = new TransactionRequestNetworkStaking(); /** Model tests for TransactionRequestNetworkStaking */ @Test - public void testTransactionRequestNetworkStaking() { + void testTransactionRequestNetworkStaking() { // TODO: test TransactionRequestNetworkStaking } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestPriorityFeeTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestPriorityFeeTest.java index e53111b6..83a1c4c7 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestPriorityFeeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestPriorityFeeTest.java @@ -13,15 +13,15 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequestPriorityFee */ -public class TransactionRequestPriorityFeeTest { +class TransactionRequestPriorityFeeTest { private final TransactionRequestPriorityFee model = new TransactionRequestPriorityFee(); /** Model tests for TransactionRequestPriorityFee */ @Test - public void testTransactionRequestPriorityFee() { + void testTransactionRequestPriorityFee() { // TODO: test TransactionRequestPriorityFee } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java index 28a9a8a8..1136c7ad 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java @@ -13,183 +13,183 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionRequest */ -public class TransactionRequestTest { +class TransactionRequestTest { private final TransactionRequest model = new TransactionRequest(); /** Model tests for TransactionRequest */ @Test - public void testTransactionRequest() { + void testTransactionRequest() { // TODO: test TransactionRequest } /** Test the property 'operation' */ @Test - public void operationTest() { + void operationTest() { // TODO: test operation } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } /** Test the property 'externalTxId' */ @Test - public void externalTxIdTest() { + void externalTxIdTest() { // TODO: test externalTxId } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } /** Test the property 'destinations' */ @Test - public void destinationsTest() { + void destinationsTest() { // TODO: test destinations } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'treatAsGrossAmount' */ @Test - public void treatAsGrossAmountTest() { + void treatAsGrossAmountTest() { // TODO: test treatAsGrossAmount } /** Test the property 'forceSweep' */ @Test - public void forceSweepTest() { + void forceSweepTest() { // TODO: test forceSweep } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'priorityFee' */ @Test - public void priorityFeeTest() { + void priorityFeeTest() { // TODO: test priorityFee } /** Test the property 'failOnLowFee' */ @Test - public void failOnLowFeeTest() { + void failOnLowFeeTest() { // TODO: test failOnLowFee } /** Test the property 'maxFee' */ @Test - public void maxFeeTest() { + void maxFeeTest() { // TODO: test maxFee } /** Test the property 'maxTotalFee' */ @Test - public void maxTotalFeeTest() { + void maxTotalFeeTest() { // TODO: test maxTotalFee } /** Test the property 'gasLimit' */ @Test - public void gasLimitTest() { + void gasLimitTest() { // TODO: test gasLimit } /** Test the property 'gasPrice' */ @Test - public void gasPriceTest() { + void gasPriceTest() { // TODO: test gasPrice } /** Test the property 'networkFee' */ @Test - public void networkFeeTest() { + void networkFeeTest() { // TODO: test networkFee } /** Test the property 'replaceTxByHash' */ @Test - public void replaceTxByHashTest() { + void replaceTxByHashTest() { // TODO: test replaceTxByHash } /** Test the property 'extraParameters' */ @Test - public void extraParametersTest() { + void extraParametersTest() { // TODO: test extraParameters } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'travelRuleMessage' */ @Test - public void travelRuleMessageTest() { + void travelRuleMessageTest() { // TODO: test travelRuleMessage } /** Test the property 'travelRuleMessageId' */ @Test - public void travelRuleMessageIdTest() { + void travelRuleMessageIdTest() { // TODO: test travelRuleMessageId } /** Test the property 'autoStaking' */ @Test - public void autoStakingTest() { + void autoStakingTest() { // TODO: test autoStaking } /** Test the property 'networkStaking' */ @Test - public void networkStakingTest() { + void networkStakingTest() { // TODO: test networkStaking } /** Test the property 'cpuStaking' */ @Test - public void cpuStakingTest() { + void cpuStakingTest() { // TODO: test cpuStaking } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedDataTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedDataTest.java index 6ba9e04f..b9375c1a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedDataTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionResponseContractCallDecodedData */ -public class TransactionResponseContractCallDecodedDataTest { +class TransactionResponseContractCallDecodedDataTest { private final TransactionResponseContractCallDecodedData model = new TransactionResponseContractCallDecodedData(); /** Model tests for TransactionResponseContractCallDecodedData */ @Test - public void testTransactionResponseContractCallDecodedData() { + void testTransactionResponseContractCallDecodedData() { // TODO: test TransactionResponseContractCallDecodedData } /** Test the property 'contractName' */ @Test - public void contractNameTest() { + void contractNameTest() { // TODO: test contractName } /** Test the property 'functionCalls' */ @Test - public void functionCallsTest() { + void functionCallsTest() { // TODO: test functionCalls } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionResponseDestinationTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionResponseDestinationTest.java index aeb80cdc..90c3ef1a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionResponseDestinationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionResponseDestinationTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionResponseDestination */ -public class TransactionResponseDestinationTest { +class TransactionResponseDestinationTest { private final TransactionResponseDestination model = new TransactionResponseDestination(); /** Model tests for TransactionResponseDestination */ @Test - public void testTransactionResponseDestination() { + void testTransactionResponseDestination() { // TODO: test TransactionResponseDestination } /** Test the property 'destinationAddress' */ @Test - public void destinationAddressTest() { + void destinationAddressTest() { // TODO: test destinationAddress } /** Test the property 'destinationAddressDescription' */ @Test - public void destinationAddressDescriptionTest() { + void destinationAddressDescriptionTest() { // TODO: test destinationAddressDescription } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'amountUSD' */ @Test - public void amountUSDTest() { + void amountUSDTest() { // TODO: test amountUSD } /** Test the property 'amlScreeningResult' */ @Test - public void amlScreeningResultTest() { + void amlScreeningResultTest() { // TODO: test amlScreeningResult } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } /** Test the property 'authorizationInfo' */ @Test - public void authorizationInfoTest() { + void authorizationInfoTest() { // TODO: test authorizationInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java index 16125ca1..224e6bed 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java @@ -13,303 +13,303 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransactionResponse */ -public class TransactionResponseTest { +class TransactionResponseTest { private final TransactionResponse model = new TransactionResponse(); /** Model tests for TransactionResponse */ @Test - public void testTransactionResponse() { + void testTransactionResponse() { // TODO: test TransactionResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'externalTxId' */ @Test - public void externalTxIdTest() { + void externalTxIdTest() { // TODO: test externalTxId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'subStatus' */ @Test - public void subStatusTest() { + void subStatusTest() { // TODO: test subStatus } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } /** Test the property 'operation' */ @Test - public void operationTest() { + void operationTest() { // TODO: test operation } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } /** Test the property 'sourceAddress' */ @Test - public void sourceAddressTest() { + void sourceAddressTest() { // TODO: test sourceAddress } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } /** Test the property 'destinations' */ @Test - public void destinationsTest() { + void destinationsTest() { // TODO: test destinations } /** Test the property 'destinationAddress' */ @Test - public void destinationAddressTest() { + void destinationAddressTest() { // TODO: test destinationAddress } /** Test the property 'destinationAddressDescription' */ @Test - public void destinationAddressDescriptionTest() { + void destinationAddressDescriptionTest() { // TODO: test destinationAddressDescription } /** Test the property 'destinationTag' */ @Test - public void destinationTagTest() { + void destinationTagTest() { // TODO: test destinationTag } /** Test the property 'contractCallDecodedData' */ @Test - public void contractCallDecodedDataTest() { + void contractCallDecodedDataTest() { // TODO: test contractCallDecodedData } /** Test the property 'amountInfo' */ @Test - public void amountInfoTest() { + void amountInfoTest() { // TODO: test amountInfo } /** Test the property 'treatAsGrossAmount' */ @Test - public void treatAsGrossAmountTest() { + void treatAsGrossAmountTest() { // TODO: test treatAsGrossAmount } /** Test the property 'feeInfo' */ @Test - public void feeInfoTest() { + void feeInfoTest() { // TODO: test feeInfo } /** Test the property 'feeCurrency' */ @Test - public void feeCurrencyTest() { + void feeCurrencyTest() { // TODO: test feeCurrency } /** Test the property 'networkRecords' */ @Test - public void networkRecordsTest() { + void networkRecordsTest() { // TODO: test networkRecords } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'lastUpdated' */ @Test - public void lastUpdatedTest() { + void lastUpdatedTest() { // TODO: test lastUpdated } /** Test the property 'createdBy' */ @Test - public void createdByTest() { + void createdByTest() { // TODO: test createdBy } /** Test the property 'signedBy' */ @Test - public void signedByTest() { + void signedByTest() { // TODO: test signedBy } /** Test the property 'rejectedBy' */ @Test - public void rejectedByTest() { + void rejectedByTest() { // TODO: test rejectedBy } /** Test the property 'authorizationInfo' */ @Test - public void authorizationInfoTest() { + void authorizationInfoTest() { // TODO: test authorizationInfo } /** Test the property 'exchangeTxId' */ @Test - public void exchangeTxIdTest() { + void exchangeTxIdTest() { // TODO: test exchangeTxId } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'amlScreeningResult' */ @Test - public void amlScreeningResultTest() { + void amlScreeningResultTest() { // TODO: test amlScreeningResult } /** Test the property 'complianceResults' */ @Test - public void complianceResultsTest() { + void complianceResultsTest() { // TODO: test complianceResults } /** Test the property 'extraParameters' */ @Test - public void extraParametersTest() { + void extraParametersTest() { // TODO: test extraParameters } /** Test the property 'signedMessages' */ @Test - public void signedMessagesTest() { + void signedMessagesTest() { // TODO: test signedMessages } /** Test the property 'numOfConfirmations' */ @Test - public void numOfConfirmationsTest() { + void numOfConfirmationsTest() { // TODO: test numOfConfirmations } /** Test the property 'blockInfo' */ @Test - public void blockInfoTest() { + void blockInfoTest() { // TODO: test blockInfo } /** Test the property 'index' */ @Test - public void indexTest() { + void indexTest() { // TODO: test index } /** Test the property 'rewardInfo' */ @Test - public void rewardInfoTest() { + void rewardInfoTest() { // TODO: test rewardInfo } /** Test the property 'systemMessages' */ @Test - public void systemMessagesTest() { + void systemMessagesTest() { // TODO: test systemMessages } /** Test the property 'addressType' */ @Test - public void addressTypeTest() { + void addressTypeTest() { // TODO: test addressType } /** Test the property 'requestedAmount' */ @Test - public void requestedAmountTest() { + void requestedAmountTest() { // TODO: test requestedAmount } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'netAmount' */ @Test - public void netAmountTest() { + void netAmountTest() { // TODO: test netAmount } /** Test the property 'amountUSD' */ @Test - public void amountUSDTest() { + void amountUSDTest() { // TODO: test amountUSD } /** Test the property 'serviceFee' */ @Test - public void serviceFeeTest() { + void serviceFeeTest() { // TODO: test serviceFee } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'networkFee' */ @Test - public void networkFeeTest() { + void networkFeeTest() { // TODO: test networkFee } /** Test the property 'errorDescription' */ @Test - public void errorDescriptionTest() { + void errorDescriptionTest() { // TODO: test errorDescription } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionTest.java index 3ab97f3e..fdd6fc8a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Transaction */ -public class TransactionTest { +class TransactionTest { private final Transaction model = new Transaction(); /** Model tests for Transaction */ @Test - public void testTransaction() { + void testTransaction() { // TODO: test Transaction } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } /** Test the property 'timestamp' */ @Test - public void timestampTest() { + void timestampTest() { // TODO: test timestamp } /** Test the property 'instructionId' */ @Test - public void instructionIdTest() { + void instructionIdTest() { // TODO: test instructionId } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferConfigOperationTest.java b/src/test/java/com/fireblocks/sdk/model/TransferConfigOperationTest.java index 3f5512c0..948456f1 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferConfigOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferConfigOperationTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferConfigOperation */ -public class TransferConfigOperationTest { +class TransferConfigOperationTest { private final TransferConfigOperation model = new TransferConfigOperation(); /** Model tests for TransferConfigOperation */ @Test - public void testTransferConfigOperation() { + void testTransferConfigOperation() { // TODO: test TransferConfigOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'params' */ @Test - public void paramsTest() { + void paramsTest() { // TODO: test params } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationConfigParamsTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationConfigParamsTest.java index cc259a2d..451d32a0 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationConfigParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationConfigParamsTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationConfigParams */ -public class TransferOperationConfigParamsTest { +class TransferOperationConfigParamsTest { private final TransferOperationConfigParams model = new TransferOperationConfigParams(); /** Model tests for TransferOperationConfigParams */ @Test - public void testTransferOperationConfigParams() { + void testTransferOperationConfigParams() { // TODO: test TransferOperationConfigParams } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionOutputTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionOutputTest.java index 90618c2f..0ecb752d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionOutputTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationExecutionOutput */ -public class TransferOperationExecutionOutputTest { +class TransferOperationExecutionOutputTest { private final TransferOperationExecutionOutput model = new TransferOperationExecutionOutput(); /** Model tests for TransferOperationExecutionOutput */ @Test - public void testTransferOperationExecutionOutput() { + void testTransferOperationExecutionOutput() { // TODO: test TransferOperationExecutionOutput } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParamsTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParamsTest.java index 635befca..0a12254a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsExecutionParamsTest.java @@ -13,40 +13,40 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationExecutionParamsExecutionParams */ -public class TransferOperationExecutionParamsExecutionParamsTest { +class TransferOperationExecutionParamsExecutionParamsTest { private final TransferOperationExecutionParamsExecutionParams model = new TransferOperationExecutionParamsExecutionParams(); /** Model tests for TransferOperationExecutionParamsExecutionParams */ @Test - public void testTransferOperationExecutionParamsExecutionParams() { + void testTransferOperationExecutionParamsExecutionParams() { // TODO: test TransferOperationExecutionParamsExecutionParams } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'source' */ @Test - public void sourceTest() { + void sourceTest() { // TODO: test source } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsTest.java index 9d4cd8cb..1604315a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionParamsTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationExecutionParams */ -public class TransferOperationExecutionParamsTest { +class TransferOperationExecutionParamsTest { private final TransferOperationExecutionParams model = new TransferOperationExecutionParams(); /** Model tests for TransferOperationExecutionParams */ @Test - public void testTransferOperationExecutionParams() { + void testTransferOperationExecutionParams() { // TODO: test TransferOperationExecutionParams } /** Test the property 'configOperationId' */ @Test - public void configOperationIdTest() { + void configOperationIdTest() { // TODO: test configOperationId } /** Test the property 'executionParams' */ @Test - public void executionParamsTest() { + void executionParamsTest() { // TODO: test executionParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionTest.java index 086ecd33..e569e758 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationExecutionTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationExecution */ -public class TransferOperationExecutionTest { +class TransferOperationExecutionTest { private final TransferOperationExecution model = new TransferOperationExecution(); /** Model tests for TransferOperationExecution */ @Test - public void testTransferOperationExecution() { + void testTransferOperationExecution() { // TODO: test TransferOperationExecution } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } /** Test the property 'startedAt' */ @Test - public void startedAtTest() { + void startedAtTest() { // TODO: test startedAt } /** Test the property 'finishedAt' */ @Test - public void finishedAtTest() { + void finishedAtTest() { // TODO: test finishedAt } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureDataTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureDataTest.java index 74913f61..8313f4f2 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureDataTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationFailureData */ -public class TransferOperationFailureDataTest { +class TransferOperationFailureDataTest { private final TransferOperationFailureData model = new TransferOperationFailureData(); /** Model tests for TransferOperationFailureData */ @Test - public void testTransferOperationFailureData() { + void testTransferOperationFailureData() { // TODO: test TransferOperationFailureData } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } /** Test the property 'txStatus' */ @Test - public void txStatusTest() { + void txStatusTest() { // TODO: test txStatus } /** Test the property 'txSubStatus' */ @Test - public void txSubStatusTest() { + void txSubStatusTest() { // TODO: test txSubStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureTest.java index babd6d56..46e93951 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationFailure */ -public class TransferOperationFailureTest { +class TransferOperationFailureTest { private final TransferOperationFailure model = new TransferOperationFailure(); /** Model tests for TransferOperationFailure */ @Test - public void testTransferOperationFailure() { + void testTransferOperationFailure() { // TODO: test TransferOperationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewOutputTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewOutputTest.java index 3b455fd3..6d4049e3 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewOutputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewOutputTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationPreviewOutput */ -public class TransferOperationPreviewOutputTest { +class TransferOperationPreviewOutputTest { private final TransferOperationPreviewOutput model = new TransferOperationPreviewOutput(); /** Model tests for TransferOperationPreviewOutput */ @Test - public void testTransferOperationPreviewOutput() { + void testTransferOperationPreviewOutput() { // TODO: test TransferOperationPreviewOutput } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'isSignRequired' */ @Test - public void isSignRequiredTest() { + void isSignRequiredTest() { // TODO: test isSignRequired } /** Test the property 'timeSeconds' */ @Test - public void timeSecondsTest() { + void timeSecondsTest() { // TODO: test timeSeconds } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewTest.java index 3caaaedd..b66fddd8 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationPreview */ -public class TransferOperationPreviewTest { +class TransferOperationPreviewTest { private final TransferOperationPreview model = new TransferOperationPreview(); /** Model tests for TransferOperationPreview */ @Test - public void testTransferOperationPreview() { + void testTransferOperationPreview() { // TODO: test TransferOperationPreview } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'output' */ @Test - public void outputTest() { + void outputTest() { // TODO: test output } /** Test the property 'failure' */ @Test - public void failureTest() { + void failureTest() { // TODO: test failure } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferOperationTypeTest.java b/src/test/java/com/fireblocks/sdk/model/TransferOperationTypeTest.java index 8ca418bb..ef227cc9 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferOperationTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferOperationTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferOperationType */ -public class TransferOperationTypeTest { +class TransferOperationTypeTest { /** Model tests for TransferOperationType */ @Test - public void testTransferOperationType() { + void testTransferOperationType() { // TODO: test TransferOperationType } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferPeerPathSubTypeTest.java b/src/test/java/com/fireblocks/sdk/model/TransferPeerPathSubTypeTest.java index e870141d..b67ab92e 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferPeerPathSubTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferPeerPathSubTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferPeerPathSubType */ -public class TransferPeerPathSubTypeTest { +class TransferPeerPathSubTypeTest { /** Model tests for TransferPeerPathSubType */ @Test - public void testTransferPeerPathSubType() { + void testTransferPeerPathSubType() { // TODO: test TransferPeerPathSubType } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferPeerPathTypeTest.java b/src/test/java/com/fireblocks/sdk/model/TransferPeerPathTypeTest.java index 3cb3c53e..353203de 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferPeerPathTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferPeerPathTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferPeerPathType */ -public class TransferPeerPathTypeTest { +class TransferPeerPathTypeTest { /** Model tests for TransferPeerPathType */ @Test - public void testTransferPeerPathType() { + void testTransferPeerPathType() { // TODO: test TransferPeerPathType } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransferValidationFailureTest.java b/src/test/java/com/fireblocks/sdk/model/TransferValidationFailureTest.java index 11564957..4f49379d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransferValidationFailureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransferValidationFailureTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TransferValidationFailure */ -public class TransferValidationFailureTest { +class TransferValidationFailureTest { private final TransferValidationFailure model = new TransferValidationFailure(); /** Model tests for TransferValidationFailure */ @Test - public void testTransferValidationFailure() { + void testTransferValidationFailure() { // TODO: test TransferValidationFailure } /** Test the property 'reason' */ @Test - public void reasonTest() { + void reasonTest() { // TODO: test reason } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleAddressTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleAddressTest.java index f0cde72b..7981246f 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleAddressTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleAddressTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleAddress */ -public class TravelRuleAddressTest { +class TravelRuleAddressTest { private final TravelRuleAddress model = new TravelRuleAddress(); /** Model tests for TravelRuleAddress */ @Test - public void testTravelRuleAddress() { + void testTravelRuleAddress() { // TODO: test TravelRuleAddress } /** Test the property 'street' */ @Test - public void streetTest() { + void streetTest() { // TODO: test street } /** Test the property 'city' */ @Test - public void cityTest() { + void cityTest() { // TODO: test city } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } /** Test the property 'postalCode' */ @Test - public void postalCodeTest() { + void postalCodeTest() { // TODO: test postalCode } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java index 2cc80acf..9f7cfee8 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java @@ -13,142 +13,142 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleCreateTransactionRequest */ -public class TravelRuleCreateTransactionRequestTest { +class TravelRuleCreateTransactionRequestTest { private final TravelRuleCreateTransactionRequest model = new TravelRuleCreateTransactionRequest(); /** Model tests for TravelRuleCreateTransactionRequest */ @Test - public void testTravelRuleCreateTransactionRequest() { + void testTravelRuleCreateTransactionRequest() { // TODO: test TravelRuleCreateTransactionRequest } /** Test the property 'originatorVASPdid' */ @Test - public void originatorVASPdidTest() { + void originatorVASPdidTest() { // TODO: test originatorVASPdid } /** Test the property 'beneficiaryVASPdid' */ @Test - public void beneficiaryVASPdidTest() { + void beneficiaryVASPdidTest() { // TODO: test beneficiaryVASPdid } /** Test the property 'originatorVASPname' */ @Test - public void originatorVASPnameTest() { + void originatorVASPnameTest() { // TODO: test originatorVASPname } /** Test the property 'beneficiaryVASPname' */ @Test - public void beneficiaryVASPnameTest() { + void beneficiaryVASPnameTest() { // TODO: test beneficiaryVASPname } /** Test the property 'beneficiaryVASPwebsite' */ @Test - public void beneficiaryVASPwebsiteTest() { + void beneficiaryVASPwebsiteTest() { // TODO: test beneficiaryVASPwebsite } /** Test the property 'transactionBlockchainInfo' */ @Test - public void transactionBlockchainInfoTest() { + void transactionBlockchainInfoTest() { // TODO: test transactionBlockchainInfo } /** Test the property 'originator' */ @Test - public void originatorTest() { + void originatorTest() { // TODO: test originator } /** Test the property 'beneficiary' */ @Test - public void beneficiaryTest() { + void beneficiaryTest() { // TODO: test beneficiary } /** Test the property 'encrypted' */ @Test - public void encryptedTest() { + void encryptedTest() { // TODO: test encrypted } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'targetProtocol' */ @Test - public void targetProtocolTest() { + void targetProtocolTest() { // TODO: test targetProtocol } /** Test the property 'skipBeneficiaryDataValidation' */ @Test - public void skipBeneficiaryDataValidationTest() { + void skipBeneficiaryDataValidationTest() { // TODO: test skipBeneficiaryDataValidation } /** Test the property 'travelRuleBehavior' */ @Test - public void travelRuleBehaviorTest() { + void travelRuleBehaviorTest() { // TODO: test travelRuleBehavior } /** Test the property 'originatorRef' */ @Test - public void originatorRefTest() { + void originatorRefTest() { // TODO: test originatorRef } /** Test the property 'beneficiaryRef' */ @Test - public void beneficiaryRefTest() { + void beneficiaryRefTest() { // TODO: test beneficiaryRef } /** Test the property 'travelRuleBehaviorRef' */ @Test - public void travelRuleBehaviorRefTest() { + void travelRuleBehaviorRefTest() { // TODO: test travelRuleBehaviorRef } /** Test the property 'originatorProof' */ @Test - public void originatorProofTest() { + void originatorProofTest() { // TODO: test originatorProof } /** Test the property 'beneficiaryProof' */ @Test - public void beneficiaryProofTest() { + void beneficiaryProofTest() { // TODO: test beneficiaryProof } /** Test the property 'beneficiaryDid' */ @Test - public void beneficiaryDidTest() { + void beneficiaryDidTest() { // TODO: test beneficiaryDid } /** Test the property 'originatorDid' */ @Test - public void originatorDidTest() { + void originatorDidTest() { // TODO: test originatorDid } /** Test the property 'isNonCustodial' */ @Test - public void isNonCustodialTest() { + void isNonCustodialTest() { // TODO: test isNonCustodial } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java index 79e7efe9..0303525b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleDateAndPlaceOfBirth */ -public class TravelRuleDateAndPlaceOfBirthTest { +class TravelRuleDateAndPlaceOfBirthTest { private final TravelRuleDateAndPlaceOfBirth model = new TravelRuleDateAndPlaceOfBirth(); /** Model tests for TravelRuleDateAndPlaceOfBirth */ @Test - public void testTravelRuleDateAndPlaceOfBirth() { + void testTravelRuleDateAndPlaceOfBirth() { // TODO: test TravelRuleDateAndPlaceOfBirth } /** Test the property 'dateOfBirth' */ @Test - public void dateOfBirthTest() { + void dateOfBirthTest() { // TODO: test dateOfBirth } /** Test the property 'placeOfBirth' */ @Test - public void placeOfBirthTest() { + 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 index 1b046aeb..d20ca77b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java @@ -13,111 +13,111 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleGeographicAddress */ -public class TravelRuleGeographicAddressTest { +class TravelRuleGeographicAddressTest { private final TravelRuleGeographicAddress model = new TravelRuleGeographicAddress(); /** Model tests for TravelRuleGeographicAddress */ @Test - public void testTravelRuleGeographicAddress() { + void testTravelRuleGeographicAddress() { // TODO: test TravelRuleGeographicAddress } /** Test the property 'streetName' */ @Test - public void streetNameTest() { + void streetNameTest() { // TODO: test streetName } /** Test the property 'townName' */ @Test - public void townNameTest() { + void townNameTest() { // TODO: test townName } /** Test the property 'country' */ @Test - public void countryTest() { + void countryTest() { // TODO: test country } /** Test the property 'buildingNumber' */ @Test - public void buildingNumberTest() { + void buildingNumberTest() { // TODO: test buildingNumber } /** Test the property 'postCode' */ @Test - public void postCodeTest() { + void postCodeTest() { // TODO: test postCode } /** Test the property 'addressType' */ @Test - public void addressTypeTest() { + void addressTypeTest() { // TODO: test addressType } /** Test the property 'department' */ @Test - public void departmentTest() { + void departmentTest() { // TODO: test department } /** Test the property 'subDepartment' */ @Test - public void subDepartmentTest() { + void subDepartmentTest() { // TODO: test subDepartment } /** Test the property 'buildingName' */ @Test - public void buildingNameTest() { + void buildingNameTest() { // TODO: test buildingName } /** Test the property 'floor' */ @Test - public void floorTest() { + void floorTest() { // TODO: test floor } /** Test the property 'postBox' */ @Test - public void postBoxTest() { + void postBoxTest() { // TODO: test postBox } /** Test the property 'room' */ @Test - public void roomTest() { + void roomTest() { // TODO: test room } /** Test the property 'townLocationName' */ @Test - public void townLocationNameTest() { + void townLocationNameTest() { // TODO: test townLocationName } /** Test the property 'districtName' */ @Test - public void districtNameTest() { + void districtNameTest() { // TODO: test districtName } /** Test the property 'countrySubDivision' */ @Test - public void countrySubDivisionTest() { + void countrySubDivisionTest() { // TODO: test countrySubDivision } /** Test the property 'addressLine' */ @Test - public void addressLineTest() { + 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 35fea2b9..9fba314c 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleGetAllVASPsResponse */ -public class TravelRuleGetAllVASPsResponseTest { +class TravelRuleGetAllVASPsResponseTest { private final TravelRuleGetAllVASPsResponse model = new TravelRuleGetAllVASPsResponse(); /** Model tests for TravelRuleGetAllVASPsResponse */ @Test - public void testTravelRuleGetAllVASPsResponse() { + void testTravelRuleGetAllVASPsResponse() { // TODO: test TravelRuleGetAllVASPsResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } /** Test the property 'next' */ @Test - public void nextTest() { + void nextTest() { // TODO: test next } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuerTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuerTest.java index 92e82bdc..fc55a883 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuerTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleIssuer */ -public class TravelRuleIssuerTest { +class TravelRuleIssuerTest { private final TravelRuleIssuer model = new TravelRuleIssuer(); /** Model tests for TravelRuleIssuer */ @Test - public void testTravelRuleIssuer() { + void testTravelRuleIssuer() { // TODO: test TravelRuleIssuer } /** Test the property 'issuerDid' */ @Test - public void issuerDidTest() { + void issuerDidTest() { // TODO: test issuerDid } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuersTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuersTest.java index 654cd84d..4c9d7021 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuersTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleIssuersTest.java @@ -13,99 +13,99 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleIssuers */ -public class TravelRuleIssuersTest { +class TravelRuleIssuersTest { private final TravelRuleIssuers model = new TravelRuleIssuers(); /** Model tests for TravelRuleIssuers */ @Test - public void testTravelRuleIssuers() { + void testTravelRuleIssuers() { // TODO: test TravelRuleIssuers } /** Test the property 'yearFounded' */ @Test - public void yearFoundedTest() { + void yearFoundedTest() { // TODO: test yearFounded } /** Test the property 'isRegulated' */ @Test - public void isRegulatedTest() { + void isRegulatedTest() { // TODO: test isRegulated } /** Test the property 'regulatoryAuthorities' */ @Test - public void regulatoryAuthoritiesTest() { + void regulatoryAuthoritiesTest() { // TODO: test regulatoryAuthorities } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'logo' */ @Test - public void logoTest() { + void logoTest() { // TODO: test logo } /** Test the property 'website' */ @Test - public void websiteTest() { + void websiteTest() { // TODO: test website } /** Test the property 'legalName' */ @Test - public void legalNameTest() { + void legalNameTest() { // TODO: test legalName } /** Test the property 'legalStructure' */ @Test - public void legalStructureTest() { + void legalStructureTest() { // TODO: test legalStructure } /** Test the property 'incorporationCountry' */ @Test - public void incorporationCountryTest() { + void incorporationCountryTest() { // TODO: test incorporationCountry } /** Test the property 'businessNumber' */ @Test - public void businessNumberTest() { + void businessNumberTest() { // TODO: test businessNumber } /** Test the property 'addressLine1' */ @Test - public void addressLine1Test() { + void addressLine1Test() { // TODO: test addressLine1 } /** Test the property 'city' */ @Test - public void cityTest() { + void cityTest() { // TODO: test city } /** Test the property 'country' */ @Test - public void countryTest() { + void countryTest() { // TODO: test country } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java index bbd6e568..5bd5d885 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleLegalPersonNameIdentifier */ -public class TravelRuleLegalPersonNameIdentifierTest { +class TravelRuleLegalPersonNameIdentifierTest { private final TravelRuleLegalPersonNameIdentifier model = new TravelRuleLegalPersonNameIdentifier(); /** Model tests for TravelRuleLegalPersonNameIdentifier */ @Test - public void testTravelRuleLegalPersonNameIdentifier() { + void testTravelRuleLegalPersonNameIdentifier() { // TODO: test TravelRuleLegalPersonNameIdentifier } /** Test the property 'legalPersonName' */ @Test - public void legalPersonNameTest() { + void legalPersonNameTest() { // TODO: test legalPersonName } /** Test the property 'legalPersonNameIdentifierType' */ @Test - public void legalPersonNameIdentifierTypeTest() { + 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 index d4829905..4fdb5e77 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleLegalPerson */ -public class TravelRuleLegalPersonTest { +class TravelRuleLegalPersonTest { private final TravelRuleLegalPerson model = new TravelRuleLegalPerson(); /** Model tests for TravelRuleLegalPerson */ @Test - public void testTravelRuleLegalPerson() { + void testTravelRuleLegalPerson() { // TODO: test TravelRuleLegalPerson } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'geographicAddress' */ @Test - public void geographicAddressTest() { + void geographicAddressTest() { // TODO: test geographicAddress } /** Test the property 'nationalIdentification' */ @Test - public void nationalIdentificationTest() { + void nationalIdentificationTest() { // TODO: test nationalIdentification } /** Test the property 'customerIdentification' */ @Test - public void customerIdentificationTest() { + void customerIdentificationTest() { // TODO: test customerIdentification } /** Test the property 'customerNumber' */ @Test - public void customerNumberTest() { + void customerNumberTest() { // TODO: test customerNumber } /** Test the property 'countryOfRegistration' */ @Test - public void countryOfRegistrationTest() { + 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 index 62884e07..90be151b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleNationalIdentification */ -public class TravelRuleNationalIdentificationTest { +class TravelRuleNationalIdentificationTest { private final TravelRuleNationalIdentification model = new TravelRuleNationalIdentification(); /** Model tests for TravelRuleNationalIdentification */ @Test - public void testTravelRuleNationalIdentification() { + void testTravelRuleNationalIdentification() { // TODO: test TravelRuleNationalIdentification } /** Test the property 'countryOfIssue' */ @Test - public void countryOfIssueTest() { + void countryOfIssueTest() { // TODO: test countryOfIssue } /** Test the property 'nationalIdentifier' */ @Test - public void nationalIdentifierTest() { + void nationalIdentifierTest() { // TODO: test nationalIdentifier } /** Test the property 'nationalIdentifierType' */ @Test - public void nationalIdentifierTypeTest() { + void nationalIdentifierTypeTest() { // TODO: test nationalIdentifierType } /** Test the property 'registrationAuthority' */ @Test - public void registrationAuthorityTest() { + 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 index ce57ac48..d279cad3 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleNaturalNameIdentifier */ -public class TravelRuleNaturalNameIdentifierTest { +class TravelRuleNaturalNameIdentifierTest { private final TravelRuleNaturalNameIdentifier model = new TravelRuleNaturalNameIdentifier(); /** Model tests for TravelRuleNaturalNameIdentifier */ @Test - public void testTravelRuleNaturalNameIdentifier() { + void testTravelRuleNaturalNameIdentifier() { // TODO: test TravelRuleNaturalNameIdentifier } /** Test the property 'primaryIdentifier' */ @Test - public void primaryIdentifierTest() { + void primaryIdentifierTest() { // TODO: test primaryIdentifier } /** Test the property 'secondaryIdentifier' */ @Test - public void secondaryIdentifierTest() { + void secondaryIdentifierTest() { // TODO: test secondaryIdentifier } /** Test the property 'nameIdentifierType' */ @Test - public void nameIdentifierTypeTest() { + 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 index f5f5eb59..fa56d39a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleNaturalPersonNameIdentifier */ -public class TravelRuleNaturalPersonNameIdentifierTest { +class TravelRuleNaturalPersonNameIdentifierTest { private final TravelRuleNaturalPersonNameIdentifier model = new TravelRuleNaturalPersonNameIdentifier(); /** Model tests for TravelRuleNaturalPersonNameIdentifier */ @Test - public void testTravelRuleNaturalPersonNameIdentifier() { + void testTravelRuleNaturalPersonNameIdentifier() { // TODO: test TravelRuleNaturalPersonNameIdentifier } /** Test the property 'nameIdentifier' */ @Test - public void nameIdentifierTest() { + void nameIdentifierTest() { // TODO: test nameIdentifier } /** Test the property 'localNameIdentifier' */ @Test - public void localNameIdentifierTest() { + void localNameIdentifierTest() { // TODO: test localNameIdentifier } /** Test the property 'phoneticNameIdentifier' */ @Test - public void phoneticNameIdentifierTest() { + 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 index 2c795884..2cb4f939 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleNaturalPerson */ -public class TravelRuleNaturalPersonTest { +class TravelRuleNaturalPersonTest { private final TravelRuleNaturalPerson model = new TravelRuleNaturalPerson(); /** Model tests for TravelRuleNaturalPerson */ @Test - public void testTravelRuleNaturalPerson() { + void testTravelRuleNaturalPerson() { // TODO: test TravelRuleNaturalPerson } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'geographicAddress' */ @Test - public void geographicAddressTest() { + void geographicAddressTest() { // TODO: test geographicAddress } /** Test the property 'nationalIdentification' */ @Test - public void nationalIdentificationTest() { + void nationalIdentificationTest() { // TODO: test nationalIdentification } /** Test the property 'dateAndPlaceOfBirth' */ @Test - public void dateAndPlaceOfBirthTest() { + void dateAndPlaceOfBirthTest() { // TODO: test dateAndPlaceOfBirth } /** Test the property 'customerIdentification' */ @Test - public void customerIdentificationTest() { + void customerIdentificationTest() { // TODO: test customerIdentification } /** Test the property 'countryOfResidence' */ @Test - public void countryOfResidenceTest() { + void countryOfResidenceTest() { // TODO: test countryOfResidence } /** Test the property 'customerNumber' */ @Test - public void customerNumberTest() { + 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 fa7961ba..45a5cb2f 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleOwnershipProof */ -public class TravelRuleOwnershipProofTest { +class TravelRuleOwnershipProofTest { private final TravelRuleOwnershipProof model = new TravelRuleOwnershipProof(); /** Model tests for TravelRuleOwnershipProof */ @Test - public void testTravelRuleOwnershipProof() { + void testTravelRuleOwnershipProof() { // TODO: test TravelRuleOwnershipProof } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'proof' */ @Test - public void proofTest() { + void proofTest() { // TODO: test proof } /** Test the property 'attestation' */ @Test - public void attestationTest() { + void attestationTest() { // TODO: test attestation } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'walletProvider' */ @Test - public void walletProviderTest() { + void walletProviderTest() { // TODO: test walletProvider } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'confirmed' */ @Test - public void confirmedTest() { + 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 index fcdb7282..ef111b5b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRulePerson */ -public class TravelRulePersonTest { +class TravelRulePersonTest { private final TravelRulePerson model = new TravelRulePerson(); /** Model tests for TravelRulePerson */ @Test - public void testTravelRulePerson() { + void testTravelRulePerson() { // TODO: test TravelRulePerson } /** Test the property 'naturalPerson' */ @Test - public void naturalPersonTest() { + void naturalPersonTest() { // TODO: test naturalPerson } /** Test the property 'legalPerson' */ @Test - public void legalPersonTest() { + 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 016e33ac..45866b9d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRulePiiIVMS */ -public class TravelRulePiiIVMSTest { +class TravelRulePiiIVMSTest { private final TravelRulePiiIVMS model = new TravelRulePiiIVMS(); /** Model tests for TravelRulePiiIVMS */ @Test - public void testTravelRulePiiIVMS() { + void testTravelRulePiiIVMS() { // TODO: test TravelRulePiiIVMS } /** Test the property 'originatorPersons' */ @Test - public void originatorPersonsTest() { + void originatorPersonsTest() { // TODO: test originatorPersons } /** Test the property 'beneficiaryPersons' */ @Test - public void beneficiaryPersonsTest() { + void beneficiaryPersonsTest() { // TODO: test beneficiaryPersons } /** Test the property 'accountNumber' */ @Test - public void accountNumberTest() { + void accountNumberTest() { // TODO: test accountNumber } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponseTest.java index b3f3fdc1..b194b2bc 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponseTest.java @@ -13,99 +13,99 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRulePolicyRuleResponse */ -public class TravelRulePolicyRuleResponseTest { +class TravelRulePolicyRuleResponseTest { private final TravelRulePolicyRuleResponse model = new TravelRulePolicyRuleResponse(); /** Model tests for TravelRulePolicyRuleResponse */ @Test - public void testTravelRulePolicyRuleResponse() { + void testTravelRulePolicyRuleResponse() { // TODO: test TravelRulePolicyRuleResponse } /** Test the property 'sourceType' */ @Test - public void sourceTypeTest() { + void sourceTypeTest() { // TODO: test sourceType } /** Test the property 'sourceSubType' */ @Test - public void sourceSubTypeTest() { + void sourceSubTypeTest() { // TODO: test sourceSubType } /** Test the property 'destType' */ @Test - public void destTypeTest() { + void destTypeTest() { // TODO: test destType } /** Test the property 'destSubType' */ @Test - public void destSubTypeTest() { + void destSubTypeTest() { // TODO: test destSubType } /** Test the property 'destAddress' */ @Test - public void destAddressTest() { + void destAddressTest() { // TODO: test destAddress } /** Test the property 'sourceId' */ @Test - public void sourceIdTest() { + void sourceIdTest() { // TODO: test sourceId } /** Test the property 'destId' */ @Test - public void destIdTest() { + void destIdTest() { // TODO: test destId } /** Test the property 'asset' */ @Test - public void assetTest() { + void assetTest() { // TODO: test asset } /** Test the property 'baseAsset' */ @Test - public void baseAssetTest() { + void baseAssetTest() { // TODO: test baseAsset } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'amountUSD' */ @Test - public void amountUSDTest() { + void amountUSDTest() { // TODO: test amountUSD } /** Test the property 'networkProtocol' */ @Test - public void networkProtocolTest() { + void networkProtocolTest() { // TODO: test networkProtocol } /** Test the property 'operation' */ @Test - public void operationTest() { + void operationTest() { // TODO: test operation } /** Test the property 'action' */ @Test - public void actionTest() { + void actionTest() { // TODO: test action } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfoTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfoTest.java index 0ad1cfee..fe819110 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfoTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleTransactionBlockchainInfo */ -public class TravelRuleTransactionBlockchainInfoTest { +class TravelRuleTransactionBlockchainInfoTest { private final TravelRuleTransactionBlockchainInfo model = new TravelRuleTransactionBlockchainInfo(); /** Model tests for TravelRuleTransactionBlockchainInfo */ @Test - public void testTravelRuleTransactionBlockchainInfo() { + void testTravelRuleTransactionBlockchainInfo() { // TODO: test TravelRuleTransactionBlockchainInfo } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } /** Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetailsTest.java index 010952f4..b280d36d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetailsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetailsTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleUpdateVASPDetails */ -public class TravelRuleUpdateVASPDetailsTest { +class TravelRuleUpdateVASPDetailsTest { private final TravelRuleUpdateVASPDetails model = new TravelRuleUpdateVASPDetails(); /** Model tests for TravelRuleUpdateVASPDetails */ @Test - public void testTravelRuleUpdateVASPDetails() { + void testTravelRuleUpdateVASPDetails() { // TODO: test TravelRuleUpdateVASPDetails } /** Test the property 'did' */ @Test - public void didTest() { + void didTest() { // TODO: test did } /** Test the property 'piiDidkey' */ @Test - public void piiDidkeyTest() { + void piiDidkeyTest() { // TODO: test piiDidkey } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleVASPTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleVASPTest.java index d777681d..da06ae3d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleVASPTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleVASPTest.java @@ -13,291 +13,291 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleVASP */ -public class TravelRuleVASPTest { +class TravelRuleVASPTest { private final TravelRuleVASP model = new TravelRuleVASP(); /** Model tests for TravelRuleVASP */ @Test - public void testTravelRuleVASP() { + void testTravelRuleVASP() { // TODO: test TravelRuleVASP } /** Test the property 'did' */ @Test - public void didTest() { + void didTest() { // TODO: test did } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'verificationStatus' */ @Test - public void verificationStatusTest() { + void verificationStatusTest() { // TODO: test verificationStatus } /** Test the property 'addressLine1' */ @Test - public void addressLine1Test() { + void addressLine1Test() { // TODO: test addressLine1 } /** Test the property 'addressLine2' */ @Test - public void addressLine2Test() { + void addressLine2Test() { // TODO: test addressLine2 } /** Test the property 'city' */ @Test - public void cityTest() { + void cityTest() { // TODO: test city } /** Test the property 'country' */ @Test - public void countryTest() { + void countryTest() { // TODO: test country } /** Test the property 'emailDomains' */ @Test - public void emailDomainsTest() { + void emailDomainsTest() { // TODO: test emailDomains } /** Test the property 'website' */ @Test - public void websiteTest() { + void websiteTest() { // TODO: test website } /** Test the property 'logo' */ @Test - public void logoTest() { + void logoTest() { // TODO: test logo } /** Test the property 'legalStructure' */ @Test - public void legalStructureTest() { + void legalStructureTest() { // TODO: test legalStructure } /** Test the property 'legalName' */ @Test - public void legalNameTest() { + void legalNameTest() { // TODO: test legalName } /** Test the property 'yearFounded' */ @Test - public void yearFoundedTest() { + void yearFoundedTest() { // TODO: test yearFounded } /** Test the property 'incorporationCountry' */ @Test - public void incorporationCountryTest() { + void incorporationCountryTest() { // TODO: test incorporationCountry } /** Test the property 'isRegulated' */ @Test - public void isRegulatedTest() { + void isRegulatedTest() { // TODO: test isRegulated } /** Test the property 'otherNames' */ @Test - public void otherNamesTest() { + void otherNamesTest() { // TODO: test otherNames } /** Test the property 'identificationType' */ @Test - public void identificationTypeTest() { + void identificationTypeTest() { // TODO: test identificationType } /** Test the property 'identificationCountry' */ @Test - public void identificationCountryTest() { + void identificationCountryTest() { // TODO: test identificationCountry } /** Test the property 'businessNumber' */ @Test - public void businessNumberTest() { + void businessNumberTest() { // TODO: test businessNumber } /** Test the property 'regulatoryAuthorities' */ @Test - public void regulatoryAuthoritiesTest() { + void regulatoryAuthoritiesTest() { // TODO: test regulatoryAuthorities } /** Test the property 'jurisdictions' */ @Test - public void jurisdictionsTest() { + void jurisdictionsTest() { // TODO: test jurisdictions } /** Test the property 'street' */ @Test - public void streetTest() { + void streetTest() { // TODO: test street } /** Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } /** Test the property 'unit' */ @Test - public void unitTest() { + void unitTest() { // TODO: test unit } /** Test the property 'postCode' */ @Test - public void postCodeTest() { + void postCodeTest() { // TODO: test postCode } /** Test the property 'state' */ @Test - public void stateTest() { + void stateTest() { // TODO: test state } /** Test the property 'certificates' */ @Test - public void certificatesTest() { + void certificatesTest() { // TODO: test certificates } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'travelRuleOPENVASP' */ @Test - public void travelRuleOPENVASPTest() { + void travelRuleOPENVASPTest() { // TODO: test travelRuleOPENVASP } /** Test the property 'travelRuleSYGNA' */ @Test - public void travelRuleSYGNATest() { + void travelRuleSYGNATest() { // TODO: test travelRuleSYGNA } /** Test the property 'travelRuleTRISA' */ @Test - public void travelRuleTRISATest() { + void travelRuleTRISATest() { // TODO: test travelRuleTRISA } /** Test the property 'travelRuleTRLIGHT' */ @Test - public void travelRuleTRLIGHTTest() { + void travelRuleTRLIGHTTest() { // TODO: test travelRuleTRLIGHT } /** Test the property 'travelRuleEMAIL' */ @Test - public void travelRuleEMAILTest() { + void travelRuleEMAILTest() { // TODO: test travelRuleEMAIL } /** Test the property 'travelRuleTRP' */ @Test - public void travelRuleTRPTest() { + void travelRuleTRPTest() { // TODO: test travelRuleTRP } /** Test the property 'travelRuleSHYFT' */ @Test - public void travelRuleSHYFTTest() { + void travelRuleSHYFTTest() { // TODO: test travelRuleSHYFT } /** Test the property 'travelRuleUSTRAVELRULEWG' */ @Test - public void travelRuleUSTRAVELRULEWGTest() { + void travelRuleUSTRAVELRULEWGTest() { // TODO: test travelRuleUSTRAVELRULEWG } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'createdBy' */ @Test - public void createdByTest() { + void createdByTest() { // TODO: test createdBy } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } /** Test the property 'updatedBy' */ @Test - public void updatedByTest() { + void updatedByTest() { // TODO: test updatedBy } /** Test the property 'lastSentDate' */ @Test - public void lastSentDateTest() { + void lastSentDateTest() { // TODO: test lastSentDate } /** Test the property 'lastReceivedDate' */ @Test - public void lastReceivedDateTest() { + void lastReceivedDateTest() { // TODO: test lastReceivedDate } /** Test the property 'documents' */ @Test - public void documentsTest() { + void documentsTest() { // TODO: test documents } /** Test the property 'hasAdmin' */ @Test - public void hasAdminTest() { + void hasAdminTest() { // TODO: test hasAdmin } /** Test the property 'isNotifiable' */ @Test - public void isNotifiableTest() { + void isNotifiableTest() { // TODO: test isNotifiable } /** Test the property 'issuers' */ @Test - public void issuersTest() { + void issuersTest() { // TODO: test issuers } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java index a8345f3e..f54af77d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateDateAndPlaceOfBirth */ -public class TravelRuleValidateDateAndPlaceOfBirthTest { +class TravelRuleValidateDateAndPlaceOfBirthTest { private final TravelRuleValidateDateAndPlaceOfBirth model = new TravelRuleValidateDateAndPlaceOfBirth(); /** Model tests for TravelRuleValidateDateAndPlaceOfBirth */ @Test - public void testTravelRuleValidateDateAndPlaceOfBirth() { + void testTravelRuleValidateDateAndPlaceOfBirth() { // TODO: test TravelRuleValidateDateAndPlaceOfBirth } /** Test the property 'dateOfBirth' */ @Test - public void dateOfBirthTest() { + void dateOfBirthTest() { // TODO: test dateOfBirth } /** Test the property 'placeOfBirth' */ @Test - public void placeOfBirthTest() { + 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 98cb52e5..68abcc1a 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java @@ -13,160 +13,160 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateFullTransactionRequest */ -public class TravelRuleValidateFullTransactionRequestTest { +class TravelRuleValidateFullTransactionRequestTest { private final TravelRuleValidateFullTransactionRequest model = new TravelRuleValidateFullTransactionRequest(); /** Model tests for TravelRuleValidateFullTransactionRequest */ @Test - public void testTravelRuleValidateFullTransactionRequest() { + void testTravelRuleValidateFullTransactionRequest() { // TODO: test TravelRuleValidateFullTransactionRequest } /** Test the property 'originatorVASPdid' */ @Test - public void originatorVASPdidTest() { + void originatorVASPdidTest() { // TODO: test originatorVASPdid } /** Test the property 'beneficiaryVASPdid' */ @Test - public void beneficiaryVASPdidTest() { + void beneficiaryVASPdidTest() { // TODO: test beneficiaryVASPdid } /** Test the property 'transactionAsset' */ @Test - public void transactionAssetTest() { + void transactionAssetTest() { // TODO: test transactionAsset } /** Test the property 'transactionAmount' */ @Test - public void transactionAmountTest() { + void transactionAmountTest() { // TODO: test transactionAmount } /** Test the property 'originatorVASPname' */ @Test - public void originatorVASPnameTest() { + void originatorVASPnameTest() { // TODO: test originatorVASPname } /** Test the property 'beneficiaryVASPname' */ @Test - public void beneficiaryVASPnameTest() { + void beneficiaryVASPnameTest() { // TODO: test beneficiaryVASPname } /** Test the property 'transactionBlockchainInfo' */ @Test - public void transactionBlockchainInfoTest() { + void transactionBlockchainInfoTest() { // TODO: test transactionBlockchainInfo } /** Test the property 'originator' */ @Test - public void originatorTest() { + void originatorTest() { // TODO: test originator } /** Test the property 'beneficiary' */ @Test - public void beneficiaryTest() { + void beneficiaryTest() { // TODO: test beneficiary } /** Test the property 'encrypted' */ @Test - public void encryptedTest() { + void encryptedTest() { // TODO: test encrypted } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'skipBeneficiaryDataValidation' */ @Test - public void skipBeneficiaryDataValidationTest() { + void skipBeneficiaryDataValidationTest() { // TODO: test skipBeneficiaryDataValidation } /** Test the property 'travelRuleBehavior' */ @Test - public void travelRuleBehaviorTest() { + void travelRuleBehaviorTest() { // TODO: test travelRuleBehavior } /** Test the property 'originatorRef' */ @Test - public void originatorRefTest() { + void originatorRefTest() { // TODO: test originatorRef } /** Test the property 'beneficiaryRef' */ @Test - public void beneficiaryRefTest() { + void beneficiaryRefTest() { // TODO: test beneficiaryRef } /** Test the property 'travelRuleBehaviorRef' */ @Test - public void travelRuleBehaviorRefTest() { + void travelRuleBehaviorRefTest() { // TODO: test travelRuleBehaviorRef } /** Test the property 'originatorProof' */ @Test - public void originatorProofTest() { + void originatorProofTest() { // TODO: test originatorProof } /** Test the property 'beneficiaryProof' */ @Test - public void beneficiaryProofTest() { + void beneficiaryProofTest() { // TODO: test beneficiaryProof } /** Test the property 'beneficiaryDid' */ @Test - public void beneficiaryDidTest() { + void beneficiaryDidTest() { // TODO: test beneficiaryDid } /** Test the property 'originatorDid' */ @Test - public void originatorDidTest() { + void originatorDidTest() { // TODO: test originatorDid } /** Test the property 'isNonCustodial' */ @Test - public void isNonCustodialTest() { + void isNonCustodialTest() { // TODO: test isNonCustodial } /** Test the property 'notificationEmail' */ @Test - public void notificationEmailTest() { + void notificationEmailTest() { // TODO: test notificationEmail } /** Test the property 'pii' */ @Test - public void piiTest() { + void piiTest() { // TODO: test pii } /** Test the property 'piiUrl' */ @Test - public void piiUrlTest() { + 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 index 1868332b..7574a539 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java @@ -13,112 +13,112 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateGeographicAddress */ -public class TravelRuleValidateGeographicAddressTest { +class TravelRuleValidateGeographicAddressTest { private final TravelRuleValidateGeographicAddress model = new TravelRuleValidateGeographicAddress(); /** Model tests for TravelRuleValidateGeographicAddress */ @Test - public void testTravelRuleValidateGeographicAddress() { + void testTravelRuleValidateGeographicAddress() { // TODO: test TravelRuleValidateGeographicAddress } /** Test the property 'streetName' */ @Test - public void streetNameTest() { + void streetNameTest() { // TODO: test streetName } /** Test the property 'townName' */ @Test - public void townNameTest() { + void townNameTest() { // TODO: test townName } /** Test the property 'country' */ @Test - public void countryTest() { + void countryTest() { // TODO: test country } /** Test the property 'buildingNumber' */ @Test - public void buildingNumberTest() { + void buildingNumberTest() { // TODO: test buildingNumber } /** Test the property 'postCode' */ @Test - public void postCodeTest() { + void postCodeTest() { // TODO: test postCode } /** Test the property 'addressType' */ @Test - public void addressTypeTest() { + void addressTypeTest() { // TODO: test addressType } /** Test the property 'department' */ @Test - public void departmentTest() { + void departmentTest() { // TODO: test department } /** Test the property 'subDepartment' */ @Test - public void subDepartmentTest() { + void subDepartmentTest() { // TODO: test subDepartment } /** Test the property 'buildingName' */ @Test - public void buildingNameTest() { + void buildingNameTest() { // TODO: test buildingName } /** Test the property 'floor' */ @Test - public void floorTest() { + void floorTest() { // TODO: test floor } /** Test the property 'postBox' */ @Test - public void postBoxTest() { + void postBoxTest() { // TODO: test postBox } /** Test the property 'room' */ @Test - public void roomTest() { + void roomTest() { // TODO: test room } /** Test the property 'townLocationName' */ @Test - public void townLocationNameTest() { + void townLocationNameTest() { // TODO: test townLocationName } /** Test the property 'districtName' */ @Test - public void districtNameTest() { + void districtNameTest() { // TODO: test districtName } /** Test the property 'countrySubDivision' */ @Test - public void countrySubDivisionTest() { + void countrySubDivisionTest() { // TODO: test countrySubDivision } /** Test the property 'addressLine' */ @Test - public void addressLineTest() { + 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 index c4916384..f3f084c5 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateLegalPersonNameIdentifier */ -public class TravelRuleValidateLegalPersonNameIdentifierTest { +class TravelRuleValidateLegalPersonNameIdentifierTest { private final TravelRuleValidateLegalPersonNameIdentifier model = new TravelRuleValidateLegalPersonNameIdentifier(); /** Model tests for TravelRuleValidateLegalPersonNameIdentifier */ @Test - public void testTravelRuleValidateLegalPersonNameIdentifier() { + void testTravelRuleValidateLegalPersonNameIdentifier() { // TODO: test TravelRuleValidateLegalPersonNameIdentifier } /** Test the property 'legalPersonName' */ @Test - public void legalPersonNameTest() { + void legalPersonNameTest() { // TODO: test legalPersonName } /** Test the property 'legalPersonNameIdentifierType' */ @Test - public void legalPersonNameIdentifierTypeTest() { + 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 index b0f3b318..32291c69 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateLegalPerson */ -public class TravelRuleValidateLegalPersonTest { +class TravelRuleValidateLegalPersonTest { private final TravelRuleValidateLegalPerson model = new TravelRuleValidateLegalPerson(); /** Model tests for TravelRuleValidateLegalPerson */ @Test - public void testTravelRuleValidateLegalPerson() { + void testTravelRuleValidateLegalPerson() { // TODO: test TravelRuleValidateLegalPerson } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'geographicAddress' */ @Test - public void geographicAddressTest() { + void geographicAddressTest() { // TODO: test geographicAddress } /** Test the property 'nationalIdentification' */ @Test - public void nationalIdentificationTest() { + void nationalIdentificationTest() { // TODO: test nationalIdentification } /** Test the property 'customerIdentification' */ @Test - public void customerIdentificationTest() { + void customerIdentificationTest() { // TODO: test customerIdentification } /** Test the property 'customerNumber' */ @Test - public void customerNumberTest() { + void customerNumberTest() { // TODO: test customerNumber } /** Test the property 'countryOfRegistration' */ @Test - public void countryOfRegistrationTest() { + 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 index dd914d15..afce71e3 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java @@ -13,40 +13,40 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateNationalIdentification */ -public class TravelRuleValidateNationalIdentificationTest { +class TravelRuleValidateNationalIdentificationTest { private final TravelRuleValidateNationalIdentification model = new TravelRuleValidateNationalIdentification(); /** Model tests for TravelRuleValidateNationalIdentification */ @Test - public void testTravelRuleValidateNationalIdentification() { + void testTravelRuleValidateNationalIdentification() { // TODO: test TravelRuleValidateNationalIdentification } /** Test the property 'countryOfIssue' */ @Test - public void countryOfIssueTest() { + void countryOfIssueTest() { // TODO: test countryOfIssue } /** Test the property 'nationalIdentifier' */ @Test - public void nationalIdentifierTest() { + void nationalIdentifierTest() { // TODO: test nationalIdentifier } /** Test the property 'nationalIdentifierType' */ @Test - public void nationalIdentifierTypeTest() { + void nationalIdentifierTypeTest() { // TODO: test nationalIdentifierType } /** Test the property 'registrationAuthority' */ @Test - public void registrationAuthorityTest() { + 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 index b9db136d..8a74cca7 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateNaturalNameIdentifier */ -public class TravelRuleValidateNaturalNameIdentifierTest { +class TravelRuleValidateNaturalNameIdentifierTest { private final TravelRuleValidateNaturalNameIdentifier model = new TravelRuleValidateNaturalNameIdentifier(); /** Model tests for TravelRuleValidateNaturalNameIdentifier */ @Test - public void testTravelRuleValidateNaturalNameIdentifier() { + void testTravelRuleValidateNaturalNameIdentifier() { // TODO: test TravelRuleValidateNaturalNameIdentifier } /** Test the property 'primaryIdentifier' */ @Test - public void primaryIdentifierTest() { + void primaryIdentifierTest() { // TODO: test primaryIdentifier } /** Test the property 'secondaryIdentifier' */ @Test - public void secondaryIdentifierTest() { + void secondaryIdentifierTest() { // TODO: test secondaryIdentifier } /** Test the property 'nameIdentifierType' */ @Test - public void nameIdentifierTypeTest() { + 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 index 3a751662..d6e50a9e 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java @@ -13,34 +13,34 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateNaturalPersonNameIdentifier */ -public class TravelRuleValidateNaturalPersonNameIdentifierTest { +class TravelRuleValidateNaturalPersonNameIdentifierTest { private final TravelRuleValidateNaturalPersonNameIdentifier model = new TravelRuleValidateNaturalPersonNameIdentifier(); /** Model tests for TravelRuleValidateNaturalPersonNameIdentifier */ @Test - public void testTravelRuleValidateNaturalPersonNameIdentifier() { + void testTravelRuleValidateNaturalPersonNameIdentifier() { // TODO: test TravelRuleValidateNaturalPersonNameIdentifier } /** Test the property 'nameIdentifier' */ @Test - public void nameIdentifierTest() { + void nameIdentifierTest() { // TODO: test nameIdentifier } /** Test the property 'localNameIdentifier' */ @Test - public void localNameIdentifierTest() { + void localNameIdentifierTest() { // TODO: test localNameIdentifier } /** Test the property 'phoneticNameIdentifier' */ @Test - public void phoneticNameIdentifierTest() { + 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 index 30327ccc..9680b53f 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateNaturalPerson */ -public class TravelRuleValidateNaturalPersonTest { +class TravelRuleValidateNaturalPersonTest { private final TravelRuleValidateNaturalPerson model = new TravelRuleValidateNaturalPerson(); /** Model tests for TravelRuleValidateNaturalPerson */ @Test - public void testTravelRuleValidateNaturalPerson() { + void testTravelRuleValidateNaturalPerson() { // TODO: test TravelRuleValidateNaturalPerson } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'geographicAddress' */ @Test - public void geographicAddressTest() { + void geographicAddressTest() { // TODO: test geographicAddress } /** Test the property 'nationalIdentification' */ @Test - public void nationalIdentificationTest() { + void nationalIdentificationTest() { // TODO: test nationalIdentification } /** Test the property 'dateAndPlaceOfBirth' */ @Test - public void dateAndPlaceOfBirthTest() { + void dateAndPlaceOfBirthTest() { // TODO: test dateAndPlaceOfBirth } /** Test the property 'customerIdentification' */ @Test - public void customerIdentificationTest() { + void customerIdentificationTest() { // TODO: test customerIdentification } /** Test the property 'countryOfResidence' */ @Test - public void countryOfResidenceTest() { + void countryOfResidenceTest() { // TODO: test countryOfResidence } /** Test the property 'customerNumber' */ @Test - public void customerNumberTest() { + 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 index 7f54b4fd..2dc44354 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidatePerson */ -public class TravelRuleValidatePersonTest { +class TravelRuleValidatePersonTest { private final TravelRuleValidatePerson model = new TravelRuleValidatePerson(); /** Model tests for TravelRuleValidatePerson */ @Test - public void testTravelRuleValidatePerson() { + void testTravelRuleValidatePerson() { // TODO: test TravelRuleValidatePerson } /** Test the property 'naturalPerson' */ @Test - public void naturalPersonTest() { + void naturalPersonTest() { // TODO: test naturalPerson } /** Test the property 'legalPerson' */ @Test - public void legalPersonTest() { + 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 index 1eedfdea..68f9b80e 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidatePiiIVMS */ -public class TravelRuleValidatePiiIVMSTest { +class TravelRuleValidatePiiIVMSTest { private final TravelRuleValidatePiiIVMS model = new TravelRuleValidatePiiIVMS(); /** Model tests for TravelRuleValidatePiiIVMS */ @Test - public void testTravelRuleValidatePiiIVMS() { + void testTravelRuleValidatePiiIVMS() { // TODO: test TravelRuleValidatePiiIVMS } /** Test the property 'originatorPersons' */ @Test - public void originatorPersonsTest() { + void originatorPersonsTest() { // TODO: test originatorPersons } /** Test the property 'beneficiaryPersons' */ @Test - public void beneficiaryPersonsTest() { + void beneficiaryPersonsTest() { // TODO: test beneficiaryPersons } /** Test the property 'accountNumber' */ @Test - public void accountNumberTest() { + 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 0fb3afe8..5c6518e4 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java @@ -13,88 +13,88 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateTransactionRequest */ -public class TravelRuleValidateTransactionRequestTest { +class TravelRuleValidateTransactionRequestTest { private final TravelRuleValidateTransactionRequest model = new TravelRuleValidateTransactionRequest(); /** Model tests for TravelRuleValidateTransactionRequest */ @Test - public void testTravelRuleValidateTransactionRequest() { + void testTravelRuleValidateTransactionRequest() { // TODO: test TravelRuleValidateTransactionRequest } /** Test the property 'transactionAsset' */ @Test - public void transactionAssetTest() { + void transactionAssetTest() { // TODO: test transactionAsset } /** Test the property 'destination' */ @Test - public void destinationTest() { + void destinationTest() { // TODO: test destination } /** Test the property 'transactionAmount' */ @Test - public void transactionAmountTest() { + void transactionAmountTest() { // TODO: test transactionAmount } /** Test the property 'transactionAssetDecimals' */ @Test - public void transactionAssetDecimalsTest() { + void transactionAssetDecimalsTest() { // TODO: test transactionAssetDecimals } /** Test the property 'originatorVASPdid' */ @Test - public void originatorVASPdidTest() { + void originatorVASPdidTest() { // TODO: test originatorVASPdid } /** Test the property 'originatorEqualsBeneficiary' */ @Test - public void originatorEqualsBeneficiaryTest() { + void originatorEqualsBeneficiaryTest() { // TODO: test originatorEqualsBeneficiary } /** Test the property 'travelRuleBehavior' */ @Test - public void travelRuleBehaviorTest() { + void travelRuleBehaviorTest() { // TODO: test travelRuleBehavior } /** Test the property 'beneficiaryVASPdid' */ @Test - public void beneficiaryVASPdidTest() { + void beneficiaryVASPdidTest() { // TODO: test beneficiaryVASPdid } /** Test the property 'beneficiaryVASPname' */ @Test - public void beneficiaryVASPnameTest() { + void beneficiaryVASPnameTest() { // TODO: test beneficiaryVASPname } /** Test the property 'beneficiaryName' */ @Test - public void beneficiaryNameTest() { + void beneficiaryNameTest() { // TODO: test beneficiaryName } /** Test the property 'beneficiaryAccountNumber' */ @Test - public void beneficiaryAccountNumberTest() { + void beneficiaryAccountNumberTest() { // TODO: test beneficiaryAccountNumber } /** Test the property 'beneficiaryAddress' */ @Test - public void beneficiaryAddressTest() { + void beneficiaryAddressTest() { // TODO: test beneficiaryAddress } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponseTest.java index e237ab88..b6a09f8d 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponseTest.java @@ -13,58 +13,58 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleValidateTransactionResponse */ -public class TravelRuleValidateTransactionResponseTest { +class TravelRuleValidateTransactionResponseTest { private final TravelRuleValidateTransactionResponse model = new TravelRuleValidateTransactionResponse(); /** Model tests for TravelRuleValidateTransactionResponse */ @Test - public void testTravelRuleValidateTransactionResponse() { + void testTravelRuleValidateTransactionResponse() { // TODO: test TravelRuleValidateTransactionResponse } /** Test the property 'isValid' */ @Test - public void isValidTest() { + void isValidTest() { // TODO: test isValid } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'beneficiaryAddressType' */ @Test - public void beneficiaryAddressTypeTest() { + void beneficiaryAddressTypeTest() { // TODO: test beneficiaryAddressType } /** Test the property 'addressSource' */ @Test - public void addressSourceTest() { + void addressSourceTest() { // TODO: test addressSource } /** Test the property 'beneficiaryVASPdid' */ @Test - public void beneficiaryVASPdidTest() { + void beneficiaryVASPdidTest() { // TODO: test beneficiaryVASPdid } /** Test the property 'beneficiaryVASPname' */ @Test - public void beneficiaryVASPnameTest() { + void beneficiaryVASPnameTest() { // TODO: test beneficiaryVASPname } /** Test the property 'warnings' */ @Test - public void warningsTest() { + void warningsTest() { // TODO: test warnings } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java index 4cbf0193..863f9fb7 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TravelRuleVaspForVault */ -public class TravelRuleVaspForVaultTest { +class TravelRuleVaspForVaultTest { private final TravelRuleVaspForVault model = new TravelRuleVaspForVault(); /** Model tests for TravelRuleVaspForVault */ @Test - public void testTravelRuleVaspForVault() { + void testTravelRuleVaspForVault() { // TODO: test TravelRuleVaspForVault } /** Test the property 'vaspDid' */ @Test - public void vaspDidTest() { + 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 index d557d8f8..05765fbd 100644 --- a/src/test/java/com/fireblocks/sdk/model/TxLogTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TxLogTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for TxLog */ -public class TxLogTest { +class TxLogTest { private final TxLog model = new TxLog(); /** Model tests for TxLog */ @Test - public void testTxLog() { + void testTxLog() { // TODO: test TxLog } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'topics' */ @Test - public void topicsTest() { + void topicsTest() { // TODO: test topics } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'blockNumber' */ @Test - public void blockNumberTest() { + void blockNumberTest() { // TODO: test blockNumber } /** Test the property 'transactionHash' */ @Test - public void transactionHashTest() { + void transactionHashTest() { // TODO: test transactionHash } /** Test the property 'transactionIndex' */ @Test - public void transactionIndexTest() { + void transactionIndexTest() { // TODO: test transactionIndex } /** Test the property 'blockHash' */ @Test - public void blockHashTest() { + void blockHashTest() { // TODO: test blockHash } /** Test the property 'logIndex' */ @Test - public void logIndexTest() { + void logIndexTest() { // TODO: test logIndex } /** Test the property 'removed' */ @Test - public void removedTest() { + void removedTest() { // TODO: test removed } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnfreezeTransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/UnfreezeTransactionResponseTest.java index 69b23287..63a83f1e 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnfreezeTransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnfreezeTransactionResponseTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UnfreezeTransactionResponse */ -public class UnfreezeTransactionResponseTest { +class UnfreezeTransactionResponseTest { private final UnfreezeTransactionResponse model = new UnfreezeTransactionResponse(); /** Model tests for UnfreezeTransactionResponse */ @Test - public void testUnfreezeTransactionResponse() { + void testUnfreezeTransactionResponse() { // TODO: test UnfreezeTransactionResponse } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java b/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java index 03528bce..4a1a8909 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UnmanagedWallet */ -public class UnmanagedWalletTest { +class UnmanagedWalletTest { private final UnmanagedWallet model = new UnmanagedWallet(); /** Model tests for UnmanagedWallet */ @Test - public void testUnmanagedWallet() { + void testUnmanagedWallet() { // TODO: test UnmanagedWallet } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'assets' */ @Test - public void assetsTest() { + void assetsTest() { // TODO: test assets } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnspentInputTest.java b/src/test/java/com/fireblocks/sdk/model/UnspentInputTest.java index f98753e1..15eb5a17 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnspentInputTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnspentInputTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UnspentInput */ -public class UnspentInputTest { +class UnspentInputTest { private final UnspentInput model = new UnspentInput(); /** Model tests for UnspentInput */ @Test - public void testUnspentInput() { + void testUnspentInput() { // TODO: test UnspentInput } /** Test the property 'txHash' */ @Test - public void txHashTest() { + void txHashTest() { // TODO: test txHash } /** Test the property 'index' */ @Test - public void indexTest() { + void indexTest() { // TODO: test index } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnspentInputsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/UnspentInputsResponseTest.java index f2c69c55..a0cbd96f 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnspentInputsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnspentInputsResponseTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UnspentInputsResponse */ -public class UnspentInputsResponseTest { +class UnspentInputsResponseTest { private final UnspentInputsResponse model = new UnspentInputsResponse(); /** Model tests for UnspentInputsResponse */ @Test - public void testUnspentInputsResponse() { + void testUnspentInputsResponse() { // TODO: test UnspentInputsResponse } /** Test the property 'input' */ @Test - public void inputTest() { + void inputTest() { // TODO: test input } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'confirmations' */ @Test - public void confirmationsTest() { + void confirmationsTest() { // TODO: test confirmations } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java index 069c7a42..27c72799 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UnstakeRequest */ -public class UnstakeRequestTest { +class UnstakeRequestTest { private final UnstakeRequest model = new UnstakeRequest(); /** Model tests for UnstakeRequest */ @Test - public void testUnstakeRequest() { + void testUnstakeRequest() { // TODO: test UnstakeRequest } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + void txNoteTest() { // TODO: test txNote } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } } diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java index 5b80f440..273b41dd 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateAssetUserMetadataRequest */ -public class UpdateAssetUserMetadataRequestTest { +class UpdateAssetUserMetadataRequestTest { private final UpdateAssetUserMetadataRequest model = new UpdateAssetUserMetadataRequest(); /** Model tests for UpdateAssetUserMetadataRequest */ @Test - public void testUpdateAssetUserMetadataRequest() { + void testUpdateAssetUserMetadataRequest() { // TODO: test UpdateAssetUserMetadataRequest } /** Test the property 'metadata' */ @Test - public void metadataTest() { + 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 index 4fb77445..79dc50f8 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateCallbackHandlerRequest */ -public class UpdateCallbackHandlerRequestTest { +class UpdateCallbackHandlerRequestTest { private final UpdateCallbackHandlerRequest model = new UpdateCallbackHandlerRequest(); /** Model tests for UpdateCallbackHandlerRequest */ @Test - public void testUpdateCallbackHandlerRequest() { + void testUpdateCallbackHandlerRequest() { // TODO: test UpdateCallbackHandlerRequest } /** Test the property 'callbackHandler' */ @Test - public void callbackHandlerTest() { + 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 index 3266b65d..337ebc8f 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateCallbackHandlerResponse */ -public class UpdateCallbackHandlerResponseTest { +class UpdateCallbackHandlerResponseTest { private final UpdateCallbackHandlerResponse model = new UpdateCallbackHandlerResponse(); /** Model tests for UpdateCallbackHandlerResponse */ @Test - public void testUpdateCallbackHandlerResponse() { + void testUpdateCallbackHandlerResponse() { // TODO: test UpdateCallbackHandlerResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'callbackHandler' */ @Test - public void callbackHandlerTest() { + 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 new file mode 100644 index 00000000..9d464b53 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 index 62090c80..366733e0 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateTagRequest */ -public class UpdateTagRequestTest { +class UpdateTagRequestTest { private final UpdateTagRequest model = new UpdateTagRequest(); /** Model tests for UpdateTagRequest */ @Test - public void testUpdateTagRequest() { + void testUpdateTagRequest() { // TODO: test UpdateTagRequest } /** Test the property 'label' */ @Test - public void labelTest() { + void labelTest() { // TODO: test label } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDtoTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDtoTest.java index 6e41dd29..b2a020e3 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateTokenOwnershipStatusDto */ -public class UpdateTokenOwnershipStatusDtoTest { +class UpdateTokenOwnershipStatusDtoTest { private final UpdateTokenOwnershipStatusDto model = new UpdateTokenOwnershipStatusDto(); /** Model tests for UpdateTokenOwnershipStatusDto */ @Test - public void testUpdateTokenOwnershipStatusDto() { + void testUpdateTokenOwnershipStatusDto() { // TODO: test UpdateTokenOwnershipStatusDto } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequestTest.java index 1191fd59..3dd281e4 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequestTest.java @@ -13,22 +13,22 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateVaultAccountAssetAddressRequest */ -public class UpdateVaultAccountAssetAddressRequestTest { +class UpdateVaultAccountAssetAddressRequestTest { private final UpdateVaultAccountAssetAddressRequest model = new UpdateVaultAccountAssetAddressRequest(); /** Model tests for UpdateVaultAccountAssetAddressRequest */ @Test - public void testUpdateVaultAccountAssetAddressRequest() { + void testUpdateVaultAccountAssetAddressRequest() { // TODO: test UpdateVaultAccountAssetAddressRequest } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountRequestTest.java index 67ba36d9..7a5a9985 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountRequestTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateVaultAccountRequest */ -public class UpdateVaultAccountRequestTest { +class UpdateVaultAccountRequestTest { private final UpdateVaultAccountRequest model = new UpdateVaultAccountRequest(); /** Model tests for UpdateVaultAccountRequest */ @Test - public void testUpdateVaultAccountRequest() { + void testUpdateVaultAccountRequest() { // TODO: test UpdateVaultAccountRequest } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java index ce3a244d..a8dfd930 100644 --- a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UpdateWebhookRequest */ -public class UpdateWebhookRequestTest { +class UpdateWebhookRequestTest { private final UpdateWebhookRequest model = new UpdateWebhookRequest(); /** Model tests for UpdateWebhookRequest */ @Test - public void testUpdateWebhookRequest() { + void testUpdateWebhookRequest() { // TODO: test UpdateWebhookRequest } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'events' */ @Test - public void eventsTest() { + void eventsTest() { // TODO: test events } /** Test the property 'enabled' */ @Test - public void enabledTest() { + 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 new file mode 100644 index 00000000..79c2db5a --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java @@ -0,0 +1,117 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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/UserGroupCreateRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UserGroupCreateRequestTest.java index 690840b3..914e855a 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserGroupCreateRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserGroupCreateRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserGroupCreateRequest */ -public class UserGroupCreateRequestTest { +class UserGroupCreateRequestTest { private final UserGroupCreateRequest model = new UserGroupCreateRequest(); /** Model tests for UserGroupCreateRequest */ @Test - public void testUserGroupCreateRequest() { + void testUserGroupCreateRequest() { // TODO: test UserGroupCreateRequest } /** Test the property 'groupName' */ @Test - public void groupNameTest() { + void groupNameTest() { // TODO: test groupName } /** Test the property 'memberIds' */ @Test - public void memberIdsTest() { + void memberIdsTest() { // TODO: test memberIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserGroupCreateResponseTest.java b/src/test/java/com/fireblocks/sdk/model/UserGroupCreateResponseTest.java index 2f1e426a..0f68d00a 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserGroupCreateResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserGroupCreateResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserGroupCreateResponse */ -public class UserGroupCreateResponseTest { +class UserGroupCreateResponseTest { private final UserGroupCreateResponse model = new UserGroupCreateResponse(); /** Model tests for UserGroupCreateResponse */ @Test - public void testUserGroupCreateResponse() { + void testUserGroupCreateResponse() { // TODO: test UserGroupCreateResponse } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'memberIds' */ @Test - public void memberIdsTest() { + void memberIdsTest() { // TODO: test memberIds } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserGroupResponseTest.java b/src/test/java/com/fireblocks/sdk/model/UserGroupResponseTest.java index 117cbcd4..53586455 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserGroupResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserGroupResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserGroupResponse */ -public class UserGroupResponseTest { +class UserGroupResponseTest { private final UserGroupResponse model = new UserGroupResponse(); /** Model tests for UserGroupResponse */ @Test - public void testUserGroupResponse() { + void testUserGroupResponse() { // TODO: test UserGroupResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'memberIds' */ @Test - public void memberIdsTest() { + void memberIdsTest() { // TODO: test memberIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserGroupUpdateRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UserGroupUpdateRequestTest.java index 57f91727..54fc46ae 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserGroupUpdateRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserGroupUpdateRequestTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserGroupUpdateRequest */ -public class UserGroupUpdateRequestTest { +class UserGroupUpdateRequestTest { private final UserGroupUpdateRequest model = new UserGroupUpdateRequest(); /** Model tests for UserGroupUpdateRequest */ @Test - public void testUserGroupUpdateRequest() { + void testUserGroupUpdateRequest() { // TODO: test UserGroupUpdateRequest } /** Test the property 'groupName' */ @Test - public void groupNameTest() { + void groupNameTest() { // TODO: test groupName } /** Test the property 'memberIds' */ @Test - public void memberIdsTest() { + void memberIdsTest() { // TODO: test memberIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserResponseTest.java b/src/test/java/com/fireblocks/sdk/model/UserResponseTest.java index 478ef3ca..adf62a2e 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserResponseTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserResponse */ -public class UserResponseTest { +class UserResponseTest { private final UserResponse model = new UserResponse(); /** Model tests for UserResponse */ @Test - public void testUserResponse() { + void testUserResponse() { // TODO: test UserResponse } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } /** Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } /** Test the property 'role' */ @Test - public void roleTest() { + void roleTest() { // TODO: test role } /** Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserRoleTest.java b/src/test/java/com/fireblocks/sdk/model/UserRoleTest.java index 31fe4e6c..0dcb7fd7 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserRoleTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserRoleTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserRole */ -public class UserRoleTest { +class UserRoleTest { /** Model tests for UserRole */ @Test - public void testUserRole() { + void testUserRole() { // TODO: test UserRole } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserStatusTest.java b/src/test/java/com/fireblocks/sdk/model/UserStatusTest.java index 2848c142..b7a0fdba 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserStatus */ -public class UserStatusTest { +class UserStatusTest { /** Model tests for UserStatus */ @Test - public void testUserStatus() { + void testUserStatus() { // TODO: test UserStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/UserTypeTest.java b/src/test/java/com/fireblocks/sdk/model/UserTypeTest.java index 8fbdc4c2..ad1e13c8 100644 --- a/src/test/java/com/fireblocks/sdk/model/UserTypeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UserTypeTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for UserType */ -public class UserTypeTest { +class UserTypeTest { /** Model tests for UserType */ @Test - public void testUserType() { + void testUserType() { // TODO: test UserType } } diff --git a/src/test/java/com/fireblocks/sdk/model/ValidateAddressResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ValidateAddressResponseTest.java index c94914cb..811f248d 100644 --- a/src/test/java/com/fireblocks/sdk/model/ValidateAddressResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ValidateAddressResponseTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ValidateAddressResponse */ -public class ValidateAddressResponseTest { +class ValidateAddressResponseTest { private final ValidateAddressResponse model = new ValidateAddressResponse(); /** Model tests for ValidateAddressResponse */ @Test - public void testValidateAddressResponse() { + void testValidateAddressResponse() { // TODO: test ValidateAddressResponse } /** Test the property 'isValid' */ @Test - public void isValidTest() { + void isValidTest() { // TODO: test isValid } /** Test the property 'isActive' */ @Test - public void isActiveTest() { + void isActiveTest() { // TODO: test isActive } /** Test the property 'requiresTag' */ @Test - public void requiresTagTest() { + void requiresTagTest() { // TODO: test requiresTag } } diff --git a/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java index 3bbb3b73..be30337c 100644 --- a/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ValidateLayerZeroChannelResponse */ -public class ValidateLayerZeroChannelResponseTest { +class ValidateLayerZeroChannelResponseTest { private final ValidateLayerZeroChannelResponse model = new ValidateLayerZeroChannelResponse(); /** Model tests for ValidateLayerZeroChannelResponse */ @Test - public void testValidateLayerZeroChannelResponse() { + void testValidateLayerZeroChannelResponse() { // TODO: test ValidateLayerZeroChannelResponse } /** Test the property 'correct' */ @Test - public void correctTest() { + void correctTest() { // TODO: test correct } /** Test the property 'errors' */ @Test - public void errorsTest() { + 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 index 682d671b..343cb1db 100644 --- a/src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ValidatedTransactionsForRescan */ -public class ValidatedTransactionsForRescanTest { +class ValidatedTransactionsForRescanTest { private final ValidatedTransactionsForRescan model = new ValidatedTransactionsForRescan(); /** Model tests for ValidatedTransactionsForRescan */ @Test - public void testValidatedTransactionsForRescan() { + void testValidatedTransactionsForRescan() { // TODO: test ValidatedTransactionsForRescan } /** Test the property 'baseAsset' */ @Test - public void baseAssetTest() { + void baseAssetTest() { // TODO: test baseAsset } /** Test the property 'networkProtocol' */ @Test - public void networkProtocolTest() { + void networkProtocolTest() { // TODO: test networkProtocol } /** Test the property 'txHashes' */ @Test - public void txHashesTest() { + void txHashesTest() { // TODO: test txHashes } } diff --git a/src/test/java/com/fireblocks/sdk/model/ValidationKeyDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ValidationKeyDtoTest.java index a87d110b..699f62d6 100644 --- a/src/test/java/com/fireblocks/sdk/model/ValidationKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ValidationKeyDtoTest.java @@ -13,45 +13,45 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for ValidationKeyDto */ -public class ValidationKeyDtoTest { +class ValidationKeyDtoTest { private final ValidationKeyDto model = new ValidationKeyDto(); /** Model tests for ValidationKeyDto */ @Test - public void testValidationKeyDto() { + void testValidationKeyDto() { // TODO: test ValidationKeyDto } /** Test the property 'keyId' */ @Test - public void keyIdTest() { + void keyIdTest() { // TODO: test keyId } /** Test the property 'publicKeyPem' */ @Test - public void publicKeyPemTest() { + void publicKeyPemTest() { // TODO: test publicKeyPem } /** Test the property 'daysTillExpired' */ @Test - public void daysTillExpiredTest() { + void daysTillExpiredTest() { // TODO: test daysTillExpired } /** Test the property 'enabled' */ @Test - public void enabledTest() { + void enabledTest() { // TODO: test enabled } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } } diff --git a/src/test/java/com/fireblocks/sdk/model/ValidatorTest.java b/src/test/java/com/fireblocks/sdk/model/ValidatorTest.java index 61bfe618..c82a25d0 100644 --- a/src/test/java/com/fireblocks/sdk/model/ValidatorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ValidatorTest.java @@ -13,33 +13,33 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Validator */ -public class ValidatorTest { +class ValidatorTest { private final Validator model = new Validator(); /** Model tests for Validator */ @Test - public void testValidator() { + void testValidator() { // TODO: test Validator } /** Test the property 'chainDescriptor' */ @Test - public void chainDescriptorTest() { + void chainDescriptorTest() { // TODO: test chainDescriptor } /** Test the property 'feePercent' */ @Test - public void feePercentTest() { + void feePercentTest() { // TODO: test feePercent } /** Test the property 'isPrivate' */ @Test - public void isPrivateTest() { + 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 814dbac2..d91789fa 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultAccount */ -public class VaultAccountTest { +class VaultAccountTest { private final VaultAccount model = new VaultAccount(); /** Model tests for VaultAccount */ @Test - public void testVaultAccount() { + void testVaultAccount() { // TODO: test VaultAccount } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'assets' */ @Test - public void assetsTest() { + void assetsTest() { // TODO: test assets } /** Test the property 'hiddenOnUI' */ @Test - public void hiddenOnUITest() { + void hiddenOnUITest() { // TODO: test hiddenOnUI } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'autoFuel' */ @Test - public void autoFuelTest() { + void autoFuelTest() { // TODO: test autoFuel } /** Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePagingTest.java b/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePagingTest.java index f1f39869..3dda8f60 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePagingTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePagingTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultAccountsPagedResponsePaging */ -public class VaultAccountsPagedResponsePagingTest { +class VaultAccountsPagedResponsePagingTest { private final VaultAccountsPagedResponsePaging model = new VaultAccountsPagedResponsePaging(); /** Model tests for VaultAccountsPagedResponsePaging */ @Test - public void testVaultAccountsPagedResponsePaging() { + void testVaultAccountsPagedResponsePaging() { // TODO: test VaultAccountsPagedResponsePaging } /** Test the property 'before' */ @Test - public void beforeTest() { + void beforeTest() { // TODO: test before } /** Test the property 'after' */ @Test - public void afterTest() { + void afterTest() { // TODO: test after } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponseTest.java index d472fcbe..b1f7a8e5 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponseTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultAccountsPagedResponse */ -public class VaultAccountsPagedResponseTest { +class VaultAccountsPagedResponseTest { private final VaultAccountsPagedResponse model = new VaultAccountsPagedResponse(); /** Model tests for VaultAccountsPagedResponse */ @Test - public void testVaultAccountsPagedResponse() { + void testVaultAccountsPagedResponse() { // TODO: test VaultAccountsPagedResponse } /** Test the property 'accounts' */ @Test - public void accountsTest() { + void accountsTest() { // TODO: test accounts } /** Test the property 'paging' */ @Test - public void pagingTest() { + void pagingTest() { // TODO: test paging } /** Test the property 'previousUrl' */ @Test - public void previousUrlTest() { + void previousUrlTest() { // TODO: test previousUrl } /** Test the property 'nextUrl' */ @Test - public void nextUrlTest() { + void nextUrlTest() { // TODO: test nextUrl } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java index bd7221ad..d4834482 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java @@ -13,28 +13,28 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultAccountsTagAttachmentsRequest */ -public class VaultAccountsTagAttachmentsRequestTest { +class VaultAccountsTagAttachmentsRequestTest { private final VaultAccountsTagAttachmentsRequest model = new VaultAccountsTagAttachmentsRequest(); /** Model tests for VaultAccountsTagAttachmentsRequest */ @Test - public void testVaultAccountsTagAttachmentsRequest() { + void testVaultAccountsTagAttachmentsRequest() { // TODO: test VaultAccountsTagAttachmentsRequest } /** Test the property 'tagIds' */ @Test - public void tagIdsTest() { + void tagIdsTest() { // TODO: test tagIds } /** Test the property 'vaultAccountIds' */ @Test - public void vaultAccountIdsTest() { + void vaultAccountIdsTest() { // TODO: test vaultAccountIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultActionStatusTest.java b/src/test/java/com/fireblocks/sdk/model/VaultActionStatusTest.java index 6218c02d..78a2ec3f 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultActionStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultActionStatusTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultActionStatus */ -public class VaultActionStatusTest { +class VaultActionStatusTest { private final VaultActionStatus model = new VaultActionStatus(); /** Model tests for VaultActionStatus */ @Test - public void testVaultActionStatus() { + void testVaultActionStatus() { // TODO: test VaultActionStatus } /** Test the property 'success' */ @Test - public void successTest() { + void successTest() { // TODO: test success } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultAssetTest.java b/src/test/java/com/fireblocks/sdk/model/VaultAssetTest.java index c5013ce4..43a45581 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultAssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultAssetTest.java @@ -13,117 +13,117 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultAsset */ -public class VaultAssetTest { +class VaultAssetTest { private final VaultAsset model = new VaultAsset(); /** Model tests for VaultAsset */ @Test - public void testVaultAsset() { + void testVaultAsset() { // TODO: test VaultAsset } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'total' */ @Test - public void totalTest() { + void totalTest() { // TODO: test total } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } /** Test the property 'available' */ @Test - public void availableTest() { + void availableTest() { // TODO: test available } /** Test the property 'pending' */ @Test - public void pendingTest() { + void pendingTest() { // TODO: test pending } /** Test the property 'frozen' */ @Test - public void frozenTest() { + void frozenTest() { // TODO: test frozen } /** Test the property 'lockedAmount' */ @Test - public void lockedAmountTest() { + void lockedAmountTest() { // TODO: test lockedAmount } /** Test the property 'staked' */ @Test - public void stakedTest() { + void stakedTest() { // TODO: test staked } /** Test the property 'totalStakedCPU' */ @Test - public void totalStakedCPUTest() { + void totalStakedCPUTest() { // TODO: test totalStakedCPU } /** Test the property 'totalStakedNetwork' */ @Test - public void totalStakedNetworkTest() { + void totalStakedNetworkTest() { // TODO: test totalStakedNetwork } /** Test the property 'selfStakedCPU' */ @Test - public void selfStakedCPUTest() { + void selfStakedCPUTest() { // TODO: test selfStakedCPU } /** Test the property 'selfStakedNetwork' */ @Test - public void selfStakedNetworkTest() { + void selfStakedNetworkTest() { // TODO: test selfStakedNetwork } /** Test the property 'pendingRefundCPU' */ @Test - public void pendingRefundCPUTest() { + void pendingRefundCPUTest() { // TODO: test pendingRefundCPU } /** Test the property 'pendingRefundNetwork' */ @Test - public void pendingRefundNetworkTest() { + void pendingRefundNetworkTest() { // TODO: test pendingRefundNetwork } /** Test the property 'blockHeight' */ @Test - public void blockHeightTest() { + void blockHeightTest() { // TODO: test blockHeight } /** Test the property 'blockHash' */ @Test - public void blockHashTest() { + void blockHashTest() { // TODO: test blockHash } /** Test the property 'rewardsInfo' */ @Test - public void rewardsInfoTest() { + void rewardsInfoTest() { // TODO: test rewardsInfo } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultWalletAddressTest.java b/src/test/java/com/fireblocks/sdk/model/VaultWalletAddressTest.java index eb94f70d..4f8b2099 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultWalletAddressTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultWalletAddressTest.java @@ -13,81 +13,81 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VaultWalletAddress */ -public class VaultWalletAddressTest { +class VaultWalletAddressTest { private final VaultWalletAddress model = new VaultWalletAddress(); /** Model tests for VaultWalletAddress */ @Test - public void testVaultWalletAddress() { + void testVaultWalletAddress() { // TODO: test VaultWalletAddress } /** Test the property 'assetId' */ @Test - public void assetIdTest() { + void assetIdTest() { // TODO: test assetId } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'customerRefId' */ @Test - public void customerRefIdTest() { + void customerRefIdTest() { // TODO: test customerRefId } /** Test the property 'addressFormat' */ @Test - public void addressFormatTest() { + void addressFormatTest() { // TODO: test addressFormat } /** Test the property 'legacyAddress' */ @Test - public void legacyAddressTest() { + void legacyAddressTest() { // TODO: test legacyAddress } /** Test the property 'enterpriseAddress' */ @Test - public void enterpriseAddressTest() { + void enterpriseAddressTest() { // TODO: test enterpriseAddress } /** Test the property 'bip44AddressIndex' */ @Test - public void bip44AddressIndexTest() { + void bip44AddressIndexTest() { // TODO: test bip44AddressIndex } /** Test the property 'userDefined' */ @Test - public void userDefinedTest() { + void userDefinedTest() { // TODO: test userDefined } } diff --git a/src/test/java/com/fireblocks/sdk/model/VendorDtoTest.java b/src/test/java/com/fireblocks/sdk/model/VendorDtoTest.java index b649f5e4..45d72c1f 100644 --- a/src/test/java/com/fireblocks/sdk/model/VendorDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VendorDtoTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for VendorDto */ -public class VendorDtoTest { +class VendorDtoTest { private final VendorDto model = new VendorDto(); /** Model tests for VendorDto */ @Test - public void testVendorDto() { + void testVendorDto() { // TODO: test VendorDto } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } } diff --git a/src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java b/src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java new file mode 100644 index 00000000..0e7c6f9f --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * 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 index 89da8e0d..5a490296 100644 --- a/src/test/java/com/fireblocks/sdk/model/VersionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VersionTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Version */ -public class VersionTest { +class VersionTest { private final Version model = new Version(); /** Model tests for Version */ @Test - public void testVersion() { + void testVersion() { // TODO: test Version } /** Test the property 'hash' */ @Test - public void hashTest() { + void hashTest() { // TODO: test hash } } diff --git a/src/test/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfoTest.java index 12840787..57b9a4c5 100644 --- a/src/test/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfoTest.java @@ -13,111 +13,111 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WalletAssetAdditionalInfo */ -public class WalletAssetAdditionalInfoTest { +class WalletAssetAdditionalInfoTest { private final WalletAssetAdditionalInfo model = new WalletAssetAdditionalInfo(); /** Model tests for WalletAssetAdditionalInfo */ @Test - public void testWalletAssetAdditionalInfo() { + void testWalletAssetAdditionalInfo() { // TODO: test WalletAssetAdditionalInfo } /** Test the property 'accountHolderGivenName' */ @Test - public void accountHolderGivenNameTest() { + void accountHolderGivenNameTest() { // TODO: test accountHolderGivenName } /** Test the property 'accountHolderSurname' */ @Test - public void accountHolderSurnameTest() { + void accountHolderSurnameTest() { // TODO: test accountHolderSurname } /** Test the property 'accountHolderCity' */ @Test - public void accountHolderCityTest() { + void accountHolderCityTest() { // TODO: test accountHolderCity } /** Test the property 'accountHolderCountry' */ @Test - public void accountHolderCountryTest() { + void accountHolderCountryTest() { // TODO: test accountHolderCountry } /** Test the property 'accountHolderAddress1' */ @Test - public void accountHolderAddress1Test() { + void accountHolderAddress1Test() { // TODO: test accountHolderAddress1 } /** Test the property 'accountHolderAddress2' */ @Test - public void accountHolderAddress2Test() { + void accountHolderAddress2Test() { // TODO: test accountHolderAddress2 } /** Test the property 'accountHolderDistrict' */ @Test - public void accountHolderDistrictTest() { + void accountHolderDistrictTest() { // TODO: test accountHolderDistrict } /** Test the property 'accountHolderPostalCode' */ @Test - public void accountHolderPostalCodeTest() { + void accountHolderPostalCodeTest() { // TODO: test accountHolderPostalCode } /** Test the property 'abaRoutingNumber' */ @Test - public void abaRoutingNumberTest() { + void abaRoutingNumberTest() { // TODO: test abaRoutingNumber } /** Test the property 'abaAccountNumber' */ @Test - public void abaAccountNumberTest() { + void abaAccountNumberTest() { // TODO: test abaAccountNumber } /** Test the property 'abaCountry' */ @Test - public void abaCountryTest() { + void abaCountryTest() { // TODO: test abaCountry } /** Test the property 'iban' */ @Test - public void ibanTest() { + void ibanTest() { // TODO: test iban } /** Test the property 'ibanCity' */ @Test - public void ibanCityTest() { + void ibanCityTest() { // TODO: test ibanCity } /** Test the property 'ibanCountry' */ @Test - public void ibanCountryTest() { + void ibanCountryTest() { // TODO: test ibanCountry } /** Test the property 'speiClabe' */ @Test - public void speiClabeTest() { + void speiClabeTest() { // TODO: test speiClabe } /** Test the property 'speiName' */ @Test - public void speiNameTest() { + void speiNameTest() { // TODO: test speiName } } diff --git a/src/test/java/com/fireblocks/sdk/model/WalletAssetTest.java b/src/test/java/com/fireblocks/sdk/model/WalletAssetTest.java index 832a0974..10cdd64c 100644 --- a/src/test/java/com/fireblocks/sdk/model/WalletAssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WalletAssetTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WalletAsset */ -public class WalletAssetTest { +class WalletAssetTest { private final WalletAsset model = new WalletAsset(); /** Model tests for WalletAsset */ @Test - public void testWalletAsset() { + void testWalletAsset() { // TODO: test WalletAsset } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'balance' */ @Test - public void balanceTest() { + void balanceTest() { // TODO: test balance } /** Test the property 'lockedAmount' */ @Test - public void lockedAmountTest() { + void lockedAmountTest() { // TODO: test lockedAmount } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'address' */ @Test - public void addressTest() { + void addressTest() { // TODO: test address } /** Test the property 'tag' */ @Test - public void tagTest() { + void tagTest() { // TODO: test tag } /** Test the property 'activationTime' */ @Test - public void activationTimeTest() { + void activationTimeTest() { // TODO: test activationTime } } diff --git a/src/test/java/com/fireblocks/sdk/model/WalletQuoteResponseTest.java b/src/test/java/com/fireblocks/sdk/model/WalletQuoteResponseTest.java index d632a5a3..74e9df20 100644 --- a/src/test/java/com/fireblocks/sdk/model/WalletQuoteResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WalletQuoteResponseTest.java @@ -13,87 +13,87 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WalletQuoteResponse */ -public class WalletQuoteResponseTest { +class WalletQuoteResponseTest { private final WalletQuoteResponse model = new WalletQuoteResponse(); /** Model tests for WalletQuoteResponse */ @Test - public void testWalletQuoteResponse() { + void testWalletQuoteResponse() { // TODO: test WalletQuoteResponse } /** Test the property 'protocol' */ @Test - public void protocolTest() { + void protocolTest() { // TODO: test protocol } /** Test the property 'inputAmount' */ @Test - public void inputAmountTest() { + void inputAmountTest() { // TODO: test inputAmount } /** Test the property 'inputAsset' */ @Test - public void inputAssetTest() { + void inputAssetTest() { // TODO: test inputAsset } /** Test the property 'slippageTolerance' */ @Test - public void slippageToleranceTest() { + void slippageToleranceTest() { // TODO: test slippageTolerance } /** Test the property 'outputMinAmount' */ @Test - public void outputMinAmountTest() { + void outputMinAmountTest() { // TODO: test outputMinAmount } /** Test the property 'outputMaxAmount' */ @Test - public void outputMaxAmountTest() { + void outputMaxAmountTest() { // TODO: test outputMaxAmount } /** Test the property 'outputAsset' */ @Test - public void outputAssetTest() { + void outputAssetTest() { // TODO: test outputAsset } /** Test the property 'additionalData' */ @Test - public void additionalDataTest() { + void additionalDataTest() { // TODO: test additionalData } /** Test the property 'providerQuoteId' */ @Test - public void providerQuoteIdTest() { + void providerQuoteIdTest() { // TODO: test providerQuoteId } /** Test the property 'expiredAt' */ @Test - public void expiredAtTest() { + void expiredAtTest() { // TODO: test expiredAt } /** Test the property 'requiredActions' */ @Test - public void requiredActionsTest() { + void requiredActionsTest() { // TODO: test requiredActions } /** Test the property 'estimatedFees' */ @Test - public void estimatedFeesTest() { + void estimatedFeesTest() { // TODO: test estimatedFees } } diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java index 69cf0127..2bb7be48 100644 --- a/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WebhookEvent */ -public class WebhookEventTest { +class WebhookEventTest { /** Model tests for WebhookEvent */ @Test - public void testWebhookEvent() { + 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 index 8111f274..438e9c29 100644 --- a/src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java @@ -13,27 +13,27 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WebhookPaginatedResponse */ -public class WebhookPaginatedResponseTest { +class WebhookPaginatedResponseTest { private final WebhookPaginatedResponse model = new WebhookPaginatedResponse(); /** Model tests for WebhookPaginatedResponse */ @Test - public void testWebhookPaginatedResponse() { + void testWebhookPaginatedResponse() { // TODO: test WebhookPaginatedResponse } /** Test the property 'data' */ @Test - public void dataTest() { + void dataTest() { // TODO: test data } /** Test the property 'next' */ @Test - public void nextTest() { + 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 index 4cb6e66b..a526d87a 100644 --- a/src/test/java/com/fireblocks/sdk/model/WebhookTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WebhookTest.java @@ -13,57 +13,57 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for Webhook */ -public class WebhookTest { +class WebhookTest { private final Webhook model = new Webhook(); /** Model tests for Webhook */ @Test - public void testWebhook() { + void testWebhook() { // TODO: test Webhook } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'url' */ @Test - public void urlTest() { + void urlTest() { // TODO: test url } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'events' */ @Test - public void eventsTest() { + void eventsTest() { // TODO: test events } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'createdAt' */ @Test - public void createdAtTest() { + void createdAtTest() { // TODO: test createdAt } /** Test the property 'updatedAt' */ @Test - public void updatedAtTest() { + void updatedAtTest() { // TODO: test updatedAt } } diff --git a/src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java b/src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java index e5ae3963..eb9e99c8 100644 --- a/src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java @@ -13,39 +13,39 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WithdrawRequest */ -public class WithdrawRequestTest { +class WithdrawRequestTest { private final WithdrawRequest model = new WithdrawRequest(); /** Model tests for WithdrawRequest */ @Test - public void testWithdrawRequest() { + void testWithdrawRequest() { // TODO: test WithdrawRequest } /** Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'txNote' */ @Test - public void txNoteTest() { + void txNoteTest() { // TODO: test txNote } } diff --git a/src/test/java/com/fireblocks/sdk/model/WorkflowConfigStatusTest.java b/src/test/java/com/fireblocks/sdk/model/WorkflowConfigStatusTest.java index 3408c4e3..99fadcc2 100644 --- a/src/test/java/com/fireblocks/sdk/model/WorkflowConfigStatusTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WorkflowConfigStatusTest.java @@ -13,13 +13,13 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WorkflowConfigStatus */ -public class WorkflowConfigStatusTest { +class WorkflowConfigStatusTest { /** Model tests for WorkflowConfigStatus */ @Test - public void testWorkflowConfigStatus() { + void testWorkflowConfigStatus() { // TODO: test WorkflowConfigStatus } } diff --git a/src/test/java/com/fireblocks/sdk/model/WorkflowConfigurationIdTest.java b/src/test/java/com/fireblocks/sdk/model/WorkflowConfigurationIdTest.java index 30b77bd8..fc0f66d1 100644 --- a/src/test/java/com/fireblocks/sdk/model/WorkflowConfigurationIdTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WorkflowConfigurationIdTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WorkflowConfigurationId */ -public class WorkflowConfigurationIdTest { +class WorkflowConfigurationIdTest { private final WorkflowConfigurationId model = new WorkflowConfigurationId(); /** Model tests for WorkflowConfigurationId */ @Test - public void testWorkflowConfigurationId() { + void testWorkflowConfigurationId() { // TODO: test WorkflowConfigurationId } /** Test the property 'configId' */ @Test - public void configIdTest() { + void configIdTest() { // TODO: test configId } } diff --git a/src/test/java/com/fireblocks/sdk/model/WorkflowExecutionOperationTest.java b/src/test/java/com/fireblocks/sdk/model/WorkflowExecutionOperationTest.java index d0acb9d3..38dd13e8 100644 --- a/src/test/java/com/fireblocks/sdk/model/WorkflowExecutionOperationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WorkflowExecutionOperationTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WorkflowExecutionOperation */ -public class WorkflowExecutionOperationTest { +class WorkflowExecutionOperationTest { private final WorkflowExecutionOperation model = new WorkflowExecutionOperation(); /** Model tests for WorkflowExecutionOperation */ @Test - public void testWorkflowExecutionOperation() { + void testWorkflowExecutionOperation() { // TODO: test WorkflowExecutionOperation } /** Test the property 'operationId' */ @Test - public void operationIdTest() { + void operationIdTest() { // TODO: test operationId } /** Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } /** Test the property 'operationType' */ @Test - public void operationTypeTest() { + void operationTypeTest() { // TODO: test operationType } /** Test the property 'validationFailure' */ @Test - public void validationFailureTest() { + void validationFailureTest() { // TODO: test validationFailure } /** Test the property 'execution' */ @Test - public void executionTest() { + void executionTest() { // TODO: test execution } /** Test the property 'preview' */ @Test - public void previewTest() { + void previewTest() { // TODO: test preview } } diff --git a/src/test/java/com/fireblocks/sdk/model/WriteAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/WriteAbiFunctionTest.java index 1c9be619..1e8e06f7 100644 --- a/src/test/java/com/fireblocks/sdk/model/WriteAbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WriteAbiFunctionTest.java @@ -13,51 +13,51 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WriteAbiFunction */ -public class WriteAbiFunctionTest { +class WriteAbiFunctionTest { private final WriteAbiFunction model = new WriteAbiFunction(); /** Model tests for WriteAbiFunction */ @Test - public void testWriteAbiFunction() { + void testWriteAbiFunction() { // TODO: test WriteAbiFunction } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } } diff --git a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java index e47be495..37b6b1ed 100644 --- a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java @@ -13,69 +13,69 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WriteCallFunctionDtoAbiFunction */ -public class WriteCallFunctionDtoAbiFunctionTest { +class WriteCallFunctionDtoAbiFunctionTest { private final WriteCallFunctionDtoAbiFunction model = new WriteCallFunctionDtoAbiFunction(); /** Model tests for WriteCallFunctionDtoAbiFunction */ @Test - public void testWriteCallFunctionDtoAbiFunction() { + void testWriteCallFunctionDtoAbiFunction() { // TODO: test WriteCallFunctionDtoAbiFunction } /** Test the property 'stateMutability' */ @Test - public void stateMutabilityTest() { + void stateMutabilityTest() { // TODO: test stateMutability } /** Test the property 'outputs' */ @Test - public void outputsTest() { + void outputsTest() { // TODO: test outputs } /** Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } /** Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } /** Test the property 'inputs' */ @Test - public void inputsTest() { + void inputsTest() { // TODO: test inputs } /** Test the property 'description' */ @Test - public void descriptionTest() { + void descriptionTest() { // TODO: test description } /** Test the property 'discriminator' */ @Test - public void discriminatorTest() { + void discriminatorTest() { // TODO: test discriminator } /** Test the property 'accounts' */ @Test - public void accountsTest() { + void accountsTest() { // TODO: test accounts } /** Test the property 'args' */ @Test - public void argsTest() { + 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 4ff984f9..ee1c999d 100644 --- a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java @@ -13,63 +13,63 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WriteCallFunctionDto */ -public class WriteCallFunctionDtoTest { +class WriteCallFunctionDtoTest { private final WriteCallFunctionDto model = new WriteCallFunctionDto(); /** Model tests for WriteCallFunctionDto */ @Test - public void testWriteCallFunctionDto() { + void testWriteCallFunctionDto() { // TODO: test WriteCallFunctionDto } /** Test the property 'vaultAccountId' */ @Test - public void vaultAccountIdTest() { + void vaultAccountIdTest() { // TODO: test vaultAccountId } /** Test the property 'abiFunction' */ @Test - public void abiFunctionTest() { + void abiFunctionTest() { // TODO: test abiFunction } /** Test the property 'amount' */ @Test - public void amountTest() { + void amountTest() { // TODO: test amount } /** Test the property 'feeLevel' */ @Test - public void feeLevelTest() { + void feeLevelTest() { // TODO: test feeLevel } /** Test the property 'fee' */ @Test - public void feeTest() { + void feeTest() { // TODO: test fee } /** Test the property 'note' */ @Test - public void noteTest() { + void noteTest() { // TODO: test note } /** Test the property 'useGasless' */ @Test - public void useGaslessTest() { + void useGaslessTest() { // TODO: test useGasless } /** Test the property 'externalId' */ @Test - public void externalIdTest() { + void externalIdTest() { // TODO: test externalId } } diff --git a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDtoTest.java index 3e2686b9..0b802a00 100644 --- a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDtoTest.java @@ -13,21 +13,21 @@ package com.fireblocks.sdk.model; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** Model tests for WriteCallFunctionResponseDto */ -public class WriteCallFunctionResponseDtoTest { +class WriteCallFunctionResponseDtoTest { private final WriteCallFunctionResponseDto model = new WriteCallFunctionResponseDto(); /** Model tests for WriteCallFunctionResponseDto */ @Test - public void testWriteCallFunctionResponseDto() { + void testWriteCallFunctionResponseDto() { // TODO: test WriteCallFunctionResponseDto } /** Test the property 'txId' */ @Test - public void txIdTest() { + void txIdTest() { // TODO: test txId } }