From dd47d6acd0ba75db0ce31af8f6254e107b3affc0 Mon Sep 17 00:00:00 2001 From: Carlos Amaro Date: Wed, 2 Oct 2024 12:16:22 +0100 Subject: [PATCH] refactor(cbdc-example): use oapi sdk instead of axios, cbdc-backend services, ui Signed-off-by: Carlos Amaro --- .eslintignore | 2 + .../Dockerfile | 2 - .../README.md | 27 +- .../openapitools.json | 7 + .../package.json | 30 +- .../process.env | 2 - .../src/main/go/generated/openapi}/.gitignore | 0 .../openapi}/.openapi-generator-ignore | 0 .../openapi/.openapi-generator/FILES | 53 + .../openapi/.openapi-generator/VERSION | 1 + .../main/go/generated/openapi}/.travis.yml | 0 .../src/main/go/generated/openapi/README.md | 129 + .../go/generated/openapi/api/openapi.yaml | 497 +++ .../main/go/generated/openapi/api_approve.go | 146 + .../openapi/api_get_amount_approved.go | 157 + .../go/generated/openapi/api_get_balance.go | 153 + .../openapi/api_get_sessions_references.go | 149 + .../src/main/go/generated/openapi/api_mint.go | 146 + .../main/go/generated/openapi/api_transact.go | 158 + .../main/go/generated/openapi/api_transfer.go | 146 + .../src/main/go/generated/openapi}/client.go | 78 +- .../go/generated/openapi}/configuration.go | 10 +- .../go/generated/openapi}/docs/APIError.md | 0 .../go/generated/openapi/docs/ApproveAPI.md | 73 + .../generated/openapi/docs/ApproveRequest.md | 93 + .../go/generated/openapi/docs/AssetType.md | 56 + .../generated/openapi/docs/BalanceResponse.md | 51 + .../openapi/docs/GetAmountApprovedAPI.md | 77 + .../generated/openapi/docs/GetBalanceAPI.md | 75 + .../openapi/docs/GetSessionsReferencesAPI.md | 75 + .../main/go/generated/openapi/docs/MintAPI.md | 73 + .../go/generated/openapi/docs/MintRequest.md | 93 + .../openapi/docs/SessionReference.md | 114 + .../generated/openapi/docs/StatusResponse.md | 77 + .../go/generated/openapi/docs/TransactAPI.md | 75 + .../generated/openapi/docs/TransactRequest.md | 135 + .../openapi/docs/TransactResponse.md | 22 +- .../go/generated/openapi/docs/TransferAPI.md | 73 + .../generated/openapi/docs/TransferRequest.md | 135 + .../main/go/generated/openapi}/git_push.sh | 2 +- .../src/main/go/generated/openapi/go.mod | 6 + .../src/main/go/generated/openapi}/go.sum | 0 .../go/generated/openapi}/model_api_error.go | 49 +- .../openapi/model_approve_request.go | 214 ++ .../go/generated/openapi/model_asset_type.go | 126 + .../openapi/model_balance_response.go | 158 + .../generated/openapi/model_mint_request.go | 214 ++ .../openapi/model_session_reference.go | 242 ++ .../openapi/model_status_response.go | 194 + .../openapi/model_transact_request.go | 270 ++ .../openapi}/model_transact_response.go | 87 +- .../openapi/model_transfer_request.go | 270 ++ .../main/go/generated/openapi}/response.go | 8 +- .../openapi/test/api_approve_test.go | 36 + .../test/api_get_amount_approved_test.go | 37 + .../openapi/test/api_get_balance_test.go | 37 + .../test/api_get_sessions_references_test.go | 37 + .../generated/openapi/test/api_mint_test.go | 36 + .../openapi/test/api_transact_test.go | 37 + .../openapi/test/api_transfer_test.go | 36 + .../src/main/go/generated/openapi}/utils.go | 24 +- .../src/main/json/openapi-bundled.json | 760 ++++ .../main/typescript/cbdc-bridging-app-cli.ts | 41 +- .../src/main/typescript/cbdc-bridging-app.ts | 58 +- .../openapi/typescript-axios/.gitignore | 4 + .../openapi/typescript-axios/.npmignore | 1 + .../.openapi-generator-ignore | 23 + .../typescript-axios/.openapi-generator/FILES | 8 + .../.openapi-generator/VERSION | 1 + .../generated/openapi/typescript-axios/api.ts | 1098 ++++++ .../openapi/typescript-axios/base.ts | 86 + .../openapi/typescript-axios/common.ts | 150 + .../openapi/typescript-axios/configuration.ts | 110 + .../openapi/typescript-axios/git_push.sh | 57 + .../openapi/typescript-axios/index.ts | 18 + .../cbdc-bridging-app-dummy-infrastructure.ts | 1203 ++++-- .../src/main/typescript/types.ts | 15 + .../web-services/approve-endpoint.ts | 105 + .../get-all-session-data-endpoints.ts | 100 + .../get-amount-approved-endpoint.ts | 98 + .../web-services/get-balance-endpoint.ts | 100 + .../typescript/web-services/mint-endpoint.ts | 105 + .../web-services/transact-endpoint.ts | 94 + .../web-services/transfer-endpoint.ts | 118 + .../src/main/yml/openapi-bundled.yml | 530 +++ .../src/main/yml/openapi.yml | 248 ++ .../src/main/yml/schemas.yml | 179 + .../src/ontology/besu-erc20-ontology.json | 0 .../src/ontology/fabric-erc20-ontology.json | 0 .../cbdc-app-setup-infrastucture.test.ts | 16 +- .../tsconfig.json | 4 +- .../.env | 3 +- .../README.md | 8 +- .../config-overrides.js | 9 + .../package.json | 55 +- .../src/App.tsx | 12 +- .../src/api-calls/besu-api.tsx | 158 - .../src/api-calls/common.tsx | 63 - .../src/api-calls/fabric-api.tsx | 178 - .../src/api-calls/gateway-api.tsx | 177 +- .../src/api-calls/ledgers-api.tsx | 146 + .../src/components/ActionsContainer.tsx | 43 +- .../src/components/ApprovalsTable.tsx | 2 +- .../src/components/Ledger.tsx | 45 +- .../src/components/SessionReferencesTable.tsx | 6 +- ...ermissionDialog.tsx => ApprovalDialog.tsx} | 24 +- .../dialogs/CrossChainTransferDialog.tsx | 72 +- .../src/components/dialogs/MintDialog.tsx | 22 +- .../src/components/dialogs/TransferDialog.tsx | 67 +- .../src/crypto-material/crypto-material.json | 40 - .../src/models/SessionReference.tsx | 23 - .../src/pages/HomePage.tsx | 27 +- .../tsconfig.json | 9 +- .../webpack.config.js | 17 + .../config_example.json | 256 ++ .../gateway-client/.openapi-generator/FILES | 125 - .../gateway-client/.openapi-generator/VERSION | 1 - .../go/generated/gateway-client/README.md | 186 - .../generated/gateway-client/api/openapi.yaml | 3225 ----------------- .../go/generated/gateway-client/api_admin.go | 793 ---- .../gateway-client/api_transaction.go | 609 ---- .../go/generated/gateway-client/client.go | 659 ---- .../generated/gateway-client/configuration.go | 225 -- .../generated/gateway-client/docs/Action.md | 186 - .../generated/gateway-client/docs/AdminApi.md | 410 --- .../go/generated/gateway-client/docs/Asset.md | 171 - .../gateway-client/docs/AuthzJwtClaim.md | 11 - .../gateway-client/docs/AuthzScope.md | 13 - .../gateway-client/docs/BridgeInfo.md | 56 - .../gateway-client/docs/Cancel200Response.md | 72 - .../gateway-client/docs/CancelRequest.md | 51 - .../gateway-client/docs/CancelResponse.md | 72 - .../go/generated/gateway-client/docs/Chain.md | 114 - .../gateway-client/docs/Chains1Inner.md | 114 - .../docs/Continue200Response.md | 51 - .../gateway-client/docs/ContinueRequest.md | 72 - .../gateway-client/docs/ContinueResponse.md | 51 - .../gateway-client/docs/CredentialProfile.md | 15 - .../gateway-client/docs/DLTProtocol.md | 13 - .../generated/gateway-client/docs/Estimate.md | 290 -- .../generated/gateway-client/docs/FeeCost.md | 160 - .../generated/gateway-client/docs/GasCost.md | 212 -- .../docs/GetAudit200Response.md | 108 - .../gateway-client/docs/GetAuditRequest.md | 108 - .../gateway-client/docs/GetAuditResponse.md | 108 - .../docs/GetHealthCheck200Response.md | 56 - .../docs/GetRoutes200Response.md | 51 - .../docs/GetRoutes200ResponseRoutesInner.md | 457 --- ...etRoutes200ResponseRoutesInnerFromToken.md | 265 -- ...0ResponseRoutesInnerFromTokenExtensions.md | 82 - ...InnerFromTokenExtensionsBridgeInfoValue.md | 56 - ...etRoutes200ResponseRoutesInnerInsurance.md | 82 - ...tRoutes200ResponseRoutesInnerStepsInner.md | 238 -- ...s200ResponseRoutesInnerStepsInnerAction.md | 186 - ...00ResponseRoutesInnerStepsInnerEstimate.md | 290 -- ...tesInnerStepsInnerEstimateFeeCostsInner.md | 160 - ...tesInnerStepsInnerEstimateGasCostsInner.md | 212 -- ...esponseRoutesInnerStepsInnerToolDetails.md | 93 - .../docs/HealthCheckResponse.md | 56 - .../gateway-client/docs/IncludedStep.md | 238 -- .../gateway-client/docs/Insurance.md | 82 - .../gateway-client/docs/IntegrationDetails.md | 93 - .../gateway-client/docs/Pause200Response.md | 51 - .../gateway-client/docs/PauseRequest.md | 82 - .../go/generated/gateway-client/docs/Route.md | 457 --- .../gateway-client/docs/RoutesResponse.md | 51 - .../gateway-client/docs/StatusRequest.md | 51 - .../gateway-client/docs/StatusResponse.md | 177 - .../go/generated/gateway-client/docs/Token.md | 265 -- .../docs/Transact200Response.md | 72 - .../docs/Transact200ResponseStatusResponse.md | 177 - ...0ResponseStatusResponseDestinationChain.md | 102 - ...act200ResponseStatusResponseOriginChain.md | 102 - .../docs/TransactDefaultResponse.md | 135 - .../gateway-client/docs/TransactRequest.md | 245 -- .../docs/TransactRequestSourceAsset.md | 171 - .../gateway-client/docs/TransactResponse.md | 72 - .../gateway-client/docs/TransactionApi.md | 283 -- .../main/go/generated/gateway-client/go.mod | 6 - .../generated/gateway-client/model_action.go | 310 -- .../generated/gateway-client/model_asset.go | 279 -- .../gateway-client/model_authz_jwt_claim.go | 109 - .../gateway-client/model_authz_scope.go | 111 - .../gateway-client/model_bridge_info.go | 127 - .../model_cancel_200_response.go | 145 - .../gateway-client/model_cancel_request.go | 118 - .../gateway-client/model_cancel_response.go | 145 - .../generated/gateway-client/model_chain.go | 202 -- .../gateway-client/model_chains_1_inner.go | 202 -- .../model_continue_200_response.go | 117 - .../gateway-client/model_continue_request.go | 146 - .../gateway-client/model_continue_response.go | 117 - .../model_credential_profile.go | 113 - .../gateway-client/model_dlt_protocol.go | 111 - .../gateway-client/model_estimate.go | 460 --- .../gateway-client/model_fee_cost.go | 275 -- .../gateway-client/model_gas_cost.go | 348 -- .../model_get_audit_200_response.go | 202 -- .../gateway-client/model_get_audit_request.go | 202 -- .../model_get_audit_response.go | 202 -- .../model_get_health_check_200_response.go | 126 - .../model_get_routes_200_response.go | 118 - ...el_get_routes_200_response_routes_inner.go | 689 ---- ...es_200_response_routes_inner_from_token.go | 414 --- ...onse_routes_inner_from_token_extensions.go | 163 - ...from_token_extensions_bridge_info_value.go | 127 - ...tes_200_response_routes_inner_insurance.go | 164 - ...s_200_response_routes_inner_steps_inner.go | 382 -- ...esponse_routes_inner_steps_inner_action.go | 310 -- ...ponse_routes_inner_steps_inner_estimate.go | 460 --- ...er_steps_inner_estimate_fee_costs_inner.go | 275 -- ...er_steps_inner_estimate_gas_costs_inner.go | 348 -- ...e_routes_inner_steps_inner_tool_details.go | 174 - .../model_health_check_response.go | 126 - .../gateway-client/model_included_step.go | 382 -- .../gateway-client/model_insurance.go | 164 - .../model_integration_details.go | 174 - .../model_pause_200_response.go | 117 - .../gateway-client/model_pause_request.go | 162 - .../gateway-client/model_pause_response.go | 117 - .../generated/gateway-client/model_route.go | 689 ---- .../gateway-client/model_routes_response.go | 118 - .../gateway-client/model_status_request.go | 118 - .../gateway-client/model_status_response.go | 280 -- .../generated/gateway-client/model_token.go | 414 --- .../model_transact_200_response.go | 145 - ...l_transact_200_response_status_response.go | 280 -- ...ponse_status_response_destination_chain.go | 164 - ...0_response_status_response_origin_chain.go | 164 - .../model_transact_default_response.go | 230 -- .../gateway-client/model_transact_request.go | 369 -- .../model_transact_request_source_asset.go | 279 -- .../go/generated/gateway-client/response.go | 47 - .../gateway-client/test/api_admin_test.go | 85 - .../test/api_transaction_test.go | 73 - .../main/go/generated/gateway-client/utils.go | 347 -- .../go-client/.openapi-generator/FILES | 37 - .../go-client/.openapi-generator/VERSION | 1 - .../generated/openapi/go-client/.travis.yml | 8 - .../go/generated/openapi/go-client/README.md | 155 - .../openapi/go-client/api/openapi.yaml | 1600 -------- .../openapi/go-client/api_default.go | 1762 --------- .../go/generated/openapi/go-client/go.mod | 6 - .../go/generated/openapi/go-client/go.sum | 11 - .../openapi/go-client/model_asset_profile.go | 513 --- .../go-client/model_client_v1_request.go | 684 ---- ...v1_request_client_gateway_configuration.go | 117 - .../model_commit_final_v1_request.go | 388 -- .../model_commit_final_v1_response.go | 378 -- .../model_commit_preparation_v1_request.go | 315 -- .../model_commit_preparation_v1_response.go | 315 -- .../go-client/model_credential_profile.go | 113 - .../openapi/go-client/model_history.go | 342 -- .../openapi/go-client/model_local_log.go | 279 -- .../model_lock_evidence_v1_request.go | 451 --- .../model_lock_evidence_v1_response.go | 325 -- .../go-client/model_payload_profile.go | 153 - .../model_recover_success_v1_message.go | 171 - .../model_recover_update_ack_v1_message.go | 198 - .../model_recover_update_v1_message.go | 171 - .../go-client/model_recover_v1_message.go | 315 -- .../model_rollback_ack_v1_message.go | 171 - .../go-client/model_rollback_v1_message.go | 225 -- .../openapi/go-client/model_satp_message.go | 522 --- .../model_satp_message_action_response.go | 162 - .../openapi/go-client/model_session_data.go | 2286 ------------ .../model_transfer_commence_v1_request.go | 496 --- .../model_transfer_commence_v1_response.go | 361 -- .../model_transfer_complete_v1_request.go | 352 -- ...odel_transfer_initialization_v1_request.go | 1035 ------ ...del_transfer_initialization_v1_response.go | 405 --- .../go-client/test/api_default_test.go | 224 -- .../src/main/json/openapi-blo-bundled.json | 8 +- .../transaction/transact-handler-service.ts | 12 +- .../src/main/typescript/core/session-utils.ts | 20 +- .../server/stage1-server-service.ts | 4 +- .../gateway-client/typescript-axios/api.ts | 2 +- .../src/main/yml/bol/openapi-blo-bundled.yml | 8 +- .../src/main/yml/bol/schemas.yml | 4 +- ...satp-end-to-end-transfer-1-gateway.test.ts | 4 +- ...to-end-transfer-2-gateways-openapi.test.ts | 4 +- ...atp-end-to-end-transfer-2-gateways.test.ts | 4 +- yarn.lock | 1218 +++++-- 283 files changed, 11882 insertions(+), 42867 deletions(-) create mode 100644 examples/cactus-example-cbdc-bridging-backend/openapitools.json rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/.gitignore (100%) rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/.openapi-generator-ignore (100%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/FILES create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/VERSION rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/.travis.yml (100%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/README.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api/openapi.yaml create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_approve.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_amount_approved.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_balance.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_sessions_references.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_mint.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transact.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transfer.go rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/client.go (89%) rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/configuration.go (97%) rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/docs/APIError.md (100%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/ApproveAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/ApproveRequest.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/AssetType.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/BalanceResponse.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetAmountApprovedAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetBalanceAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetSessionsReferencesAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintRequest.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/SessionReference.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/StatusResponse.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactRequest.md rename packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseResponse.md => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactResponse.md (59%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferAPI.md create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferRequest.md rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/git_push.sh (95%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/go.mod rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/go.sum (100%) rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/model_api_error.go (80%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_approve_request.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_asset_type.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_balance_response.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_mint_request.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_session_reference.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_status_response.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_request.go rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/model_transact_response.go (51%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transfer_request.go rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/response.go (90%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_approve_test.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_amount_approved_test.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_balance_test.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_sessions_references_test.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_mint_test.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transact_test.go create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transfer_test.go rename {packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client => examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi}/utils.go (93%) create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/json/openapi-bundled.json create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.gitignore create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.npmignore create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator-ignore create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/FILES create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/VERSION create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/api.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/base.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/common.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/configuration.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/git_push.sh create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/index.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/types.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/approve-endpoint.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-all-session-data-endpoints.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-amount-approved-endpoint.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-balance-endpoint.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/mint-endpoint.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transact-endpoint.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transfer-endpoint.ts create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi-bundled.yml create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi.yml create mode 100644 examples/cactus-example-cbdc-bridging-backend/src/main/yml/schemas.yml rename examples/{cactus-example-cbdc-bridging-frontend => cactus-example-cbdc-bridging-backend}/src/ontology/besu-erc20-ontology.json (100%) rename examples/{cactus-example-cbdc-bridging-frontend => cactus-example-cbdc-bridging-backend}/src/ontology/fabric-erc20-ontology.json (100%) create mode 100644 examples/cactus-example-cbdc-bridging-frontend/config-overrides.js delete mode 100644 examples/cactus-example-cbdc-bridging-frontend/src/api-calls/besu-api.tsx delete mode 100644 examples/cactus-example-cbdc-bridging-frontend/src/api-calls/common.tsx delete mode 100644 examples/cactus-example-cbdc-bridging-frontend/src/api-calls/fabric-api.tsx create mode 100644 examples/cactus-example-cbdc-bridging-frontend/src/api-calls/ledgers-api.tsx rename examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/{PermissionDialog.tsx => ApprovalDialog.tsx} (87%) delete mode 100644 examples/cactus-example-cbdc-bridging-frontend/src/crypto-material/crypto-material.json delete mode 100644 examples/cactus-example-cbdc-bridging-frontend/src/models/SessionReference.tsx create mode 100644 examples/cactus-example-cbdc-bridging-frontend/webpack.config.js create mode 100644 packages/cactus-plugin-satp-hermes/config_example.json delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.openapi-generator/FILES delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.openapi-generator/VERSION delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/README.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/api/openapi.yaml delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/api_admin.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/api_transaction.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/client.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/configuration.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Action.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AdminApi.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Asset.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzJwtClaim.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzScope.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/BridgeInfo.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Cancel200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelRequest.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chain.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chains1Inner.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Continue200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueRequest.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CredentialProfile.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/DLTProtocol.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Estimate.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/FeeCost.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GasCost.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAudit200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditRequest.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetHealthCheck200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInner.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromToken.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensions.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerInsurance.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInner.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerAction.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/HealthCheckResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IncludedStep.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Insurance.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IntegrationDetails.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Pause200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseRequest.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Route.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/RoutesResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusRequest.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Token.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200Response.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseDestinationChain.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseOriginChain.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactDefaultResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequest.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequestSourceAsset.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactResponse.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactionApi.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/go.mod delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_action.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_asset.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_jwt_claim.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_scope.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_bridge_info.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chain.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chains_1_inner.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_credential_profile.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_dlt_protocol.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_estimate.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_fee_cost.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_gas_cost.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_health_check_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions_bridge_info_value.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_insurance.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_action.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_fee_costs_inner.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_gas_costs_inner.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_tool_details.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_health_check_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_included_step.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_insurance.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_integration_details.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_route.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_routes_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_token.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_destination_chain.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_origin_chain.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_default_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request_source_asset.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_admin_test.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_transaction_test.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/utils.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.travis.yml delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/README.md delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api_default.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.mod delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.sum delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_history.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_local_log.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message_action_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_session_data.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go delete mode 100644 packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go diff --git a/.eslintignore b/.eslintignore index 2e15772a42..22380df21b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,6 +9,8 @@ weaver/common/protos-js/build/ **/src/main/typescript/generated/proto/** **/src/main/typescript/generated/wasm-pack/** +packages/cactus-plugin-satp-hermes/src/main/typescript/generated/* + examples/cactus-common-example-server/src/main/typescript/business-logic-plugin/BusinessLogicBase.ts examples/cactus-common-example-server/src/main/typescript/business-logic-plugin/LedgerOperation.ts examples/cactus-common-example-server/src/main/typescript/business-logic-plugin/app.ts diff --git a/examples/cactus-example-cbdc-bridging-backend/Dockerfile b/examples/cactus-example-cbdc-bridging-backend/Dockerfile index b6e51b97c6..9575957cfb 100644 --- a/examples/cactus-example-cbdc-bridging-backend/Dockerfile +++ b/examples/cactus-example-cbdc-bridging-backend/Dockerfile @@ -46,8 +46,6 @@ COPY ./examples/cactus-example-cbdc-bridging-backend/healthcheck.sh / ENV API_HOST=localhost ENV API_SERVER_1_PORT=4000 ENV API_SERVER_2_PORT=4100 -ENV API_HOST_FRONTEND=localhost -ENV API_PORT_FRONTEND=2000 ENV API_GATEWAY_1_BLO_PORT=4010 ENV API_GATEWAY_2_BLO_PORT=4110 ENV API_GATEWAY_1_CLIENT_PORT=3011 diff --git a/examples/cactus-example-cbdc-bridging-backend/README.md b/examples/cactus-example-cbdc-bridging-backend/README.md index c401469412..ed1a9523da 100644 --- a/examples/cactus-example-cbdc-bridging-backend/README.md +++ b/examples/cactus-example-cbdc-bridging-backend/README.md @@ -6,14 +6,14 @@ On the terminal, issue the following commands in the project root: -1. `npm run configure` -2. `npm run start:example-cbdc-bridging-app` +1. `yarn run configure` +2. `yarn run start:example-cbdc-bridging-app` Wait for the output to show the message `CbdcBridgingApp running...` In a second terminal run the following commands from the project root: 3. `cd examples/cactus-example-cbdc-bridging-backend` -4. `npm run test` +4. `yarn run test` ## Running the Example Application Locally @@ -21,16 +21,31 @@ In a second terminal run the following commands from the project root: On the terminal, issue the following commands: -1. `npm run configure` -2. `npm run start:example-cbdc-bridging-app` +1. `yarn run configure` +2. `yarn run start:example-cbdc-bridging-app` Wait for the output to show the message `CbdcBridgingApp running...` +## Running with a different configuration + +There is a `process.env` file where you can change the following variables: +``` +API_HOST=localhost // the path where the backend will be running +API_SERVER_1_PORT=4000 // port assign to the FabricConnectorApi +API_SERVER_2_PORT=4100 // port assign to the BesuConnectorApi +API_GATEWAY_1_BLO_PORT=4010 // port assign to the Gateway1's OpenApi Service +API_GATEWAY_2_BLO_PORT=4110 // port assign to the Gateway2's SATP Service +API_GATEWAY_1_CLIENT_PORT=3011 // port assign to the Gateway1's SATP Client Service +API_GATEWAY_2_CLIENT_PORT=3111 // port assign to the Gateway2's SATP Client Service +API_GATEWAY_1_SERVER_PORT=3010 // port assign to the Gateway1's SATP Server Service +API_GATEWAY_2_SERVER_PORT=3110 // port assign to the Gateway2's SATP Server Service +``` + ## Debugging the Example Application Locally On the terminal, issue the following commands (steps 1 to 6) and then perform the rest of the steps manually. -1. `npm run configure` +1. `yarn run configure` 2. Locate the `.vscode/template.launch.json` file 3. Within that file locate the entry named `"Example: CBDC Bridging Fabric-EVM App"` 4. Copy the VSCode debug definition object from 2) to your `.vscode/launch.json` file diff --git a/examples/cactus-example-cbdc-bridging-backend/openapitools.json b/examples/cactus-example-cbdc-bridging-backend/openapitools.json new file mode 100644 index 0000000000..2f4612ceda --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.8.0" + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/package.json b/examples/cactus-example-cbdc-bridging-backend/package.json index 63d308c6e5..73a3097b6f 100644 --- a/examples/cactus-example-cbdc-bridging-backend/package.json +++ b/examples/cactus-example-cbdc-bridging-backend/package.json @@ -28,12 +28,15 @@ "contributors": [ { "name": "Eduardo Vasques", - "email": "eduardovasques10@tecnico.ulisboa.pt", - "url": "https://example.com" + "email": "eduardovasques10@tecnico.ulisboa.pt" }, { "name": "AndrĂ© Augusto", "email": "andre.augusto@tecnico.ulisboa.pt" + }, + { + "name": "Carlos Amaro", + "email": "carlosrscamaro@tecnico.ulisboa.pt" } ], "main": "dist/lib/main/typescript/index.js", @@ -46,16 +49,24 @@ "scripts": { "build:dev:backend:postbuild": "mkdir -p ./dist/lib/fabric-contracts && cp -r ./src/fabric-contracts/* ./dist/lib/fabric-contracts/", "forge": "forge build ./src/solidity/main/*.sol --out ./src/solidity/main/generated", - "forge:all": "yarn run --top-level run-s 'forge' 'forge:test'", + "forge:all": "run-s 'forge' 'forge:test'", "forge:test": "forge build ./src/solidity/test/*.sol --out ./src/solidity/test/generated", "solidity": "hardhat compile", - "start": "node dist/lib/main/typescript/cbdc-bridging-app-cli.js dotenv_config_path=./process.env", + "start": "npx ts-node ./src/main/typescript/cbdc-bridging-app-cli.ts dotenv_config_path=./process.env", "test": "nyc cucumber-js ./src/test/typescript/cucumber/features/*.feature --require-module ts-node/register --require './src/test/typescript/cucumber/*/*.ts'", "watch": "npm-watch", "webpack": "npm-run-all webpack:dev", "webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web", "webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js", - "webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js" + "webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js", + "codegen": "run-p 'codegen:*'", + "codegen:openapi": "npm run generate-sdk", + "generate-sdk": "run-p 'generate-sdk:*'", + "generate-sdk:typescript-axios": "yarn bundle-openapi-yaml && yarn bundle-openapi-json && openapi-generator-cli generate -i ./src/main/yml/openapi-bundled.yml -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected --enable-post-process-file", + "generate-sdk:go": "openapi-generator-cli generate -i ./src/main/yml/openapi.yml -g go -o ./src/main/go/generated/openapi --additional-properties=packageName=generated,generateInterfaces=true,packageVersion=v0.0.1,moduleName=github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated --git-user-id hyperledger --git-repo-id cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated", + "bundle-openapi-yaml": "swagger-cli bundle ./src/main/yml/openapi.yml -o ./src/main/yml/openapi-bundled.yml -r -t yaml", + "bundle-openapi-json": "swagger-cli bundle ./src/main/yml/openapi.yml -o ./src/main/json/openapi-bundled.json -r -t json", + "lint:oapi": "vacuum lint -d -e ./src/main/yml/openapi-bundled.yml" }, "dependencies": { "@foundry-rs/hardhat-forge": "0.1.17", @@ -92,23 +103,28 @@ "typescript-optional": "2.0.1", "uuid": "9.0.1", "web3-core": "1.10.1", - "web3-utils": "1.10.1" + "web3-utils": "1.10.1", + "webpack": "^5.94.0" }, "devDependencies": { + "@apidevtools/swagger-cli": "4.0.4", "@types/crypto-js": "4.1.1", "@types/cucumber": "4.0.4", "@types/express": "5.0.0", "@types/express-jwt": "6.0.2", "@types/fs-extra": "9.0.13", "@types/node": "18.11.9", + "@types/swagger-ui-express": "4.1.6", "@types/uuid": "9.0.8", "cucumber": "5.0.3", "ethereum-abi-types-generator": "1.3.4", "hardhat": "2.17.2", "http-status-codes": "2.1.4", "jose": "4.15.5", + "npm-run-all": "4.1.5", "remix-tests": "0.1.34", - "ts-node": "7.0.1" + "swagger-cli": "4.0.4", + "ts-node": "10.9.2" }, "engines": { "node": ">=18", diff --git a/examples/cactus-example-cbdc-bridging-backend/process.env b/examples/cactus-example-cbdc-bridging-backend/process.env index ef94b13892..1e16235f2a 100644 --- a/examples/cactus-example-cbdc-bridging-backend/process.env +++ b/examples/cactus-example-cbdc-bridging-backend/process.env @@ -1,8 +1,6 @@ API_HOST=localhost API_SERVER_1_PORT=4000 API_SERVER_2_PORT=4100 -API_HOST_FRONTEND=localhost -API_PORT_FRONTEND=2000 API_GATEWAY_1_BLO_PORT=4010 API_GATEWAY_2_BLO_PORT=4110 API_GATEWAY_1_CLIENT_PORT=3011 diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.gitignore b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.gitignore similarity index 100% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.gitignore rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.gitignore diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.openapi-generator-ignore b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator-ignore similarity index 100% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.openapi-generator-ignore rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator-ignore diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/FILES b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/FILES new file mode 100644 index 0000000000..fd50dad55e --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/FILES @@ -0,0 +1,53 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_approve.go +api_get_amount_approved.go +api_get_balance.go +api_get_sessions_references.go +api_mint.go +api_transact.go +api_transfer.go +client.go +configuration.go +docs/APIError.md +docs/ApproveAPI.md +docs/ApproveRequest.md +docs/AssetType.md +docs/BalanceResponse.md +docs/GetAmountApprovedAPI.md +docs/GetBalanceAPI.md +docs/GetSessionsReferencesAPI.md +docs/MintAPI.md +docs/MintRequest.md +docs/SessionReference.md +docs/StatusResponse.md +docs/TransactAPI.md +docs/TransactRequest.md +docs/TransactResponse.md +docs/TransferAPI.md +docs/TransferRequest.md +git_push.sh +go.mod +go.sum +model_api_error.go +model_approve_request.go +model_asset_type.go +model_balance_response.go +model_mint_request.go +model_session_reference.go +model_status_response.go +model_transact_request.go +model_transact_response.go +model_transfer_request.go +response.go +test/api_approve_test.go +test/api_get_amount_approved_test.go +test/api_get_balance_test.go +test/api_get_sessions_references_test.go +test/api_mint_test.go +test/api_transact_test.go +test/api_transfer_test.go +utils.go diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/VERSION b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/VERSION new file mode 100644 index 0000000000..09a6d30847 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.travis.yml b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.travis.yml similarity index 100% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/.travis.yml rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/.travis.yml diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/README.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/README.md new file mode 100644 index 0000000000..f8f640db66 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/README.md @@ -0,0 +1,129 @@ +# Go API client for generated + +Cactus-Example + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.0.2 +- Package version: v0.0.1 +- Generator version: 7.8.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import generated "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `generated.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), generated.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `generated.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), generated.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `generated.ContextOperationServerIndices` and `generated.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), generated.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), generated.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ApproveAPI* | [**Approve**](docs/ApproveAPI.md#approve) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens | Submit a transaction intent +*GetAmountApprovedAPI* | [**GetAmountApproved**](docs/GetAmountApprovedAPI.md#getamountapproved) | **Get** /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved | Get the amount approved for a transaction +*GetBalanceAPI* | [**GetBalance**](docs/GetBalanceAPI.md#getbalance) | **Get** /api/v1/@hyperledger/cactus-example-cbdc/get-balance | +*GetSessionsReferencesAPI* | [**GetSessionsReferences**](docs/GetSessionsReferencesAPI.md#getsessionsreferences) | **Get** /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references | Get SATP current sessions data +*MintAPI* | [**Mint**](docs/MintAPI.md#mint) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens | Submit a transaction intent +*TransactAPI* | [**Transact**](docs/TransactAPI.md#transact) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/transact | Submit a transaction intent +*TransferAPI* | [**Transfer**](docs/TransferAPI.md#transfer) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens | Submit a transaction intent + + +## Documentation For Models + + - [APIError](docs/APIError.md) + - [ApproveRequest](docs/ApproveRequest.md) + - [AssetType](docs/AssetType.md) + - [BalanceResponse](docs/BalanceResponse.md) + - [MintRequest](docs/MintRequest.md) + - [SessionReference](docs/SessionReference.md) + - [StatusResponse](docs/StatusResponse.md) + - [TransactRequest](docs/TransactRequest.md) + - [TransactResponse](docs/TransactResponse.md) + - [TransferRequest](docs/TransferRequest.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api/openapi.yaml b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api/openapi.yaml new file mode 100644 index 0000000000..be0f773aa7 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api/openapi.yaml @@ -0,0 +1,497 @@ +openapi: 3.0.3 +info: + contact: + name: Hyperledger Cacti + description: | + Cactus-Example + title: CBDC-example backend API + version: 0.0.2 + x-logo: + altText: Cacti logo + backgroundColor: '#fafafa' + url: https://github.com/hyperledger/cacti/blob/main/images/HL_Cacti_Logo_Color.png +servers: +- url: / +tags: +- description: API endpoints for interacting with blockchains via gateways + name: transaction +- description: API endpoints for fetching information on SATP sessions + name: admin +paths: + /api/v1/@hyperledger/cactus-example-cbdc/transact: + post: + description: Allows users to queue intents for transactions based on specified + parameters. + operationId: Transact + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransactRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TransactResponse' + description: Transaction successfully queued + default: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError' + description: An error occurred + summary: Submit a transaction intent + tags: + - transact + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/transact + /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references: + get: + description: Retrieve the status of a SATP sessions of a gateway + operationId: GetSessionsReferences + parameters: + - description: Unique identifier for the session. + explode: true + in: query + name: Ledger + required: false + schema: + enum: + - FABRIC + - BESU + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SessionsReferencesResponse' + description: OK + "400": + description: Bad request + "404": + description: Transaction not found + "500": + description: Internal server error + summary: Get SATP current sessions data + tags: + - get-sessions-references + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references + /api/v1/@hyperledger/cactus-example-cbdc/get-balance: + get: + operationId: GetBalance + parameters: + - explode: true + in: query + name: user + required: false + schema: + type: string + style: form + - explode: true + in: query + name: chain + required: false + schema: + enum: + - FABRIC + - BESU + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceResponse' + description: OK + "400": + description: Bad request + "404": + description: Transaction not found + "500": + description: Internal server error + tags: + - get-balance + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-balance + /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens: + post: + description: Allows users to queue intents for transactions based on specified + parameters. + operationId: Mint + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MintRequest' + required: true + responses: + "200": + description: Transaction successfully queued + "400": + description: Bad request + "404": + description: Transaction not found + "500": + description: Internal server error + default: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError' + description: An error occurred + summary: Submit a transaction intent + tags: + - mint + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens + /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens: + post: + description: Approves a certain amount to be transferred from the user's account + by the bridge. + operationId: Approve + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ApproveRequest' + required: true + responses: + "200": + description: Transaction successfully queued + "400": + description: Bad request + "404": + description: Transaction not found + "500": + description: Internal server error + default: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError' + description: An error occurred + summary: Submit a transaction intent + tags: + - approve + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens + /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved: + get: + description: Get the amount approved for a transaction + operationId: GetAmountApproved + parameters: + - explode: true + in: query + name: user + required: false + schema: + type: string + style: form + - explode: true + in: query + name: chain + required: false + schema: + enum: + - FABRIC + - BESU + type: string + style: form + responses: + "200": + content: + application/json: + schema: + example: "100" + type: string + description: OK + "400": + description: Bad request + "404": + description: Transaction not found + "500": + description: Internal server error + summary: Get the amount approved for a transaction + tags: + - get-amount-approved + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved + /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens: + post: + description: Allows users to queue intents for transactions based on specified + parameters. + operationId: Transfer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferRequest' + required: true + responses: + "200": + description: Transaction successfully queued + "400": + description: Bad request + "404": + description: Transaction not found + "500": + description: Internal server error + default: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError' + description: An error occurred + summary: Submit a transaction intent + tags: + - transfer + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens +components: + schemas: + TransactRequest: + description: "Request schema for initiating a transaction. Includes details\ + \ such as the transaction context, mode (data or transfer), payload, and information\ + \ about the source and receiver DLT networks." + example: + sourceChain: + assetType: FABRIC + amount: "100" + receiver: user2 + sender: user1 + receiverChain: + assetType: FABRIC + properties: + sender: + example: user1 + type: string + receiver: + example: user2 + type: string + sourceChain: + $ref: '#/components/schemas/AssetType' + receiverChain: + $ref: '#/components/schemas/AssetType' + amount: + example: "100" + type: string + required: + - amount + - receiver + - receiverChain + - sender + - sourceChain + type: object + AssetType: + description: Enum for the type of asset being transferred. + example: + assetType: FABRIC + properties: + assetType: + enum: + - FABRIC + - BESU + type: string + type: object + TransactResponse: + description: Response schema for a transaction request. + example: + statusResponse: + sessionID: 123e4567-e89b-12d3-a456-426614174000 + status: NOT_FOUND + properties: + statusResponse: + $ref: '#/components/schemas/StatusResponse' + required: + - statusResponse + type: object + StatusResponse: + description: Response schema for a transaction status request. + example: + sessionID: 123e4567-e89b-12d3-a456-426614174000 + status: NOT_FOUND + properties: + sessionID: + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + status: + enum: + - NOT_FOUND + - INVALID + - PENDING + - DONE + - FAILED + type: string + required: + - status + type: object + APIError: + description: An Error + example: + code: 16384 + type: bad-request + message: Oops there's been an internal error handling + status: 500 + timestamp: 2021-07-21T17:32:28Z + properties: + type: + description: HTTP error type + example: bad-request + type: string + code: + description: Numeric error code + example: 16384 + type: integer + status: + description: HTTP status of the error + example: 500 + type: integer + message: + description: Long error description + example: Oops there's been an internal error handling + type: string + timestamp: + description: Timestamp of the error + example: 2021-07-21T17:32:28Z + type: string + required: + - code + - message + - status + - timestamp + - type + type: object + x-category: response + x-go-type: ApiError + x-go-name: ApiError + SessionsReferencesResponse: + description: Response schema for a transaction status request. + items: + $ref: '#/components/schemas/SessionReference' + type: array + SessionReference: + example: + receiverLedger: receiverLedger + id: 123e4567-e89b-12d3-a456-426614174000 + sourceLedger: sourceLedger + status: status + properties: + id: + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + status: + type: string + sourceLedger: + type: string + receiverLedger: + type: string + required: + - id + - receiverLedger + - sourceLedger + - status + type: object + BalanceResponse: + description: Response schema for an amount request. + example: + amount: "100" + properties: + amount: + example: "100" + type: string + required: + - amount + type: object + MintRequest: + description: Request schema for minting an asset. + example: + ledger: + assetType: FABRIC + amount: "100" + user: user1 + properties: + user: + example: user1 + type: string + amount: + example: "100" + type: string + ledger: + $ref: '#/components/schemas/AssetType' + required: + - amount + - ledger + - user + type: object + ApproveRequest: + description: Request schema for approving a transaction. + example: + ledger: + assetType: FABRIC + amount: "100" + user: user1 + properties: + user: + example: user1 + type: string + amount: + example: "100" + type: string + ledger: + $ref: '#/components/schemas/AssetType' + required: + - amount + - ledger + - user + type: object + TransferRequest: + description: Request schema for transferring an asset. + example: + sourceChain: + assetType: FABRIC + amount: "100" + receiverChain: + assetType: FABRIC + from: user1 + to: user2 + properties: + from: + example: user1 + type: string + to: + example: user2 + type: string + sourceChain: + $ref: '#/components/schemas/AssetType' + receiverChain: + $ref: '#/components/schemas/AssetType' + amount: + example: "100" + type: string + required: + - amount + - from + - receiverChain + - sourceChain + - to + type: object diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_approve.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_approve.go new file mode 100644 index 0000000000..4d5385f513 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_approve.go @@ -0,0 +1,146 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type ApproveAPI interface { + + /* + Approve Submit a transaction intent + + Approves a certain amount to be transferred from the user's account by the bridge. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiApproveRequest + */ + Approve(ctx context.Context) ApiApproveRequest + + // ApproveExecute executes the request + ApproveExecute(r ApiApproveRequest) (*http.Response, error) +} + +// ApproveAPIService ApproveAPI service +type ApproveAPIService service + +type ApiApproveRequest struct { + ctx context.Context + ApiService ApproveAPI + approveRequest *ApproveRequest +} + +func (r ApiApproveRequest) ApproveRequest(approveRequest ApproveRequest) ApiApproveRequest { + r.approveRequest = &approveRequest + return r +} + +func (r ApiApproveRequest) Execute() (*http.Response, error) { + return r.ApiService.ApproveExecute(r) +} + +/* +Approve Submit a transaction intent + +Approves a certain amount to be transferred from the user's account by the bridge. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiApproveRequest +*/ +func (a *ApproveAPIService) Approve(ctx context.Context) ApiApproveRequest { + return ApiApproveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ApproveAPIService) ApproveExecute(r ApiApproveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApproveAPIService.Approve") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.approveRequest == nil { + return nil, reportError("approveRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.approveRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_amount_approved.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_amount_approved.go new file mode 100644 index 0000000000..2758f8d1be --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_amount_approved.go @@ -0,0 +1,157 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type GetAmountApprovedAPI interface { + + /* + GetAmountApproved Get the amount approved for a transaction + + Get the amount approved for a transaction + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAmountApprovedRequest + */ + GetAmountApproved(ctx context.Context) ApiGetAmountApprovedRequest + + // GetAmountApprovedExecute executes the request + // @return string + GetAmountApprovedExecute(r ApiGetAmountApprovedRequest) (string, *http.Response, error) +} + +// GetAmountApprovedAPIService GetAmountApprovedAPI service +type GetAmountApprovedAPIService service + +type ApiGetAmountApprovedRequest struct { + ctx context.Context + ApiService GetAmountApprovedAPI + user *string + chain *string +} + +func (r ApiGetAmountApprovedRequest) User(user string) ApiGetAmountApprovedRequest { + r.user = &user + return r +} + +func (r ApiGetAmountApprovedRequest) Chain(chain string) ApiGetAmountApprovedRequest { + r.chain = &chain + return r +} + +func (r ApiGetAmountApprovedRequest) Execute() (string, *http.Response, error) { + return r.ApiService.GetAmountApprovedExecute(r) +} + +/* +GetAmountApproved Get the amount approved for a transaction + +Get the amount approved for a transaction + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAmountApprovedRequest +*/ +func (a *GetAmountApprovedAPIService) GetAmountApproved(ctx context.Context) ApiGetAmountApprovedRequest { + return ApiGetAmountApprovedRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *GetAmountApprovedAPIService) GetAmountApprovedExecute(r ApiGetAmountApprovedRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GetAmountApprovedAPIService.GetAmountApproved") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.user != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", r.user, "form", "") + } + if r.chain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "chain", r.chain, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_balance.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_balance.go new file mode 100644 index 0000000000..44b8a93815 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_balance.go @@ -0,0 +1,153 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type GetBalanceAPI interface { + + /* + GetBalance Method for GetBalance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBalanceRequest + */ + GetBalance(ctx context.Context) ApiGetBalanceRequest + + // GetBalanceExecute executes the request + // @return BalanceResponse + GetBalanceExecute(r ApiGetBalanceRequest) (*BalanceResponse, *http.Response, error) +} + +// GetBalanceAPIService GetBalanceAPI service +type GetBalanceAPIService service + +type ApiGetBalanceRequest struct { + ctx context.Context + ApiService GetBalanceAPI + user *string + chain *string +} + +func (r ApiGetBalanceRequest) User(user string) ApiGetBalanceRequest { + r.user = &user + return r +} + +func (r ApiGetBalanceRequest) Chain(chain string) ApiGetBalanceRequest { + r.chain = &chain + return r +} + +func (r ApiGetBalanceRequest) Execute() (*BalanceResponse, *http.Response, error) { + return r.ApiService.GetBalanceExecute(r) +} + +/* +GetBalance Method for GetBalance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBalanceRequest +*/ +func (a *GetBalanceAPIService) GetBalance(ctx context.Context) ApiGetBalanceRequest { + return ApiGetBalanceRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return BalanceResponse +func (a *GetBalanceAPIService) GetBalanceExecute(r ApiGetBalanceRequest) (*BalanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BalanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GetBalanceAPIService.GetBalance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/get-balance" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.user != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", r.user, "form", "") + } + if r.chain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "chain", r.chain, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_sessions_references.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_sessions_references.go new file mode 100644 index 0000000000..0f26ef410d --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_get_sessions_references.go @@ -0,0 +1,149 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type GetSessionsReferencesAPI interface { + + /* + GetSessionsReferences Get SATP current sessions data + + Retrieve the status of a SATP sessions of a gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSessionsReferencesRequest + */ + GetSessionsReferences(ctx context.Context) ApiGetSessionsReferencesRequest + + // GetSessionsReferencesExecute executes the request + // @return []SessionReference + GetSessionsReferencesExecute(r ApiGetSessionsReferencesRequest) ([]SessionReference, *http.Response, error) +} + +// GetSessionsReferencesAPIService GetSessionsReferencesAPI service +type GetSessionsReferencesAPIService service + +type ApiGetSessionsReferencesRequest struct { + ctx context.Context + ApiService GetSessionsReferencesAPI + ledger *string +} + +// Unique identifier for the session. +func (r ApiGetSessionsReferencesRequest) Ledger(ledger string) ApiGetSessionsReferencesRequest { + r.ledger = &ledger + return r +} + +func (r ApiGetSessionsReferencesRequest) Execute() ([]SessionReference, *http.Response, error) { + return r.ApiService.GetSessionsReferencesExecute(r) +} + +/* +GetSessionsReferences Get SATP current sessions data + +Retrieve the status of a SATP sessions of a gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSessionsReferencesRequest +*/ +func (a *GetSessionsReferencesAPIService) GetSessionsReferences(ctx context.Context) ApiGetSessionsReferencesRequest { + return ApiGetSessionsReferencesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []SessionReference +func (a *GetSessionsReferencesAPIService) GetSessionsReferencesExecute(r ApiGetSessionsReferencesRequest) ([]SessionReference, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SessionReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GetSessionsReferencesAPIService.GetSessionsReferences") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.ledger != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "Ledger", r.ledger, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_mint.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_mint.go new file mode 100644 index 0000000000..d3c8aff58e --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_mint.go @@ -0,0 +1,146 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type MintAPI interface { + + /* + Mint Submit a transaction intent + + Allows users to queue intents for transactions based on specified parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMintRequest + */ + Mint(ctx context.Context) ApiMintRequest + + // MintExecute executes the request + MintExecute(r ApiMintRequest) (*http.Response, error) +} + +// MintAPIService MintAPI service +type MintAPIService service + +type ApiMintRequest struct { + ctx context.Context + ApiService MintAPI + mintRequest *MintRequest +} + +func (r ApiMintRequest) MintRequest(mintRequest MintRequest) ApiMintRequest { + r.mintRequest = &mintRequest + return r +} + +func (r ApiMintRequest) Execute() (*http.Response, error) { + return r.ApiService.MintExecute(r) +} + +/* +Mint Submit a transaction intent + +Allows users to queue intents for transactions based on specified parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMintRequest +*/ +func (a *MintAPIService) Mint(ctx context.Context) ApiMintRequest { + return ApiMintRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *MintAPIService) MintExecute(r ApiMintRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MintAPIService.Mint") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.mintRequest == nil { + return nil, reportError("mintRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.mintRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transact.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transact.go new file mode 100644 index 0000000000..d8c09b0e0c --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transact.go @@ -0,0 +1,158 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type TransactAPI interface { + + /* + Transact Submit a transaction intent + + Allows users to queue intents for transactions based on specified parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransactRequest + */ + Transact(ctx context.Context) ApiTransactRequest + + // TransactExecute executes the request + // @return TransactResponse + TransactExecute(r ApiTransactRequest) (*TransactResponse, *http.Response, error) +} + +// TransactAPIService TransactAPI service +type TransactAPIService service + +type ApiTransactRequest struct { + ctx context.Context + ApiService TransactAPI + transactRequest *TransactRequest +} + +func (r ApiTransactRequest) TransactRequest(transactRequest TransactRequest) ApiTransactRequest { + r.transactRequest = &transactRequest + return r +} + +func (r ApiTransactRequest) Execute() (*TransactResponse, *http.Response, error) { + return r.ApiService.TransactExecute(r) +} + +/* +Transact Submit a transaction intent + +Allows users to queue intents for transactions based on specified parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransactRequest +*/ +func (a *TransactAPIService) Transact(ctx context.Context) ApiTransactRequest { + return ApiTransactRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TransactResponse +func (a *TransactAPIService) TransactExecute(r ApiTransactRequest) (*TransactResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TransactResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactAPIService.Transact") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/transact" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.transactRequest == nil { + return localVarReturnValue, nil, reportError("transactRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transactRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transfer.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transfer.go new file mode 100644 index 0000000000..2ccd78c351 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/api_transfer.go @@ -0,0 +1,146 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type TransferAPI interface { + + /* + Transfer Submit a transaction intent + + Allows users to queue intents for transactions based on specified parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransferRequest + */ + Transfer(ctx context.Context) ApiTransferRequest + + // TransferExecute executes the request + TransferExecute(r ApiTransferRequest) (*http.Response, error) +} + +// TransferAPIService TransferAPI service +type TransferAPIService service + +type ApiTransferRequest struct { + ctx context.Context + ApiService TransferAPI + transferRequest *TransferRequest +} + +func (r ApiTransferRequest) TransferRequest(transferRequest TransferRequest) ApiTransferRequest { + r.transferRequest = &transferRequest + return r +} + +func (r ApiTransferRequest) Execute() (*http.Response, error) { + return r.ApiService.TransferExecute(r) +} + +/* +Transfer Submit a transaction intent + +Allows users to queue intents for transactions based on specified parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransferRequest +*/ +func (a *TransferAPIService) Transfer(ctx context.Context) ApiTransferRequest { + return ApiTransferRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *TransferAPIService) TransferExecute(r ApiTransferRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransferAPIService.Transfer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.transferRequest == nil { + return nil, reportError("transferRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transferRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/client.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/client.go similarity index 89% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/client.go rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/client.go index e706a95090..5b30155c3d 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/client.go +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/client.go @@ -1,14 +1,14 @@ /* -Hyperledger Cactus Plugin - Odap Hermes +CBDC-example backend API -Implementation for Odap and Hermes +Cactus-Example -API version: 2.0.0-rc.7 +API version: 0.0.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package cactus-plugin-satp-hermes +package generated import ( "bytes" @@ -35,13 +35,13 @@ import ( ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Hyperledger Cactus Plugin - Odap Hermes API v2.0.0-rc.7 +// APIClient manages communication with the CBDC-example backend API API v0.0.2 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -49,7 +49,19 @@ type APIClient struct { // API Services - DefaultApi *DefaultApiService + ApproveAPI ApproveAPI + + GetAmountApprovedAPI GetAmountApprovedAPI + + GetBalanceAPI GetBalanceAPI + + GetSessionsReferencesAPI GetSessionsReferencesAPI + + MintAPI MintAPI + + TransactAPI TransactAPI + + TransferAPI TransferAPI } type service struct { @@ -68,7 +80,13 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.DefaultApi = (*DefaultApiService)(&c.common) + c.ApproveAPI = (*ApproveAPIService)(&c.common) + c.GetAmountApprovedAPI = (*GetAmountApprovedAPIService)(&c.common) + c.GetBalanceAPI = (*GetBalanceAPIService)(&c.common) + c.GetSessionsReferencesAPI = (*GetSessionsReferencesAPIService)(&c.common) + c.MintAPI = (*MintAPIService)(&c.common) + c.TransactAPI = (*TransactAPIService)(&c.common) + c.TransferAPI = (*TransferAPIService)(&c.common) return c } @@ -142,7 +160,7 @@ func parameterValueToString( obj interface{}, key string ) string { // parameterAddToHeaderOrQuery adds the provided object to the request header or url query // supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -158,11 +176,11 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri if err != nil { return } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -174,7 +192,11 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri var lenIndValue = indValue.Len() for i:=0;i Approve(ctx).ApproveRequest(approveRequest).Execute() + +Submit a transaction intent + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + approveRequest := *openapiclient.NewApproveRequest("user1", "100", *openapiclient.NewAssetType()) // ApproveRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ApproveAPI.Approve(context.Background()).ApproveRequest(approveRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApproveAPI.Approve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **approveRequest** | [**ApproveRequest**](ApproveRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/ApproveRequest.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/ApproveRequest.md new file mode 100644 index 0000000000..07d474e3ee --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/ApproveRequest.md @@ -0,0 +1,93 @@ +# ApproveRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | **string** | | +**Amount** | **string** | | +**Ledger** | [**AssetType**](AssetType.md) | | + +## Methods + +### NewApproveRequest + +`func NewApproveRequest(user string, amount string, ledger AssetType, ) *ApproveRequest` + +NewApproveRequest instantiates a new ApproveRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApproveRequestWithDefaults + +`func NewApproveRequestWithDefaults() *ApproveRequest` + +NewApproveRequestWithDefaults instantiates a new ApproveRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUser + +`func (o *ApproveRequest) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *ApproveRequest) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *ApproveRequest) SetUser(v string)` + +SetUser sets User field to given value. + + +### GetAmount + +`func (o *ApproveRequest) GetAmount() string` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *ApproveRequest) GetAmountOk() (*string, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *ApproveRequest) SetAmount(v string)` + +SetAmount sets Amount field to given value. + + +### GetLedger + +`func (o *ApproveRequest) GetLedger() AssetType` + +GetLedger returns the Ledger field if non-nil, zero value otherwise. + +### GetLedgerOk + +`func (o *ApproveRequest) GetLedgerOk() (*AssetType, bool)` + +GetLedgerOk returns a tuple with the Ledger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedger + +`func (o *ApproveRequest) SetLedger(v AssetType)` + +SetLedger sets Ledger field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/AssetType.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/AssetType.md new file mode 100644 index 0000000000..fe10be9d69 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/AssetType.md @@ -0,0 +1,56 @@ +# AssetType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetType** | Pointer to **string** | | [optional] + +## Methods + +### NewAssetType + +`func NewAssetType() *AssetType` + +NewAssetType instantiates a new AssetType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAssetTypeWithDefaults + +`func NewAssetTypeWithDefaults() *AssetType` + +NewAssetTypeWithDefaults instantiates a new AssetType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssetType + +`func (o *AssetType) GetAssetType() string` + +GetAssetType returns the AssetType field if non-nil, zero value otherwise. + +### GetAssetTypeOk + +`func (o *AssetType) GetAssetTypeOk() (*string, bool)` + +GetAssetTypeOk returns a tuple with the AssetType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetType + +`func (o *AssetType) SetAssetType(v string)` + +SetAssetType sets AssetType field to given value. + +### HasAssetType + +`func (o *AssetType) HasAssetType() bool` + +HasAssetType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/BalanceResponse.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/BalanceResponse.md new file mode 100644 index 0000000000..28b5446d74 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/BalanceResponse.md @@ -0,0 +1,51 @@ +# BalanceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | | + +## Methods + +### NewBalanceResponse + +`func NewBalanceResponse(amount string, ) *BalanceResponse` + +NewBalanceResponse instantiates a new BalanceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBalanceResponseWithDefaults + +`func NewBalanceResponseWithDefaults() *BalanceResponse` + +NewBalanceResponseWithDefaults instantiates a new BalanceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAmount + +`func (o *BalanceResponse) GetAmount() string` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *BalanceResponse) GetAmountOk() (*string, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *BalanceResponse) SetAmount(v string)` + +SetAmount sets Amount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetAmountApprovedAPI.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetAmountApprovedAPI.md new file mode 100644 index 0000000000..7cbd54d4f4 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetAmountApprovedAPI.md @@ -0,0 +1,77 @@ +# \GetAmountApprovedAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAmountApproved**](GetAmountApprovedAPI.md#GetAmountApproved) | **Get** /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved | Get the amount approved for a transaction + + + +## GetAmountApproved + +> string GetAmountApproved(ctx).User(user).Chain(chain).Execute() + +Get the amount approved for a transaction + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + user := "user_example" // string | (optional) + chain := "chain_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GetAmountApprovedAPI.GetAmountApproved(context.Background()).User(user).Chain(chain).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GetAmountApprovedAPI.GetAmountApproved``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAmountApproved`: string + fmt.Fprintf(os.Stdout, "Response from `GetAmountApprovedAPI.GetAmountApproved`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAmountApprovedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user** | **string** | | + **chain** | **string** | | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetBalanceAPI.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetBalanceAPI.md new file mode 100644 index 0000000000..2bb9b7cfcc --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetBalanceAPI.md @@ -0,0 +1,75 @@ +# \GetBalanceAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetBalance**](GetBalanceAPI.md#GetBalance) | **Get** /api/v1/@hyperledger/cactus-example-cbdc/get-balance | + + + +## GetBalance + +> BalanceResponse GetBalance(ctx).User(user).Chain(chain).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + user := "user_example" // string | (optional) + chain := "chain_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GetBalanceAPI.GetBalance(context.Background()).User(user).Chain(chain).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GetBalanceAPI.GetBalance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBalance`: BalanceResponse + fmt.Fprintf(os.Stdout, "Response from `GetBalanceAPI.GetBalance`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBalanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user** | **string** | | + **chain** | **string** | | + +### Return type + +[**BalanceResponse**](BalanceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetSessionsReferencesAPI.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetSessionsReferencesAPI.md new file mode 100644 index 0000000000..208feae7fe --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/GetSessionsReferencesAPI.md @@ -0,0 +1,75 @@ +# \GetSessionsReferencesAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSessionsReferences**](GetSessionsReferencesAPI.md#GetSessionsReferences) | **Get** /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references | Get SATP current sessions data + + + +## GetSessionsReferences + +> []SessionReference GetSessionsReferences(ctx).Ledger(ledger).Execute() + +Get SATP current sessions data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + ledger := "ledger_example" // string | Unique identifier for the session. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GetSessionsReferencesAPI.GetSessionsReferences(context.Background()).Ledger(ledger).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GetSessionsReferencesAPI.GetSessionsReferences``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSessionsReferences`: []SessionReference + fmt.Fprintf(os.Stdout, "Response from `GetSessionsReferencesAPI.GetSessionsReferences`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSessionsReferencesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ledger** | **string** | Unique identifier for the session. | + +### Return type + +[**[]SessionReference**](SessionReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintAPI.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintAPI.md new file mode 100644 index 0000000000..95d0235c47 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintAPI.md @@ -0,0 +1,73 @@ +# \MintAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Mint**](MintAPI.md#Mint) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens | Submit a transaction intent + + + +## Mint + +> Mint(ctx).MintRequest(mintRequest).Execute() + +Submit a transaction intent + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + mintRequest := *openapiclient.NewMintRequest("user1", "100", *openapiclient.NewAssetType()) // MintRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MintAPI.Mint(context.Background()).MintRequest(mintRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MintAPI.Mint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mintRequest** | [**MintRequest**](MintRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintRequest.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintRequest.md new file mode 100644 index 0000000000..9c35e5eb13 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/MintRequest.md @@ -0,0 +1,93 @@ +# MintRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | **string** | | +**Amount** | **string** | | +**Ledger** | [**AssetType**](AssetType.md) | | + +## Methods + +### NewMintRequest + +`func NewMintRequest(user string, amount string, ledger AssetType, ) *MintRequest` + +NewMintRequest instantiates a new MintRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMintRequestWithDefaults + +`func NewMintRequestWithDefaults() *MintRequest` + +NewMintRequestWithDefaults instantiates a new MintRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUser + +`func (o *MintRequest) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *MintRequest) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *MintRequest) SetUser(v string)` + +SetUser sets User field to given value. + + +### GetAmount + +`func (o *MintRequest) GetAmount() string` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *MintRequest) GetAmountOk() (*string, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *MintRequest) SetAmount(v string)` + +SetAmount sets Amount field to given value. + + +### GetLedger + +`func (o *MintRequest) GetLedger() AssetType` + +GetLedger returns the Ledger field if non-nil, zero value otherwise. + +### GetLedgerOk + +`func (o *MintRequest) GetLedgerOk() (*AssetType, bool)` + +GetLedgerOk returns a tuple with the Ledger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedger + +`func (o *MintRequest) SetLedger(v AssetType)` + +SetLedger sets Ledger field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/SessionReference.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/SessionReference.md new file mode 100644 index 0000000000..cf6deff31f --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/SessionReference.md @@ -0,0 +1,114 @@ +# SessionReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Status** | **string** | | +**SourceLedger** | **string** | | +**ReceiverLedger** | **string** | | + +## Methods + +### NewSessionReference + +`func NewSessionReference(id string, status string, sourceLedger string, receiverLedger string, ) *SessionReference` + +NewSessionReference instantiates a new SessionReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSessionReferenceWithDefaults + +`func NewSessionReferenceWithDefaults() *SessionReference` + +NewSessionReferenceWithDefaults instantiates a new SessionReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SessionReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SessionReference) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SessionReference) SetId(v string)` + +SetId sets Id field to given value. + + +### GetStatus + +`func (o *SessionReference) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SessionReference) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SessionReference) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetSourceLedger + +`func (o *SessionReference) GetSourceLedger() string` + +GetSourceLedger returns the SourceLedger field if non-nil, zero value otherwise. + +### GetSourceLedgerOk + +`func (o *SessionReference) GetSourceLedgerOk() (*string, bool)` + +GetSourceLedgerOk returns a tuple with the SourceLedger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceLedger + +`func (o *SessionReference) SetSourceLedger(v string)` + +SetSourceLedger sets SourceLedger field to given value. + + +### GetReceiverLedger + +`func (o *SessionReference) GetReceiverLedger() string` + +GetReceiverLedger returns the ReceiverLedger field if non-nil, zero value otherwise. + +### GetReceiverLedgerOk + +`func (o *SessionReference) GetReceiverLedgerOk() (*string, bool)` + +GetReceiverLedgerOk returns a tuple with the ReceiverLedger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiverLedger + +`func (o *SessionReference) SetReceiverLedger(v string)` + +SetReceiverLedger sets ReceiverLedger field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/StatusResponse.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/StatusResponse.md new file mode 100644 index 0000000000..2dffe4d0bd --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/StatusResponse.md @@ -0,0 +1,77 @@ +# StatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SessionID** | Pointer to **string** | | [optional] +**Status** | **string** | | + +## Methods + +### NewStatusResponse + +`func NewStatusResponse(status string, ) *StatusResponse` + +NewStatusResponse instantiates a new StatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStatusResponseWithDefaults + +`func NewStatusResponseWithDefaults() *StatusResponse` + +NewStatusResponseWithDefaults instantiates a new StatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSessionID + +`func (o *StatusResponse) GetSessionID() string` + +GetSessionID returns the SessionID field if non-nil, zero value otherwise. + +### GetSessionIDOk + +`func (o *StatusResponse) GetSessionIDOk() (*string, bool)` + +GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionID + +`func (o *StatusResponse) SetSessionID(v string)` + +SetSessionID sets SessionID field to given value. + +### HasSessionID + +`func (o *StatusResponse) HasSessionID() bool` + +HasSessionID returns a boolean if a field has been set. + +### GetStatus + +`func (o *StatusResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *StatusResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *StatusResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactAPI.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactAPI.md new file mode 100644 index 0000000000..90267622c8 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactAPI.md @@ -0,0 +1,75 @@ +# \TransactAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Transact**](TransactAPI.md#Transact) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/transact | Submit a transaction intent + + + +## Transact + +> TransactResponse Transact(ctx).TransactRequest(transactRequest).Execute() + +Submit a transaction intent + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + transactRequest := *openapiclient.NewTransactRequest("user1", "user2", *openapiclient.NewAssetType(), *openapiclient.NewAssetType(), "100") // TransactRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TransactAPI.Transact(context.Background()).TransactRequest(transactRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransactAPI.Transact``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Transact`: TransactResponse + fmt.Fprintf(os.Stdout, "Response from `TransactAPI.Transact`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTransactRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transactRequest** | [**TransactRequest**](TransactRequest.md) | | + +### Return type + +[**TransactResponse**](TransactResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactRequest.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactRequest.md new file mode 100644 index 0000000000..c4fea91b98 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactRequest.md @@ -0,0 +1,135 @@ +# TransactRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sender** | **string** | | +**Receiver** | **string** | | +**SourceChain** | [**AssetType**](AssetType.md) | | +**ReceiverChain** | [**AssetType**](AssetType.md) | | +**Amount** | **string** | | + +## Methods + +### NewTransactRequest + +`func NewTransactRequest(sender string, receiver string, sourceChain AssetType, receiverChain AssetType, amount string, ) *TransactRequest` + +NewTransactRequest instantiates a new TransactRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransactRequestWithDefaults + +`func NewTransactRequestWithDefaults() *TransactRequest` + +NewTransactRequestWithDefaults instantiates a new TransactRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSender + +`func (o *TransactRequest) GetSender() string` + +GetSender returns the Sender field if non-nil, zero value otherwise. + +### GetSenderOk + +`func (o *TransactRequest) GetSenderOk() (*string, bool)` + +GetSenderOk returns a tuple with the Sender field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSender + +`func (o *TransactRequest) SetSender(v string)` + +SetSender sets Sender field to given value. + + +### GetReceiver + +`func (o *TransactRequest) GetReceiver() string` + +GetReceiver returns the Receiver field if non-nil, zero value otherwise. + +### GetReceiverOk + +`func (o *TransactRequest) GetReceiverOk() (*string, bool)` + +GetReceiverOk returns a tuple with the Receiver field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiver + +`func (o *TransactRequest) SetReceiver(v string)` + +SetReceiver sets Receiver field to given value. + + +### GetSourceChain + +`func (o *TransactRequest) GetSourceChain() AssetType` + +GetSourceChain returns the SourceChain field if non-nil, zero value otherwise. + +### GetSourceChainOk + +`func (o *TransactRequest) GetSourceChainOk() (*AssetType, bool)` + +GetSourceChainOk returns a tuple with the SourceChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceChain + +`func (o *TransactRequest) SetSourceChain(v AssetType)` + +SetSourceChain sets SourceChain field to given value. + + +### GetReceiverChain + +`func (o *TransactRequest) GetReceiverChain() AssetType` + +GetReceiverChain returns the ReceiverChain field if non-nil, zero value otherwise. + +### GetReceiverChainOk + +`func (o *TransactRequest) GetReceiverChainOk() (*AssetType, bool)` + +GetReceiverChainOk returns a tuple with the ReceiverChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiverChain + +`func (o *TransactRequest) SetReceiverChain(v AssetType)` + +SetReceiverChain sets ReceiverChain field to given value. + + +### GetAmount + +`func (o *TransactRequest) GetAmount() string` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *TransactRequest) GetAmountOk() (*string, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *TransactRequest) SetAmount(v string)` + +SetAmount sets Amount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseResponse.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactResponse.md similarity index 59% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseResponse.md rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactResponse.md index 0a02a46c9c..fd9ea5ac92 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseResponse.md +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransactResponse.md @@ -1,46 +1,46 @@ -# PauseResponse +# TransactResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | +**StatusResponse** | [**StatusResponse**](StatusResponse.md) | | ## Methods -### NewPauseResponse +### NewTransactResponse -`func NewPauseResponse(statusResponse Transact200ResponseStatusResponse, ) *PauseResponse` +`func NewTransactResponse(statusResponse StatusResponse, ) *TransactResponse` -NewPauseResponse instantiates a new PauseResponse object +NewTransactResponse instantiates a new TransactResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPauseResponseWithDefaults +### NewTransactResponseWithDefaults -`func NewPauseResponseWithDefaults() *PauseResponse` +`func NewTransactResponseWithDefaults() *TransactResponse` -NewPauseResponseWithDefaults instantiates a new PauseResponse object +NewTransactResponseWithDefaults instantiates a new TransactResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetStatusResponse -`func (o *PauseResponse) GetStatusResponse() Transact200ResponseStatusResponse` +`func (o *TransactResponse) GetStatusResponse() StatusResponse` GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. ### GetStatusResponseOk -`func (o *PauseResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` +`func (o *TransactResponse) GetStatusResponseOk() (*StatusResponse, bool)` GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatusResponse -`func (o *PauseResponse) SetStatusResponse(v Transact200ResponseStatusResponse)` +`func (o *TransactResponse) SetStatusResponse(v StatusResponse)` SetStatusResponse sets StatusResponse field to given value. diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferAPI.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferAPI.md new file mode 100644 index 0000000000..bfcc080662 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferAPI.md @@ -0,0 +1,73 @@ +# \TransferAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Transfer**](TransferAPI.md#Transfer) | **Post** /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens | Submit a transaction intent + + + +## Transfer + +> Transfer(ctx).TransferRequest(transferRequest).Execute() + +Submit a transaction intent + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func main() { + transferRequest := *openapiclient.NewTransferRequest("user1", "user2", *openapiclient.NewAssetType(), *openapiclient.NewAssetType(), "100") // TransferRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TransferAPI.Transfer(context.Background()).TransferRequest(transferRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransferAPI.Transfer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTransferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferRequest** | [**TransferRequest**](TransferRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferRequest.md b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferRequest.md new file mode 100644 index 0000000000..6679a0f011 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/docs/TransferRequest.md @@ -0,0 +1,135 @@ +# TransferRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | | +**To** | **string** | | +**SourceChain** | [**AssetType**](AssetType.md) | | +**ReceiverChain** | [**AssetType**](AssetType.md) | | +**Amount** | **string** | | + +## Methods + +### NewTransferRequest + +`func NewTransferRequest(from string, to string, sourceChain AssetType, receiverChain AssetType, amount string, ) *TransferRequest` + +NewTransferRequest instantiates a new TransferRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferRequestWithDefaults + +`func NewTransferRequestWithDefaults() *TransferRequest` + +NewTransferRequestWithDefaults instantiates a new TransferRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFrom + +`func (o *TransferRequest) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *TransferRequest) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *TransferRequest) SetFrom(v string)` + +SetFrom sets From field to given value. + + +### GetTo + +`func (o *TransferRequest) GetTo() string` + +GetTo returns the To field if non-nil, zero value otherwise. + +### GetToOk + +`func (o *TransferRequest) GetToOk() (*string, bool)` + +GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTo + +`func (o *TransferRequest) SetTo(v string)` + +SetTo sets To field to given value. + + +### GetSourceChain + +`func (o *TransferRequest) GetSourceChain() AssetType` + +GetSourceChain returns the SourceChain field if non-nil, zero value otherwise. + +### GetSourceChainOk + +`func (o *TransferRequest) GetSourceChainOk() (*AssetType, bool)` + +GetSourceChainOk returns a tuple with the SourceChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceChain + +`func (o *TransferRequest) SetSourceChain(v AssetType)` + +SetSourceChain sets SourceChain field to given value. + + +### GetReceiverChain + +`func (o *TransferRequest) GetReceiverChain() AssetType` + +GetReceiverChain returns the ReceiverChain field if non-nil, zero value otherwise. + +### GetReceiverChainOk + +`func (o *TransferRequest) GetReceiverChainOk() (*AssetType, bool)` + +GetReceiverChainOk returns a tuple with the ReceiverChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiverChain + +`func (o *TransferRequest) SetReceiverChain(v AssetType)` + +SetReceiverChain sets ReceiverChain field to given value. + + +### GetAmount + +`func (o *TransferRequest) GetAmount() string` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *TransferRequest) GetAmountOk() (*string, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *TransferRequest) SetAmount(v string)` + +SetAmount sets Amount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/git_push.sh b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/git_push.sh similarity index 95% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/git_push.sh rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/git_push.sh index caedee5072..9b8c8698b9 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/git_push.sh +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/git_push.sh @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then fi if [ "$git_repo_id" = "" ]; then - git_repo_id="cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" + git_repo_id="cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/go.mod b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/go.mod new file mode 100644 index 0000000000..4ec3b0aa4c --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/go.mod @@ -0,0 +1,6 @@ +module github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated + +go 1.18 + +require ( +) diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/go.sum b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/go.sum similarity index 100% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/go.sum rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/go.sum diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_api_error.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_api_error.go similarity index 80% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_api_error.go rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_api_error.go index d2a4a01771..05d2f9bdfb 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_api_error.go +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_api_error.go @@ -1,7 +1,7 @@ /* -SATP Gateway Client (Business Logic Orchestrator) +CBDC-example backend API -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) +Cactus-Example API version: 0.0.2 */ @@ -12,6 +12,8 @@ package generated import ( "encoding/json" + "bytes" + "fmt" ) // checks if the APIError type satisfies the MappedNullable interface at compile time @@ -31,6 +33,8 @@ type APIError struct { Timestamp string `json:"timestamp"` } +type _APIError APIError + // NewAPIError instantiates a new APIError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -191,6 +195,47 @@ func (o APIError) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +func (o *APIError) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "code", + "status", + "message", + "timestamp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPIError := _APIError{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIError) + + if err != nil { + return err + } + + *o = APIError(varAPIError) + + return err +} + type NullableAPIError struct { value *APIError isSet bool diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_approve_request.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_approve_request.go new file mode 100644 index 0000000000..e56dedea34 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_approve_request.go @@ -0,0 +1,214 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ApproveRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApproveRequest{} + +// ApproveRequest Request schema for approving a transaction. +type ApproveRequest struct { + User string `json:"user"` + Amount string `json:"amount"` + Ledger AssetType `json:"ledger"` +} + +type _ApproveRequest ApproveRequest + +// NewApproveRequest instantiates a new ApproveRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApproveRequest(user string, amount string, ledger AssetType) *ApproveRequest { + this := ApproveRequest{} + this.User = user + this.Amount = amount + this.Ledger = ledger + return &this +} + +// NewApproveRequestWithDefaults instantiates a new ApproveRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApproveRequestWithDefaults() *ApproveRequest { + this := ApproveRequest{} + return &this +} + +// GetUser returns the User field value +func (o *ApproveRequest) GetUser() string { + if o == nil { + var ret string + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *ApproveRequest) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *ApproveRequest) SetUser(v string) { + o.User = v +} + +// GetAmount returns the Amount field value +func (o *ApproveRequest) GetAmount() string { + if o == nil { + var ret string + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *ApproveRequest) GetAmountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *ApproveRequest) SetAmount(v string) { + o.Amount = v +} + +// GetLedger returns the Ledger field value +func (o *ApproveRequest) GetLedger() AssetType { + if o == nil { + var ret AssetType + return ret + } + + return o.Ledger +} + +// GetLedgerOk returns a tuple with the Ledger field value +// and a boolean to check if the value has been set. +func (o *ApproveRequest) GetLedgerOk() (*AssetType, bool) { + if o == nil { + return nil, false + } + return &o.Ledger, true +} + +// SetLedger sets field value +func (o *ApproveRequest) SetLedger(v AssetType) { + o.Ledger = v +} + +func (o ApproveRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApproveRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user"] = o.User + toSerialize["amount"] = o.Amount + toSerialize["ledger"] = o.Ledger + return toSerialize, nil +} + +func (o *ApproveRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "user", + "amount", + "ledger", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varApproveRequest := _ApproveRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varApproveRequest) + + if err != nil { + return err + } + + *o = ApproveRequest(varApproveRequest) + + return err +} + +type NullableApproveRequest struct { + value *ApproveRequest + isSet bool +} + +func (v NullableApproveRequest) Get() *ApproveRequest { + return v.value +} + +func (v *NullableApproveRequest) Set(val *ApproveRequest) { + v.value = val + v.isSet = true +} + +func (v NullableApproveRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableApproveRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApproveRequest(val *ApproveRequest) *NullableApproveRequest { + return &NullableApproveRequest{value: val, isSet: true} +} + +func (v NullableApproveRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApproveRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_asset_type.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_asset_type.go new file mode 100644 index 0000000000..071491ec81 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_asset_type.go @@ -0,0 +1,126 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" +) + +// checks if the AssetType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetType{} + +// AssetType Enum for the type of asset being transferred. +type AssetType struct { + AssetType *string `json:"assetType,omitempty"` +} + +// NewAssetType instantiates a new AssetType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAssetType() *AssetType { + this := AssetType{} + return &this +} + +// NewAssetTypeWithDefaults instantiates a new AssetType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAssetTypeWithDefaults() *AssetType { + this := AssetType{} + return &this +} + +// GetAssetType returns the AssetType field value if set, zero value otherwise. +func (o *AssetType) GetAssetType() string { + if o == nil || IsNil(o.AssetType) { + var ret string + return ret + } + return *o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetType) GetAssetTypeOk() (*string, bool) { + if o == nil || IsNil(o.AssetType) { + return nil, false + } + return o.AssetType, true +} + +// HasAssetType returns a boolean if a field has been set. +func (o *AssetType) HasAssetType() bool { + if o != nil && !IsNil(o.AssetType) { + return true + } + + return false +} + +// SetAssetType gets a reference to the given string and assigns it to the AssetType field. +func (o *AssetType) SetAssetType(v string) { + o.AssetType = &v +} + +func (o AssetType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AssetType) { + toSerialize["assetType"] = o.AssetType + } + return toSerialize, nil +} + +type NullableAssetType struct { + value *AssetType + isSet bool +} + +func (v NullableAssetType) Get() *AssetType { + return v.value +} + +func (v *NullableAssetType) Set(val *AssetType) { + v.value = val + v.isSet = true +} + +func (v NullableAssetType) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetType(val *AssetType) *NullableAssetType { + return &NullableAssetType{value: val, isSet: true} +} + +func (v NullableAssetType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_balance_response.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_balance_response.go new file mode 100644 index 0000000000..904ec06b1c --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_balance_response.go @@ -0,0 +1,158 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BalanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BalanceResponse{} + +// BalanceResponse Response schema for an amount request. +type BalanceResponse struct { + Amount string `json:"amount"` +} + +type _BalanceResponse BalanceResponse + +// NewBalanceResponse instantiates a new BalanceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBalanceResponse(amount string) *BalanceResponse { + this := BalanceResponse{} + this.Amount = amount + return &this +} + +// NewBalanceResponseWithDefaults instantiates a new BalanceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBalanceResponseWithDefaults() *BalanceResponse { + this := BalanceResponse{} + return &this +} + +// GetAmount returns the Amount field value +func (o *BalanceResponse) GetAmount() string { + if o == nil { + var ret string + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *BalanceResponse) GetAmountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *BalanceResponse) SetAmount(v string) { + o.Amount = v +} + +func (o BalanceResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BalanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["amount"] = o.Amount + return toSerialize, nil +} + +func (o *BalanceResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "amount", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBalanceResponse := _BalanceResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBalanceResponse) + + if err != nil { + return err + } + + *o = BalanceResponse(varBalanceResponse) + + return err +} + +type NullableBalanceResponse struct { + value *BalanceResponse + isSet bool +} + +func (v NullableBalanceResponse) Get() *BalanceResponse { + return v.value +} + +func (v *NullableBalanceResponse) Set(val *BalanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBalanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBalanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBalanceResponse(val *BalanceResponse) *NullableBalanceResponse { + return &NullableBalanceResponse{value: val, isSet: true} +} + +func (v NullableBalanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBalanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_mint_request.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_mint_request.go new file mode 100644 index 0000000000..d56a10ea67 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_mint_request.go @@ -0,0 +1,214 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the MintRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MintRequest{} + +// MintRequest Request schema for minting an asset. +type MintRequest struct { + User string `json:"user"` + Amount string `json:"amount"` + Ledger AssetType `json:"ledger"` +} + +type _MintRequest MintRequest + +// NewMintRequest instantiates a new MintRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMintRequest(user string, amount string, ledger AssetType) *MintRequest { + this := MintRequest{} + this.User = user + this.Amount = amount + this.Ledger = ledger + return &this +} + +// NewMintRequestWithDefaults instantiates a new MintRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMintRequestWithDefaults() *MintRequest { + this := MintRequest{} + return &this +} + +// GetUser returns the User field value +func (o *MintRequest) GetUser() string { + if o == nil { + var ret string + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *MintRequest) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *MintRequest) SetUser(v string) { + o.User = v +} + +// GetAmount returns the Amount field value +func (o *MintRequest) GetAmount() string { + if o == nil { + var ret string + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *MintRequest) GetAmountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *MintRequest) SetAmount(v string) { + o.Amount = v +} + +// GetLedger returns the Ledger field value +func (o *MintRequest) GetLedger() AssetType { + if o == nil { + var ret AssetType + return ret + } + + return o.Ledger +} + +// GetLedgerOk returns a tuple with the Ledger field value +// and a boolean to check if the value has been set. +func (o *MintRequest) GetLedgerOk() (*AssetType, bool) { + if o == nil { + return nil, false + } + return &o.Ledger, true +} + +// SetLedger sets field value +func (o *MintRequest) SetLedger(v AssetType) { + o.Ledger = v +} + +func (o MintRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MintRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user"] = o.User + toSerialize["amount"] = o.Amount + toSerialize["ledger"] = o.Ledger + return toSerialize, nil +} + +func (o *MintRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "user", + "amount", + "ledger", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMintRequest := _MintRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMintRequest) + + if err != nil { + return err + } + + *o = MintRequest(varMintRequest) + + return err +} + +type NullableMintRequest struct { + value *MintRequest + isSet bool +} + +func (v NullableMintRequest) Get() *MintRequest { + return v.value +} + +func (v *NullableMintRequest) Set(val *MintRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMintRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMintRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMintRequest(val *MintRequest) *NullableMintRequest { + return &NullableMintRequest{value: val, isSet: true} +} + +func (v NullableMintRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMintRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_session_reference.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_session_reference.go new file mode 100644 index 0000000000..c3371f9138 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_session_reference.go @@ -0,0 +1,242 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SessionReference type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SessionReference{} + +// SessionReference struct for SessionReference +type SessionReference struct { + Id string `json:"id"` + Status string `json:"status"` + SourceLedger string `json:"sourceLedger"` + ReceiverLedger string `json:"receiverLedger"` +} + +type _SessionReference SessionReference + +// NewSessionReference instantiates a new SessionReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSessionReference(id string, status string, sourceLedger string, receiverLedger string) *SessionReference { + this := SessionReference{} + this.Id = id + this.Status = status + this.SourceLedger = sourceLedger + this.ReceiverLedger = receiverLedger + return &this +} + +// NewSessionReferenceWithDefaults instantiates a new SessionReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSessionReferenceWithDefaults() *SessionReference { + this := SessionReference{} + return &this +} + +// GetId returns the Id field value +func (o *SessionReference) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SessionReference) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SessionReference) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *SessionReference) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *SessionReference) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *SessionReference) SetStatus(v string) { + o.Status = v +} + +// GetSourceLedger returns the SourceLedger field value +func (o *SessionReference) GetSourceLedger() string { + if o == nil { + var ret string + return ret + } + + return o.SourceLedger +} + +// GetSourceLedgerOk returns a tuple with the SourceLedger field value +// and a boolean to check if the value has been set. +func (o *SessionReference) GetSourceLedgerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceLedger, true +} + +// SetSourceLedger sets field value +func (o *SessionReference) SetSourceLedger(v string) { + o.SourceLedger = v +} + +// GetReceiverLedger returns the ReceiverLedger field value +func (o *SessionReference) GetReceiverLedger() string { + if o == nil { + var ret string + return ret + } + + return o.ReceiverLedger +} + +// GetReceiverLedgerOk returns a tuple with the ReceiverLedger field value +// and a boolean to check if the value has been set. +func (o *SessionReference) GetReceiverLedgerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReceiverLedger, true +} + +// SetReceiverLedger sets field value +func (o *SessionReference) SetReceiverLedger(v string) { + o.ReceiverLedger = v +} + +func (o SessionReference) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SessionReference) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["status"] = o.Status + toSerialize["sourceLedger"] = o.SourceLedger + toSerialize["receiverLedger"] = o.ReceiverLedger + return toSerialize, nil +} + +func (o *SessionReference) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "status", + "sourceLedger", + "receiverLedger", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSessionReference := _SessionReference{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSessionReference) + + if err != nil { + return err + } + + *o = SessionReference(varSessionReference) + + return err +} + +type NullableSessionReference struct { + value *SessionReference + isSet bool +} + +func (v NullableSessionReference) Get() *SessionReference { + return v.value +} + +func (v *NullableSessionReference) Set(val *SessionReference) { + v.value = val + v.isSet = true +} + +func (v NullableSessionReference) IsSet() bool { + return v.isSet +} + +func (v *NullableSessionReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSessionReference(val *SessionReference) *NullableSessionReference { + return &NullableSessionReference{value: val, isSet: true} +} + +func (v NullableSessionReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSessionReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_status_response.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_status_response.go new file mode 100644 index 0000000000..f77ed9dfce --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_status_response.go @@ -0,0 +1,194 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the StatusResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StatusResponse{} + +// StatusResponse Response schema for a transaction status request. +type StatusResponse struct { + SessionID *string `json:"sessionID,omitempty"` + Status string `json:"status"` +} + +type _StatusResponse StatusResponse + +// NewStatusResponse instantiates a new StatusResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStatusResponse(status string) *StatusResponse { + this := StatusResponse{} + this.Status = status + return &this +} + +// NewStatusResponseWithDefaults instantiates a new StatusResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStatusResponseWithDefaults() *StatusResponse { + this := StatusResponse{} + return &this +} + +// GetSessionID returns the SessionID field value if set, zero value otherwise. +func (o *StatusResponse) GetSessionID() string { + if o == nil || IsNil(o.SessionID) { + var ret string + return ret + } + return *o.SessionID +} + +// GetSessionIDOk returns a tuple with the SessionID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StatusResponse) GetSessionIDOk() (*string, bool) { + if o == nil || IsNil(o.SessionID) { + return nil, false + } + return o.SessionID, true +} + +// HasSessionID returns a boolean if a field has been set. +func (o *StatusResponse) HasSessionID() bool { + if o != nil && !IsNil(o.SessionID) { + return true + } + + return false +} + +// SetSessionID gets a reference to the given string and assigns it to the SessionID field. +func (o *StatusResponse) SetSessionID(v string) { + o.SessionID = &v +} + +// GetStatus returns the Status field value +func (o *StatusResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *StatusResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *StatusResponse) SetStatus(v string) { + o.Status = v +} + +func (o StatusResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StatusResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SessionID) { + toSerialize["sessionID"] = o.SessionID + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *StatusResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varStatusResponse := _StatusResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varStatusResponse) + + if err != nil { + return err + } + + *o = StatusResponse(varStatusResponse) + + return err +} + +type NullableStatusResponse struct { + value *StatusResponse + isSet bool +} + +func (v NullableStatusResponse) Get() *StatusResponse { + return v.value +} + +func (v *NullableStatusResponse) Set(val *StatusResponse) { + v.value = val + v.isSet = true +} + +func (v NullableStatusResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableStatusResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStatusResponse(val *StatusResponse) *NullableStatusResponse { + return &NullableStatusResponse{value: val, isSet: true} +} + +func (v NullableStatusResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStatusResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_request.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_request.go new file mode 100644 index 0000000000..527a7ee3c1 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_request.go @@ -0,0 +1,270 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the TransactRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactRequest{} + +// TransactRequest Request schema for initiating a transaction. Includes details such as the transaction context, mode (data or transfer), payload, and information about the source and receiver DLT networks. +type TransactRequest struct { + Sender string `json:"sender"` + Receiver string `json:"receiver"` + SourceChain AssetType `json:"sourceChain"` + ReceiverChain AssetType `json:"receiverChain"` + Amount string `json:"amount"` +} + +type _TransactRequest TransactRequest + +// NewTransactRequest instantiates a new TransactRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransactRequest(sender string, receiver string, sourceChain AssetType, receiverChain AssetType, amount string) *TransactRequest { + this := TransactRequest{} + this.Sender = sender + this.Receiver = receiver + this.SourceChain = sourceChain + this.ReceiverChain = receiverChain + this.Amount = amount + return &this +} + +// NewTransactRequestWithDefaults instantiates a new TransactRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransactRequestWithDefaults() *TransactRequest { + this := TransactRequest{} + return &this +} + +// GetSender returns the Sender field value +func (o *TransactRequest) GetSender() string { + if o == nil { + var ret string + return ret + } + + return o.Sender +} + +// GetSenderOk returns a tuple with the Sender field value +// and a boolean to check if the value has been set. +func (o *TransactRequest) GetSenderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sender, true +} + +// SetSender sets field value +func (o *TransactRequest) SetSender(v string) { + o.Sender = v +} + +// GetReceiver returns the Receiver field value +func (o *TransactRequest) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *TransactRequest) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *TransactRequest) SetReceiver(v string) { + o.Receiver = v +} + +// GetSourceChain returns the SourceChain field value +func (o *TransactRequest) GetSourceChain() AssetType { + if o == nil { + var ret AssetType + return ret + } + + return o.SourceChain +} + +// GetSourceChainOk returns a tuple with the SourceChain field value +// and a boolean to check if the value has been set. +func (o *TransactRequest) GetSourceChainOk() (*AssetType, bool) { + if o == nil { + return nil, false + } + return &o.SourceChain, true +} + +// SetSourceChain sets field value +func (o *TransactRequest) SetSourceChain(v AssetType) { + o.SourceChain = v +} + +// GetReceiverChain returns the ReceiverChain field value +func (o *TransactRequest) GetReceiverChain() AssetType { + if o == nil { + var ret AssetType + return ret + } + + return o.ReceiverChain +} + +// GetReceiverChainOk returns a tuple with the ReceiverChain field value +// and a boolean to check if the value has been set. +func (o *TransactRequest) GetReceiverChainOk() (*AssetType, bool) { + if o == nil { + return nil, false + } + return &o.ReceiverChain, true +} + +// SetReceiverChain sets field value +func (o *TransactRequest) SetReceiverChain(v AssetType) { + o.ReceiverChain = v +} + +// GetAmount returns the Amount field value +func (o *TransactRequest) GetAmount() string { + if o == nil { + var ret string + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *TransactRequest) GetAmountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *TransactRequest) SetAmount(v string) { + o.Amount = v +} + +func (o TransactRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sender"] = o.Sender + toSerialize["receiver"] = o.Receiver + toSerialize["sourceChain"] = o.SourceChain + toSerialize["receiverChain"] = o.ReceiverChain + toSerialize["amount"] = o.Amount + return toSerialize, nil +} + +func (o *TransactRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "sender", + "receiver", + "sourceChain", + "receiverChain", + "amount", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTransactRequest := _TransactRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTransactRequest) + + if err != nil { + return err + } + + *o = TransactRequest(varTransactRequest) + + return err +} + +type NullableTransactRequest struct { + value *TransactRequest + isSet bool +} + +func (v NullableTransactRequest) Get() *TransactRequest { + return v.value +} + +func (v *NullableTransactRequest) Set(val *TransactRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTransactRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactRequest(val *TransactRequest) *NullableTransactRequest { + return &NullableTransactRequest{value: val, isSet: true} +} + +func (v NullableTransactRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_response.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_response.go similarity index 51% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_response.go rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_response.go index 6fccf8ecfa..285dd1525e 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_response.go +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transact_response.go @@ -1,7 +1,7 @@ /* -SATP Gateway Client (Business Logic Orchestrator) +CBDC-example backend API -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) +Cactus-Example API version: 0.0.2 */ @@ -12,25 +12,26 @@ package generated import ( "encoding/json" + "bytes" + "fmt" ) // checks if the TransactResponse type satisfies the MappedNullable interface at compile time var _ MappedNullable = &TransactResponse{} -// TransactResponse Response schema for a transaction request. Includes the session ID and the current status of the transaction. +// TransactResponse Response schema for a transaction request. type TransactResponse struct { - // Unique identifier (UUID) for the session. - SessionID string `json:"sessionID"` - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` + StatusResponse StatusResponse `json:"statusResponse"` } +type _TransactResponse TransactResponse + // NewTransactResponse instantiates a new TransactResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTransactResponse(sessionID string, statusResponse Transact200ResponseStatusResponse) *TransactResponse { +func NewTransactResponse(statusResponse StatusResponse) *TransactResponse { this := TransactResponse{} - this.SessionID = sessionID this.StatusResponse = statusResponse return &this } @@ -43,34 +44,10 @@ func NewTransactResponseWithDefaults() *TransactResponse { return &this } -// GetSessionID returns the SessionID field value -func (o *TransactResponse) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *TransactResponse) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *TransactResponse) SetSessionID(v string) { - o.SessionID = v -} - // GetStatusResponse returns the StatusResponse field value -func (o *TransactResponse) GetStatusResponse() Transact200ResponseStatusResponse { +func (o *TransactResponse) GetStatusResponse() StatusResponse { if o == nil { - var ret Transact200ResponseStatusResponse + var ret StatusResponse return ret } @@ -79,7 +56,7 @@ func (o *TransactResponse) GetStatusResponse() Transact200ResponseStatusResponse // GetStatusResponseOk returns a tuple with the StatusResponse field value // and a boolean to check if the value has been set. -func (o *TransactResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { +func (o *TransactResponse) GetStatusResponseOk() (*StatusResponse, bool) { if o == nil { return nil, false } @@ -87,7 +64,7 @@ func (o *TransactResponse) GetStatusResponseOk() (*Transact200ResponseStatusResp } // SetStatusResponse sets field value -func (o *TransactResponse) SetStatusResponse(v Transact200ResponseStatusResponse) { +func (o *TransactResponse) SetStatusResponse(v StatusResponse) { o.StatusResponse = v } @@ -101,11 +78,47 @@ func (o TransactResponse) MarshalJSON() ([]byte, error) { func (o TransactResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID toSerialize["statusResponse"] = o.StatusResponse return toSerialize, nil } +func (o *TransactResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "statusResponse", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTransactResponse := _TransactResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTransactResponse) + + if err != nil { + return err + } + + *o = TransactResponse(varTransactResponse) + + return err +} + type NullableTransactResponse struct { value *TransactResponse isSet bool diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transfer_request.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transfer_request.go new file mode 100644 index 0000000000..26a0ce8626 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/model_transfer_request.go @@ -0,0 +1,270 @@ +/* +CBDC-example backend API + +Cactus-Example + +API version: 0.0.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the TransferRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferRequest{} + +// TransferRequest Request schema for transferring an asset. +type TransferRequest struct { + From string `json:"from"` + To string `json:"to"` + SourceChain AssetType `json:"sourceChain"` + ReceiverChain AssetType `json:"receiverChain"` + Amount string `json:"amount"` +} + +type _TransferRequest TransferRequest + +// NewTransferRequest instantiates a new TransferRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTransferRequest(from string, to string, sourceChain AssetType, receiverChain AssetType, amount string) *TransferRequest { + this := TransferRequest{} + this.From = from + this.To = to + this.SourceChain = sourceChain + this.ReceiverChain = receiverChain + this.Amount = amount + return &this +} + +// NewTransferRequestWithDefaults instantiates a new TransferRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTransferRequestWithDefaults() *TransferRequest { + this := TransferRequest{} + return &this +} + +// GetFrom returns the From field value +func (o *TransferRequest) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *TransferRequest) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *TransferRequest) SetFrom(v string) { + o.From = v +} + +// GetTo returns the To field value +func (o *TransferRequest) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *TransferRequest) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *TransferRequest) SetTo(v string) { + o.To = v +} + +// GetSourceChain returns the SourceChain field value +func (o *TransferRequest) GetSourceChain() AssetType { + if o == nil { + var ret AssetType + return ret + } + + return o.SourceChain +} + +// GetSourceChainOk returns a tuple with the SourceChain field value +// and a boolean to check if the value has been set. +func (o *TransferRequest) GetSourceChainOk() (*AssetType, bool) { + if o == nil { + return nil, false + } + return &o.SourceChain, true +} + +// SetSourceChain sets field value +func (o *TransferRequest) SetSourceChain(v AssetType) { + o.SourceChain = v +} + +// GetReceiverChain returns the ReceiverChain field value +func (o *TransferRequest) GetReceiverChain() AssetType { + if o == nil { + var ret AssetType + return ret + } + + return o.ReceiverChain +} + +// GetReceiverChainOk returns a tuple with the ReceiverChain field value +// and a boolean to check if the value has been set. +func (o *TransferRequest) GetReceiverChainOk() (*AssetType, bool) { + if o == nil { + return nil, false + } + return &o.ReceiverChain, true +} + +// SetReceiverChain sets field value +func (o *TransferRequest) SetReceiverChain(v AssetType) { + o.ReceiverChain = v +} + +// GetAmount returns the Amount field value +func (o *TransferRequest) GetAmount() string { + if o == nil { + var ret string + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *TransferRequest) GetAmountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *TransferRequest) SetAmount(v string) { + o.Amount = v +} + +func (o TransferRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["from"] = o.From + toSerialize["to"] = o.To + toSerialize["sourceChain"] = o.SourceChain + toSerialize["receiverChain"] = o.ReceiverChain + toSerialize["amount"] = o.Amount + return toSerialize, nil +} + +func (o *TransferRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "from", + "to", + "sourceChain", + "receiverChain", + "amount", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTransferRequest := _TransferRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTransferRequest) + + if err != nil { + return err + } + + *o = TransferRequest(varTransferRequest) + + return err +} + +type NullableTransferRequest struct { + value *TransferRequest + isSet bool +} + +func (v NullableTransferRequest) Get() *TransferRequest { + return v.value +} + +func (v *NullableTransferRequest) Set(val *TransferRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTransferRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferRequest(val *TransferRequest) *NullableTransferRequest { + return &NullableTransferRequest{value: val, isSet: true} +} + +func (v NullableTransferRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/response.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/response.go similarity index 90% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/response.go rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/response.go index d68c3dcc36..0820203738 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/response.go +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/response.go @@ -1,14 +1,14 @@ /* -Hyperledger Cactus Plugin - Odap Hermes +CBDC-example backend API -Implementation for Odap and Hermes +Cactus-Example -API version: 2.0.0-rc.7 +API version: 0.0.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package cactus-plugin-satp-hermes +package generated import ( "net/http" diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_approve_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_approve_test.go new file mode 100644 index 0000000000..0fe119af93 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_approve_test.go @@ -0,0 +1,36 @@ +/* +CBDC-example backend API + +Testing ApproveAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_ApproveAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ApproveAPIService Approve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ApproveAPI.Approve(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_amount_approved_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_amount_approved_test.go new file mode 100644 index 0000000000..6cdd7a4618 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_amount_approved_test.go @@ -0,0 +1,37 @@ +/* +CBDC-example backend API + +Testing GetAmountApprovedAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_GetAmountApprovedAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test GetAmountApprovedAPIService GetAmountApproved", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.GetAmountApprovedAPI.GetAmountApproved(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_balance_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_balance_test.go new file mode 100644 index 0000000000..b5806c744c --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_balance_test.go @@ -0,0 +1,37 @@ +/* +CBDC-example backend API + +Testing GetBalanceAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_GetBalanceAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test GetBalanceAPIService GetBalance", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.GetBalanceAPI.GetBalance(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_sessions_references_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_sessions_references_test.go new file mode 100644 index 0000000000..f0138002ef --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_get_sessions_references_test.go @@ -0,0 +1,37 @@ +/* +CBDC-example backend API + +Testing GetSessionsReferencesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_GetSessionsReferencesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test GetSessionsReferencesAPIService GetSessionsReferences", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.GetSessionsReferencesAPI.GetSessionsReferences(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_mint_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_mint_test.go new file mode 100644 index 0000000000..d165c7a96e --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_mint_test.go @@ -0,0 +1,36 @@ +/* +CBDC-example backend API + +Testing MintAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_MintAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test MintAPIService Mint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.MintAPI.Mint(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transact_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transact_test.go new file mode 100644 index 0000000000..3fd45e7812 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transact_test.go @@ -0,0 +1,37 @@ +/* +CBDC-example backend API + +Testing TransactAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_TransactAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TransactAPIService Transact", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TransactAPI.Transact(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transfer_test.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transfer_test.go new file mode 100644 index 0000000000..0170f361e4 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/test/api_transfer_test.go @@ -0,0 +1,36 @@ +/* +CBDC-example backend API + +Testing TransferAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package generated + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/hyperledger/cacti/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated" +) + +func Test_generated_TransferAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TransferAPIService Transfer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.TransferAPI.Transfer(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/utils.go b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/utils.go similarity index 93% rename from packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/utils.go rename to examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/utils.go index 6959f1876a..62ed3ae885 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/utils.go +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/go/generated/openapi/utils.go @@ -1,17 +1,19 @@ /* -Hyperledger Cactus Plugin - Odap Hermes +CBDC-example backend API -Implementation for Odap and Hermes +Cactus-Example -API version: 2.0.0-rc.7 +API version: 0.0.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package cactus-plugin-satp-hermes +package generated import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -320,7 +322,7 @@ func NewNullableTime(val *time.Time) *NullableTime { } func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() + return json.Marshal(v.value) } func (v *NullableTime) UnmarshalJSON(src []byte) error { @@ -345,3 +347,15 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/json/openapi-bundled.json b/examples/cactus-example-cbdc-bridging-backend/src/main/json/openapi-bundled.json new file mode 100644 index 0000000000..df09bc140a --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/json/openapi-bundled.json @@ -0,0 +1,760 @@ +{ + "openapi": "3.0.3", + "info": { + "title": "CBDC-example backend API", + "version": "0.0.2", + "description": "Cactus-Example\n", + "contact": { + "name": "Hyperledger Cacti" + }, + "x-logo": { + "altText": "Cacti logo", + "backgroundColor": "#fafafa", + "url": "https://github.com/hyperledger/cacti/blob/main/images/HL_Cacti_Logo_Color.png" + } + }, + "tags": [ + { + "name": "transaction", + "description": "API endpoints for interacting with blockchains via gateways" + }, + { + "name": "admin", + "description": "API endpoints for fetching information on SATP sessions" + } + ], + "paths": { + "/api/v1/@hyperledger/cactus-example-cbdc/transact": { + "post": { + "tags": [ + "transact" + ], + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "post", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/transact" + } + }, + "summary": "Submit a transaction intent", + "description": "Allows users to queue intents for transactions based on specified parameters.", + "operationId": "Transact", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "description": "Request schema for initiating a transaction. Includes details such as the transaction context, mode (data or transfer), payload, and information about the source and receiver DLT networks.", + "type": "object", + "required": [ + "sender", + "receiver", + "sourceChain", + "receiverChain", + "amount" + ], + "properties": { + "sender": { + "type": "string", + "example": "user1" + }, + "receiver": { + "type": "string", + "example": "user2" + }, + "sourceChain": { + "description": "Enum for the type of asset being transferred.", + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + }, + "receiverChain": { + "description": "Enum for the type of asset being transferred.", + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + }, + "amount": { + "type": "string", + "example": "100" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Transaction successfully queued", + "content": { + "application/json": { + "schema": { + "description": "Response schema for a transaction request.", + "type": "object", + "properties": { + "statusResponse": { + "description": "Response schema for a transaction status request.", + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "example": "123e4567-e89b-12d3-a456-426614174000" + }, + "status": { + "type": "string", + "enum": [ + "NOT_FOUND", + "INVALID", + "PENDING", + "DONE", + "FAILED" + ] + } + }, + "required": [ + "status" + ] + } + }, + "required": [ + "statusResponse" + ] + } + } + } + }, + "default": { + "description": "An error occurred", + "content": { + "application/json": { + "schema": { + "x-category": "response", + "type": "object", + "x-go-type": "ApiError", + "x-go-name": "ApiError", + "description": "An Error", + "required": [ + "message", + "type", + "code", + "status", + "timestamp" + ], + "properties": { + "type": { + "type": "string", + "description": "HTTP error type", + "example": "bad-request" + }, + "code": { + "type": "integer", + "description": "Numeric error code", + "example": 16384 + }, + "status": { + "type": "integer", + "description": "HTTP status of the error", + "example": 500 + }, + "message": { + "type": "string", + "description": "Long error description", + "example": "Oops there's been an internal error handling" + }, + "timestamp": { + "type": "string", + "description": "Timestamp of the error", + "example": "2021-07-21T17:32:28Z" + } + } + } + } + } + } + } + } + }, + "/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references": { + "get": { + "tags": [ + "get-sessions-references" + ], + "summary": "Get SATP current sessions data", + "description": "Retrieve the status of a SATP sessions of a gateway", + "operationId": "GetSessionsReferences", + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "get", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references" + } + }, + "parameters": [ + { + "name": "Ledger", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + }, + "description": "Unique identifier for the session." + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "description": "Response schema for a transaction status request.", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "123e4567-e89b-12d3-a456-426614174000" + }, + "status": { + "type": "string" + }, + "sourceLedger": { + "type": "string" + }, + "receiverLedger": { + "type": "string" + } + }, + "required": [ + "status", + "id", + "sourceLedger", + "receiverLedger" + ] + } + } + } + } + }, + "400": { + "description": "Bad request" + }, + "404": { + "description": "Transaction not found" + }, + "500": { + "description": "Internal server error" + } + } + } + }, + "/api/v1/@hyperledger/cactus-example-cbdc/get-balance": { + "get": { + "tags": [ + "get-balance" + ], + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "get", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/get-balance" + } + }, + "operationId": "GetBalance", + "parameters": [ + { + "name": "user", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "chain", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "description": "Response schema for an amount request.", + "type": "object", + "properties": { + "amount": { + "type": "string", + "example": "100" + } + }, + "required": [ + "amount" + ] + } + } + } + }, + "400": { + "description": "Bad request" + }, + "404": { + "description": "Transaction not found" + }, + "500": { + "description": "Internal server error" + } + } + } + }, + "/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens": { + "post": { + "tags": [ + "mint" + ], + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "post", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens" + } + }, + "summary": "Submit a transaction intent", + "description": "Allows users to queue intents for transactions based on specified parameters.", + "operationId": "Mint", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "description": "Request schema for minting an asset.", + "type": "object", + "properties": { + "user": { + "type": "string", + "example": "user1" + }, + "amount": { + "type": "string", + "example": "100" + }, + "ledger": { + "description": "Enum for the type of asset being transferred.", + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + } + }, + "required": [ + "user", + "amount", + "ledger" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Transaction successfully queued" + }, + "400": { + "description": "Bad request" + }, + "404": { + "description": "Transaction not found" + }, + "500": { + "description": "Internal server error" + }, + "default": { + "description": "An error occurred", + "content": { + "application/json": { + "schema": { + "x-category": "response", + "type": "object", + "x-go-type": "ApiError", + "x-go-name": "ApiError", + "description": "An Error", + "required": [ + "message", + "type", + "code", + "status", + "timestamp" + ], + "properties": { + "type": { + "type": "string", + "description": "HTTP error type", + "example": "bad-request" + }, + "code": { + "type": "integer", + "description": "Numeric error code", + "example": 16384 + }, + "status": { + "type": "integer", + "description": "HTTP status of the error", + "example": 500 + }, + "message": { + "type": "string", + "description": "Long error description", + "example": "Oops there's been an internal error handling" + }, + "timestamp": { + "type": "string", + "description": "Timestamp of the error", + "example": "2021-07-21T17:32:28Z" + } + } + } + } + } + } + } + } + }, + "/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens": { + "post": { + "tags": [ + "approve" + ], + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "post", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens" + } + }, + "summary": "Submit a transaction intent", + "description": "Approves a certain amount to be transferred from the user's account by the bridge.", + "operationId": "Approve", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "description": "Request schema for approving a transaction.", + "type": "object", + "properties": { + "user": { + "type": "string", + "example": "user1" + }, + "amount": { + "type": "string", + "example": "100" + }, + "ledger": { + "description": "Enum for the type of asset being transferred.", + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + } + }, + "required": [ + "user", + "amount", + "ledger" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Transaction successfully queued" + }, + "400": { + "description": "Bad request" + }, + "404": { + "description": "Transaction not found" + }, + "500": { + "description": "Internal server error" + }, + "default": { + "description": "An error occurred", + "content": { + "application/json": { + "schema": { + "x-category": "response", + "type": "object", + "x-go-type": "ApiError", + "x-go-name": "ApiError", + "description": "An Error", + "required": [ + "message", + "type", + "code", + "status", + "timestamp" + ], + "properties": { + "type": { + "type": "string", + "description": "HTTP error type", + "example": "bad-request" + }, + "code": { + "type": "integer", + "description": "Numeric error code", + "example": 16384 + }, + "status": { + "type": "integer", + "description": "HTTP status of the error", + "example": 500 + }, + "message": { + "type": "string", + "description": "Long error description", + "example": "Oops there's been an internal error handling" + }, + "timestamp": { + "type": "string", + "description": "Timestamp of the error", + "example": "2021-07-21T17:32:28Z" + } + } + } + } + } + } + } + } + }, + "/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved": { + "get": { + "tags": [ + "get-amount-approved" + ], + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "get", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved" + } + }, + "summary": "Get the amount approved for a transaction", + "description": "Get the amount approved for a transaction", + "operationId": "GetAmountApproved", + "parameters": [ + { + "name": "user", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "chain", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "string", + "example": "100" + } + } + } + }, + "400": { + "description": "Bad request" + }, + "404": { + "description": "Transaction not found" + }, + "500": { + "description": "Internal server error" + } + } + } + }, + "/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens": { + "post": { + "tags": [ + "transfer" + ], + "x-hyperledger-cacti": { + "http": { + "verbLowerCase": "post", + "path": "/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens" + } + }, + "summary": "Submit a transaction intent", + "description": "Allows users to queue intents for transactions based on specified parameters.", + "operationId": "Transfer", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "description": "Request schema for transferring an asset.", + "type": "object", + "properties": { + "from": { + "type": "string", + "example": "user1" + }, + "to": { + "type": "string", + "example": "user2" + }, + "sourceChain": { + "description": "Enum for the type of asset being transferred.", + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + }, + "receiverChain": { + "description": "Enum for the type of asset being transferred.", + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "FABRIC", + "BESU" + ] + } + } + }, + "amount": { + "type": "string", + "example": "100" + } + }, + "required": [ + "from", + "to", + "amount", + "sourceChain", + "receiverChain" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Transaction successfully queued" + }, + "400": { + "description": "Bad request" + }, + "404": { + "description": "Transaction not found" + }, + "500": { + "description": "Internal server error" + }, + "default": { + "description": "An error occurred", + "content": { + "application/json": { + "schema": { + "x-category": "response", + "type": "object", + "x-go-type": "ApiError", + "x-go-name": "ApiError", + "description": "An Error", + "required": [ + "message", + "type", + "code", + "status", + "timestamp" + ], + "properties": { + "type": { + "type": "string", + "description": "HTTP error type", + "example": "bad-request" + }, + "code": { + "type": "integer", + "description": "Numeric error code", + "example": 16384 + }, + "status": { + "type": "integer", + "description": "HTTP status of the error", + "example": 500 + }, + "message": { + "type": "string", + "description": "Long error description", + "example": "Oops there's been an internal error handling" + }, + "timestamp": { + "type": "string", + "description": "Timestamp of the error", + "example": "2021-07-21T17:32:28Z" + } + } + } + } + } + } + } + } + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app-cli.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app-cli.ts index 5725fbff22..2923a6dcab 100755 --- a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app-cli.ts +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app-cli.ts @@ -7,7 +7,6 @@ import { } from "@hyperledger/cactus-cmd-api-server"; import { LoggerProvider } from "@hyperledger/cactus-common"; import { ICbdcBridgingApp, CbdcBridgingApp } from "./cbdc-bridging-app"; -import CryptoMaterial from "../../crypto-material/crypto-material.json"; import "dotenv/config"; export async function launchApp( @@ -21,7 +20,7 @@ export async function launchApp( exampleConfig.authorizationConfigJson, ) as unknown as IAuthorizationConfig; exampleConfig.authorizationProtocol = AuthorizationProtocol.NONE; - + const convictConfig = await configService.newExampleConfigConvict(exampleConfig); @@ -32,24 +31,6 @@ export async function launchApp( LoggerProvider.setLogLevel(serverOptions.logLevel); - const clientGatewayKeyPair = { - privateKey: Uint8Array.from( - Buffer.from(CryptoMaterial.gateways["gateway1"].privateKey, "hex"), - ), - publicKey: Uint8Array.from( - Buffer.from(CryptoMaterial.gateways["gateway1"].publicKey, "hex"), - ), - }; - - const serverGatewayKeyPair = { - privateKey: Uint8Array.from( - Buffer.from(CryptoMaterial.gateways["gateway2"].privateKey, "hex"), - ), - publicKey: Uint8Array.from( - Buffer.from(CryptoMaterial.gateways["gateway2"].publicKey, "hex"), - ), - }; - if ( process.env.API_HOST == undefined || process.env.API_SERVER_1_PORT == undefined || @@ -65,16 +46,16 @@ export async function launchApp( } const appOptions: ICbdcBridgingApp = { - apiServer1Port: parseInt(process.env.API_SERVER_1_PORT), - apiServer2Port: parseInt(process.env.API_SERVER_2_PORT), - apiHost: process.env.API_HOST, - apiGateway1ServerPort: parseInt(process.env.API_GATEWAY_1_SERVER_PORT), - apiGateway1ClientPort: parseInt(process.env.API_GATEWAY_1_CLIENT_PORT), - apiGateway1BloPort: parseInt(process.env.API_GATEWAY_1_BLO_PORT), - apiGateway2ServerPort: parseInt(process.env.API_GATEWAY_2_SERVER_PORT), - apiGateway2ClientPort: parseInt(process.env.API_GATEWAY_2_CLIENT_PORT), - apiGateway2BloPort: parseInt(process.env.API_GATEWAY_2_BLO_PORT), - logLevel: "DEBUG", + apiServer1Port: parseInt(process.env.API_SERVER_1_PORT), + apiServer2Port: parseInt(process.env.API_SERVER_2_PORT), + apiHost: process.env.API_HOST, + apiGateway1ServerPort: parseInt(process.env.API_GATEWAY_1_SERVER_PORT), + apiGateway1ClientPort: parseInt(process.env.API_GATEWAY_1_CLIENT_PORT), + apiGateway1BloPort: parseInt(process.env.API_GATEWAY_1_BLO_PORT), + apiGateway2ServerPort: parseInt(process.env.API_GATEWAY_2_SERVER_PORT), + apiGateway2ClientPort: parseInt(process.env.API_GATEWAY_2_CLIENT_PORT), + apiGateway2BloPort: parseInt(process.env.API_GATEWAY_2_BLO_PORT), + logLevel: "DEBUG", }; const cbdcBridgingApp = new CbdcBridgingApp(appOptions); diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app.ts index 9dc3082b5d..56b80a015a 100644 --- a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app.ts +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app.ts @@ -1,5 +1,4 @@ import { AddressInfo } from "net"; -import { v4 as uuidv4 } from "uuid"; import exitHook, { IAsyncExitHookDoneCallback } from "async-exit-hook"; import { PluginRegistry } from "@hyperledger/cactus-core"; import { @@ -41,7 +40,6 @@ export interface ICbdcBridgingApp { apiGateway2ClientPort: number; apiGateway2BloPort: number; - logLevel?: LogLevelDesc; apiServerOptions?: ICactusApiServerOptions; disableSignalHandlers?: true; @@ -77,7 +75,7 @@ export class CbdcBridgingApp { }); } - public async start()/*: Promise */{ + public async start() /*: Promise */ { this.log.debug(`Starting CBDC Bridging App...`); if (!this.options.disableSignalHandlers) { @@ -111,30 +109,29 @@ export class CbdcBridgingApp { server: fabricServer, }; addressInfoA = (await Servers.listen(listenOptions)) as AddressInfo; - + await fabricPlugin.getOrCreateWebServices(); await fabricPlugin.registerWebServices(expressApp); + } + { + const expressApp = express(); + expressApp.use(bodyParser.json({ limit: "250mb" })); + expressApp.use(cors()); + const besuServer = http.createServer(expressApp); + const listenOptions: IListenOptions = { + hostname: this.options.apiHost, + port: this.options.apiServer2Port, + server: besuServer, + }; + addressInfoB = (await Servers.listen(listenOptions)) as AddressInfo; + await besuPlugin.getOrCreateWebServices(); + const wsApi = new SocketIoServer(besuServer, { + path: Constants.SocketIoConnectionPathV1, + }); + await besuPlugin.registerWebServices(expressApp, wsApi); } - { - const expressApp = express(); - expressApp.use(bodyParser.json({ limit: "250mb" })); - expressApp.use(cors()); - const besuServer = http.createServer(expressApp); - const listenOptions: IListenOptions = { - hostname: this.options.apiHost, - port: this.options.apiServer2Port, - server: besuServer, - }; - addressInfoB = (await Servers.listen(listenOptions)) as AddressInfo; - await besuPlugin.getOrCreateWebServices(); - const wsApi = new SocketIoServer(besuServer, { - path: Constants.SocketIoConnectionPathV1, - }); - await besuPlugin.registerWebServices(expressApp, wsApi); - } - const nodeApiHostA = `http://${this.options.apiHost}:${addressInfoA.port}`; const nodeApiHostB = `http://${this.options.apiHost}:${addressInfoB.port}`; @@ -146,23 +143,24 @@ export class CbdcBridgingApp { new Configuration({ basePath: nodeApiHostB }), ); + this.infrastructure.setFabricApi(fabricApiClient); + this.infrastructure.setBesuApi(besuApiClient); + this.log.info("Deploying chaincode and smart contracts..."); - await this.infrastructure.deployFabricSATPContract(fabricApiClient); + await this.infrastructure.deployFabricSATPContract(); - await this.infrastructure.deployFabricWrapperContract( - fabricApiClient, - ); + await this.infrastructure.deployFabricWrapperContract(); this.log.info("Fabric Chaincode Deployed"); - await this.infrastructure.deployBesuContracts(besuApiClient); + await this.infrastructure.deployBesuContracts(); - await this.infrastructure.initializeContractsAndAddPermitions(fabricApiClient, besuApiClient); + await this.infrastructure.initializeContractsAndAddPermitions(); this.log.info(`Chaincode and smart Contracts deployed.`); const gatways = await this.infrastructure.createSATPGateways(); - for(const gateway of gatways){ + for (const gateway of gatways) { await gateway.startup(); } @@ -229,8 +227,6 @@ export class CbdcBridgingApp { export interface IStartInfo { readonly apiServer1: ApiServer; readonly apiServer2: ApiServer; - //readonly fabricGatewayApi: SatpApi; - //readonly besuGatewayApi: SatpApi; readonly besuApiClient: BesuApi; readonly fabricApiClient: FabricApi; readonly fabricSatpGateway: SATPGateway; diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.gitignore b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.gitignore new file mode 100644 index 0000000000..149b576547 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.npmignore b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.npmignore new file mode 100644 index 0000000000..999d88df69 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator-ignore b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator-ignore new file mode 100644 index 0000000000..7484ee590a --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/FILES b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/FILES new file mode 100644 index 0000000000..a80cd4f07b --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/FILES @@ -0,0 +1,8 @@ +.gitignore +.npmignore +api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/VERSION b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/VERSION new file mode 100644 index 0000000000..09a6d30847 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/api.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/api.ts new file mode 100644 index 0000000000..ef249fa9ea --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/api.ts @@ -0,0 +1,1098 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * CBDC-example backend API + * Cactus-Example + * + * The version of the OpenAPI document: 0.0.2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; +import type { RequestArgs } from './base'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; + +/** + * Request schema for approving a transaction. + * @export + * @interface ApproveRequest + */ +export interface ApproveRequest { + /** + * + * @type {string} + * @memberof ApproveRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof ApproveRequest + */ + 'amount': string; + /** + * + * @type {TransactRequestSourceChain} + * @memberof ApproveRequest + */ + 'ledger': TransactRequestSourceChain; +} +/** + * Response schema for an amount request. + * @export + * @interface GetBalance200Response + */ +export interface GetBalance200Response { + /** + * + * @type {string} + * @memberof GetBalance200Response + */ + 'amount': string; +} +/** + * + * @export + * @interface GetSessionsReferences200ResponseInner + */ +export interface GetSessionsReferences200ResponseInner { + /** + * + * @type {string} + * @memberof GetSessionsReferences200ResponseInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof GetSessionsReferences200ResponseInner + */ + 'status': string; + /** + * + * @type {string} + * @memberof GetSessionsReferences200ResponseInner + */ + 'sourceLedger': string; + /** + * + * @type {string} + * @memberof GetSessionsReferences200ResponseInner + */ + 'receiverLedger': string; +} +/** + * Request schema for minting an asset. + * @export + * @interface MintRequest + */ +export interface MintRequest { + /** + * + * @type {string} + * @memberof MintRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof MintRequest + */ + 'amount': string; + /** + * + * @type {TransactRequestSourceChain} + * @memberof MintRequest + */ + 'ledger': TransactRequestSourceChain; +} +/** + * Response schema for a transaction request. + * @export + * @interface Transact200Response + */ +export interface Transact200Response { + /** + * + * @type {Transact200ResponseStatusResponse} + * @memberof Transact200Response + */ + 'statusResponse': Transact200ResponseStatusResponse; +} +/** + * Response schema for a transaction status request. + * @export + * @interface Transact200ResponseStatusResponse + */ +export interface Transact200ResponseStatusResponse { + /** + * + * @type {string} + * @memberof Transact200ResponseStatusResponse + */ + 'sessionID'?: string; + /** + * + * @type {string} + * @memberof Transact200ResponseStatusResponse + */ + 'status': Transact200ResponseStatusResponseStatusEnum; +} + +export const Transact200ResponseStatusResponseStatusEnum = { + NotFound: 'NOT_FOUND', + Invalid: 'INVALID', + Pending: 'PENDING', + Done: 'DONE', + Failed: 'FAILED' +} as const; + +export type Transact200ResponseStatusResponseStatusEnum = typeof Transact200ResponseStatusResponseStatusEnum[keyof typeof Transact200ResponseStatusResponseStatusEnum]; + +/** + * An Error + * @export + * @interface TransactDefaultResponse + */ +export interface TransactDefaultResponse { + /** + * HTTP error type + * @type {string} + * @memberof TransactDefaultResponse + */ + 'type': string; + /** + * Numeric error code + * @type {number} + * @memberof TransactDefaultResponse + */ + 'code': number; + /** + * HTTP status of the error + * @type {number} + * @memberof TransactDefaultResponse + */ + 'status': number; + /** + * Long error description + * @type {string} + * @memberof TransactDefaultResponse + */ + 'message': string; + /** + * Timestamp of the error + * @type {string} + * @memberof TransactDefaultResponse + */ + 'timestamp': string; +} +/** + * Request schema for initiating a transaction. Includes details such as the transaction context, mode (data or transfer), payload, and information about the source and receiver DLT networks. + * @export + * @interface TransactRequest + */ +export interface TransactRequest { + /** + * + * @type {string} + * @memberof TransactRequest + */ + 'sender': string; + /** + * + * @type {string} + * @memberof TransactRequest + */ + 'receiver': string; + /** + * + * @type {TransactRequestSourceChain} + * @memberof TransactRequest + */ + 'sourceChain': TransactRequestSourceChain; + /** + * + * @type {TransactRequestSourceChain} + * @memberof TransactRequest + */ + 'receiverChain': TransactRequestSourceChain; + /** + * + * @type {string} + * @memberof TransactRequest + */ + 'amount': string; +} +/** + * Enum for the type of asset being transferred. + * @export + * @interface TransactRequestSourceChain + */ +export interface TransactRequestSourceChain { + /** + * + * @type {string} + * @memberof TransactRequestSourceChain + */ + 'assetType'?: TransactRequestSourceChainAssetTypeEnum; +} + +export const TransactRequestSourceChainAssetTypeEnum = { + Fabric: 'FABRIC', + Besu: 'BESU' +} as const; + +export type TransactRequestSourceChainAssetTypeEnum = typeof TransactRequestSourceChainAssetTypeEnum[keyof typeof TransactRequestSourceChainAssetTypeEnum]; + +/** + * Request schema for transferring an asset. + * @export + * @interface TransferRequest + */ +export interface TransferRequest { + /** + * + * @type {string} + * @memberof TransferRequest + */ + 'from': string; + /** + * + * @type {string} + * @memberof TransferRequest + */ + 'to': string; + /** + * + * @type {TransactRequestSourceChain} + * @memberof TransferRequest + */ + 'sourceChain': TransactRequestSourceChain; + /** + * + * @type {TransactRequestSourceChain} + * @memberof TransferRequest + */ + 'receiverChain': TransactRequestSourceChain; + /** + * + * @type {string} + * @memberof TransferRequest + */ + 'amount': string; +} + +/** + * ApproveApi - axios parameter creator + * @export + */ +export const ApproveApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Approves a certain amount to be transferred from the user\'s account by the bridge. + * @summary Submit a transaction intent + * @param {ApproveRequest} approveRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approve: async (approveRequest: ApproveRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'approveRequest' is not null or undefined + assertParamExists('approve', 'approveRequest', approveRequest) + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(approveRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ApproveApi - functional programming interface + * @export + */ +export const ApproveApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApproveApiAxiosParamCreator(configuration) + return { + /** + * Approves a certain amount to be transferred from the user\'s account by the bridge. + * @summary Submit a transaction intent + * @param {ApproveRequest} approveRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async approve(approveRequest: ApproveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.approve(approveRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApproveApi.approve']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * ApproveApi - factory interface + * @export + */ +export const ApproveApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApproveApiFp(configuration) + return { + /** + * Approves a certain amount to be transferred from the user\'s account by the bridge. + * @summary Submit a transaction intent + * @param {ApproveRequest} approveRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approve(approveRequest: ApproveRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.approve(approveRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ApproveApi - object-oriented interface + * @export + * @class ApproveApi + * @extends {BaseAPI} + */ +export class ApproveApi extends BaseAPI { + /** + * Approves a certain amount to be transferred from the user\'s account by the bridge. + * @summary Submit a transaction intent + * @param {ApproveRequest} approveRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApproveApi + */ + public approve(approveRequest: ApproveRequest, options?: RawAxiosRequestConfig) { + return ApproveApiFp(this.configuration).approve(approveRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + + + +/** + * GetAmountApprovedApi - axios parameter creator + * @export + */ +export const GetAmountApprovedApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get the amount approved for a transaction + * @summary Get the amount approved for a transaction + * @param {string} [user] + * @param {GetAmountApprovedChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAmountApproved: async (user?: string, chain?: GetAmountApprovedChainEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (chain !== undefined) { + localVarQueryParameter['chain'] = chain; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * GetAmountApprovedApi - functional programming interface + * @export + */ +export const GetAmountApprovedApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = GetAmountApprovedApiAxiosParamCreator(configuration) + return { + /** + * Get the amount approved for a transaction + * @summary Get the amount approved for a transaction + * @param {string} [user] + * @param {GetAmountApprovedChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAmountApproved(user?: string, chain?: GetAmountApprovedChainEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAmountApproved(user, chain, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GetAmountApprovedApi.getAmountApproved']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * GetAmountApprovedApi - factory interface + * @export + */ +export const GetAmountApprovedApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = GetAmountApprovedApiFp(configuration) + return { + /** + * Get the amount approved for a transaction + * @summary Get the amount approved for a transaction + * @param {string} [user] + * @param {GetAmountApprovedChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAmountApproved(user?: string, chain?: GetAmountApprovedChainEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAmountApproved(user, chain, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GetAmountApprovedApi - object-oriented interface + * @export + * @class GetAmountApprovedApi + * @extends {BaseAPI} + */ +export class GetAmountApprovedApi extends BaseAPI { + /** + * Get the amount approved for a transaction + * @summary Get the amount approved for a transaction + * @param {string} [user] + * @param {GetAmountApprovedChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GetAmountApprovedApi + */ + public getAmountApproved(user?: string, chain?: GetAmountApprovedChainEnum, options?: RawAxiosRequestConfig) { + return GetAmountApprovedApiFp(this.configuration).getAmountApproved(user, chain, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetAmountApprovedChainEnum = { + Fabric: 'FABRIC', + Besu: 'BESU' +} as const; +export type GetAmountApprovedChainEnum = typeof GetAmountApprovedChainEnum[keyof typeof GetAmountApprovedChainEnum]; + + +/** + * GetBalanceApi - axios parameter creator + * @export + */ +export const GetBalanceApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {string} [user] + * @param {GetBalanceChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalance: async (user?: string, chain?: GetBalanceChainEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/get-balance`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (chain !== undefined) { + localVarQueryParameter['chain'] = chain; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * GetBalanceApi - functional programming interface + * @export + */ +export const GetBalanceApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = GetBalanceApiAxiosParamCreator(configuration) + return { + /** + * + * @param {string} [user] + * @param {GetBalanceChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBalance(user?: string, chain?: GetBalanceChainEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(user, chain, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GetBalanceApi.getBalance']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * GetBalanceApi - factory interface + * @export + */ +export const GetBalanceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = GetBalanceApiFp(configuration) + return { + /** + * + * @param {string} [user] + * @param {GetBalanceChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalance(user?: string, chain?: GetBalanceChainEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getBalance(user, chain, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GetBalanceApi - object-oriented interface + * @export + * @class GetBalanceApi + * @extends {BaseAPI} + */ +export class GetBalanceApi extends BaseAPI { + /** + * + * @param {string} [user] + * @param {GetBalanceChainEnum} [chain] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GetBalanceApi + */ + public getBalance(user?: string, chain?: GetBalanceChainEnum, options?: RawAxiosRequestConfig) { + return GetBalanceApiFp(this.configuration).getBalance(user, chain, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetBalanceChainEnum = { + Fabric: 'FABRIC', + Besu: 'BESU' +} as const; +export type GetBalanceChainEnum = typeof GetBalanceChainEnum[keyof typeof GetBalanceChainEnum]; + + +/** + * GetSessionsReferencesApi - axios parameter creator + * @export + */ +export const GetSessionsReferencesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Retrieve the status of a SATP sessions of a gateway + * @summary Get SATP current sessions data + * @param {GetSessionsReferencesLedgerEnum} [ledger] Unique identifier for the session. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSessionsReferences: async (ledger?: GetSessionsReferencesLedgerEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (ledger !== undefined) { + localVarQueryParameter['Ledger'] = ledger; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * GetSessionsReferencesApi - functional programming interface + * @export + */ +export const GetSessionsReferencesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = GetSessionsReferencesApiAxiosParamCreator(configuration) + return { + /** + * Retrieve the status of a SATP sessions of a gateway + * @summary Get SATP current sessions data + * @param {GetSessionsReferencesLedgerEnum} [ledger] Unique identifier for the session. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSessionsReferences(ledger?: GetSessionsReferencesLedgerEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionsReferences(ledger, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GetSessionsReferencesApi.getSessionsReferences']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * GetSessionsReferencesApi - factory interface + * @export + */ +export const GetSessionsReferencesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = GetSessionsReferencesApiFp(configuration) + return { + /** + * Retrieve the status of a SATP sessions of a gateway + * @summary Get SATP current sessions data + * @param {GetSessionsReferencesLedgerEnum} [ledger] Unique identifier for the session. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSessionsReferences(ledger?: GetSessionsReferencesLedgerEnum, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getSessionsReferences(ledger, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GetSessionsReferencesApi - object-oriented interface + * @export + * @class GetSessionsReferencesApi + * @extends {BaseAPI} + */ +export class GetSessionsReferencesApi extends BaseAPI { + /** + * Retrieve the status of a SATP sessions of a gateway + * @summary Get SATP current sessions data + * @param {GetSessionsReferencesLedgerEnum} [ledger] Unique identifier for the session. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GetSessionsReferencesApi + */ + public getSessionsReferences(ledger?: GetSessionsReferencesLedgerEnum, options?: RawAxiosRequestConfig) { + return GetSessionsReferencesApiFp(this.configuration).getSessionsReferences(ledger, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetSessionsReferencesLedgerEnum = { + Fabric: 'FABRIC', + Besu: 'BESU' +} as const; +export type GetSessionsReferencesLedgerEnum = typeof GetSessionsReferencesLedgerEnum[keyof typeof GetSessionsReferencesLedgerEnum]; + + +/** + * MintApi - axios parameter creator + * @export + */ +export const MintApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {MintRequest} mintRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mint: async (mintRequest: MintRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'mintRequest' is not null or undefined + assertParamExists('mint', 'mintRequest', mintRequest) + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(mintRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * MintApi - functional programming interface + * @export + */ +export const MintApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MintApiAxiosParamCreator(configuration) + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {MintRequest} mintRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mint(mintRequest: MintRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.mint(mintRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MintApi.mint']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * MintApi - factory interface + * @export + */ +export const MintApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MintApiFp(configuration) + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {MintRequest} mintRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mint(mintRequest: MintRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.mint(mintRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * MintApi - object-oriented interface + * @export + * @class MintApi + * @extends {BaseAPI} + */ +export class MintApi extends BaseAPI { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {MintRequest} mintRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MintApi + */ + public mint(mintRequest: MintRequest, options?: RawAxiosRequestConfig) { + return MintApiFp(this.configuration).mint(mintRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + + + +/** + * TransactApi - axios parameter creator + * @export + */ +export const TransactApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransactRequest} transactRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transact: async (transactRequest: TransactRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'transactRequest' is not null or undefined + assertParamExists('transact', 'transactRequest', transactRequest) + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/transact`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(transactRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * TransactApi - functional programming interface + * @export + */ +export const TransactApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = TransactApiAxiosParamCreator(configuration) + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransactRequest} transactRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async transact(transactRequest: TransactRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.transact(transactRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactApi.transact']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * TransactApi - factory interface + * @export + */ +export const TransactApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = TransactApiFp(configuration) + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransactRequest} transactRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transact(transactRequest: TransactRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.transact(transactRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * TransactApi - object-oriented interface + * @export + * @class TransactApi + * @extends {BaseAPI} + */ +export class TransactApi extends BaseAPI { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransactRequest} transactRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactApi + */ + public transact(transactRequest: TransactRequest, options?: RawAxiosRequestConfig) { + return TransactApiFp(this.configuration).transact(transactRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + + + +/** + * TransferApi - axios parameter creator + * @export + */ +export const TransferApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transfer: async (transferRequest: TransferRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'transferRequest' is not null or undefined + assertParamExists('transfer', 'transferRequest', transferRequest) + const localVarPath = `/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(transferRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * TransferApi - functional programming interface + * @export + */ +export const TransferApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = TransferApiAxiosParamCreator(configuration) + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async transfer(transferRequest: TransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.transfer(transferRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransferApi.transfer']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * TransferApi - factory interface + * @export + */ +export const TransferApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = TransferApiFp(configuration) + return { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transfer(transferRequest: TransferRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.transfer(transferRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * TransferApi - object-oriented interface + * @export + * @class TransferApi + * @extends {BaseAPI} + */ +export class TransferApi extends BaseAPI { + /** + * Allows users to queue intents for transactions based on specified parameters. + * @summary Submit a transaction intent + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransferApi + */ + public transfer(transferRequest: TransferRequest, options?: RawAxiosRequestConfig) { + return TransferApiFp(this.configuration).transfer(transferRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + + + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/base.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/base.ts new file mode 100644 index 0000000000..87d9391082 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/base.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * CBDC-example backend API + * Cactus-Example + * + * The version of the OpenAPI document: 0.0.2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; + +export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/common.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/common.ts new file mode 100644 index 0000000000..1d05416f2c --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/common.ts @@ -0,0 +1,150 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * CBDC-example backend API + * Cactus-Example + * + * The version of the OpenAPI document: 0.0.2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/configuration.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/configuration.ts new file mode 100644 index 0000000000..8de5add773 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/configuration.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * CBDC-example backend API + * Cactus-Example + * + * The version of the OpenAPI document: 0.0.2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/git_push.sh b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/git_push.sh new file mode 100644 index 0000000000..f53a75d4fa --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/index.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/index.ts new file mode 100644 index 0000000000..c4e2fdffd4 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * CBDC-example backend API + * Cactus-Example + * + * The version of the OpenAPI document: 0.0.2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; + diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/infrastructure/cbdc-bridging-app-dummy-infrastructure.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/infrastructure/cbdc-bridging-app-dummy-infrastructure.ts index 826530f8a4..37cd4fb41f 100644 --- a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/infrastructure/cbdc-bridging-app-dummy-infrastructure.ts +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/infrastructure/cbdc-bridging-app-dummy-infrastructure.ts @@ -3,6 +3,7 @@ import cors from "cors"; import path from "path"; import { v4 as uuidv4 } from "uuid"; import fs from "fs-extra"; +import bodyParser from "body-parser"; import { Logger, Checks, @@ -12,7 +13,6 @@ import { } from "@hyperledger/cactus-common"; import { BesuTestLedger, - DEFAULT_FABRIC_2_AIO_IMAGE_NAME, FABRIC_25_LTS_AIO_FABRIC_VERSION, FABRIC_25_LTS_AIO_IMAGE_VERSION, FABRIC_25_LTS_FABRIC_SAMPLES_ENV_INFO_ORG_1, @@ -37,18 +37,45 @@ import { PluginFactoryLedgerConnector, PluginLedgerConnectorBesu, Web3SigningCredentialType, - InvokeContractV1Request as BesuInvokeContractV1Request, IPluginLedgerConnectorBesuOptions, } from "@hyperledger/cactus-plugin-ledger-connector-besu"; import { PluginRegistry } from "@hyperledger/cactus-core"; import SATPContract from "../../../solidity/main/generated/satp-erc20.sol/SATPContract.json"; import SATPWrapperContract from "../../../solidity/main/generated/satp-wrapper.sol/SATPWrapperContract.json"; -import { PluginFactorySATPGateway, SATPGateway, SATPGatewayConfig } from "@hyperledger/cactus-plugin-satp-hermes"; -import { IPluginFactoryOptions, PluginImportType } from "@hyperledger/cactus-core-api"; +import { + Configuration, + PluginFactorySATPGateway, + SATPGateway, + SATPGatewayConfig, +} from "@hyperledger/cactus-plugin-satp-hermes"; +import { + IWebServiceEndpoint, + PluginImportType, +} from "@hyperledger/cactus-core-api"; import CryptoMaterial from "../../../crypto-material/crypto-material.json"; -import { SupportedChain, GatewayIdentity, DraftVersions, Address } from "@hyperledger/cactus-plugin-satp-hermes/src/main/typescript/core/types"; -import { FabricConfig, NetworkConfig } from "@hyperledger/cactus-plugin-satp-hermes/src/main/typescript/types/blockchain-interaction"; +import { + SupportedChain, + GatewayIdentity, + DraftVersions, +} from "@hyperledger/cactus-plugin-satp-hermes/src/main/typescript/core/types"; +import { FabricConfig } from "@hyperledger/cactus-plugin-satp-hermes/src/main/typescript/types/blockchain-interaction"; import { bufArray2HexStr } from "@hyperledger/cactus-plugin-satp-hermes/src/main/typescript/gateway-utils"; +import { SessionReference } from "../types"; + +import BesuSATPInteraction from "../../../ontology/besu-erc20-ontology.json"; +import FabricSATPInteraction from "../../../ontology/fabric-erc20-ontology.json"; +import { ApproveEndpointV1 } from "../web-services/approve-endpoint"; +import { GetSessionsDataEndpointV1 } from "../web-services/get-all-session-data-endpoints"; +import { GetBalanceEndpointV1 } from "../web-services/get-balance-endpoint"; +import { MintEndpointV1 } from "../web-services/mint-endpoint"; +import { TransactEndpointV1 } from "../web-services/transact-endpoint"; +import { TransferEndpointV1 } from "../web-services/transfer-endpoint"; +import { GetAmountApprovedEndpointV1 } from "../web-services/get-amount-approved-endpoint"; + +import { + AdminApi, + TransactionApi, +} from "@hyperledger/cactus-plugin-satp-hermes/src/main/typescript/generated/gateway-client/typescript-axios/api"; export interface ICbdcBridgingAppDummyInfrastructureOptions { logLevel?: LogLevelDesc; @@ -72,7 +99,9 @@ export class CbdcBridgingAppDummyInfrastructure { private besuFirstHighNetWorthAccountPriv: string = ""; private besuOptions: IPluginLedgerConnectorBesuOptions | undefined; - private fabricConnectorBridgeOptions: IPluginLedgerConnectorFabricOptions | undefined; + private fabricConnectorBridgeOptions: + | IPluginLedgerConnectorFabricOptions + | undefined; private besuContractAddress: string | undefined; private besuWrapperContractAddress: string | undefined; @@ -81,10 +110,20 @@ export class CbdcBridgingAppDummyInfrastructure { private fabricKeychainPlugin: PluginKeychainMemory | undefined; + private fabricApiTransactApi: TransactionApi | undefined; + private besuApiTransactApi: TransactionApi | undefined; + + private fabricApiAdminApi: AdminApi | undefined; + private besuApiAdminApi: AdminApi | undefined; + + private fabricConnectorApi: FabricApi | undefined; + private besuConnectorApi: BesuApi | undefined; + private readonly gatewayFactory = new PluginFactorySATPGateway({ pluginImportType: PluginImportType.Local, }); - + endpoints: any; + public get className(): string { return CbdcBridgingAppDummyInfrastructure.CLASS_NAME; } @@ -93,6 +132,14 @@ export class CbdcBridgingAppDummyInfrastructure { return CbdcBridgingAppDummyInfrastructure.FABRIC_2_AIO_CLI_CFG_DIR; } + public setFabricApi(value: FabricApi) { + this.fabricConnectorApi = value; + } + + public setBesuApi(value: BesuApi) { + this.besuConnectorApi = value; + } + constructor( public readonly options: ICbdcBridgingAppDummyInfrastructureOptions, ) { @@ -143,7 +190,8 @@ export class CbdcBridgingAppDummyInfrastructure { this.log.info(`Starting dummy infrastructure...`); await Promise.all([this.besu.start(), this.fabric.start()]); this.besuFirstHighNetWorthAccount = this.besu.getGenesisAccountPubKey(); - this.besuFirstHighNetWorthAccountPriv = this.besu.getGenesisAccountPrivKey(); + this.besuFirstHighNetWorthAccountPriv = + this.besu.getGenesisAccountPrivKey(); this.log.info(`Started dummy infrastructure OK`); } catch (ex) { this.log.error(`Starting of dummy infrastructure crashed: `, ex); @@ -167,7 +215,8 @@ export class CbdcBridgingAppDummyInfrastructure { public async createFabricLedgerConnector(): Promise { const connectionProfileOrg1 = await this.fabric.getConnectionProfileOrg1(); - const connectionProfileOrg2 = await this.fabric.getConnectionProfileOrgX("org2"); + const connectionProfileOrg2 = + await this.fabric.getConnectionProfileOrgX("org2"); const enrollAdminOutOrg1 = await this.fabric.enrollAdmin(); const adminWalletOrg1 = enrollAdminOutOrg1[1]; @@ -228,16 +277,18 @@ export class CbdcBridgingAppDummyInfrastructure { instanceId: uuidv4(), keychainId: CryptoMaterial.keychains.keychain2.id, logLevel: this.options.logLevel || "INFO", - backend: new Map([ - [keychainEntryKey3, keychainEntryValue3], - ]), + backend: new Map([[keychainEntryKey3, keychainEntryValue3]]), }); - const pluginRegistry = new PluginRegistry({ plugins: [this.fabricKeychainPlugin] }); + const pluginRegistry = new PluginRegistry({ + plugins: [this.fabricKeychainPlugin], + }); - const bridgePluginRegistry = new PluginRegistry({ plugins: [bridgeKeychainPlugin] }); + const bridgePluginRegistry = new PluginRegistry({ + plugins: [bridgeKeychainPlugin], + }); - const fabricOptions = { + const fabricOptions = { instanceId: uuidv4(), dockerBinary: "/usr/local/bin/docker", peerBinary: "/fabric-samples/bin/peer", @@ -255,7 +306,7 @@ export class CbdcBridgingAppDummyInfrastructure { strategy: DefaultEventHandlerStrategy.NetworkScopeAllfortx, commitTimeout: 300, }, - } + }; this.fabricConnectorBridgeOptions = { instanceId: uuidv4(), @@ -289,7 +340,7 @@ export class CbdcBridgingAppDummyInfrastructure { const keychainEntryValue = JSON.stringify(SATPContract); const keychainEntryKey2 = CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER; - const keychainEntryValue2 = JSON.stringify(SATPWrapperContract); + const keychainEntryValue2 = JSON.stringify(SATPWrapperContract); const keychainPlugin = new PluginKeychainMemory({ instanceId: uuidv4(), @@ -329,50 +380,10 @@ export class CbdcBridgingAppDummyInfrastructure { return besuConnector; } - public async createSATPGateway( - id: string, - name: string, - hostPath: string, - serverPort: number, - clientPort: number, - apiPort: number, - supportedDLTs: SupportedChain[], - proofID: string, - version: DraftVersions[], - logLevel: LogLevelDesc, - counterPartyGateways: GatewayIdentity[], - bridgesConfig: NetworkConfig[], - ): Promise {~ - this.log.info(`Creating Source Gateway...`); - const factoryOptions: IPluginFactoryOptions = { - pluginImportType: PluginImportType.Local, - }; - const factory = new PluginFactorySATPGateway(factoryOptions); - - const gatewayIdentity = { - id, - name, - version, - supportedDLTs, - proofID, - address: `http://${hostPath}`, - gatewayServerPort: serverPort, - gatewayClientPort: clientPort, - gatewayOpenAPIPort: apiPort, - } as GatewayIdentity; - - const options: SATPGatewayConfig = { - logLevel: logLevel, - gid: gatewayIdentity, - counterPartyGateways, - bridgesConfig: bridgesConfig, - }; - return await factory.create(options); - } - public async createSATPGateways(): Promise { const fnTag = `${this.className}#createSATPGateways()`; const logLevel = this.options.logLevel || "INFO"; + this.log.info(`${fnTag} Creating SATP Gateways...`); const fabricGatewayKeyPair = Secp256k1Keys.generateKeyPairsBuffer(); @@ -402,14 +413,16 @@ export class CbdcBridgingAppDummyInfrastructure { gatewayOpenAPIPort: 4110, } as GatewayIdentity; - const pluginBungeeFabricOptions = { //todo change this when bungee is implemented + const pluginBungeeFabricOptions = { + //todo change this when bungee is implemented keyPair: Secp256k1Keys.generateKeyPairsBuffer(), instanceId: uuidv4(), pluginRegistry: new PluginRegistry(), logLevel, }; - const pluginBungeeBesuOptions = { //todo change this when bungee is implemented + const pluginBungeeBesuOptions = { + //todo change this when bungee is implemented keyPair: Secp256k1Keys.generateKeyPairsBuffer(), instanceId: uuidv4(), pluginRegistry: new PluginRegistry(), @@ -446,18 +459,20 @@ export class CbdcBridgingAppDummyInfrastructure { const besuGatewayOptions: SATPGatewayConfig = { logLevel: logLevel, gid: besuGatewayIdentity, - counterPartyGateways: [{ - id: "fabric-satp-gateway-id", - name: "Fabric SATP Gateway", - version: this.draftVersions, - supportedDLTs: [SupportedChain.FABRIC], - proofID: "fabricGatewayProofID", - address: `http://localhost`, - gatewayServerPort: 3010, - gatewayClientPort: 3011, - gatewayOpenAPIPort: 4010, - pubKey: bufArray2HexStr(fabricGatewayKeyPair.publicKey), - } as GatewayIdentity], + counterPartyGateways: [ + { + id: "fabric-satp-gateway-id", + name: "Fabric SATP Gateway", + version: this.draftVersions, + supportedDLTs: [SupportedChain.FABRIC], + proofID: "fabricGatewayProofID", + address: `http://localhost`, + gatewayServerPort: 3010, + gatewayClientPort: 3011, + gatewayOpenAPIPort: 4010, + pubKey: bufArray2HexStr(fabricGatewayKeyPair.publicKey), + } as GatewayIdentity, + ], bridgesConfig: [besuConfig], enableOpenAPI: true, keyPair: besuGatewayKeyPair, @@ -466,18 +481,20 @@ export class CbdcBridgingAppDummyInfrastructure { const fabricGatewayOptions = { logLevel: logLevel, gid: fabricGatewayIdentity, - counterPartyGateways: [{ - id: "besu-satp-gateway-id", - name: "Besu SATP Gateway", - version: this.draftVersions, - supportedDLTs: [SupportedChain.BESU], - proofID: "besuGatewayProofID", - address: `http://localhost`, - gatewayServerPort: 3110, - gatewayClientPort: 3111, - gatewayOpenAPIPort: 4110, - pubKey: bufArray2HexStr(besuGatewayKeyPair.publicKey), - } as GatewayIdentity], + counterPartyGateways: [ + { + id: "besu-satp-gateway-id", + name: "Besu SATP Gateway", + version: this.draftVersions, + supportedDLTs: [SupportedChain.BESU], + proofID: "besuGatewayProofID", + address: `http://localhost`, + gatewayServerPort: 3110, + gatewayClientPort: 3111, + gatewayOpenAPIPort: 4110, + pubKey: bufArray2HexStr(besuGatewayKeyPair.publicKey), + } as GatewayIdentity, + ], bridgesConfig: [fabricConfig], enableOpenAPI: true, keyPair: fabricGatewayKeyPair, @@ -485,22 +502,33 @@ export class CbdcBridgingAppDummyInfrastructure { const besuGateway = await this.gatewayFactory.create(besuGatewayOptions); + const configurationBesuGateway = new Configuration({ + basePath: `http://localhost:${besuGatewayIdentity.gatewayOpenAPIPort}`, + }); + this.log.info(`Besu Gateway created`); - const fabricGateway = await this.gatewayFactory.create(fabricGatewayOptions); - + const fabricGateway = + await this.gatewayFactory.create(fabricGatewayOptions); + + const configurationFabricGateway = new Configuration({ + basePath: `http://localhost:${fabricGatewayIdentity.gatewayOpenAPIPort}`, + }); + this.log.info(`Fabric Gateway created`); + this.besuApiTransactApi = new TransactionApi(configurationBesuGateway); + this.besuApiAdminApi = new AdminApi(configurationBesuGateway); + this.fabricApiTransactApi = new TransactionApi(configurationFabricGateway); + this.fabricApiAdminApi = new AdminApi(configurationFabricGateway); return [fabricGateway, besuGateway]; } - public async deployFabricSATPContract( - fabricApiClient: FabricApi, - ): Promise { + public async deployFabricSATPContract(): Promise { const channelId = "mychannel"; - const contractName = CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT + const contractName = CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT; const contractRelPath = "../../../fabric-contracts/satp-contract/chaincode-typescript"; @@ -592,77 +620,78 @@ export class CbdcBridgingAppDummyInfrastructure { }); } this.log.info(`Deploying Fabric SATP contract in API`); - - const res = await fabricApiClient - .deployContractV1( - { - channelId: channelId, - ccVersion: "1.0.0", - sourceFiles: satpSourceFiles, - ccName: contractName, - targetOrganizations: [this.org1Env, this.org2Env], - caFile: - FABRIC_25_LTS_FABRIC_SAMPLES_ENV_INFO_ORG_1.ORDERER_TLS_ROOTCERT_FILE, - ccLabel: contractName, - ccLang: ChainCodeProgrammingLanguage.Typescript, - ccSequence: 1, - orderer: "orderer.example.com:7050", - ordererTLSHostnameOverride: "orderer.example.com", - connTimeout: 60, - }, - // { - // maxContentLength: Infinity, - // maxBodyLength: Infinity, - // }, - ); - const { packageIds, lifecycle, success } = res.data; - - const { - approveForMyOrgList, - installList, - queryInstalledList, - commit, - packaging, - queryCommitted, - } = lifecycle; - - Checks.truthy(packageIds, `packageIds truthy OK`); - Checks.truthy( - Array.isArray(packageIds), - `Array.isArray(packageIds) truthy OK`, - ); - - Checks.truthy(approveForMyOrgList, `approveForMyOrgList truthy OK`); - Checks.truthy( - Array.isArray(approveForMyOrgList), - `Array.isArray(approveForMyOrgList) truthy OK`, - ); - Checks.truthy(installList, `installList truthy OK`); - Checks.truthy( - Array.isArray(installList), - `Array.isArray(installList) truthy OK`, - ); - Checks.truthy(queryInstalledList, `queryInstalledList truthy OK`); - Checks.truthy( - Array.isArray(queryInstalledList), - `Array.isArray(queryInstalledList) truthy OK`, - ); - Checks.truthy(commit, `commit truthy OK`); - Checks.truthy(packaging, `packaging truthy OK`); - Checks.truthy(queryCommitted, `queryCommitted truthy OK`); - this.log.info("SATP Contract deployed"); + if (!this.fabricConnectorApi) { + throw new Error(`Fabric connector API not set`); } - - public async deployFabricWrapperContract( - fabricApiClient: FabricApi, - ): Promise { + const res = await this.fabricConnectorApi.deployContractV1( + { + channelId: channelId, + ccVersion: "1.0.0", + sourceFiles: satpSourceFiles, + ccName: contractName, + targetOrganizations: [this.org1Env, this.org2Env], + caFile: + FABRIC_25_LTS_FABRIC_SAMPLES_ENV_INFO_ORG_1.ORDERER_TLS_ROOTCERT_FILE, + ccLabel: contractName, + ccLang: ChainCodeProgrammingLanguage.Typescript, + ccSequence: 1, + orderer: "orderer.example.com:7050", + ordererTLSHostnameOverride: "orderer.example.com", + connTimeout: 60, + }, + // { + // maxContentLength: Infinity, + // maxBodyLength: Infinity, + // }, + ); + + const { packageIds, lifecycle } = res.data; + + const { + approveForMyOrgList, + installList, + queryInstalledList, + commit, + packaging, + queryCommitted, + } = lifecycle; + + Checks.truthy(packageIds, `packageIds truthy OK`); + Checks.truthy( + Array.isArray(packageIds), + `Array.isArray(packageIds) truthy OK`, + ); + + Checks.truthy(approveForMyOrgList, `approveForMyOrgList truthy OK`); + Checks.truthy( + Array.isArray(approveForMyOrgList), + `Array.isArray(approveForMyOrgList) truthy OK`, + ); + Checks.truthy(installList, `installList truthy OK`); + Checks.truthy( + Array.isArray(installList), + `Array.isArray(installList) truthy OK`, + ); + Checks.truthy(queryInstalledList, `queryInstalledList truthy OK`); + Checks.truthy( + Array.isArray(queryInstalledList), + `Array.isArray(queryInstalledList) truthy OK`, + ); + Checks.truthy(commit, `commit truthy OK`); + Checks.truthy(packaging, `packaging truthy OK`); + Checks.truthy(queryCommitted, `queryCommitted truthy OK`); + this.log.info("SATP Contract deployed"); + } + + public async deployFabricWrapperContract(): Promise { const channelId = "mychannel"; const contractName = CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER; - const contractRelPath = "../../../fabric-contracts/satp-wrapper/chaincode-typescript"; + const contractRelPath = + "../../../fabric-contracts/satp-wrapper/chaincode-typescript"; const contractDir = path.join(__dirname, contractRelPath); // ├── package.json @@ -673,11 +702,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./tsconfig.json"; const relativePath = "./"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -688,11 +713,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./package.json"; const relativePath = "./"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -703,11 +724,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./index.ts"; const relativePath = "./src/"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -718,11 +735,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./interaction-signature.ts"; const relativePath = "./src/"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -733,11 +746,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./ITraceableContract.ts"; const relativePath = "./src/"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -748,11 +757,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./satp-wrapper.ts"; const relativePath = "./src/"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -763,11 +768,7 @@ export class CbdcBridgingAppDummyInfrastructure { { const filename = "./token.ts"; const relativePath = "./src/"; - const filePath = path.join( - contractDir, - relativePath, - filename, - ); + const filePath = path.join(contractDir, relativePath, filename); const buffer = await fs.readFile(filePath); wrapperSourceFiles.push({ body: buffer.toString("base64"), @@ -776,7 +777,11 @@ export class CbdcBridgingAppDummyInfrastructure { }); } - await fabricApiClient + if (!this.fabricConnectorApi) { + throw new Error(`Fabric connector API not set`); + } + + await this.fabricConnectorApi .deployContractV1( { channelId, @@ -837,15 +842,22 @@ export class CbdcBridgingAppDummyInfrastructure { .catch(() => console.log("trying to deploy fabric contract again")); } - public async deployBesuContracts(besuApiClient: BesuApi): Promise { + public async deployBesuContracts(): Promise { const fnTag = `${this.className}#deployBesuContracts()`; + if (!this.besuConnectorApi) { + throw new Error(`${fnTag}, Besu connector API not set`); + } + const deployCbdcContractResponse = - await besuApiClient.deployContractSolBytecodeV1({ + await this.besuConnectorApi.deployContractSolBytecodeV1({ keychainId: CryptoMaterial.keychains.keychain2.id, contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, contractAbi: SATPContract.abi, - constructorArgs: [this.besuFirstHighNetWorthAccount, CbdcBridgingAppDummyInfrastructure.BESU_ASSET_ID], + constructorArgs: [ + this.besuFirstHighNetWorthAccount, + CbdcBridgingAppDummyInfrastructure.BESU_ASSET_ID, + ], web3SigningCredential: { ethAccount: this.besuFirstHighNetWorthAccount, secret: this.besuFirstHighNetWorthAccountPriv, @@ -858,17 +870,18 @@ export class CbdcBridgingAppDummyInfrastructure { if (deployCbdcContractResponse == undefined) { throw new Error(`${fnTag}, error when deploying CBDC smart contract`); } - - this.besuContractAddress = deployCbdcContractResponse.data.transactionReceipt.contractAddress ?? ""; - await this.startDummyServer(this.besuContractAddress); + + this.besuContractAddress = + deployCbdcContractResponse.data.transactionReceipt.contractAddress ?? ""; + + await this.startDummyServer(); + const deployWrapperContractResponse = - await besuApiClient.deployContractSolBytecodeV1({ + await this.besuConnectorApi.deployContractSolBytecodeV1({ keychainId: CryptoMaterial.keychains.keychain2.id, contractName: CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER, contractAbi: SATPWrapperContract.abi, - constructorArgs: [ - CryptoMaterial.accounts["bridge"].ethAddress, - ], + constructorArgs: [CryptoMaterial.accounts["bridge"].ethAddress], web3SigningCredential: { ethAccount: CryptoMaterial.accounts["bridge"].ethAddress, secret: CryptoMaterial.accounts["bridge"].privateKey, @@ -884,14 +897,18 @@ export class CbdcBridgingAppDummyInfrastructure { ); } - this.besuWrapperContractAddress = deployWrapperContractResponse.data.transactionReceipt.contractAddress ?? ""; + this.besuWrapperContractAddress = + deployWrapperContractResponse.data.transactionReceipt.contractAddress ?? + ""; - const giveRoleRes = await besuApiClient.invokeContractV1({ + const giveRoleRes = await this.besuConnectorApi.invokeContractV1({ contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, keychainId: CryptoMaterial.keychains.keychain2.id, invocationType: EthContractInvocationType.Send, methodName: "giveRole", - params: [deployWrapperContractResponse.data.transactionReceipt.contractAddress], + params: [ + deployWrapperContractResponse.data.transactionReceipt.contractAddress, + ], signingCredential: { ethAccount: this.besuFirstHighNetWorthAccount, secret: this.besuFirstHighNetWorthAccountPriv, @@ -899,7 +916,7 @@ export class CbdcBridgingAppDummyInfrastructure { }, gas: 1000000, }); - const giveRoleRes1 = await besuApiClient.invokeContractV1({ + const giveRoleRes1 = await this.besuConnectorApi.invokeContractV1({ contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, keychainId: CryptoMaterial.keychains.keychain2.id, invocationType: EthContractInvocationType.Send, @@ -914,129 +931,743 @@ export class CbdcBridgingAppDummyInfrastructure { }); Checks.truthy(giveRoleRes, "giveRoleRes"); + Checks.truthy(giveRoleRes1, "giveRoleRes1"); } - public async initializeContractsAndAddPermitions(fabricApiClient: FabricApi, besuApiClient: BesuApi) { + public async initializeContractsAndAddPermitions() { + if (!this.fabricConnectorApi) { + throw new Error(`Fabric connector API not set`); + } - const fabricInitializeResponse = await fabricApiClient.runTransactionV1({ - contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, - channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, - params: [this.userIdentity1.mspId, CbdcBridgingAppDummyInfrastructure.FABRIC_ASSET_ID], - methodName: "InitToken", - invocationType: FabricContractInvocationType.Send, - signingCredential: { - keychainId: this.fabricKeychainPlugin?.getKeychainId()!, - keychainRef: "userA", - }, - }); + if (this.fabricKeychainPlugin === undefined) { + throw new Error(`Fabric keychain plugin not set`); + } - Checks.truthy(fabricInitializeResponse, "fabricInitializeResponse"); - Checks.truthy(fabricInitializeResponse.status, "fabricInitializeResponse.data"); + const fabricInitializeResponse = + await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: [ + this.userIdentity1.mspId, + CbdcBridgingAppDummyInfrastructure.FABRIC_ASSET_ID, + ], + methodName: "InitToken", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: this.fabricKeychainPlugin.getKeychainId()!, + keychainRef: "userA", + }, + }); - if(fabricInitializeResponse.status < 200 || fabricInitializeResponse.status > 299) { + Checks.truthy(fabricInitializeResponse, "fabricInitializeResponse"); + Checks.truthy( + fabricInitializeResponse.status, + "fabricInitializeResponse.data", + ); + + if ( + fabricInitializeResponse.status < 200 || + fabricInitializeResponse.status > 299 + ) { throw new Error("Failed to initialize CBDC Fabric contract"); } - const fabricWrapperInitializeResponse = await fabricApiClient.runTransactionV1({ - contractName: CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER, - channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, - params: ["Org2MSP"], - methodName: "Initialize", - invocationType: FabricContractInvocationType.Send, - signingCredential: { - keychainId: this.fabricKeychainPlugin?.getKeychainId()!, - keychainRef: "adminUser", - }, - }); - - Checks.truthy(fabricWrapperInitializeResponse, "fabricWrapperInitializeResponse"); - Checks.truthy(fabricWrapperInitializeResponse.status, "fabricWrapperInitializeResponse.data"); + const fabricWrapperInitializeResponse = + await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: ["Org2MSP"], + methodName: "Initialize", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: this.fabricKeychainPlugin.getKeychainId()!, + keychainRef: "adminUser", + }, + }); - if(fabricWrapperInitializeResponse.status < 200 || fabricWrapperInitializeResponse.status > 299) { + Checks.truthy( + fabricWrapperInitializeResponse, + "fabricWrapperInitializeResponse", + ); + Checks.truthy( + fabricWrapperInitializeResponse.status, + "fabricWrapperInitializeResponse.data", + ); + + if ( + fabricWrapperInitializeResponse.status < 200 || + fabricWrapperInitializeResponse.status > 299 + ) { throw new Error("Failed to initialize Wrapper Fabric contract"); } - const setBridgeWrapperResponse = await fabricApiClient.runTransactionV1({ - contractName: CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER, - channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, - params: ["Org2MSP", CryptoMaterial.accounts.bridge.fabricID], - methodName: "setBridge", - invocationType: FabricContractInvocationType.Send, - signingCredential: { - keychainId: this.fabricKeychainPlugin?.getKeychainId()!, - keychainRef: "adminUser", - }, - }); + const setBridgeWrapperResponse = + await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_WRAPPER, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: ["Org2MSP", CryptoMaterial.accounts.bridge.fabricID], + methodName: "setBridge", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: this.fabricKeychainPlugin.getKeychainId()!, + keychainRef: "adminUser", + }, + }); Checks.truthy(setBridgeWrapperResponse, "setBridgeWrapperResponse"); Checks.truthy(setBridgeWrapperResponse.status, "setBridgeResponse.data"); - if(setBridgeWrapperResponse.status < 200 || setBridgeWrapperResponse.status > 299) { + if ( + setBridgeWrapperResponse.status < 200 || + setBridgeWrapperResponse.status > 299 + ) { throw new Error("Failed to set Bridge Fabric contract"); } - const setBridgeCBDCResponse = await fabricApiClient.runTransactionV1({ - contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, - channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, - params: ["Org2MSP"], - methodName: "setBridge", - invocationType: FabricContractInvocationType.Send, - signingCredential: { - keychainId: this.fabricKeychainPlugin?.getKeychainId()!, - keychainRef: "userA", - }, - }); + const setBridgeCBDCResponse = + await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: ["Org2MSP"], + methodName: "setBridge", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: this.fabricKeychainPlugin.getKeychainId()!, + keychainRef: "userA", + }, + }); Checks.truthy(setBridgeCBDCResponse, "setBridgeCBDCResponse"); Checks.truthy(setBridgeCBDCResponse.status, "setBridgeCBDCResponse.data"); - if(setBridgeCBDCResponse.status < 200 || setBridgeCBDCResponse.status > 299) { + if ( + setBridgeCBDCResponse.status < 200 || + setBridgeCBDCResponse.status > 299 + ) { throw new Error("Failed to set Bridge Fabric contract"); } - const besuInitializeResponse = await besuApiClient.invokeContractV1({ - contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, - keychainId: CryptoMaterial.keychains.keychain2.id, - invocationType: EthContractInvocationType.Send, - methodName: "giveRole", - params: [this.besuWrapperContractAddress], - signingCredential: { - ethAccount: this.besuFirstHighNetWorthAccount, - secret: this.besuFirstHighNetWorthAccountPriv, - type: Web3SigningCredentialType.PrivateKeyHex, + if (!this.besuConnectorApi) { + throw new Error(`Besu connector API not set`); + } + + const besuInitializeResponse = await this.besuConnectorApi.invokeContractV1( + { + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + keychainId: CryptoMaterial.keychains.keychain2.id, + invocationType: EthContractInvocationType.Send, + methodName: "giveRole", + params: [this.besuWrapperContractAddress], + signingCredential: { + ethAccount: this.besuFirstHighNetWorthAccount, + secret: this.besuFirstHighNetWorthAccountPriv, + type: Web3SigningCredentialType.PrivateKeyHex, + }, + gas: 1000000, }, - gas: 1000000, - }); + ); Checks.truthy(besuInitializeResponse, "besuInitializeResponse"); Checks.truthy(besuInitializeResponse.status, "besuInitializeResponse.data"); - if(besuInitializeResponse.status < 200 || besuInitializeResponse.status > 299) { + if ( + besuInitializeResponse.status < 200 || + besuInitializeResponse.status > 299 + ) { throw new Error("Failed to initialize CBDC Besu contract"); } + } + + public async getOrCreateWebServices(): Promise { + const fnTag = `${CbdcBridgingAppDummyInfrastructure.CLASS_NAME}#getOrCreateWebServices()`; + this.log.info(`${fnTag}, Registering webservices`); + + if (Array.isArray(this.endpoints)) { + return this.endpoints; + } + + const approveEndpointV1 = new ApproveEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + const gelAllSessionDataEndpointV1 = new GetSessionsDataEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + + const getBalanceEndpointV1 = new GetBalanceEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + + const mintEndpointV1 = new MintEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + + const transactEndpointV1 = new TransactEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + + const transferEndpointV1 = new TransferEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + + const getApprovedEndpointV1 = new GetAmountApprovedEndpointV1({ + infrastructure: this, + logLevel: this.options.logLevel, + }); + + const theEndpoints = [ + approveEndpointV1, + gelAllSessionDataEndpointV1, + getBalanceEndpointV1, + mintEndpointV1, + transactEndpointV1, + transferEndpointV1, + getApprovedEndpointV1, + ]; + this.endpoints = theEndpoints; + + return theEndpoints; } - async startDummyServer(address: string){ + public async getSessionsData(gateway: string): Promise { + this.log.debug(`Getting sessions data from ${gateway}`); + let api; + if (gateway === "FABRIC") { + api = this.fabricApiAdminApi; + } else { + api = this.besuApiAdminApi; + } + try { + if (api === undefined) { + throw new Error("API is undefined"); + } + const response = await api.getSessionIds(); + + if (response.status !== 200) { + return [ + { + id: "MockID", + status: "undefined", + substatus: "undefined", + sourceLedger: "undefined", + receiverLedger: "undefined", + }, + ]; + } + + const ids = response.data; + + const sessionsData = []; + for (const id of ids) { + try { + const sessionData = await api.getStatus(id); + const data: SessionReference = { + id, + status: sessionData.data.status, + substatus: sessionData.data.substatus, + sourceLedger: sessionData.data.originChain.dltProtocol, + receiverLedger: sessionData.data.destinationChain.dltProtocol, + }; + + sessionsData.push(data); + } catch (error) { + sessionsData.push({ + id: "MockID", + status: "undefined", + substatus: "undefined", + sourceLedger: "undefined", + receiverLedger: "undefined", + }); + } + } + return sessionsData; + } catch (error) { + console.log(error); + return [ + { + id: "MockID", + status: "undefined", + substatus: "undefined", + sourceLedger: "undefined", + receiverLedger: "undefined", + }, + ]; + } + } + + public async bridgeTokens( + sender: string, + recipient: string, + sourceChain: string, + destinationChain: string, + amount: number, + ) { + this.log.debug( + `Bridging tokens from ${sourceChain} to ${destinationChain}`, + ); + let senderAddress; + let receiverAddress; + let sourceAsset; + let receiverAsset; + + let fromDLTNetworkID; + let toDLTNetworkID; + let api; + + if (sourceChain === "FABRIC") { + senderAddress = this.getFabricId(sender); + sourceAsset = this.setFabricAsset(senderAddress as string); + fromDLTNetworkID = "FabricSATPGateway"; + api = this.fabricApiTransactApi; + } else { + senderAddress = this.getEthAddress(sender); + sourceAsset = this.setBesuAsset( + senderAddress as string, + this.besuContractAddress!, + ); + fromDLTNetworkID = "BesuSATPGateway"; + api = this.besuApiTransactApi; + } + + if (destinationChain === "BESU") { + toDLTNetworkID = "BesuSATPGateway"; + receiverAddress = this.getEthAddress(recipient); + receiverAsset = this.setBesuAsset( + receiverAddress as string, + this.besuContractAddress!, + ); + } else { + toDLTNetworkID = "FabricSATPGateway"; + receiverAddress = this.getFabricId(recipient); + receiverAsset = this.setFabricAsset(receiverAddress as string); + } + + if (api === undefined) { + throw new Error("API is undefined"); + } + + try { + await api.transact({ + contextID: "MockID", + fromDLTNetworkID, + toDLTNetworkID, + fromAmount: amount.toString(), + toAmount: amount.toString(), + originatorPubkey: senderAddress, + beneficiaryPubkey: receiverAddress, + sourceAsset, + receiverAsset: receiverAsset, + }); + } catch (error) { + this.log.error( + `Error bridging tokens from ${sourceChain} to ${receiverAsset}`, + ); + throw error; + } + } + + public async getFabricBalance(frontendUser: string) { + const fabricID = this.getFabricId(frontendUser); + this.log.debug(`Getting Fabric balance for user: ${frontendUser}`); + let response; + + if (this.fabricConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + response = await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: [fabricID], + methodName: "ClientIDAccountBalance", + invocationType: FabricContractInvocationType.Call, + signingCredential: { + keychainId: CryptoMaterial.keychains.keychain1.id, + keychainRef: "userA", + }, + }); + this.log.debug( + `Fabric - Balance for user: ${frontendUser} is ${JSON.stringify(response.data)}`, + ); + } catch (error) { + this.log.error(`Fabric - Error getting balance user: ${frontendUser}`); + return -1; + } + + return parseInt(response.data.functionOutput); + } + + public async getBesuBalance(frontendUser: string) { + const userEthAddress = this.getEthAddress(frontendUser); + this.log.debug(`Getting BESU balance for user: ${frontendUser}`); + + if (this.besuConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + const response = await this.besuConnectorApi.invokeContractV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + keychainId: CryptoMaterial.keychains.keychain2.id, + invocationType: EthContractInvocationType.Call, + methodName: "checkBalance", + params: [userEthAddress], + signingCredential: { + ethAccount: userEthAddress, + secret: this.getEthUserPrKey(frontendUser), + type: Web3SigningCredentialType.PrivateKeyHex, + }, + gas: 1000000, + }); + + this.log.debug( + `BESU - Balance for user: ${frontendUser} is ${JSON.stringify(response.data)}`, + ); + this.log.debug( + `BESU - Balance for user: ${frontendUser} is ${response.data.callOutput}`, + ); + + return parseInt(response.data.callOutput); + } catch (error) { + this.log.error(`BESU - Error getting balance user: ${frontendUser}`); + return -1; + } + } + + public async mintTokensFabric(frontendUser: string, amount: string) { + this.log.debug( + `Minting Fabric tokens for user: ${frontendUser}, amount: ${amount}`, + ); + + if (this.fabricConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + const response = await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: [amount], + methodName: "mint", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: CryptoMaterial.keychains.keychain1.id, + keychainRef: this.getUserFromPseudonim(frontendUser), + }, + }); + + this.log.debug( + `Fabric - Minting tokens for user: ${frontendUser} is ${JSON.stringify(response.data)}`, + ); + } catch (error) { + console.error(error.msg); + throw new Error("Failed to mint tokens"); + } + } + + public async mintTokensBesu(user: string, amount: number) { + const userEthAddress = this.getEthAddress(user); + this.log.debug( + `Minting Besu tokens for user: ${userEthAddress}, amount: ${amount}`, + ); + + if (this.besuConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + const response = await this.besuConnectorApi.invokeContractV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + keychainId: CryptoMaterial.keychains.keychain2.id, + invocationType: EthContractInvocationType.Send, + methodName: "mint", + params: [userEthAddress, amount], + signingCredential: { + ethAccount: this.getEthAddress("Bridge"), + secret: this.getEthUserPrKey("Bridge"), + type: Web3SigningCredentialType.PrivateKeyHex, + }, + gas: 1000000, + }); + + this.log.debug( + `Besu - Minting tokens for user: ${user} is ${JSON.stringify(response.data)}`, + ); + } catch (error) { + console.error(error.msg); + throw new Error("Failed to mint tokens"); + } + } + + public async transferTokensFabric( + frontendUserFrom: string, + frontendUserTo: string, + amount: string, + ) { + const to = this.getFabricId(frontendUserTo); + this.log.debug( + `Transferring Fabric tokens from: ${frontendUserFrom} to: ${frontendUserTo}`, + ); + + if (this.fabricConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: [to, amount], + methodName: "transfer", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: CryptoMaterial.keychains.keychain1.id, + keychainRef: this.getUserFromPseudonim(frontendUserFrom), + }, + }); + } catch (error) { + console.error(error.msg); + throw new Error("Failed to transfer tokens"); + } + } + + public async transferTokensBesu( + frontendUserFrom: string, + frontendUserTo: string, + amount: number, + ) { + const from = this.getEthAddress(frontendUserFrom); + const to = this.getEthAddress(frontendUserTo); + this.log.debug( + `Transferring Besu tokens from: ${frontendUserFrom} to: ${frontendUserTo}`, + ); + + if (this.besuConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + await this.besuConnectorApi.invokeContractV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + keychainId: CryptoMaterial.keychains.keychain2.id, + invocationType: EthContractInvocationType.Send, + methodName: "transfer", + params: [to, amount], + signingCredential: { + ethAccount: from, + secret: this.getEthUserPrKey(frontendUserFrom), + type: Web3SigningCredentialType.PrivateKeyHex, + }, + gas: 1000000, + }); + } catch (error) { + console.error(error); + throw new Error("Failed to transfer tokens"); + } + } + + public async approveNTokensFabric(user: string, amount: string) { + this.log.debug(`Approving Fabric tokens for user: ${user}`); + + if (this.fabricConnectorApi === undefined) { + throw new Error("API is undefined"); + } + await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: [CryptoMaterial.accounts.bridge.fabricID, amount], + methodName: "Approve", + invocationType: FabricContractInvocationType.Send, + signingCredential: { + keychainId: CryptoMaterial.keychains.keychain1.id, + keychainRef: this.getUserFromPseudonim(user), + }, + }); + } + + public async approveNTokensBesu(frontendUserFrom: string, amount: number) { + const from = this.getEthAddress(frontendUserFrom); + this.log.debug(`Approving Besu tokens for user: ${frontendUserFrom}`); + + if (this.besuConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + await this.besuConnectorApi.invokeContractV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + keychainId: CryptoMaterial.keychains.keychain2.id, + invocationType: EthContractInvocationType.Send, + methodName: "approve", + params: [this.besuWrapperContractAddress, amount], + signingCredential: { + ethAccount: from, + secret: this.getEthUserPrKey(frontendUserFrom), + type: Web3SigningCredentialType.PrivateKeyHex, + }, + gas: 1000000, + }); + } catch (error) { + this.log.error(error); + return -1; + } + } + + public async getAmountApprovedBesu(frontendUser: string) { + const from = this.getEthAddress(frontendUser); + this.log.debug(`Getting approved balance for user: ${frontendUser}`); + + if (this.besuConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + try { + const response = await this.besuConnectorApi.invokeContractV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + keychainId: CryptoMaterial.keychains.keychain2.id, + invocationType: EthContractInvocationType.Call, + methodName: "allowance", + params: [from, this.besuWrapperContractAddress], + signingCredential: { + ethAccount: from, + secret: this.getEthUserPrKey(frontendUser), + type: Web3SigningCredentialType.PrivateKeyHex, + }, + gas: 1000000, + }); + return response.data.callOutput; + } catch (error) { + this.log.error( + `Besu - Error getting approved balance user: ${frontendUser}`, + ); + return "0"; + } + } + + public async getAmountApprovedFabric(frontendUser: string) { + const owner = this.getFabricId(frontendUser); + this.log.debug(`Getting Fabric approved balance for user: ${frontendUser}`); + + if (this.fabricConnectorApi === undefined) { + throw new Error("API is undefined"); + } + + let response; + try { + response = await this.fabricConnectorApi.runTransactionV1({ + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + params: [owner, CryptoMaterial.accounts.bridge.fabricID], + methodName: "Allowance", + invocationType: FabricContractInvocationType.Call, + signingCredential: { + keychainId: CryptoMaterial.keychains.keychain1.id, + keychainRef: this.getUserFromPseudonim(frontendUser), + }, + }); + } catch (error) { + this.log.error( + `Fabric - Error getting approved balance user: ${frontendUser}`, + ); + return "0"; + } + + return response.data.functionOutput; + } + + private setBesuAsset(owner: string, contractAddress: string) { + return { + owner, + ontology: JSON.stringify(BesuSATPInteraction), + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + contractAddress, + }; + } + + private setFabricAsset(owner: string) { + return { + owner, + ontology: JSON.stringify(FabricSATPInteraction), + contractName: CbdcBridgingAppDummyInfrastructure.SATP_CONTRACT, + channelName: CbdcBridgingAppDummyInfrastructure.FABRIC_CHANNEL_NAME, + mspId: "Org1MSP", + }; + } + + private getUserFromPseudonim(user: string): string { + switch (user) { + case "Alice": + return "userA"; + case "Charlie": + return "userB"; + case "Bridge": + return "bridge"; + default: + throw new Error(`User pseudonym not found for user: ${user}`); + } + } + + private getFabricId(user: string) { + switch (this.getUserFromPseudonim(user)) { + case "userA": + return CryptoMaterial.accounts["userA"].fabricID; + case "userB": + return CryptoMaterial.accounts["userB"].fabricID; + case "bridge": + return CryptoMaterial.accounts["bridge"].fabricID; + default: + throw new Error("User not found"); + } + } + + private getEthAddress(user: string) { + switch (this.getUserFromPseudonim(user)) { + case "userA": + return CryptoMaterial.accounts["userA"].ethAddress; + case "userB": + return CryptoMaterial.accounts["userB"].ethAddress; + case "bridge": + return CryptoMaterial.accounts["bridge"].ethAddress; + default: + throw new Error("User not found"); + } + } + + private getEthUserPrKey(user: string) { + switch (this.getUserFromPseudonim(user)) { + case "userA": + return CryptoMaterial.accounts["userA"].privateKey; + case "userB": + return CryptoMaterial.accounts["userB"].privateKey; + case "bridge": + return CryptoMaterial.accounts["bridge"].privateKey; + default: + throw new Error("User not found"); + } + } + + async startDummyServer() { //just to send contract address to the frontend at each run const app = express(); + app.use(bodyParser.json({ limit: "250mb" })); app.use(cors()); const port = 9999; - // Example endpoint that returns the contract address - app.get('/contract-address', (_req: any, res: { json: (arg0: { address: string; }) => void; }) => { - // Replace this with the actual logic to retrieve the contract address - const contractAddress = address; - res.json({ address: contractAddress }); - }); - app.get('/wrapper-address', (_req: any, res: { json: (arg0: { address: string; }) => void; }) => { - // Replace this with the actual logic to retrieve the contract address - const contractAddress = this.besuWrapperContractAddress!; - res.json({ address: contractAddress }); - }); + const webServices = await this.getOrCreateWebServices(); + for (const service of webServices) { + this.log.debug(`Registering web service: ${service.getPath()}`); + await service.registerExpress(app); + } app.listen(port, () => { - //console.log(`Server running on http://localhost:${port}`); + console.log(`Server running on http://localhost:${port}`); }); } -} \ No newline at end of file +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/types.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/types.ts new file mode 100644 index 0000000000..d5091fa452 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/types.ts @@ -0,0 +1,15 @@ +import { LogLevelDesc } from "@hyperledger/cactus-common"; +import { CbdcBridgingAppDummyInfrastructure } from "./infrastructure/cbdc-bridging-app-dummy-infrastructure"; + +export interface IRequestOptions { + logLevel?: LogLevelDesc; + infrastructure: CbdcBridgingAppDummyInfrastructure; +} + +export interface SessionReference { + id: string; + status: string; + substatus: string; + sourceLedger: string; + receiverLedger: string; +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/approve-endpoint.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/approve-endpoint.ts new file mode 100644 index 0000000000..65b2e4fcd4 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/approve-endpoint.ts @@ -0,0 +1,105 @@ +import { + Checks, + IAsyncProvider, + Logger, + LoggerProvider, +} from "@hyperledger/cactus-common"; +import { + IEndpointAuthzOptions, + IExpressRequestHandler, + IWebServiceEndpoint, +} from "@hyperledger/cactus-core-api"; +import type { Express, Request, Response } from "express"; +import { IRequestOptions } from "../types"; +import OAS from "../../json/openapi-bundled.json"; +import { + handleRestEndpointException, + registerWebServiceEndpoint, +} from "@hyperledger/cactus-core"; +import { + ApproveRequest, + TransactRequestSourceChainAssetTypeEnum, +} from "../generated/openapi/typescript-axios/api"; + +export class ApproveEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "ApproveEndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return ApproveEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public get oasPath(): (typeof OAS.paths)["/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens"] { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens"]; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + getVerbLowerCase(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; + } + getPath(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.path; + } + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + public getOperationId(): string { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/approve-tokens"] + .post.operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async handleRequest(req: Request, res: Response): Promise { + const fnTag = `${this.className}#handleRequest()`; + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + const reqBody: ApproveRequest = req.body; + this.log.debug("reqBody: ", reqBody); + try { + let result; + if ( + reqBody.ledger.assetType === + TransactRequestSourceChainAssetTypeEnum.Besu + ) { + result = await this.options.infrastructure.approveNTokensBesu( + reqBody.user, + parseInt(reqBody.amount), + ); + } else { + result = await this.options.infrastructure.approveNTokensFabric( + reqBody.user, + reqBody.amount, + ); + } + res.status(200).json(result); + } catch (ex) { + const errorMsg = `${reqTag} ${fnTag} Failed to transact:`; + handleRestEndpointException({ errorMsg, log: this.log, error: ex, res }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-all-session-data-endpoints.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-all-session-data-endpoints.ts new file mode 100644 index 0000000000..247f353f4c --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-all-session-data-endpoints.ts @@ -0,0 +1,100 @@ +import type { Express, Request, Response } from "express"; + +import { + IWebServiceEndpoint, + IExpressRequestHandler, + IEndpointAuthzOptions, +} from "@hyperledger/cactus-core-api"; +import { + Logger, + Checks, + LoggerProvider, + IAsyncProvider, +} from "@hyperledger/cactus-common"; + +import { registerWebServiceEndpoint } from "@hyperledger/cactus-core"; + +import OAS from "../../json/openapi-bundled.json"; +import { IRequestOptions } from "../types"; + +export class GetSessionsDataEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "GetSessionsDataEndpointV1EndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return GetSessionsDataEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public getPath(): string { + const apiPath = + OAS.paths[ + "/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references" + ]; + return apiPath.get["x-hyperledger-cacti"].http.path; + } + + public getVerbLowerCase(): string { + const apiPath = + OAS.paths[ + "/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references" + ]; + return apiPath.get["x-hyperledger-cacti"].http.verbLowerCase; + } + + public getOperationId(): string { + return OAS.paths[ + "/api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references" + ].get.operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + // TODO: make this an injectable dependency in the constructor + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + // TODO discover way to inherit OAS schema and have request types here + // parameter checks should be enforced by the type system + public async handleRequest(req: Request, res: Response): Promise { + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + try { + const result = await this.options.infrastructure.getSessionsData( + req.query.Ledger as string, + ); + res.status(200).json(result); + } catch (ex) { + this.log.error(`Crash while serving ${reqTag}`, ex); + res.status(500).json({ + message: "Internal Server Error", + error: ex?.stack || ex?.message, + }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-amount-approved-endpoint.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-amount-approved-endpoint.ts new file mode 100644 index 0000000000..cff827929b --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-amount-approved-endpoint.ts @@ -0,0 +1,98 @@ +import { + Checks, + IAsyncProvider, + Logger, + LoggerProvider, +} from "@hyperledger/cactus-common"; +import { + IEndpointAuthzOptions, + IExpressRequestHandler, + IWebServiceEndpoint, +} from "@hyperledger/cactus-core-api"; +import type { Express, Request, Response } from "express"; +import { IRequestOptions } from "../types"; +import OAS from "../../json/openapi-bundled.json"; +import { + handleRestEndpointException, + registerWebServiceEndpoint, +} from "@hyperledger/cactus-core"; +import { TransactRequestSourceChainAssetTypeEnum } from "../generated/openapi/typescript-axios/api"; + +export class GetAmountApprovedEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "GetAmountApprovedEndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return GetAmountApprovedEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public get oasPath(): (typeof OAS.paths)["/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved"] { + return OAS.paths[ + "/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved" + ]; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + getVerbLowerCase(): string { + return this.oasPath.get["x-hyperledger-cacti"].http.verbLowerCase; + } + getPath(): string { + return this.oasPath.get["x-hyperledger-cacti"].http.path; + } + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + public getOperationId(): string { + return OAS.paths[ + "/api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved" + ].get.operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async handleRequest(req: Request, res: Response): Promise { + const fnTag = `${this.className}#handleRequest()`; + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + try { + let result; + if (req.query.chain === TransactRequestSourceChainAssetTypeEnum.Besu) { + result = await this.options.infrastructure.getAmountApprovedBesu( + req.query.user as string, + ); + } else { + result = await this.options.infrastructure.getAmountApprovedFabric( + req.query.user as string, + ); + } + res.status(200).json(result); + } catch (ex) { + const errorMsg = `${reqTag} ${fnTag} Failed to transact:`; + handleRestEndpointException({ errorMsg, log: this.log, error: ex, res }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-balance-endpoint.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-balance-endpoint.ts new file mode 100644 index 0000000000..095e9b1b74 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/get-balance-endpoint.ts @@ -0,0 +1,100 @@ +import { + Checks, + IAsyncProvider, + Logger, + LoggerProvider, +} from "@hyperledger/cactus-common"; +import { + IEndpointAuthzOptions, + IExpressRequestHandler, + IWebServiceEndpoint, +} from "@hyperledger/cactus-core-api"; +import type { Express, Request, Response } from "express"; +import { IRequestOptions } from "../types"; +import OAS from "../../json/openapi-bundled.json"; +import { + handleRestEndpointException, + registerWebServiceEndpoint, +} from "@hyperledger/cactus-core"; +import { TransactRequestSourceChainAssetTypeEnum } from "../generated/openapi/typescript-axios/api"; + +export class GetBalanceEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "GetBalanceEndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return GetBalanceEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public get oasPath(): (typeof OAS.paths)["/api/v1/@hyperledger/cactus-example-cbdc/get-balance"] { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/get-balance"]; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + getVerbLowerCase(): string { + return this.oasPath.get["x-hyperledger-cacti"].http.verbLowerCase; + } + getPath(): string { + return this.oasPath.get["x-hyperledger-cacti"].http.path; + } + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + public getOperationId(): string { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/get-balance"].get + .operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async handleRequest(req: Request, res: Response): Promise { + const fnTag = `${this.className}#handleRequest()`; + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + try { + let result; + if ( + (req.query.chain as string) == + TransactRequestSourceChainAssetTypeEnum.Besu + ) { + result = await this.options.infrastructure.getBesuBalance( + req.query.user as string, + ); + } else { + result = await this.options.infrastructure.getFabricBalance( + req.query.user as string, + ); + } + res.status(200).json({ + amount: result, + }); + } catch (ex) { + const errorMsg = `${reqTag} ${fnTag} Failed to transact:`; + handleRestEndpointException({ errorMsg, log: this.log, error: ex, res }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/mint-endpoint.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/mint-endpoint.ts new file mode 100644 index 0000000000..914a2c060b --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/mint-endpoint.ts @@ -0,0 +1,105 @@ +import { + Checks, + IAsyncProvider, + Logger, + LoggerProvider, +} from "@hyperledger/cactus-common"; +import { + IEndpointAuthzOptions, + IExpressRequestHandler, + IWebServiceEndpoint, +} from "@hyperledger/cactus-core-api"; +import type { Express, Request, Response } from "express"; +import { IRequestOptions } from "../types"; +import OAS from "../../json/openapi-bundled.json"; +import { + handleRestEndpointException, + registerWebServiceEndpoint, +} from "@hyperledger/cactus-core"; +import { + MintRequest, + TransactRequestSourceChainAssetTypeEnum, +} from "../generated/openapi/typescript-axios/api"; + +export class MintEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "MintEndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return MintEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public get oasPath(): (typeof OAS.paths)["/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens"] { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens"]; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + getVerbLowerCase(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; + } + getPath(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.path; + } + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + public getOperationId(): string { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/mint-tokens"] + .post.operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async handleRequest(req: Request, res: Response): Promise { + const fnTag = `${this.className}#handleRequest()`; + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + const reqBody: MintRequest = req.body; + this.log.debug("reqBody: ", reqBody); + try { + let result; + if ( + reqBody.ledger.assetType === + TransactRequestSourceChainAssetTypeEnum.Besu + ) { + result = await this.options.infrastructure.mintTokensBesu( + reqBody.user, + parseInt(reqBody.amount), + ); + } else { + result = await this.options.infrastructure.mintTokensFabric( + reqBody.user, + reqBody.amount, + ); + } + res.status(200).json(result); + } catch (ex) { + const errorMsg = `${reqTag} ${fnTag} Failed to transact:`; + handleRestEndpointException({ errorMsg, log: this.log, error: ex, res }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transact-endpoint.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transact-endpoint.ts new file mode 100644 index 0000000000..8748785af7 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transact-endpoint.ts @@ -0,0 +1,94 @@ +import { + Checks, + IAsyncProvider, + Logger, + LoggerProvider, +} from "@hyperledger/cactus-common"; +import { + IEndpointAuthzOptions, + IExpressRequestHandler, + IWebServiceEndpoint, +} from "@hyperledger/cactus-core-api"; +import type { Express, Request, Response } from "express"; +import { IRequestOptions } from "../types"; +import OAS from "../../json/openapi-bundled.json"; +import { + handleRestEndpointException, + registerWebServiceEndpoint, +} from "@hyperledger/cactus-core"; +import { TransactRequest } from "../generated/openapi/typescript-axios/api"; + +export class TransactEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "TransactEndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return TransactEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public get oasPath(): (typeof OAS.paths)["/api/v1/@hyperledger/cactus-example-cbdc/transact"] { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/transact"]; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + getVerbLowerCase(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; + } + getPath(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.path; + } + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + public getOperationId(): string { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/transact"].post + .operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async handleRequest(req: Request, res: Response): Promise { + const fnTag = `${this.className}#handleRequest()`; + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + const reqBody: TransactRequest = req.body; + this.log.debug("reqBody: ", reqBody); + try { + const result = await this.options.infrastructure.bridgeTokens( + reqBody.sender, + reqBody.receiver, + reqBody.sourceChain.assetType!, + reqBody.receiverChain.assetType!, + parseInt(reqBody.amount), + ); + res.status(200).json(result); + } catch (ex) { + const errorMsg = `${reqTag} ${fnTag} Failed to transact:`; + handleRestEndpointException({ errorMsg, log: this.log, error: ex, res }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transfer-endpoint.ts b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transfer-endpoint.ts new file mode 100644 index 0000000000..50e86a5887 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/typescript/web-services/transfer-endpoint.ts @@ -0,0 +1,118 @@ +import { + Checks, + IAsyncProvider, + Logger, + LoggerProvider, +} from "@hyperledger/cactus-common"; +import { + IEndpointAuthzOptions, + IExpressRequestHandler, + IWebServiceEndpoint, +} from "@hyperledger/cactus-core-api"; +import type { Express, Request, Response } from "express"; +import { IRequestOptions } from "../types"; +import OAS from "../../json/openapi-bundled.json"; +import { + handleRestEndpointException, + registerWebServiceEndpoint, +} from "@hyperledger/cactus-core"; +import { + TransactRequestSourceChainAssetTypeEnum, + TransferRequest, +} from "../generated/openapi/typescript-axios/api"; + +export class TransferEndpointV1 implements IWebServiceEndpoint { + public static readonly CLASS_NAME = "TransferEndpointV1"; + + private readonly log: Logger; + + public get className(): string { + return TransferEndpointV1.CLASS_NAME; + } + + constructor(public readonly options: IRequestOptions) { + const fnTag = `${this.className}#constructor()`; + Checks.truthy(options, `${fnTag} arg options`); + Checks.truthy(options.infrastructure, `${fnTag} arg options.connector`); + + const level = this.options.logLevel || "INFO"; + const label = this.className; + this.log = LoggerProvider.getOrCreate({ level, label }); + } + + public get oasPath(): (typeof OAS.paths)["/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens"] { + return OAS.paths[ + "/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens" + ]; + } + + public async registerExpress( + expressApp: Express, + ): Promise { + await registerWebServiceEndpoint(expressApp, this); + return this; + } + getVerbLowerCase(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; + } + getPath(): string { + return this.oasPath.post["x-hyperledger-cacti"].http.path; + } + public getExpressRequestHandler(): IExpressRequestHandler { + return this.handleRequest.bind(this); + } + + public getOperationId(): string { + return OAS.paths["/api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens"] + .post.operationId; + } + + getAuthorizationOptionsProvider(): IAsyncProvider { + return { + get: async () => ({ + isProtected: true, + requiredRoles: [], + }), + }; + } + + public async handleRequest(req: Request, res: Response): Promise { + const fnTag = `${this.className}#handleRequest()`; + const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`; + this.log.debug(reqTag); + const reqBody: TransferRequest = req.body; + this.log.debug("reqBody: ", reqBody); + try { + let result; + if ( + reqBody.sourceChain.assetType === + TransactRequestSourceChainAssetTypeEnum.Besu && + reqBody.receiverChain.assetType === + TransactRequestSourceChainAssetTypeEnum.Fabric + ) { + result = await this.options.infrastructure.transferTokensBesu( + reqBody.from, + reqBody.to, + parseInt(reqBody.amount), + ); + } else if ( + reqBody.sourceChain.assetType === + TransactRequestSourceChainAssetTypeEnum.Fabric && + reqBody.receiverChain.assetType === + TransactRequestSourceChainAssetTypeEnum.Besu + ) { + result = await this.options.infrastructure.transferTokensFabric( + reqBody.from, + reqBody.to, + reqBody.amount, + ); + } else { + throw new Error("Invalid chain combination"); + } + res.status(200).json(result); + } catch (ex) { + const errorMsg = `${reqTag} ${fnTag} Failed to transact:`; + handleRestEndpointException({ errorMsg, log: this.log, error: ex, res }); + } + } +} diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi-bundled.yml b/examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi-bundled.yml new file mode 100644 index 0000000000..5470159953 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi-bundled.yml @@ -0,0 +1,530 @@ +openapi: 3.0.3 +info: + title: CBDC-example backend API + version: 0.0.2 + description: | + Cactus-Example + contact: + name: Hyperledger Cacti + x-logo: + altText: Cacti logo + backgroundColor: '#fafafa' + url: 'https://github.com/hyperledger/cacti/blob/main/images/HL_Cacti_Logo_Color.png' +tags: + - name: transaction + description: API endpoints for interacting with blockchains via gateways + - name: admin + description: API endpoints for fetching information on SATP sessions +paths: + /api/v1/@hyperledger/cactus-example-cbdc/transact: + post: + tags: + - transact + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/transact + summary: Submit a transaction intent + description: Allows users to queue intents for transactions based on specified parameters. + operationId: Transact + requestBody: + required: true + content: + application/json: + schema: + description: 'Request schema for initiating a transaction. Includes details such as the transaction context, mode (data or transfer), payload, and information about the source and receiver DLT networks.' + type: object + required: + - sender + - receiver + - sourceChain + - receiverChain + - amount + properties: + sender: + type: string + example: user1 + receiver: + type: string + example: user2 + sourceChain: + description: Enum for the type of asset being transferred. + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU + receiverChain: + description: Enum for the type of asset being transferred. + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU + amount: + type: string + example: '100' + responses: + '200': + description: Transaction successfully queued + content: + application/json: + schema: + description: Response schema for a transaction request. + type: object + properties: + statusResponse: + description: Response schema for a transaction status request. + type: object + properties: + sessionID: + type: string + example: 123e4567-e89b-12d3-a456-426614174000 + status: + type: string + enum: + - NOT_FOUND + - INVALID + - PENDING + - DONE + - FAILED + required: + - status + required: + - statusResponse + default: + description: An error occurred + content: + application/json: + schema: + x-category: response + type: object + x-go-type: ApiError + x-go-name: ApiError + description: An Error + required: + - message + - type + - code + - status + - timestamp + properties: + type: + type: string + description: HTTP error type + example: bad-request + code: + type: integer + description: Numeric error code + example: 16384 + status: + type: integer + description: HTTP status of the error + example: 500 + message: + type: string + description: Long error description + example: Oops there's been an internal error handling + timestamp: + type: string + description: Timestamp of the error + example: '2021-07-21T17:32:28Z' + /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references: + get: + tags: + - get-sessions-references + summary: Get SATP current sessions data + description: Retrieve the status of a SATP sessions of a gateway + operationId: GetSessionsReferences + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references + parameters: + - name: Ledger + in: query + schema: + type: string + enum: + - FABRIC + - BESU + description: Unique identifier for the session. + responses: + '200': + description: OK + content: + application/json: + schema: + description: Response schema for a transaction status request. + type: array + items: + type: object + properties: + id: + type: string + example: 123e4567-e89b-12d3-a456-426614174000 + status: + type: string + sourceLedger: + type: string + receiverLedger: + type: string + required: + - status + - id + - sourceLedger + - receiverLedger + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + /api/v1/@hyperledger/cactus-example-cbdc/get-balance: + get: + tags: + - get-balance + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-balance + operationId: GetBalance + parameters: + - name: user + in: query + schema: + type: string + - name: chain + in: query + schema: + type: string + enum: + - FABRIC + - BESU + responses: + '200': + description: OK + content: + application/json: + schema: + description: Response schema for an amount request. + type: object + properties: + amount: + type: string + example: '100' + required: + - amount + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens: + post: + tags: + - mint + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens + summary: Submit a transaction intent + description: Allows users to queue intents for transactions based on specified parameters. + operationId: Mint + requestBody: + required: true + content: + application/json: + schema: + description: Request schema for minting an asset. + type: object + properties: + user: + type: string + example: user1 + amount: + type: string + example: '100' + ledger: + description: Enum for the type of asset being transferred. + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU + required: + - user + - amount + - ledger + responses: + '200': + description: Transaction successfully queued + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + default: + description: An error occurred + content: + application/json: + schema: + x-category: response + type: object + x-go-type: ApiError + x-go-name: ApiError + description: An Error + required: + - message + - type + - code + - status + - timestamp + properties: + type: + type: string + description: HTTP error type + example: bad-request + code: + type: integer + description: Numeric error code + example: 16384 + status: + type: integer + description: HTTP status of the error + example: 500 + message: + type: string + description: Long error description + example: Oops there's been an internal error handling + timestamp: + type: string + description: Timestamp of the error + example: '2021-07-21T17:32:28Z' + /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens: + post: + tags: + - approve + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens + summary: Submit a transaction intent + description: Approves a certain amount to be transferred from the user's account by the bridge. + operationId: Approve + requestBody: + required: true + content: + application/json: + schema: + description: Request schema for approving a transaction. + type: object + properties: + user: + type: string + example: user1 + amount: + type: string + example: '100' + ledger: + description: Enum for the type of asset being transferred. + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU + required: + - user + - amount + - ledger + responses: + '200': + description: Transaction successfully queued + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + default: + description: An error occurred + content: + application/json: + schema: + x-category: response + type: object + x-go-type: ApiError + x-go-name: ApiError + description: An Error + required: + - message + - type + - code + - status + - timestamp + properties: + type: + type: string + description: HTTP error type + example: bad-request + code: + type: integer + description: Numeric error code + example: 16384 + status: + type: integer + description: HTTP status of the error + example: 500 + message: + type: string + description: Long error description + example: Oops there's been an internal error handling + timestamp: + type: string + description: Timestamp of the error + example: '2021-07-21T17:32:28Z' + /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved: + get: + tags: + - get-amount-approved + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved + summary: Get the amount approved for a transaction + description: Get the amount approved for a transaction + operationId: GetAmountApproved + parameters: + - name: user + in: query + schema: + type: string + - name: chain + in: query + schema: + type: string + enum: + - FABRIC + - BESU + responses: + '200': + description: OK + content: + application/json: + schema: + type: string + example: '100' + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens: + post: + tags: + - transfer + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens + summary: Submit a transaction intent + description: Allows users to queue intents for transactions based on specified parameters. + operationId: Transfer + requestBody: + required: true + content: + application/json: + schema: + description: Request schema for transferring an asset. + type: object + properties: + from: + type: string + example: user1 + to: + type: string + example: user2 + sourceChain: + description: Enum for the type of asset being transferred. + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU + receiverChain: + description: Enum for the type of asset being transferred. + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU + amount: + type: string + example: '100' + required: + - from + - to + - amount + - sourceChain + - receiverChain + responses: + '200': + description: Transaction successfully queued + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + default: + description: An error occurred + content: + application/json: + schema: + x-category: response + type: object + x-go-type: ApiError + x-go-name: ApiError + description: An Error + required: + - message + - type + - code + - status + - timestamp + properties: + type: + type: string + description: HTTP error type + example: bad-request + code: + type: integer + description: Numeric error code + example: 16384 + status: + type: integer + description: HTTP status of the error + example: 500 + message: + type: string + description: Long error description + example: Oops there's been an internal error handling + timestamp: + type: string + description: Timestamp of the error + example: '2021-07-21T17:32:28Z' diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi.yml b/examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi.yml new file mode 100644 index 0000000000..7ff3c9c591 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/yml/openapi.yml @@ -0,0 +1,248 @@ +openapi: 3.0.3 +info: + title: CBDC-example backend API + version: 0.0.2 + description: | + Cactus-Example + contact: + name: Hyperledger Cacti + x-logo: + altText: Cacti logo + backgroundColor: '#fafafa' + url: https://github.com/hyperledger/cacti/blob/main/images/HL_Cacti_Logo_Color.png +tags: + - name: transaction + description: API endpoints for interacting with blockchains via gateways + - name: admin + description: API endpoints for fetching information on SATP sessions +paths: + /api/v1/@hyperledger/cactus-example-cbdc/transact: + post: + tags: + - transact + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/transact + summary: Submit a transaction intent + description: Allows users to queue intents for transactions based on specified parameters. + operationId: Transact + requestBody: + required: true + content: + application/json: + schema: + $ref: ./schemas.yml#/TransactRequest + responses: + '200': + description: Transaction successfully queued + content: + application/json: + schema: + $ref: ./schemas.yml#/TransactResponse + default: + description: An error occurred + content: + application/json: + schema: + $ref: ./schemas.yml#/APIError + /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references: + get: + tags: + - get-sessions-references + summary: Get SATP current sessions data + description: Retrieve the status of a SATP sessions of a gateway + operationId: GetSessionsReferences + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-sessions-references + parameters: + - name: Ledger + in: query + schema: + type: string + enum: + - FABRIC + - BESU + description: Unique identifier for the session. + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: ./schemas.yml#/SessionsReferencesResponse + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + /api/v1/@hyperledger/cactus-example-cbdc/get-balance: + get: + tags: + - get-balance + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-balance + operationId: GetBalance + parameters: + - name: user + in: query + schema: + type: string + - name: chain + in: query + schema: + type: string + enum: + - FABRIC + - BESU + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: ./schemas.yml#/BalanceResponse + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens: + post: + tags: + - mint + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/mint-tokens + summary: Submit a transaction intent + description: Allows users to queue intents for transactions based on specified parameters. + operationId: Mint + requestBody: + required: true + content: + application/json: + schema: + $ref: ./schemas.yml#/MintRequest + responses: + '200': + description: Transaction successfully queued + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + default: + description: An error occurred + content: + application/json: + schema: + $ref: ./schemas.yml#/APIError + /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens: + post: + tags: + - approve + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/approve-tokens + summary: Submit a transaction intent + description: Approves a certain amount to be transferred from the user's account by the bridge. + operationId: Approve + requestBody: + required: true + content: + application/json: + schema: + $ref: ./schemas.yml#/ApproveRequest + responses: + '200': + description: Transaction successfully queued + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + default: + description: An error occurred + content: + application/json: + schema: + $ref: ./schemas.yml#/APIError + /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved: + get: + tags: + - get-amount-approved + x-hyperledger-cacti: + http: + verbLowerCase: get + path: /api/v1/@hyperledger/cactus-example-cbdc/get-amount-approved + summary: Get the amount approved for a transaction + description: Get the amount approved for a transaction + operationId: GetAmountApproved + parameters: + - name: user + in: query + schema: + type: string + - name: chain + in: query + schema: + type: string + enum: + - FABRIC + - BESU + responses: + '200': + description: OK + content: + application/json: + schema: + type: string + example: "100" + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens: + post: + tags: + - transfer + x-hyperledger-cacti: + http: + verbLowerCase: post + path: /api/v1/@hyperledger/cactus-example-cbdc/transfer-tokens + summary: Submit a transaction intent + description: Allows users to queue intents for transactions based on specified parameters. + operationId: Transfer + requestBody: + required: true + content: + application/json: + schema: + $ref: ./schemas.yml#/TransferRequest + responses: + '200': + description: Transaction successfully queued + '400': + description: Bad request + '404': + description: Transaction not found + '500': + description: Internal server error + default: + description: An error occurred + content: + application/json: + schema: + $ref: ./schemas.yml#/APIError \ No newline at end of file diff --git a/examples/cactus-example-cbdc-bridging-backend/src/main/yml/schemas.yml b/examples/cactus-example-cbdc-bridging-backend/src/main/yml/schemas.yml new file mode 100644 index 0000000000..636f28915f --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-backend/src/main/yml/schemas.yml @@ -0,0 +1,179 @@ +AssetType: + description: "Enum for the type of asset being transferred." + type: object + properties: + assetType: + type: string + enum: + - FABRIC + - BESU +TransactRequest: + description: "Request schema for initiating a transaction. Includes details such as the transaction context, mode (data or transfer), payload, and information about the source and receiver DLT networks." + type: object + required: + - sender + - receiver + - sourceChain + - receiverChain + - amount + properties: + sender: + type: string + example: "user1" + receiver: + type: string + example: "user2" + sourceChain: + $ref: '#/AssetType' + receiverChain: + $ref: '#/AssetType' + amount: + type: string + example: "100" +TransactResponse: + description: "Response schema for a transaction request." + type: object + properties: + statusResponse: + $ref: '#/StatusResponse' + required: + - statusResponse +StatusResponse: + description: "Response schema for a transaction status request." + type: object + properties: + sessionID: + type: string + example: "123e4567-e89b-12d3-a456-426614174000" + status: + type: string + enum: + - NOT_FOUND + - INVALID + - PENDING + - DONE + - FAILED + required: + - status +APIError: + x-category: response + type: object + x-go-type: ApiError + x-go-name: ApiError + description: An Error + required: + - message + - type + - code + - status + - timestamp + properties: + type: + type: string + description: HTTP error type + example: bad-request + code: + type: integer + description: Numeric error code + example: 16384 + status: + type: integer + description: HTTP status of the error + example: 500 + message: + type: string + description: Long error description + example: Oops there's been an internal error handling + timestamp: + type: string + description: Timestamp of the error + example: "2021-07-21T17:32:28Z" +SessionsReferencesResponse: + description: "Response schema for a transaction status request." + type: array + items: + $ref: '#/SessionReference' +SessionReference: + type: object + properties: + id: + type: string + example: "123e4567-e89b-12d3-a456-426614174000" + status: + type: string + sourceLedger: + type: string + receiverLedger: + type: string + required: + - status + - id + - sourceLedger + - receiverLedger + +MintRequest: + description: "Request schema for minting an asset." + type: object + properties: + user: + type: string + example: "user1" + amount: + type: string + example: "100" + ledger: + $ref: '#/AssetType' + required: + - user + - amount + - ledger +BalanceResponse: + description: "Response schema for an amount request." + type: object + properties: + amount: + type: string + example: "100" + required: + - amount +TransferRequest: + description: "Request schema for transferring an asset." + type: object + properties: + from: + type: string + example: "user1" + to: + type: string + example: "user2" + sourceChain: + $ref: '#/AssetType' + receiverChain: + $ref: '#/AssetType' + amount: + type: string + example: "100" + required: + - from + - to + - amount + - sourceChain + - receiverChain +ApproveRequest: + description: "Request schema for approving a transaction." + type: object + properties: + user: + type: string + example: "user1" + amount: + type: string + example: "100" + ledger: + $ref: '#/AssetType' + required: + - user + - amount + - ledger + + \ No newline at end of file diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/ontology/besu-erc20-ontology.json b/examples/cactus-example-cbdc-bridging-backend/src/ontology/besu-erc20-ontology.json similarity index 100% rename from examples/cactus-example-cbdc-bridging-frontend/src/ontology/besu-erc20-ontology.json rename to examples/cactus-example-cbdc-bridging-backend/src/ontology/besu-erc20-ontology.json diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/ontology/fabric-erc20-ontology.json b/examples/cactus-example-cbdc-bridging-backend/src/ontology/fabric-erc20-ontology.json similarity index 100% rename from examples/cactus-example-cbdc-bridging-frontend/src/ontology/fabric-erc20-ontology.json rename to examples/cactus-example-cbdc-bridging-backend/src/ontology/fabric-erc20-ontology.json diff --git a/examples/cactus-example-cbdc-bridging-backend/src/test/typescript/integration/cbdc-app-setup-infrastucture.test.ts b/examples/cactus-example-cbdc-bridging-backend/src/test/typescript/integration/cbdc-app-setup-infrastucture.test.ts index c900161f7e..7926e2e5d0 100644 --- a/examples/cactus-example-cbdc-bridging-backend/src/test/typescript/integration/cbdc-app-setup-infrastucture.test.ts +++ b/examples/cactus-example-cbdc-bridging-backend/src/test/typescript/integration/cbdc-app-setup-infrastucture.test.ts @@ -1,5 +1,8 @@ import { LogLevelDesc, LoggerProvider } from "@hyperledger/cactus-common"; -import { pruneDockerAllIfGithubAction, Containers } from "@hyperledger/cactus-test-tooling"; +import { + pruneDockerAllIfGithubAction, + Containers, +} from "@hyperledger/cactus-test-tooling"; import { CbdcBridgingApp } from "../../../main/typescript"; import { ICbdcBridgingApp } from "../../../main/typescript/cbdc-bridging-app"; @@ -18,8 +21,7 @@ beforeAll(async () => { await Containers.logDiagnostics({ logLevel }); fail("Pruning didn't throw OK"); }); - } -); +}); afterAll(async () => { await pruneDockerAllIfGithubAction({ logLevel }) @@ -53,7 +55,7 @@ describe("Setup CBDC app infrastructure", () => { await app.start(); }); - /*it("Should shutdown everything successfully", async () => { - //await app.stop(); - });*/ -}) \ No newline at end of file + it("Should shutdown everything successfully", async () => { + await app.stop(); + }); +}); diff --git a/examples/cactus-example-cbdc-bridging-backend/tsconfig.json b/examples/cactus-example-cbdc-bridging-backend/tsconfig.json index 3d723037bc..c278ff72bf 100644 --- a/examples/cactus-example-cbdc-bridging-backend/tsconfig.json +++ b/examples/cactus-example-cbdc-bridging-backend/tsconfig.json @@ -1,6 +1,8 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { + "jsx": "react-jsx", + "declaration": true, "composite": true, "outDir": "./dist/lib/", "declarationDir": "dist/lib", @@ -46,7 +48,7 @@ ], "include": [ "./src", - "src/**/*.json" + "src/**/*.json", ], "exclude": [ "./src/fabric-contracts" diff --git a/examples/cactus-example-cbdc-bridging-frontend/.env b/examples/cactus-example-cbdc-bridging-frontend/.env index 656ef3132a..676fc73167 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/.env +++ b/examples/cactus-example-cbdc-bridging-frontend/.env @@ -1 +1,2 @@ -PORT=2000 \ No newline at end of file +PORT=2000 +REACT_APP_BACKEND_PATH=http://localhost:9999 \ No newline at end of file diff --git a/examples/cactus-example-cbdc-bridging-frontend/README.md b/examples/cactus-example-cbdc-bridging-frontend/README.md index 0f48db329e..9089f90efd 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/README.md +++ b/examples/cactus-example-cbdc-bridging-frontend/README.md @@ -17,7 +17,13 @@ docker run -p 2000:2000 cbdc-app-frontend ### Running in debug mode ``` -npm start +yarn start +``` +### Config Variables + +``` +PORT=2000 // port where the frontend will be running +REACT_APP_BACKEND_PATH=http://localhost:9999 // set this to the path where the cbdc backend is running ``` Runs the app in the development mode.\ diff --git a/examples/cactus-example-cbdc-bridging-frontend/config-overrides.js b/examples/cactus-example-cbdc-bridging-frontend/config-overrides.js new file mode 100644 index 0000000000..7fd5ef98ad --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-frontend/config-overrides.js @@ -0,0 +1,9 @@ +const { override, addWebpackModuleRule } = require("customize-cra"); + +module.exports = override( + addWebpackModuleRule({ + test: /\.tsx?$/, + use: "ts-loader", + exclude: /node_modules/, + }), +); diff --git a/examples/cactus-example-cbdc-bridging-frontend/package.json b/examples/cactus-example-cbdc-bridging-frontend/package.json index b9ade46529..f638d1231f 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/package.json +++ b/examples/cactus-example-cbdc-bridging-frontend/package.json @@ -4,10 +4,10 @@ "private": true, "license": "Apache-2.0", "scripts": { - "build": "react-scripts build", - "eject": "react-scripts eject", - "start": "react-scripts start", - "test": "react-scripts test" + "build": "react-app-rewired build", + "eject": "react-app-rewired eject", + "start": "react-app-rewired start", + "test": "react-app-rewired test" }, "browserslist": { "production": [ @@ -21,29 +21,56 @@ "last 1 safari version" ] }, + "contributors": [ + { + "name": "Eduardo Vasques", + "email": "eduardovasques10@tecnico.ulisboa.pt" + }, + { + "name": "AndrĂ© Augusto", + "email": "andre.augusto@tecnico.ulisboa.pt" + }, + { + "name": "Carlos Amaro", + "email": "carlosrscamaro@tecnico.ulisboa.pt" + } + ], "dependencies": { "@emotion/react": "11.11.1", "@emotion/styled": "11.11.0", - "@mui/icons-material": "5.14.19", - "@mui/material": "5.14.19", + "@hyperledger/cactus-example-cbdc-bridging-backend": "2.0.0-rc.7", + "@mui/icons-material": "6.1.1", + "@mui/material": "6.1.1", "@testing-library/jest-dom": "5.17.0", "@testing-library/react": "13.4.0", "@testing-library/user-event": "13.5.0", + "@types/copy-webpack-plugin": "^10.1.0", "@types/jest": "27.5.2", - "@types/node": "18.11.9", - "@types/react": "18.2.39", - "@types/react-dom": "18.2.17", + "@types/node": "^22.6.0", + "@types/react": "18.3.8", + "@types/react-dom": "18.3.0", "axios": "1.7.7", - "react": "18.2.0", - "react-dom": "18.2.0", + "copy-webpack-plugin": "^12.0.2", + "css-loader": "^7.1.2", + "html-webpack-plugin": "^5.6.0", + "react": "18.3.1", + "react-dom": "18.3.1", "react-router-dom": "6.2.1", "react-scripts": "5.0.1", - "typescript": "5.5.2", + "style-loader": "^4.0.0", + "ts-node": "^10.9.2", + "typescript": "^5.6.2", "uuid": "10.0.0", - "web-vitals": "2.1.4" + "webpack": "^5.94.0", + "webpack-cli": "5.1.4", + "webpack-dev-server": "^5.1.0" }, "devDependencies": { - "@types/uuid": "10.0.0" + "@types/customize-cra": "^1", + "@types/uuid": "10.0.0", + "customize-cra": "^1.0.0", + "react-app-rewired": "^2.2.1", + "ts-loader": "^9.5.1" }, "engines": { "node": ">=18", diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/App.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/App.tsx index 3fa4a8c6ff..4eb95b48e3 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/App.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/App.tsx @@ -4,11 +4,21 @@ import Helper from "./pages/Helper"; import "./App.css"; function App() { + if ( + process.env.REACT_APP_BACKEND_PATH == undefined || + process.env.REACT_APP_BACKEND_PATH == "" + ) { + console.log("The BACKEND_PATH environment variable must be set."); + throw new Error("The BACKEND_PATH environment variable must be set."); + } return ( - } /> + } + /> } /> diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/besu-api.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/besu-api.tsx deleted file mode 100644 index 5a493ffad7..0000000000 --- a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/besu-api.tsx +++ /dev/null @@ -1,158 +0,0 @@ -import axios from "axios"; -import CryptoMaterial from "../crypto-material/crypto-material.json"; -import { getEthAddress, getEthUserPrKey } from "./common"; - -const BESU_CONTRACT_CBDC_ERC20_NAME = "SATPContract"; - -export async function authorizeNTokensBesu( - frontendUserFrom: string, - amount: number, -) { - const response = await fetch("http://localhost:9999/wrapper-address"); - const data = await response.json(); - const wrapperAddress = data.address; - - const from = getEthAddress(frontendUserFrom); - const res = await axios.post( - "http://localhost:4100/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract", - { - contractName: BESU_CONTRACT_CBDC_ERC20_NAME, - invocationType: "SEND", - methodName: "approve", - gas: 1000000, - params: [wrapperAddress, amount], - signingCredential: { - ethAccount: from, - secret: getEthUserPrKey(frontendUserFrom), - type: "PRIVATE_KEY_HEX", - }, - keychainId: CryptoMaterial.keychains.keychain2.id, - }, - ); - if (res.status !== 200) { - throw Error(res.status + " :" + res.data); - } -} - -export async function fetchAmountApprovedToBridge(frontendUser: string) { - const response = await fetch("http://localhost:9999/wrapper-address"); - const data = await response.json(); - const wrapperAddress = data.address; - - try { - const from = getEthAddress(frontendUser); - const response = await axios.post( - "http://localhost:4100/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract", - { - contractName: BESU_CONTRACT_CBDC_ERC20_NAME, - invocationType: "CALL", - methodName: "allowance", - gas: 1000000, - params: [from, wrapperAddress], - signingCredential: { - ethAccount: from, - secret: getEthUserPrKey(frontendUser), - type: "PRIVATE_KEY_HEX", - }, - keychainId: CryptoMaterial.keychains.keychain2.id, - }, - ); - return parseInt(response.data.callOutput); - } catch (error) { - // there is no allowance, so we will return 0 - return 0; - } -} - -export async function transferTokensBesu( - frontendUserFrom: string, - frontendUserTo: string, - amount: number, -) { - const from = getEthAddress(frontendUserFrom); - const to = getEthAddress(frontendUserTo); - try { - await axios.post( - "http://localhost:4100/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract", - { - contractName: BESU_CONTRACT_CBDC_ERC20_NAME, - invocationType: "SEND", - methodName: "transfer", - gas: 1000000, - params: [to, amount], - signingCredential: { - ethAccount: from, - secret: getEthUserPrKey(frontendUserFrom), - type: "PRIVATE_KEY_HEX", - }, - keychainId: CryptoMaterial.keychains.keychain2.id, - }, - ); - } catch (error) { - console.error(error); - } -} - -export async function getBesuBalance(frontendUser: string) { - const userEthAddress = getEthAddress(frontendUser); - - try { - const response = await axios.post( - "http://localhost:4100/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract", - { - contractName: BESU_CONTRACT_CBDC_ERC20_NAME, - invocationType: "CALL", - methodName: "checkBalance", - gas: 900000000, - params: [userEthAddress], - signingCredential: { - ethAccount: userEthAddress, - secret: getEthUserPrKey(frontendUser), - type: "PRIVATE_KEY_HEX", - }, - keychainId: CryptoMaterial.keychains.keychain2.id, - }, - ); - - return parseInt(response.data.callOutput); - } catch (error) { - console.error(error); - return -1; - } -} -export async function mintTokensBesu(user: string, amount: number) { - const userEthAddress = getEthAddress(user); - try { - await axios.post( - "http://localhost:4100/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/invoke-contract", - { - contractName: BESU_CONTRACT_CBDC_ERC20_NAME, - keychainId: CryptoMaterial.keychains.keychain2.id, - invocationType: "SEND", - methodName: "mint", - params: [userEthAddress, amount], - signingCredential: { - ethAccount: getEthAddress("Bridge"), - secret: getEthUserPrKey("Bridge"), - type: "PRIVATE_KEY_HEX", - }, - gas: 1000000, - }, - ); - } catch (error) { - console.error(error.msg); - } -} - -export function getUserFromEthAddress(ethAddress: string) { - switch (ethAddress) { - case CryptoMaterial.accounts["userA"].ethAddress: - return "Alice"; - case CryptoMaterial.accounts["userB"].ethAddress: - return "Charlie"; - case CryptoMaterial.accounts["bridge"].ethAddress: - return "Bridge"; - default: - break; - } -} diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/common.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/common.tsx deleted file mode 100644 index 70cbc97624..0000000000 --- a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/common.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import axios from "axios"; -import CryptoMaterial from "../crypto-material/crypto-material.json"; - -// Input: [Alice, Charlie, Bridge] -export function getUserFromPseudonim(user: string) { - switch (user) { - case "Alice": - return "userA"; - case "Charlie": - return "userB"; - case "Bridge": - return "bridge"; - default: - break; - } -} - -export function getFabricId(user: string) { - switch (getUserFromPseudonim(user)) { - case "userA": - return CryptoMaterial.accounts["userA"].fabricID; - case "userB": - return CryptoMaterial.accounts["userB"].fabricID; - case "bridge": - return CryptoMaterial.accounts["bridge"].fabricID; - default: - break; - } -} - -export function getEthAddress(user: string) { - switch (getUserFromPseudonim(user)) { - case "userA": - return CryptoMaterial.accounts["userA"].ethAddress; - case "userB": - return CryptoMaterial.accounts["userB"].ethAddress; - case "bridge": - return CryptoMaterial.accounts["bridge"].ethAddress; - default: - break; - } -} - -export function getEthUserPrKey(user: string) { - switch (getUserFromPseudonim(user)) { - case "userA": - return CryptoMaterial.accounts["userA"].privateKey; - case "userB": - return CryptoMaterial.accounts["userB"].privateKey; - case "bridge": - return CryptoMaterial.accounts["bridge"].privateKey; - default: - break; - } -} - -export async function checkApiServer1Connection() { - await axios.get("http://localhost:4000/api/v1/api-server/healthcheck"); -} - -export async function checkApiServer2Connection() { - await axios.get("http://localhost:4100/api/v1/api-server/healthcheck"); -} diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/fabric-api.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/fabric-api.tsx deleted file mode 100644 index f0aad577bd..0000000000 --- a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/fabric-api.tsx +++ /dev/null @@ -1,178 +0,0 @@ -import axios from "axios"; -import CryptoMaterial from "../crypto-material/crypto-material.json"; -import { getUserFromPseudonim, getFabricId } from "./common"; - -const FABRIC_CHANNEL_NAME = "mychannel"; -const FABRIC_CONTRACT_CBDC_ERC20_NAME = "SATPContract"; -const FABRIC_CONTRACT_WRAPPER_NAME = "SATPWrapperContract"; - -export async function getFabricBalance(frontendUser: string) { - const fabricID = getFabricId(frontendUser); - let response; - try { - response = await axios.post( - "http://localhost:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction", - { - contractName: FABRIC_CONTRACT_CBDC_ERC20_NAME, - channelName: FABRIC_CHANNEL_NAME, - params: [fabricID], - methodName: "ClientIDAccountBalance", - invocationType: "FabricContractInvocationType.CALL", - signingCredential: { - keychainId: CryptoMaterial.keychains.keychain1.id, - keychainRef: "userA", - }, - }, - ); - } catch (error) { - return -1; - } - - return parseInt(response.data.functionOutput); -} - -export async function mintTokensFabric(frontendUser: string, amount: string) { - const response = await axios.post( - "http://localhost:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction", - { - contractName: FABRIC_CONTRACT_CBDC_ERC20_NAME, - channelName: FABRIC_CHANNEL_NAME, - params: [amount.toString()], - methodName: "mint", - invocationType: "FabricContractInvocationType.SEND", - signingCredential: { - keychainId: CryptoMaterial.keychains.keychain1.id, - keychainRef: getUserFromPseudonim(frontendUser), - }, - }, - ); - - if (response.status === 200) { - // throw error - } -} - -export async function transferTokensFabric( - frontendUserFrom: string, - frontendUserTo: string, - amount: string, -) { - const to = getFabricId(frontendUserTo); - try { - const response = await axios.post( - "http://localhost:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction", - { - contractName: FABRIC_CONTRACT_CBDC_ERC20_NAME, - channelName: FABRIC_CHANNEL_NAME, - params: [to, amount.toString()], - methodName: "transfer", - invocationType: "FabricContractInvocationType.SEND", - signingCredential: { - keychainId: CryptoMaterial.keychains.keychain1.id, - keychainRef: getUserFromPseudonim(frontendUserFrom), - }, - }, - ); - if (response.status === 200) { - // throw error - } - } catch (error) { - throw error; - console.error(error); - } -} - -export async function getAssetReferencesFabric( - frontendUser: string, -): Promise { - try { - const response = await axios.post( - "http://localhost:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction", - { - contractName: FABRIC_CONTRACT_WRAPPER_NAME, - channelName: FABRIC_CHANNEL_NAME, - params: [], - methodName: "getAllAssets", - invocationType: "FabricContractInvocationType.CALL", - signingCredential: { - keychainId: CryptoMaterial.keychains.keychain1.id, - keychainRef: getUserFromPseudonim(frontendUser), - }, - }, - ); - const array = Array.from(response.data.functionOutput).map((asset) => { - return JSON.parse(asset as string); - }); - return array - .filter((asset: any) => typeof asset === "object") - .map((asset: any) => { - asset.owner = getUserFromFabricId(asset.recipient); - return { - id: asset.id, - numberTokens: asset.amount, - owner: asset.owner, - }; - }); - } catch (error) { - //TODO fix - console.error(error); - return []; - } -} - -export async function authorizeNTokensFabric(user: string, amount: string) { - await axios.post( - "http://localhost:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction", - { - contractName: FABRIC_CONTRACT_CBDC_ERC20_NAME, - channelName: FABRIC_CHANNEL_NAME, - params: [CryptoMaterial.accounts.bridge.fabricID, amount], - methodName: "Approve", - invocationType: "FabricContractInvocationType.SEND", - signingCredential: { - keychainId: CryptoMaterial.keychains.keychain1.id, - keychainRef: getUserFromPseudonim(user), - }, - }, - ); -} - -export async function fetchAmountApprovedToBridge(frontendUser: string) { - const owner = getFabricId(frontendUser); - let response; - - try { - response = await axios.post( - "http://localhost:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction", - { - contractName: FABRIC_CONTRACT_CBDC_ERC20_NAME, - channelName: FABRIC_CHANNEL_NAME, - params: [owner, CryptoMaterial.accounts.bridge.fabricID], - methodName: "Allowance", - invocationType: "FabricContractInvocationType.CALL", - signingCredential: { - keychainId: CryptoMaterial.keychains.keychain1.id, - keychainRef: getUserFromPseudonim(frontendUser), - }, - }, - ); - } catch (error) { - // there is no allowance, so we will return 0 - return 0; - } - - return parseInt(response.data.functionOutput); -} - -export function getUserFromFabricId(fabricID: string): string { - switch (fabricID) { - case CryptoMaterial.accounts["userA"].fabricID: - return "Alice"; - case CryptoMaterial.accounts["userB"].fabricID: - return "Charlie"; - case CryptoMaterial.accounts["bridge"].fabricID: - return "Bridge"; - default: - return ""; - } -} diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/gateway-api.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/gateway-api.tsx index 0bbafe78c6..ed45477537 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/gateway-api.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/gateway-api.tsx @@ -1,63 +1,26 @@ -import axios from "axios"; -import { getEthAddress, getFabricId } from "./common"; +import { SessionReference } from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/types"; +/* eslint-disable @typescript-eslint/no-unused-vars */ import { - createSessionReference, - SessionReference, -} from "../models/SessionReference"; + GetSessionsReferencesApi, + TransactApi, +} from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/api"; +import { Configuration } from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/configuration"; -import BesuSATPInteraction from "../ontology/besu-erc20-ontology.json"; -import FabricSATPInteraction from "../ontology/fabric-erc20-ontology.json"; - -const FABRIC_CHANNEL_NAME = "mychannel"; -const CONTRACT_CBDC_ERC20_NAME = "SATPContract"; - -export async function getSessionReferencesBridge(port: string): Promise { +export async function getSessionReferencesBridge( + path: string, + type: "BESU" | "FABRIC", +): Promise { + const getSessionReferencesApi = new GetSessionsReferencesApi( + new Configuration({ basePath: path }), + ); try { - const response = await axios.get( - `http://localhost:${port}/api/v1/@hyperledger/cactus-plugin-satp-hermes/get-sessions-ids`, - {}, - ); - if (response.status !== 200) { - return [ - { - id: "MockID", - status: "undefined", - substatus: "undefined", - originLedger: "undefined", - destinyLedger: "undefined", - }, - ]; - } - const ids = response.data; + const response = await getSessionReferencesApi.getSessionsReferences(type); - const sessionsData = []; - for (const id of ids) { - try { - const sessionData = await axios.get( - `http://localhost:${port}/api/v1/@hyperledger/cactus-plugin-satp-hermes/status`, - { - params: { SessionID: id }, - }, - ); - const data: SessionReference = createSessionReference( - id, - sessionData.data.status, - sessionData.data.substatus, - sessionData.data.originChain.dltProtocol, - sessionData.data.destinationChain.dltProtocol, - ); - sessionsData.push(data); - } catch (error) { - sessionsData.push({ - id: "MockID", - status: "undefined", - substatus: "undefined", - originLedger: "undefined", - destinyLedger: "undefined", - }); - } + if (response.status !== 200) { + throw Error(response.status + " :" + response.data); } - return sessionsData; + console.log(response.data); + return response.data as SessionReference[]; } catch (error) { console.log(error); return [ @@ -65,94 +28,42 @@ export async function getSessionReferencesBridge(port: string): Promise { id: "MockID", status: "undefined", substatus: "undefined", - originLedger: "undefined", - destinyLedger: "undefined", + sourceLedger: "undefined", + receiverLedger: "undefined", }, ]; } } -export async function bridgeTokens( +export async function transactTokens( + path: string, sender: string, - recipient: string, - sourceChain: string, - destinationChain: string, - amount: number, + receiver: string, + sourceChain: "FABRIC" | "BESU", + receiverChain: "FABRIC" | "BESU", + amount: string, ) { - let senderAddress; - let receiverAddress; - let port; - let sourceAsset; - let destinationAsset; - //only way we found to pass contract address from backend to frontend at each run of tests - const response = await fetch("http://localhost:9999/contract-address"); - const data = await response.json(); - const besuContractAddress = data.address; - - let fromDLTNetworkID; - let toDLTNetworkID; - - if (sourceChain === "Fabric") { - senderAddress = getFabricId(sender); - sourceAsset = setFabricAsset(senderAddress as string); - fromDLTNetworkID = "FabricSATPGateway"; - port = "4010"; - } else { - fromDLTNetworkID = "BesuSATPGateway"; - senderAddress = getEthAddress(sender); - sourceAsset = setBesuAsset(senderAddress as string, besuContractAddress); - port = "4110"; - } - - if (destinationChain === "Fabric") { - toDLTNetworkID = "FabricSATPGateway"; - receiverAddress = getFabricId(recipient); - destinationAsset = setFabricAsset(receiverAddress as string); - } else { - toDLTNetworkID = "BesuSATPGateway"; - receiverAddress = getEthAddress(recipient); - destinationAsset = setBesuAsset( - receiverAddress as string, - besuContractAddress, - ); - } + const transactApi = new TransactApi(new Configuration({ basePath: path })); try { - await axios.post( - `http://localhost:${port}/api/v1/@hyperledger/cactus-plugin-satp-hermes/transact`, - { - contextID: "MockID", - fromDLTNetworkID, - toDLTNetworkID, - fromAmount: amount, - toAmount: amount, - receiver: receiverAddress, - originatorPubkey: senderAddress, - beneficiaryPubkey: receiverAddress, - sourceAsset, - destinyAsset: destinationAsset, + const response = await transactApi.transact({ + sender, + receiver, + sourceChain: { + assetType: sourceChain, }, - ); - } catch (error) { - throw error; - //return true; - } + receiverChain: { + assetType: receiverChain, + }, + amount, + }); - function setBesuAsset(owner: string, contractAddress: string) { - return { - owner, - ontology: JSON.stringify(BesuSATPInteraction), - contractName: CONTRACT_CBDC_ERC20_NAME, - contractAddress, - }; - } + if (response.status !== 200) { + throw Error(response.status + " :" + response.data); + } - function setFabricAsset(owner: string) { - return { - owner, - ontology: JSON.stringify(FabricSATPInteraction), - contractName: CONTRACT_CBDC_ERC20_NAME, - channelName: FABRIC_CHANNEL_NAME, - mspId: "Org1MSP", - }; + return true; + } catch (error) { + console.error(error); + return false; } } diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/ledgers-api.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/ledgers-api.tsx new file mode 100644 index 0000000000..113290c7a8 --- /dev/null +++ b/examples/cactus-example-cbdc-bridging-frontend/src/api-calls/ledgers-api.tsx @@ -0,0 +1,146 @@ +import { + ApproveApi, + GetAmountApprovedApi, + GetBalanceApi, + MintApi, + MintRequest, + TransferApi, +} from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/api"; +import { Configuration } from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/generated/openapi/typescript-axios/configuration"; + +export async function approveNTokens( + path: string, + ledger: "FABRIC" | "BESU", + frontendUserFrom: string, + amount: string, +) { + const approveApi = new ApproveApi(new Configuration({ basePath: path })); + try { + const res = await approveApi.approve({ + user: frontendUserFrom, + amount: amount, + ledger: { + assetType: ledger, + }, + }); + + if (res.status !== 200) { + throw Error(res.status + " :" + res.data); + } + + return true; + } catch (error) { + console.error(error); + return false; + } +} + +export async function fetchAmountApprovedToBridge( + path: string, + ledger: "FABRIC" | "BESU", + frontendUser: string, +) { + const getAmountApprovedApi = new GetAmountApprovedApi( + new Configuration({ basePath: path }), + ); + + try { + const response = await getAmountApprovedApi.getAmountApproved( + frontendUser, + ledger, + ); + + if (response.status !== 200) { + throw Error(response.status + " :" + response.data); + } + return parseInt(response.data); + } catch (error) { + console.error(error); + } +} + +export async function transferTokens( + path: string, + ledger: "FABRIC" | "BESU", + frontendUserFrom: string, + frontendUserTo: string, + amount: string, +) { + let receiverLedger: "FABRIC" | "BESU"; + if (ledger === "FABRIC") { + receiverLedger = "BESU"; + } else { + receiverLedger = "FABRIC"; + } + const transferApi = new TransferApi(new Configuration({ basePath: path })); + try { + const res = await transferApi.transfer({ + from: frontendUserFrom, + to: frontendUserTo, + amount: amount, + sourceChain: { + assetType: ledger, + }, + receiverChain: { + assetType: receiverLedger, + }, + }); + + if (res.status !== 200) { + throw Error(res.status + " :" + res.data); + } + return true; + } catch (error) { + console.error(error); + return false; + } +} + +export async function getBalance( + path: string, + ledger: "FABRIC" | "BESU", + frontendUser: string, +) { + const getBalanceApi = new GetBalanceApi( + new Configuration({ basePath: path }), + ); + try { + const response = await getBalanceApi.getBalance(frontendUser, ledger); + + if (response.status !== 200) { + throw Error(response.status + " :" + response.data); + } + if (response.data === undefined) { + return 0; + } + return parseInt(response.data.amount); + } catch (error) { + console.error(error); + return -1; + } +} +export async function mintTokens( + path: string, + ledger: "FABRIC" | "BESU", + user: string, + amount: string, +) { + const mintApi = new MintApi(new Configuration({ basePath: path })); + try { + const response = await mintApi.mint({ + user: user, + amount: amount, + ledger: { + assetType: ledger, + }, + } as MintRequest); + + if (response.status !== 200) { + throw Error(response.status + " :" + response.data); + } + return true; + } catch (error) { + console.error(error); + return false; + } +} diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/components/ActionsContainer.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/components/ActionsContainer.tsx index a932cbb4e3..193ea3129d 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/components/ActionsContainer.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/components/ActionsContainer.tsx @@ -5,14 +5,14 @@ import CircularProgress from "@mui/material/CircularProgress"; import MintDialog from "./dialogs/MintDialog"; import CrossChainTransferDialog from "./dialogs/CrossChainTransferDialog"; import TransferDialog from "./dialogs/TransferDialog"; -import PermissionDialog from "./dialogs/PermissionDialog"; -import { getFabricBalance } from "../api-calls/fabric-api"; -import { getBesuBalance } from "../api-calls/besu-api"; -import { SessionReference } from "../models/SessionReference"; +import ApprovalDialog from "./dialogs/ApprovalDialog"; +import { getBalance } from "../api-calls/ledgers-api"; +import { SessionReference } from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/types"; import { NormalButton } from "./buttons/NormalButton"; import { CriticalButton } from "./buttons/CriticalButton"; export interface IActionsContainerOptions { + path: string; user: string; ledger: string; sessionRefs: Array; @@ -23,21 +23,20 @@ export default function ActionsContainer(props: IActionsContainerOptions) { const [amount, setAmount] = useState(0); const [mintDialog, setMintDialog] = useState(false); const [transferDialog, setTransferDialog] = useState(false); + const [, setErrorMessage] = useState(""); const [crossChainTransferDialog, setCrossChainTransferDialog] = useState(false); - const [permissionDialog, setGivePermissionDialog] = useState(false); + const [approvalDialog, setGiveApprovalDialog] = useState(false); const [loading, setLoading] = useState(false); useEffect(() => { async function fetchData() { - let response; - if (props.ledger === "Fabric") { - response = await getFabricBalance(props.user); - setAmount(response); - } else if (props.ledger === "Besu") { - response = await getBesuBalance(props.user); - setAmount(response); + if (props.ledger !== "FABRIC" && props.ledger !== "BESU") { + setErrorMessage("Invalid ledger"); + return; } + const response = await getBalance(props.path, props.ledger, props.user); + setAmount(response); setLoading(false); } @@ -103,7 +102,7 @@ export default function ActionsContainer(props: IActionsContainerOptions) { setTransferDialog(true)} > Transfer @@ -113,7 +112,7 @@ export default function ActionsContainer(props: IActionsContainerOptions) { setTransferDialog(true)} > Transfer @@ -124,8 +123,8 @@ export default function ActionsContainer(props: IActionsContainerOptions) { setGivePermissionDialog(true)} + disabled={amount <= 0} + onClick={() => setGiveApprovalDialog(true)} > Approval @@ -135,7 +134,7 @@ export default function ActionsContainer(props: IActionsContainerOptions) { setCrossChainTransferDialog(true)} > Bridge @@ -151,12 +150,14 @@ export default function ActionsContainer(props: IActionsContainerOptions) { )} setMintDialog(false)} /> setTransferDialog(false)} /> setCrossChainTransferDialog(false)} /> - setGivePermissionDialog(false)} + onClose={() => setGiveApprovalDialog(false)} /> ); diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/components/ApprovalsTable.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/components/ApprovalsTable.tsx index aaea6f4030..f9dad940ae 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/components/ApprovalsTable.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/components/ApprovalsTable.tsx @@ -4,7 +4,7 @@ import TableCell from "@mui/material/TableCell"; import TableContainer from "@mui/material/TableContainer"; import TableHead from "@mui/material/TableHead"; import TableRow from "@mui/material/TableRow"; -import { SessionReference } from "../models/SessionReference"; +import { SessionReference } from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/types"; const headCells = [ { diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/components/Ledger.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/components/Ledger.tsx index 50bf2ae7f6..4283654708 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/components/Ledger.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/components/Ledger.tsx @@ -4,42 +4,47 @@ import Grid from "@mui/material/Grid"; import ActionsContainer from "./ActionsContainer"; import CircularProgress from "@mui/material/CircularProgress"; import { getSessionReferencesBridge } from "../api-calls/gateway-api"; -import { fetchAmountApprovedToBridge as fetchAmountApprovedToBridgeFabric } from "../api-calls/fabric-api"; -import { fetchAmountApprovedToBridge as fetchAmountApprovedToBridgeBesu } from "../api-calls/besu-api"; +import { fetchAmountApprovedToBridge as fetchAmountApprovedToBridge } from "../api-calls/ledgers-api"; import SessionReferencesTable from "./SessionReferencesTable"; import ApprovalsTable from "./ApprovalsTable"; +import { SessionReference } from "@hyperledger/cactus-example-cbdc-bridging-backend/src/main/typescript/types"; export interface ILedgerOptions { + path: string; ledger: string; } export default function Ledger(props: ILedgerOptions) { - const [sessionReferences, setAssetReferences] = useState([]); + const [sessionReferences, setAssetReferences] = useState( + [], + ); const [aliceApprovals, setAliceApprovals] = useState(0); const [charlieApprovals, setCharlieApprovals] = useState(0); const [loading, setLoading] = useState(true); useEffect(() => { async function fetchData() { - if (props.ledger === "Fabric") { - const list = await getSessionReferencesBridge("4010"); - setAssetReferences(list); - - const alice = await fetchAmountApprovedToBridgeFabric("Alice"); - setAliceApprovals(alice); + if (props.ledger !== "FABRIC" && props.ledger !== "BESU") { + console.log("Invalid ledger"); + return; + } + const list = await getSessionReferencesBridge(props.path, props.ledger); + setAssetReferences(list); - const charlie = await fetchAmountApprovedToBridgeFabric("Charlie"); - setCharlieApprovals(charlie); - } else { - const list = await getSessionReferencesBridge("4110"); - setAssetReferences(list); + const alice = await fetchAmountApprovedToBridge( + props.path, + props.ledger, + "Alice", + ); - const alice = await fetchAmountApprovedToBridgeBesu("Alice"); - setAliceApprovals(alice); + setAliceApprovals(alice ?? 0); - const charlie = await fetchAmountApprovedToBridgeBesu("Charlie"); - setCharlieApprovals(charlie); - } + const charlie = await fetchAmountApprovedToBridge( + props.path, + props.ledger, + "Charlie", + ); + setCharlieApprovals(charlie ?? 0); setLoading(false); } @@ -59,6 +64,7 @@ export default function Ledger(props: ILedgerOptions) { {row.status} {row.substatus} - {row.originLedger} - {row.destinyLedger} + {row.sourceLedger} + {row.receiverLedger} ))} diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/PermissionDialog.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/ApprovalDialog.tsx similarity index 87% rename from examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/PermissionDialog.tsx rename to examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/ApprovalDialog.tsx index 9c9ddb474d..0cd670f9c7 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/PermissionDialog.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/ApprovalDialog.tsx @@ -7,10 +7,9 @@ import TextField from "@mui/material/TextField"; import Button from "@mui/material/Button"; import Dialog from "@mui/material/Dialog"; import Alert from "@mui/material/Alert"; -import { authorizeNTokensFabric } from "../../api-calls/fabric-api"; -import { authorizeNTokensBesu } from "../../api-calls/besu-api"; - +import { approveNTokens } from "../../api-calls/ledgers-api"; export interface IPermissionDialogOptions { + path: string; open: boolean; user: string; ledger: string; @@ -59,11 +58,22 @@ export default function setGivePermissionDialog( setErrorMessage("Amount must be a positive value"); } else { setSending(true); - if (props.ledger === "Fabric") { - await authorizeNTokensFabric(props.user, amount.toString()); - } else { - await authorizeNTokensBesu(props.user, amount); + if (props.ledger !== "FABRIC" && props.ledger !== "BESU") { + setErrorMessage("Invalid ledger"); + return; + } + + if ( + await approveNTokens( + props.path, + props.ledger, + props.user, + amount.toString(), + ) + ) { + window.location.reload(); } + props.onClose(); } }; diff --git a/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/CrossChainTransferDialog.tsx b/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/CrossChainTransferDialog.tsx index 2100ce68b3..b59b912f22 100644 --- a/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/CrossChainTransferDialog.tsx +++ b/examples/cactus-example-cbdc-bridging-frontend/src/components/dialogs/CrossChainTransferDialog.tsx @@ -9,11 +9,14 @@ import Select, { SelectChangeEvent } from "@mui/material/Select"; import Button from "@mui/material/Button"; import Dialog from "@mui/material/Dialog"; import Alert from "@mui/material/Alert"; -import { bridgeTokens } from "../../api-calls/gateway-api"; +import { transactTokens } from "../../api-calls/gateway-api"; +import FormControl from "@mui/material/FormControl"; +import { InputLabel } from "@mui/material"; const recipients = ["Alice", "Charlie"]; export interface ICrossChainTransferDialogOptions { + path: string; open: boolean; ledger: string; user: string; @@ -70,13 +73,23 @@ export default function CrossChainTransferDialog( setErrorMessage("Amounts must be a positive value"); } else { setSending(true); - await bridgeTokens( - props.user, - recipient, - props.ledger, - props.ledger === "Fabric" ? "Besu" : "Fabric", - amount, - ); + if (props.ledger !== "FABRIC" && props.ledger !== "BESU") { + setErrorMessage("Invalid ledger"); + return; + } + + if ( + await transactTokens( + props.path, + props.user, + recipient, + props.ledger, + props.ledger === "FABRIC" ? "BESU" : "FABRIC", + amount.toString(), + ) + ) { + window.location.reload(); + } } props.onClose(); @@ -87,24 +100,39 @@ export default function CrossChainTransferDialog( {"Cross-Chain Transfer CBDC"} - Select the recipient of the tokens and the amount to transfer to the + Select the tokens' recipient and the amount to be transferred to the other blockchain - + + Recipient + + + any; + onClose: () => unknown; } export default function TransferDialog(props: ITransferDialogOptions) { @@ -68,10 +69,21 @@ export default function TransferDialog(props: ITransferDialogOptions) { } else { setSending(true); - if (props.ledger === "Fabric") { - await transferTokensFabric(props.user, recipient, amount.toString()); - } else { - await transferTokensBesu(props.user, recipient, amount); + if (props.ledger !== "FABRIC" && props.ledger !== "BESU") { + setErrorMessage("Invalid ledger"); + return; + } + + if ( + await transferTokens( + props.path, + props.ledger, + props.user, + recipient, + amount.toString(), + ) + ) { + window.location.reload(); } } props.onClose(); @@ -82,23 +94,38 @@ export default function TransferDialog(props: ITransferDialogOptions) { {"Transfer CBDC"} - Select the recipient of the tokens and the amount to transfer + Select the tokens' recipient and the amount to be transferred - + + Recipient + + + (false); - useEffect(() => { - // const checkConnection = async () => { - // await checkApiServer1Connection() - // .then(() => setErrorDialog(false)) - // .catch(() => setErrorDialog(true)); - // await checkApiServer2Connection() - // .then(() => setErrorDialog(false)) - // .catch(() => setErrorDialog(true)); - // }; - // checkConnection(); - }, []); - return (
- + - + = 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v TransactDefaultResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetAuditRequest struct { - ctx context.Context - ApiService AdminApi - auditStartDate *time.Time - auditEndDate *time.Time - includeProofs *bool -} - -// The start date for the audit period. -func (r ApiGetAuditRequest) AuditStartDate(auditStartDate time.Time) ApiGetAuditRequest { - r.auditStartDate = &auditStartDate - return r -} - -// The end date for the audit period. -func (r ApiGetAuditRequest) AuditEndDate(auditEndDate time.Time) ApiGetAuditRequest { - r.auditEndDate = &auditEndDate - return r -} - -// Include proofs generated from each gateway transaction. -func (r ApiGetAuditRequest) IncludeProofs(includeProofs bool) ApiGetAuditRequest { - r.includeProofs = &includeProofs - return r -} - -func (r ApiGetAuditRequest) Execute() (*GetAudit200Response, *http.Response, error) { - return r.ApiService.GetAuditExecute(r) -} - -/* -GetAudit Audit transactions - -Audits transactions based on provided filters such as start and end dates. Optionally includes proofs generated from each gateway transaction. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAuditRequest -*/ -func (a *AdminApiService) GetAudit(ctx context.Context) ApiGetAuditRequest { - return ApiGetAuditRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return GetAudit200Response -func (a *AdminApiService) GetAuditExecute(r ApiGetAuditRequest) (*GetAudit200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetAudit200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetAudit") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/audit" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.auditStartDate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auditStartDate", r.auditStartDate, "") - } - if r.auditEndDate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auditEndDate", r.auditEndDate, "") - } - if r.includeProofs != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includeProofs", r.includeProofs, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetHealthCheckRequest struct { - ctx context.Context - ApiService AdminApi -} - -func (r ApiGetHealthCheckRequest) Execute() (*GetHealthCheck200Response, *http.Response, error) { - return r.ApiService.GetHealthCheckExecute(r) -} - -/* -GetHealthCheck Health check endpoint - -Responds if SATP Hermes is on - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetHealthCheckRequest -*/ -func (a *AdminApiService) GetHealthCheck(ctx context.Context) ApiGetHealthCheckRequest { - return ApiGetHealthCheckRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return GetHealthCheck200Response -func (a *AdminApiService) GetHealthCheckExecute(r ApiGetHealthCheckRequest) (*GetHealthCheck200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetHealthCheck200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetHealthCheck") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/healthcheck" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSessionIdsRequest struct { - ctx context.Context - ApiService AdminApi - sessionsRequest *map[string]interface{} -} - -func (r ApiGetSessionIdsRequest) SessionsRequest(sessionsRequest map[string]interface{}) ApiGetSessionIdsRequest { - r.sessionsRequest = &sessionsRequest - return r -} - -func (r ApiGetSessionIdsRequest) Execute() ([]string, *http.Response, error) { - return r.ApiService.GetSessionIdsExecute(r) -} - -/* -GetSessionIds Get SATP session ids - -Retrieve the all SATP session IDs - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSessionIdsRequest -*/ -func (a *AdminApiService) GetSessionIds(ctx context.Context) ApiGetSessionIdsRequest { - return ApiGetSessionIdsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return []string -func (a *AdminApiService) GetSessionIdsExecute(r ApiGetSessionIdsRequest) ([]string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetSessionIds") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/get-sessions-ids" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.sessionsRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "SessionsRequest", r.sessionsRequest, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetStatusRequest struct { - ctx context.Context - ApiService AdminApi - sessionID *string -} - -// Unique identifier for the session. -func (r ApiGetStatusRequest) SessionID(sessionID string) ApiGetStatusRequest { - r.sessionID = &sessionID - return r -} - -func (r ApiGetStatusRequest) Execute() (*Transact200ResponseStatusResponse, *http.Response, error) { - return r.ApiService.GetStatusExecute(r) -} - -/* -GetStatus Get SATP current session data - -Retrieve the status of a SATP session - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetStatusRequest -*/ -func (a *AdminApiService) GetStatus(ctx context.Context) ApiGetStatusRequest { - return ApiGetStatusRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return Transact200ResponseStatusResponse -func (a *AdminApiService) GetStatusExecute(r ApiGetStatusRequest) (*Transact200ResponseStatusResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Transact200ResponseStatusResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetStatus") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/status" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.sessionID == nil { - return localVarReturnValue, nil, reportError("sessionID is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "SessionID", r.sessionID, "") - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiPauseRequest struct { - ctx context.Context - ApiService AdminApi - pauseRequest *PauseRequest -} - -func (r ApiPauseRequest) PauseRequest(pauseRequest PauseRequest) ApiPauseRequest { - r.pauseRequest = &pauseRequest - return r -} - -func (r ApiPauseRequest) Execute() (*Pause200Response, *http.Response, error) { - return r.ApiService.PauseExecute(r) -} - -/* -Pause Pause a transaction session - -Attempts to pause a previously submitted transaction intent, temporarily halting its execution. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPauseRequest -*/ -func (a *AdminApiService) Pause(ctx context.Context) ApiPauseRequest { - return ApiPauseRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return Pause200Response -func (a *AdminApiService) PauseExecute(r ApiPauseRequest) (*Pause200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Pause200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.Pause") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/pause" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.pauseRequest == nil { - return localVarReturnValue, nil, reportError("pauseRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.pauseRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v TransactDefaultResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/api_transaction.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/api_transaction.go deleted file mode 100644 index ef1bdc66de..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/api_transaction.go +++ /dev/null @@ -1,609 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -type TransactionApi interface { - - /* - Cancel Cancel a transaction session - - Attempts to cancel a previously submitted transaction intent using its session ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCancelRequest - */ - Cancel(ctx context.Context) ApiCancelRequest - - // CancelExecute executes the request - // @return Cancel200Response - CancelExecute(r ApiCancelRequest) (*Cancel200Response, *http.Response, error) - - /* - GetIntegrations Get supported integrations - - Retrieves metadata about each supported blockchain networks, chains, and other systems. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetIntegrationsRequest - */ - GetIntegrations(ctx context.Context) ApiGetIntegrationsRequest - - // GetIntegrationsExecute executes the request - // @return []Chains1Inner - GetIntegrationsExecute(r ApiGetIntegrationsRequest) ([]Chains1Inner, *http.Response, error) - - /* - GetRoutes Get a list of routes for a gateway-to-gateway asset transfer - - Get a list of possible routes for swapping one asset for another across multiple exchanges - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRoutesRequest - */ - GetRoutes(ctx context.Context) ApiGetRoutesRequest - - // GetRoutesExecute executes the request - // @return GetRoutes200Response - GetRoutesExecute(r ApiGetRoutesRequest) (*GetRoutes200Response, *http.Response, error) - - /* - Transact Submit a transaction intent - - Allows users to queue intents for transactions based on specified parameters. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTransactRequest - */ - Transact(ctx context.Context) ApiTransactRequest - - // TransactExecute executes the request - // @return Transact200Response - TransactExecute(r ApiTransactRequest) (*Transact200Response, *http.Response, error) -} - -// TransactionApiService TransactionApi service -type TransactionApiService service - -type ApiCancelRequest struct { - ctx context.Context - ApiService TransactionApi - cancelRequest *CancelRequest -} - -func (r ApiCancelRequest) CancelRequest(cancelRequest CancelRequest) ApiCancelRequest { - r.cancelRequest = &cancelRequest - return r -} - -func (r ApiCancelRequest) Execute() (*Cancel200Response, *http.Response, error) { - return r.ApiService.CancelExecute(r) -} - -/* -Cancel Cancel a transaction session - -Attempts to cancel a previously submitted transaction intent using its session ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCancelRequest -*/ -func (a *TransactionApiService) Cancel(ctx context.Context) ApiCancelRequest { - return ApiCancelRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return Cancel200Response -func (a *TransactionApiService) CancelExecute(r ApiCancelRequest) (*Cancel200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cancel200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionApiService.Cancel") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/cancel" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cancelRequest == nil { - return localVarReturnValue, nil, reportError("cancelRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cancelRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v TransactDefaultResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetIntegrationsRequest struct { - ctx context.Context - ApiService TransactionApi -} - -func (r ApiGetIntegrationsRequest) Execute() ([]Chains1Inner, *http.Response, error) { - return r.ApiService.GetIntegrationsExecute(r) -} - -/* -GetIntegrations Get supported integrations - -Retrieves metadata about each supported blockchain networks, chains, and other systems. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetIntegrationsRequest -*/ -func (a *TransactionApiService) GetIntegrations(ctx context.Context) ApiGetIntegrationsRequest { - return ApiGetIntegrationsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return []Chains1Inner -func (a *TransactionApiService) GetIntegrationsExecute(r ApiGetIntegrationsRequest) ([]Chains1Inner, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Chains1Inner - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionApiService.GetIntegrations") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/integrations" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v TransactDefaultResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetRoutesRequest struct { - ctx context.Context - ApiService TransactionApi - fromNetworkID *string - fromAmount *string - fromToken *string - toDLTNetwork *string - toToken *string - fromAddress *string - toAddress *string -} - -// The sending DLT Network. -func (r ApiGetRoutesRequest) FromNetworkID(fromNetworkID string) ApiGetRoutesRequest { - r.fromNetworkID = &fromNetworkID - return r -} - -// The amount that should be sent including all decimals. -func (r ApiGetRoutesRequest) FromAmount(fromAmount string) ApiGetRoutesRequest { - r.fromAmount = &fromAmount - return r -} - -// The token that should be transferred. Can be the address or the symbol. -func (r ApiGetRoutesRequest) FromToken(fromToken string) ApiGetRoutesRequest { - r.fromToken = &fromToken - return r -} - -// The receiving DLT Network. -func (r ApiGetRoutesRequest) ToDLTNetwork(toDLTNetwork string) ApiGetRoutesRequest { - r.toDLTNetwork = &toDLTNetwork - return r -} - -// The token that should be transferred to. Can be the address or the symbol. -func (r ApiGetRoutesRequest) ToToken(toToken string) ApiGetRoutesRequest { - r.toToken = &toToken - return r -} - -// The sending wallet address. -func (r ApiGetRoutesRequest) FromAddress(fromAddress string) ApiGetRoutesRequest { - r.fromAddress = &fromAddress - return r -} - -// The receiving wallet address. If none is provided, the fromAddress will be used. -func (r ApiGetRoutesRequest) ToAddress(toAddress string) ApiGetRoutesRequest { - r.toAddress = &toAddress - return r -} - -func (r ApiGetRoutesRequest) Execute() (*GetRoutes200Response, *http.Response, error) { - return r.ApiService.GetRoutesExecute(r) -} - -/* -GetRoutes Get a list of routes for a gateway-to-gateway asset transfer - -Get a list of possible routes for swapping one asset for another across multiple exchanges - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRoutesRequest -*/ -func (a *TransactionApiService) GetRoutes(ctx context.Context) ApiGetRoutesRequest { - return ApiGetRoutesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return GetRoutes200Response -func (a *TransactionApiService) GetRoutesExecute(r ApiGetRoutesRequest) (*GetRoutes200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetRoutes200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionApiService.GetRoutes") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/routes" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.fromNetworkID == nil { - return localVarReturnValue, nil, reportError("fromNetworkID is required and must be specified") - } - if r.fromAmount == nil { - return localVarReturnValue, nil, reportError("fromAmount is required and must be specified") - } - if r.fromToken == nil { - return localVarReturnValue, nil, reportError("fromToken is required and must be specified") - } - if r.toDLTNetwork == nil { - return localVarReturnValue, nil, reportError("toDLTNetwork is required and must be specified") - } - if r.toToken == nil { - return localVarReturnValue, nil, reportError("toToken is required and must be specified") - } - if r.fromAddress == nil { - return localVarReturnValue, nil, reportError("fromAddress is required and must be specified") - } - if r.toAddress == nil { - return localVarReturnValue, nil, reportError("toAddress is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "fromNetworkID", r.fromNetworkID, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "fromAmount", r.fromAmount, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "fromToken", r.fromToken, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "toDLTNetwork", r.toDLTNetwork, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "toToken", r.toToken, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "fromAddress", r.fromAddress, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "toAddress", r.toAddress, "") - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v TransactDefaultResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiTransactRequest struct { - ctx context.Context - ApiService TransactionApi - transactRequest *TransactRequest -} - -func (r ApiTransactRequest) TransactRequest(transactRequest TransactRequest) ApiTransactRequest { - r.transactRequest = &transactRequest - return r -} - -func (r ApiTransactRequest) Execute() (*Transact200Response, *http.Response, error) { - return r.ApiService.TransactExecute(r) -} - -/* -Transact Submit a transaction intent - -Allows users to queue intents for transactions based on specified parameters. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTransactRequest -*/ -func (a *TransactionApiService) Transact(ctx context.Context) ApiTransactRequest { - return ApiTransactRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return Transact200Response -func (a *TransactionApiService) TransactExecute(r ApiTransactRequest) (*Transact200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Transact200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionApiService.Transact") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/transact" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.transactRequest == nil { - return localVarReturnValue, nil, reportError("transactRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.transactRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v TransactDefaultResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/client.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/client.go deleted file mode 100644 index 1b530a6229..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/client.go +++ /dev/null @@ -1,659 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - -) - -var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) -) - -// APIClient manages communication with the SATP Gateway Client (Business Logic Orchestrator) API v0.0.2 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - AdminApi AdminApi - - TransactionApi TransactionApi -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.AdminApi = (*AdminApiService)(&c.common) - c.TransactionApi = (*TransactionApiService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -func parameterValueToString( obj interface{}, key string ) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - return fmt.Sprintf("%v", obj) - } - var param,ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap,err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToHeaderOrQuery adds the provided object to the request header or url query -// supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t,ok := obj.(MappedNullable); ok { - dataMap,err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i:=0;i 0 || (len(formFiles) > 0) { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if xmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - err = file.Close() - if err != nil { - return err - } - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} - -// format error message using title and detail when model implements rfc7807 -func formatErrorMessage(status string, v interface{}) string { - str := "" - metaValue := reflect.ValueOf(v).Elem() - - if metaValue.Kind() == reflect.Struct { - field := metaValue.FieldByName("Title") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s", field.Interface()) - } - - field = metaValue.FieldByName("Detail") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s (%s)", str, field.Interface()) - } - } - - return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/configuration.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/configuration.go deleted file mode 100644 index 1d5aa08091..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/configuration.go +++ /dev/null @@ -1,225 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/v0.0.1/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "http://{host}:{port}/api/v1/@hyperledger/cactus-plugin-satp-hermes", - Description: "Development server", - Variables: map[string]ServerVariable{ - "host": ServerVariable{ - Description: "No description provided", - DefaultValue: "localhost", - }, - "port": ServerVariable{ - Description: "No description provided", - DefaultValue: "3011", - }, - }, - }, - }, - OperationServers: map[string]ServerConfigurations{ - }, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Action.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Action.md deleted file mode 100644 index c78ea1b6bb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Action.md +++ /dev/null @@ -1,186 +0,0 @@ -# Action - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FromToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**FromAmount** | Pointer to **string** | The amount of 'fromToken' to be transferred, specified as a string to maintain precision. | [optional] -**ToToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**Slippage** | Pointer to **float32** | The maximum acceptable difference between the expected price of the 'toToken' and the price at the time of the transfer. | [optional] -**FromAddress** | Pointer to **string** | A blockchain address. | [optional] -**ToAddress** | Pointer to **string** | A blockchain address. | [optional] - -## Methods - -### NewAction - -`func NewAction() *Action` - -NewAction instantiates a new Action object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewActionWithDefaults - -`func NewActionWithDefaults() *Action` - -NewActionWithDefaults instantiates a new Action object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFromToken - -`func (o *Action) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetFromToken returns the FromToken field if non-nil, zero value otherwise. - -### GetFromTokenOk - -`func (o *Action) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetFromTokenOk returns a tuple with the FromToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromToken - -`func (o *Action) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetFromToken sets FromToken field to given value. - -### HasFromToken - -`func (o *Action) HasFromToken() bool` - -HasFromToken returns a boolean if a field has been set. - -### GetFromAmount - -`func (o *Action) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *Action) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *Action) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - -### HasFromAmount - -`func (o *Action) HasFromAmount() bool` - -HasFromAmount returns a boolean if a field has been set. - -### GetToToken - -`func (o *Action) GetToToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetToToken returns the ToToken field if non-nil, zero value otherwise. - -### GetToTokenOk - -`func (o *Action) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetToTokenOk returns a tuple with the ToToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToToken - -`func (o *Action) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetToToken sets ToToken field to given value. - -### HasToToken - -`func (o *Action) HasToToken() bool` - -HasToToken returns a boolean if a field has been set. - -### GetSlippage - -`func (o *Action) GetSlippage() float32` - -GetSlippage returns the Slippage field if non-nil, zero value otherwise. - -### GetSlippageOk - -`func (o *Action) GetSlippageOk() (*float32, bool)` - -GetSlippageOk returns a tuple with the Slippage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSlippage - -`func (o *Action) SetSlippage(v float32)` - -SetSlippage sets Slippage field to given value. - -### HasSlippage - -`func (o *Action) HasSlippage() bool` - -HasSlippage returns a boolean if a field has been set. - -### GetFromAddress - -`func (o *Action) GetFromAddress() string` - -GetFromAddress returns the FromAddress field if non-nil, zero value otherwise. - -### GetFromAddressOk - -`func (o *Action) GetFromAddressOk() (*string, bool)` - -GetFromAddressOk returns a tuple with the FromAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAddress - -`func (o *Action) SetFromAddress(v string)` - -SetFromAddress sets FromAddress field to given value. - -### HasFromAddress - -`func (o *Action) HasFromAddress() bool` - -HasFromAddress returns a boolean if a field has been set. - -### GetToAddress - -`func (o *Action) GetToAddress() string` - -GetToAddress returns the ToAddress field if non-nil, zero value otherwise. - -### GetToAddressOk - -`func (o *Action) GetToAddressOk() (*string, bool)` - -GetToAddressOk returns a tuple with the ToAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAddress - -`func (o *Action) SetToAddress(v string)` - -SetToAddress sets ToAddress field to given value. - -### HasToAddress - -`func (o *Action) HasToAddress() bool` - -HasToAddress returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AdminApi.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AdminApi.md deleted file mode 100644 index b5aff9434e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AdminApi.md +++ /dev/null @@ -1,410 +0,0 @@ -# \AdminApi - -All URIs are relative to *http://localhost:3011/api/v1/@hyperledger/cactus-plugin-satp-hermes* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CallContinue**](AdminApi.md#CallContinue) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/continue | Continue a paused transaction session -[**GetAudit**](AdminApi.md#GetAudit) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/audit | Audit transactions -[**GetHealthCheck**](AdminApi.md#GetHealthCheck) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/healthcheck | Health check endpoint -[**GetSessionIds**](AdminApi.md#GetSessionIds) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/get-sessions-ids | Get SATP session ids -[**GetStatus**](AdminApi.md#GetStatus) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/status | Get SATP current session data -[**Pause**](AdminApi.md#Pause) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/pause | Pause a transaction session - - - -## CallContinue - -> Continue200Response CallContinue(ctx).ContinueRequest(continueRequest).Execute() - -Continue a paused transaction session - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - continueRequest := *openapiclient.NewContinueRequest("SessionId_example", "ContextId_example") // ContinueRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.CallContinue(context.Background()).ContinueRequest(continueRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.CallContinue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CallContinue`: Continue200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.CallContinue`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCallContinueRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **continueRequest** | [**ContinueRequest**](ContinueRequest.md) | | - -### Return type - -[**Continue200Response**](Continue200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetAudit - -> GetAudit200Response GetAudit(ctx).AuditStartDate(auditStartDate).AuditEndDate(auditEndDate).IncludeProofs(includeProofs).Execute() - -Audit transactions - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - auditStartDate := time.Now() // time.Time | The start date for the audit period. (optional) - auditEndDate := time.Now() // time.Time | The end date for the audit period. (optional) - includeProofs := true // bool | Include proofs generated from each gateway transaction. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.GetAudit(context.Background()).AuditStartDate(auditStartDate).AuditEndDate(auditEndDate).IncludeProofs(includeProofs).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetAudit``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAudit`: GetAudit200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetAudit`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetAuditRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **auditStartDate** | **time.Time** | The start date for the audit period. | - **auditEndDate** | **time.Time** | The end date for the audit period. | - **includeProofs** | **bool** | Include proofs generated from each gateway transaction. | - -### Return type - -[**GetAudit200Response**](GetAudit200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetHealthCheck - -> GetHealthCheck200Response GetHealthCheck(ctx).Execute() - -Health check endpoint - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.GetHealthCheck(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetHealthCheck``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHealthCheck`: GetHealthCheck200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetHealthCheck`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetHealthCheckRequest struct via the builder pattern - - -### Return type - -[**GetHealthCheck200Response**](GetHealthCheck200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSessionIds - -> []string GetSessionIds(ctx).SessionsRequest(sessionsRequest).Execute() - -Get SATP session ids - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - sessionsRequest := map[string]interface{}{ ... } // map[string]interface{} | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.GetSessionIds(context.Background()).SessionsRequest(sessionsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetSessionIds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSessionIds`: []string - fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetSessionIds`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSessionIdsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sessionsRequest** | [**map[string]interface{}**](map[string]interface{}.md) | | - -### Return type - -**[]string** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetStatus - -> Transact200ResponseStatusResponse GetStatus(ctx).SessionID(sessionID).Execute() - -Get SATP current session data - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - sessionID := "000003e8-e0b8-21ee-ba00-325096b39f47" // string | Unique identifier for the session. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.GetStatus(context.Background()).SessionID(sessionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatus`: Transact200ResponseStatusResponse - fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetStatus`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetStatusRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sessionID** | **string** | Unique identifier for the session. | - -### Return type - -[**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## Pause - -> Pause200Response Pause(ctx).PauseRequest(pauseRequest).Execute() - -Pause a transaction session - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - pauseRequest := *openapiclient.NewPauseRequest() // PauseRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.Pause(context.Background()).PauseRequest(pauseRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.Pause``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Pause`: Pause200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.Pause`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiPauseRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pauseRequest** | [**PauseRequest**](PauseRequest.md) | | - -### Return type - -[**Pause200Response**](Pause200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Asset.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Asset.md deleted file mode 100644 index 943cdc53a3..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Asset.md +++ /dev/null @@ -1,171 +0,0 @@ -# Asset - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Owner** | **string** | | -**Ontology** | **string** | | -**ContractName** | **string** | | -**ContractAddress** | Pointer to **string** | | [optional] -**MspId** | Pointer to **string** | | [optional] -**ChannelName** | Pointer to **string** | | [optional] - -## Methods - -### NewAsset - -`func NewAsset(owner string, ontology string, contractName string, ) *Asset` - -NewAsset instantiates a new Asset object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAssetWithDefaults - -`func NewAssetWithDefaults() *Asset` - -NewAssetWithDefaults instantiates a new Asset object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetOwner - -`func (o *Asset) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *Asset) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *Asset) SetOwner(v string)` - -SetOwner sets Owner field to given value. - - -### GetOntology - -`func (o *Asset) GetOntology() string` - -GetOntology returns the Ontology field if non-nil, zero value otherwise. - -### GetOntologyOk - -`func (o *Asset) GetOntologyOk() (*string, bool)` - -GetOntologyOk returns a tuple with the Ontology field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOntology - -`func (o *Asset) SetOntology(v string)` - -SetOntology sets Ontology field to given value. - - -### GetContractName - -`func (o *Asset) GetContractName() string` - -GetContractName returns the ContractName field if non-nil, zero value otherwise. - -### GetContractNameOk - -`func (o *Asset) GetContractNameOk() (*string, bool)` - -GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContractName - -`func (o *Asset) SetContractName(v string)` - -SetContractName sets ContractName field to given value. - - -### GetContractAddress - -`func (o *Asset) GetContractAddress() string` - -GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. - -### GetContractAddressOk - -`func (o *Asset) GetContractAddressOk() (*string, bool)` - -GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContractAddress - -`func (o *Asset) SetContractAddress(v string)` - -SetContractAddress sets ContractAddress field to given value. - -### HasContractAddress - -`func (o *Asset) HasContractAddress() bool` - -HasContractAddress returns a boolean if a field has been set. - -### GetMspId - -`func (o *Asset) GetMspId() string` - -GetMspId returns the MspId field if non-nil, zero value otherwise. - -### GetMspIdOk - -`func (o *Asset) GetMspIdOk() (*string, bool)` - -GetMspIdOk returns a tuple with the MspId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMspId - -`func (o *Asset) SetMspId(v string)` - -SetMspId sets MspId field to given value. - -### HasMspId - -`func (o *Asset) HasMspId() bool` - -HasMspId returns a boolean if a field has been set. - -### GetChannelName - -`func (o *Asset) GetChannelName() string` - -GetChannelName returns the ChannelName field if non-nil, zero value otherwise. - -### GetChannelNameOk - -`func (o *Asset) GetChannelNameOk() (*string, bool)` - -GetChannelNameOk returns a tuple with the ChannelName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChannelName - -`func (o *Asset) SetChannelName(v string)` - -SetChannelName sets ChannelName field to given value. - -### HasChannelName - -`func (o *Asset) HasChannelName() bool` - -HasChannelName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzJwtClaim.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzJwtClaim.md deleted file mode 100644 index 48c6263e1b..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzJwtClaim.md +++ /dev/null @@ -1,11 +0,0 @@ -# AuthzJwtClaim - -## Enum - - -* `iss` (value: `"Hyperledger Labs - Carbon Accounting Tool"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzScope.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzScope.md deleted file mode 100644 index 72eac21201..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/AuthzScope.md +++ /dev/null @@ -1,13 +0,0 @@ -# AuthzScope - -## Enum - - -* `GroupAdmin` (value: `"group:admin"`) - -* `GroupUser` (value: `"group:user"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/BridgeInfo.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/BridgeInfo.md deleted file mode 100644 index 540060af18..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/BridgeInfo.md +++ /dev/null @@ -1,56 +0,0 @@ -# BridgeInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TokenAddress** | Pointer to **string** | The address of the token being transferred. | [optional] - -## Methods - -### NewBridgeInfo - -`func NewBridgeInfo() *BridgeInfo` - -NewBridgeInfo instantiates a new BridgeInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBridgeInfoWithDefaults - -`func NewBridgeInfoWithDefaults() *BridgeInfo` - -NewBridgeInfoWithDefaults instantiates a new BridgeInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTokenAddress - -`func (o *BridgeInfo) GetTokenAddress() string` - -GetTokenAddress returns the TokenAddress field if non-nil, zero value otherwise. - -### GetTokenAddressOk - -`func (o *BridgeInfo) GetTokenAddressOk() (*string, bool)` - -GetTokenAddressOk returns a tuple with the TokenAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokenAddress - -`func (o *BridgeInfo) SetTokenAddress(v string)` - -SetTokenAddress sets TokenAddress field to given value. - -### HasTokenAddress - -`func (o *BridgeInfo) HasTokenAddress() bool` - -HasTokenAddress returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Cancel200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Cancel200Response.md deleted file mode 100644 index 3bc8510344..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Cancel200Response.md +++ /dev/null @@ -1,72 +0,0 @@ -# Cancel200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | -**CancelSuccessful** | **bool** | Indicates whether the cancel operation was successful. | - -## Methods - -### NewCancel200Response - -`func NewCancel200Response(statusResponse Transact200ResponseStatusResponse, cancelSuccessful bool, ) *Cancel200Response` - -NewCancel200Response instantiates a new Cancel200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCancel200ResponseWithDefaults - -`func NewCancel200ResponseWithDefaults() *Cancel200Response` - -NewCancel200ResponseWithDefaults instantiates a new Cancel200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusResponse - -`func (o *Cancel200Response) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *Cancel200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *Cancel200Response) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - -### GetCancelSuccessful - -`func (o *Cancel200Response) GetCancelSuccessful() bool` - -GetCancelSuccessful returns the CancelSuccessful field if non-nil, zero value otherwise. - -### GetCancelSuccessfulOk - -`func (o *Cancel200Response) GetCancelSuccessfulOk() (*bool, bool)` - -GetCancelSuccessfulOk returns a tuple with the CancelSuccessful field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCancelSuccessful - -`func (o *Cancel200Response) SetCancelSuccessful(v bool)` - -SetCancelSuccessful sets CancelSuccessful field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelRequest.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelRequest.md deleted file mode 100644 index bac0a72908..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# CancelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionID** | **string** | Unique identifier (UUID) for the session. | - -## Methods - -### NewCancelRequest - -`func NewCancelRequest(sessionID string, ) *CancelRequest` - -NewCancelRequest instantiates a new CancelRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCancelRequestWithDefaults - -`func NewCancelRequestWithDefaults() *CancelRequest` - -NewCancelRequestWithDefaults instantiates a new CancelRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSessionID - -`func (o *CancelRequest) GetSessionID() string` - -GetSessionID returns the SessionID field if non-nil, zero value otherwise. - -### GetSessionIDOk - -`func (o *CancelRequest) GetSessionIDOk() (*string, bool)` - -GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSessionID - -`func (o *CancelRequest) SetSessionID(v string)` - -SetSessionID sets SessionID field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelResponse.md deleted file mode 100644 index e1feb007c4..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CancelResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# CancelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | -**CancelSuccessful** | **bool** | Indicates whether the cancel operation was successful. | - -## Methods - -### NewCancelResponse - -`func NewCancelResponse(statusResponse Transact200ResponseStatusResponse, cancelSuccessful bool, ) *CancelResponse` - -NewCancelResponse instantiates a new CancelResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCancelResponseWithDefaults - -`func NewCancelResponseWithDefaults() *CancelResponse` - -NewCancelResponseWithDefaults instantiates a new CancelResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusResponse - -`func (o *CancelResponse) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *CancelResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *CancelResponse) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - -### GetCancelSuccessful - -`func (o *CancelResponse) GetCancelSuccessful() bool` - -GetCancelSuccessful returns the CancelSuccessful field if non-nil, zero value otherwise. - -### GetCancelSuccessfulOk - -`func (o *CancelResponse) GetCancelSuccessfulOk() (*bool, bool)` - -GetCancelSuccessfulOk returns a tuple with the CancelSuccessful field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCancelSuccessful - -`func (o *CancelResponse) SetCancelSuccessful(v bool)` - -SetCancelSuccessful sets CancelSuccessful field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chain.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chain.md deleted file mode 100644 index 07315d0b34..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chain.md +++ /dev/null @@ -1,114 +0,0 @@ -# Chain - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ChainId** | **string** | A unique identifier for the blockchain network. | -**ChainName** | **string** | The name of the blockchain network. | -**ChainType** | **string** | The type of blockchain network (e.g., 'evm', 'fabric'). | -**NetworkName** | **string** | The specific network name within the blockchain (e.g., 'mainnet', 'testnet'). | - -## Methods - -### NewChain - -`func NewChain(chainId string, chainName string, chainType string, networkName string, ) *Chain` - -NewChain instantiates a new Chain object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewChainWithDefaults - -`func NewChainWithDefaults() *Chain` - -NewChainWithDefaults instantiates a new Chain object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetChainId - -`func (o *Chain) GetChainId() string` - -GetChainId returns the ChainId field if non-nil, zero value otherwise. - -### GetChainIdOk - -`func (o *Chain) GetChainIdOk() (*string, bool)` - -GetChainIdOk returns a tuple with the ChainId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainId - -`func (o *Chain) SetChainId(v string)` - -SetChainId sets ChainId field to given value. - - -### GetChainName - -`func (o *Chain) GetChainName() string` - -GetChainName returns the ChainName field if non-nil, zero value otherwise. - -### GetChainNameOk - -`func (o *Chain) GetChainNameOk() (*string, bool)` - -GetChainNameOk returns a tuple with the ChainName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainName - -`func (o *Chain) SetChainName(v string)` - -SetChainName sets ChainName field to given value. - - -### GetChainType - -`func (o *Chain) GetChainType() string` - -GetChainType returns the ChainType field if non-nil, zero value otherwise. - -### GetChainTypeOk - -`func (o *Chain) GetChainTypeOk() (*string, bool)` - -GetChainTypeOk returns a tuple with the ChainType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainType - -`func (o *Chain) SetChainType(v string)` - -SetChainType sets ChainType field to given value. - - -### GetNetworkName - -`func (o *Chain) GetNetworkName() string` - -GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. - -### GetNetworkNameOk - -`func (o *Chain) GetNetworkNameOk() (*string, bool)` - -GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetworkName - -`func (o *Chain) SetNetworkName(v string)` - -SetNetworkName sets NetworkName field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chains1Inner.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chains1Inner.md deleted file mode 100644 index 6946a5c6d4..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Chains1Inner.md +++ /dev/null @@ -1,114 +0,0 @@ -# Chains1Inner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ChainId** | **string** | A unique identifier for the blockchain network. | -**ChainName** | **string** | The name of the blockchain network. | -**ChainType** | **string** | The type of blockchain network (e.g., 'evm', 'fabric'). | -**NetworkName** | **string** | The specific network name within the blockchain (e.g., 'mainnet', 'testnet'). | - -## Methods - -### NewChains1Inner - -`func NewChains1Inner(chainId string, chainName string, chainType string, networkName string, ) *Chains1Inner` - -NewChains1Inner instantiates a new Chains1Inner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewChains1InnerWithDefaults - -`func NewChains1InnerWithDefaults() *Chains1Inner` - -NewChains1InnerWithDefaults instantiates a new Chains1Inner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetChainId - -`func (o *Chains1Inner) GetChainId() string` - -GetChainId returns the ChainId field if non-nil, zero value otherwise. - -### GetChainIdOk - -`func (o *Chains1Inner) GetChainIdOk() (*string, bool)` - -GetChainIdOk returns a tuple with the ChainId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainId - -`func (o *Chains1Inner) SetChainId(v string)` - -SetChainId sets ChainId field to given value. - - -### GetChainName - -`func (o *Chains1Inner) GetChainName() string` - -GetChainName returns the ChainName field if non-nil, zero value otherwise. - -### GetChainNameOk - -`func (o *Chains1Inner) GetChainNameOk() (*string, bool)` - -GetChainNameOk returns a tuple with the ChainName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainName - -`func (o *Chains1Inner) SetChainName(v string)` - -SetChainName sets ChainName field to given value. - - -### GetChainType - -`func (o *Chains1Inner) GetChainType() string` - -GetChainType returns the ChainType field if non-nil, zero value otherwise. - -### GetChainTypeOk - -`func (o *Chains1Inner) GetChainTypeOk() (*string, bool)` - -GetChainTypeOk returns a tuple with the ChainType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainType - -`func (o *Chains1Inner) SetChainType(v string)` - -SetChainType sets ChainType field to given value. - - -### GetNetworkName - -`func (o *Chains1Inner) GetNetworkName() string` - -GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. - -### GetNetworkNameOk - -`func (o *Chains1Inner) GetNetworkNameOk() (*string, bool)` - -GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetworkName - -`func (o *Chains1Inner) SetNetworkName(v string)` - -SetNetworkName sets NetworkName field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Continue200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Continue200Response.md deleted file mode 100644 index 90d4ab92af..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Continue200Response.md +++ /dev/null @@ -1,51 +0,0 @@ -# Continue200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | - -## Methods - -### NewContinue200Response - -`func NewContinue200Response(statusResponse Transact200ResponseStatusResponse, ) *Continue200Response` - -NewContinue200Response instantiates a new Continue200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewContinue200ResponseWithDefaults - -`func NewContinue200ResponseWithDefaults() *Continue200Response` - -NewContinue200ResponseWithDefaults instantiates a new Continue200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusResponse - -`func (o *Continue200Response) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *Continue200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *Continue200Response) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueRequest.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueRequest.md deleted file mode 100644 index 1bdd7d3aeb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# ContinueRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionId** | **string** | A unique identifier for the transaction session to be continued. | -**ContextId** | **string** | A unique identifier for the transaction context. | - -## Methods - -### NewContinueRequest - -`func NewContinueRequest(sessionId string, contextId string, ) *ContinueRequest` - -NewContinueRequest instantiates a new ContinueRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewContinueRequestWithDefaults - -`func NewContinueRequestWithDefaults() *ContinueRequest` - -NewContinueRequestWithDefaults instantiates a new ContinueRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSessionId - -`func (o *ContinueRequest) GetSessionId() string` - -GetSessionId returns the SessionId field if non-nil, zero value otherwise. - -### GetSessionIdOk - -`func (o *ContinueRequest) GetSessionIdOk() (*string, bool)` - -GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSessionId - -`func (o *ContinueRequest) SetSessionId(v string)` - -SetSessionId sets SessionId field to given value. - - -### GetContextId - -`func (o *ContinueRequest) GetContextId() string` - -GetContextId returns the ContextId field if non-nil, zero value otherwise. - -### GetContextIdOk - -`func (o *ContinueRequest) GetContextIdOk() (*string, bool)` - -GetContextIdOk returns a tuple with the ContextId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContextId - -`func (o *ContinueRequest) SetContextId(v string)` - -SetContextId sets ContextId field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueResponse.md deleted file mode 100644 index 5be0f5d26f..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/ContinueResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# ContinueResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | - -## Methods - -### NewContinueResponse - -`func NewContinueResponse(statusResponse Transact200ResponseStatusResponse, ) *ContinueResponse` - -NewContinueResponse instantiates a new ContinueResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewContinueResponseWithDefaults - -`func NewContinueResponseWithDefaults() *ContinueResponse` - -NewContinueResponseWithDefaults instantiates a new ContinueResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusResponse - -`func (o *ContinueResponse) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *ContinueResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *ContinueResponse) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CredentialProfile.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CredentialProfile.md deleted file mode 100644 index 19497ed8b2..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/CredentialProfile.md +++ /dev/null @@ -1,15 +0,0 @@ -# CredentialProfile - -## Enum - - -* `SAML` (value: `"SAML"`) - -* `OAUTH` (value: `"OAUTH"`) - -* `X509` (value: `"X509"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/DLTProtocol.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/DLTProtocol.md deleted file mode 100644 index c9590c4d54..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/DLTProtocol.md +++ /dev/null @@ -1,13 +0,0 @@ -# DLTProtocol - -## Enum - - -* `HYPERLEDGER_FABRIC` (value: `"HyperledgerFabric"`) - -* `HYPERLEDGER_BESU` (value: `"HyperledgerBesu"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Estimate.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Estimate.md deleted file mode 100644 index d4bf934c4f..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Estimate.md +++ /dev/null @@ -1,290 +0,0 @@ -# Estimate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ApprovalAddress** | Pointer to **string** | A blockchain address. | [optional] -**ToAmountMin** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**ToAmount** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**FromAmount** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**FeeCosts** | Pointer to [**[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner**](GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md) | A collection of fee costs associated with the transaction. | [optional] -**GasCosts** | Pointer to [**[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner**](GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md) | A collection of estimated gas costs for executing the transaction. | [optional] -**ExecutionDuration** | Pointer to **int32** | The estimated duration for the transaction execution in seconds. | [optional] -**FromAmountUSD** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**ToAmountUSD** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**Tool** | Pointer to **string** | The tool or service used to generate this estimate. | [optional] - -## Methods - -### NewEstimate - -`func NewEstimate() *Estimate` - -NewEstimate instantiates a new Estimate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewEstimateWithDefaults - -`func NewEstimateWithDefaults() *Estimate` - -NewEstimateWithDefaults instantiates a new Estimate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetApprovalAddress - -`func (o *Estimate) GetApprovalAddress() string` - -GetApprovalAddress returns the ApprovalAddress field if non-nil, zero value otherwise. - -### GetApprovalAddressOk - -`func (o *Estimate) GetApprovalAddressOk() (*string, bool)` - -GetApprovalAddressOk returns a tuple with the ApprovalAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetApprovalAddress - -`func (o *Estimate) SetApprovalAddress(v string)` - -SetApprovalAddress sets ApprovalAddress field to given value. - -### HasApprovalAddress - -`func (o *Estimate) HasApprovalAddress() bool` - -HasApprovalAddress returns a boolean if a field has been set. - -### GetToAmountMin - -`func (o *Estimate) GetToAmountMin() string` - -GetToAmountMin returns the ToAmountMin field if non-nil, zero value otherwise. - -### GetToAmountMinOk - -`func (o *Estimate) GetToAmountMinOk() (*string, bool)` - -GetToAmountMinOk returns a tuple with the ToAmountMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountMin - -`func (o *Estimate) SetToAmountMin(v string)` - -SetToAmountMin sets ToAmountMin field to given value. - -### HasToAmountMin - -`func (o *Estimate) HasToAmountMin() bool` - -HasToAmountMin returns a boolean if a field has been set. - -### GetToAmount - -`func (o *Estimate) GetToAmount() string` - -GetToAmount returns the ToAmount field if non-nil, zero value otherwise. - -### GetToAmountOk - -`func (o *Estimate) GetToAmountOk() (*string, bool)` - -GetToAmountOk returns a tuple with the ToAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmount - -`func (o *Estimate) SetToAmount(v string)` - -SetToAmount sets ToAmount field to given value. - -### HasToAmount - -`func (o *Estimate) HasToAmount() bool` - -HasToAmount returns a boolean if a field has been set. - -### GetFromAmount - -`func (o *Estimate) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *Estimate) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *Estimate) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - -### HasFromAmount - -`func (o *Estimate) HasFromAmount() bool` - -HasFromAmount returns a boolean if a field has been set. - -### GetFeeCosts - -`func (o *Estimate) GetFeeCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner` - -GetFeeCosts returns the FeeCosts field if non-nil, zero value otherwise. - -### GetFeeCostsOk - -`func (o *Estimate) GetFeeCostsOk() (*[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner, bool)` - -GetFeeCostsOk returns a tuple with the FeeCosts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeeCosts - -`func (o *Estimate) SetFeeCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner)` - -SetFeeCosts sets FeeCosts field to given value. - -### HasFeeCosts - -`func (o *Estimate) HasFeeCosts() bool` - -HasFeeCosts returns a boolean if a field has been set. - -### GetGasCosts - -`func (o *Estimate) GetGasCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner` - -GetGasCosts returns the GasCosts field if non-nil, zero value otherwise. - -### GetGasCostsOk - -`func (o *Estimate) GetGasCostsOk() (*[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner, bool)` - -GetGasCostsOk returns a tuple with the GasCosts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGasCosts - -`func (o *Estimate) SetGasCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner)` - -SetGasCosts sets GasCosts field to given value. - -### HasGasCosts - -`func (o *Estimate) HasGasCosts() bool` - -HasGasCosts returns a boolean if a field has been set. - -### GetExecutionDuration - -`func (o *Estimate) GetExecutionDuration() int32` - -GetExecutionDuration returns the ExecutionDuration field if non-nil, zero value otherwise. - -### GetExecutionDurationOk - -`func (o *Estimate) GetExecutionDurationOk() (*int32, bool)` - -GetExecutionDurationOk returns a tuple with the ExecutionDuration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExecutionDuration - -`func (o *Estimate) SetExecutionDuration(v int32)` - -SetExecutionDuration sets ExecutionDuration field to given value. - -### HasExecutionDuration - -`func (o *Estimate) HasExecutionDuration() bool` - -HasExecutionDuration returns a boolean if a field has been set. - -### GetFromAmountUSD - -`func (o *Estimate) GetFromAmountUSD() string` - -GetFromAmountUSD returns the FromAmountUSD field if non-nil, zero value otherwise. - -### GetFromAmountUSDOk - -`func (o *Estimate) GetFromAmountUSDOk() (*string, bool)` - -GetFromAmountUSDOk returns a tuple with the FromAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmountUSD - -`func (o *Estimate) SetFromAmountUSD(v string)` - -SetFromAmountUSD sets FromAmountUSD field to given value. - -### HasFromAmountUSD - -`func (o *Estimate) HasFromAmountUSD() bool` - -HasFromAmountUSD returns a boolean if a field has been set. - -### GetToAmountUSD - -`func (o *Estimate) GetToAmountUSD() string` - -GetToAmountUSD returns the ToAmountUSD field if non-nil, zero value otherwise. - -### GetToAmountUSDOk - -`func (o *Estimate) GetToAmountUSDOk() (*string, bool)` - -GetToAmountUSDOk returns a tuple with the ToAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountUSD - -`func (o *Estimate) SetToAmountUSD(v string)` - -SetToAmountUSD sets ToAmountUSD field to given value. - -### HasToAmountUSD - -`func (o *Estimate) HasToAmountUSD() bool` - -HasToAmountUSD returns a boolean if a field has been set. - -### GetTool - -`func (o *Estimate) GetTool() string` - -GetTool returns the Tool field if non-nil, zero value otherwise. - -### GetToolOk - -`func (o *Estimate) GetToolOk() (*string, bool)` - -GetToolOk returns a tuple with the Tool field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTool - -`func (o *Estimate) SetTool(v string)` - -SetTool sets Tool field to given value. - -### HasTool - -`func (o *Estimate) HasTool() bool` - -HasTool returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/FeeCost.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/FeeCost.md deleted file mode 100644 index 688c101bbb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/FeeCost.md +++ /dev/null @@ -1,160 +0,0 @@ -# FeeCost - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | Name of the fee cost. | [optional] -**Amount** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**AmountUSD** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**Token** | Pointer to **string** | The symbol of a token | [optional] -**Included** | Pointer to **bool** | Indicates if the fee is included in the transaction amount. | [optional] - -## Methods - -### NewFeeCost - -`func NewFeeCost() *FeeCost` - -NewFeeCost instantiates a new FeeCost object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFeeCostWithDefaults - -`func NewFeeCostWithDefaults() *FeeCost` - -NewFeeCostWithDefaults instantiates a new FeeCost object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *FeeCost) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *FeeCost) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *FeeCost) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *FeeCost) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetAmount - -`func (o *FeeCost) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *FeeCost) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *FeeCost) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *FeeCost) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetAmountUSD - -`func (o *FeeCost) GetAmountUSD() string` - -GetAmountUSD returns the AmountUSD field if non-nil, zero value otherwise. - -### GetAmountUSDOk - -`func (o *FeeCost) GetAmountUSDOk() (*string, bool)` - -GetAmountUSDOk returns a tuple with the AmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmountUSD - -`func (o *FeeCost) SetAmountUSD(v string)` - -SetAmountUSD sets AmountUSD field to given value. - -### HasAmountUSD - -`func (o *FeeCost) HasAmountUSD() bool` - -HasAmountUSD returns a boolean if a field has been set. - -### GetToken - -`func (o *FeeCost) GetToken() string` - -GetToken returns the Token field if non-nil, zero value otherwise. - -### GetTokenOk - -`func (o *FeeCost) GetTokenOk() (*string, bool)` - -GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToken - -`func (o *FeeCost) SetToken(v string)` - -SetToken sets Token field to given value. - -### HasToken - -`func (o *FeeCost) HasToken() bool` - -HasToken returns a boolean if a field has been set. - -### GetIncluded - -`func (o *FeeCost) GetIncluded() bool` - -GetIncluded returns the Included field if non-nil, zero value otherwise. - -### GetIncludedOk - -`func (o *FeeCost) GetIncludedOk() (*bool, bool)` - -GetIncludedOk returns a tuple with the Included field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncluded - -`func (o *FeeCost) SetIncluded(v bool)` - -SetIncluded sets Included field to given value. - -### HasIncluded - -`func (o *FeeCost) HasIncluded() bool` - -HasIncluded returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GasCost.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GasCost.md deleted file mode 100644 index c42eecb7d9..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GasCost.md +++ /dev/null @@ -1,212 +0,0 @@ -# GasCost - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **string** | The type of the gas cost. | [optional] -**Price** | Pointer to **string** | The gas price, specified as a string to maintain precision. | [optional] -**Estimate** | Pointer to **string** | The estimated gas required, specified as a string to maintain precision. | [optional] -**Limit** | Pointer to **string** | The gas limit for the transaction, specified as a string to maintain precision. | [optional] -**Amount** | Pointer to **string** | The amount of gas required in the gas currency. | [optional] -**AmountUSD** | Pointer to **string** | The amount of gas required in USD. | [optional] -**Token** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] - -## Methods - -### NewGasCost - -`func NewGasCost() *GasCost` - -NewGasCost instantiates a new GasCost object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGasCostWithDefaults - -`func NewGasCostWithDefaults() *GasCost` - -NewGasCostWithDefaults instantiates a new GasCost object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *GasCost) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GasCost) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GasCost) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *GasCost) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetPrice - -`func (o *GasCost) GetPrice() string` - -GetPrice returns the Price field if non-nil, zero value otherwise. - -### GetPriceOk - -`func (o *GasCost) GetPriceOk() (*string, bool)` - -GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrice - -`func (o *GasCost) SetPrice(v string)` - -SetPrice sets Price field to given value. - -### HasPrice - -`func (o *GasCost) HasPrice() bool` - -HasPrice returns a boolean if a field has been set. - -### GetEstimate - -`func (o *GasCost) GetEstimate() string` - -GetEstimate returns the Estimate field if non-nil, zero value otherwise. - -### GetEstimateOk - -`func (o *GasCost) GetEstimateOk() (*string, bool)` - -GetEstimateOk returns a tuple with the Estimate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEstimate - -`func (o *GasCost) SetEstimate(v string)` - -SetEstimate sets Estimate field to given value. - -### HasEstimate - -`func (o *GasCost) HasEstimate() bool` - -HasEstimate returns a boolean if a field has been set. - -### GetLimit - -`func (o *GasCost) GetLimit() string` - -GetLimit returns the Limit field if non-nil, zero value otherwise. - -### GetLimitOk - -`func (o *GasCost) GetLimitOk() (*string, bool)` - -GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLimit - -`func (o *GasCost) SetLimit(v string)` - -SetLimit sets Limit field to given value. - -### HasLimit - -`func (o *GasCost) HasLimit() bool` - -HasLimit returns a boolean if a field has been set. - -### GetAmount - -`func (o *GasCost) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *GasCost) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *GasCost) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *GasCost) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetAmountUSD - -`func (o *GasCost) GetAmountUSD() string` - -GetAmountUSD returns the AmountUSD field if non-nil, zero value otherwise. - -### GetAmountUSDOk - -`func (o *GasCost) GetAmountUSDOk() (*string, bool)` - -GetAmountUSDOk returns a tuple with the AmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmountUSD - -`func (o *GasCost) SetAmountUSD(v string)` - -SetAmountUSD sets AmountUSD field to given value. - -### HasAmountUSD - -`func (o *GasCost) HasAmountUSD() bool` - -HasAmountUSD returns a boolean if a field has been set. - -### GetToken - -`func (o *GasCost) GetToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetToken returns the Token field if non-nil, zero value otherwise. - -### GetTokenOk - -`func (o *GasCost) GetTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToken - -`func (o *GasCost) SetToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetToken sets Token field to given value. - -### HasToken - -`func (o *GasCost) HasToken() bool` - -HasToken returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAudit200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAudit200Response.md deleted file mode 100644 index 39756787d6..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAudit200Response.md +++ /dev/null @@ -1,108 +0,0 @@ -# GetAudit200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Proofs** | Pointer to **[]string** | An array of strings representing proofs. | [optional] -**AuditStartTime** | Pointer to **time.Time** | The start datetime of the audit period. | [optional] -**AuditEndTime** | Pointer to **time.Time** | The end datetime of the audit period. | [optional] - -## Methods - -### NewGetAudit200Response - -`func NewGetAudit200Response() *GetAudit200Response` - -NewGetAudit200Response instantiates a new GetAudit200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAudit200ResponseWithDefaults - -`func NewGetAudit200ResponseWithDefaults() *GetAudit200Response` - -NewGetAudit200ResponseWithDefaults instantiates a new GetAudit200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetProofs - -`func (o *GetAudit200Response) GetProofs() []string` - -GetProofs returns the Proofs field if non-nil, zero value otherwise. - -### GetProofsOk - -`func (o *GetAudit200Response) GetProofsOk() (*[]string, bool)` - -GetProofsOk returns a tuple with the Proofs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProofs - -`func (o *GetAudit200Response) SetProofs(v []string)` - -SetProofs sets Proofs field to given value. - -### HasProofs - -`func (o *GetAudit200Response) HasProofs() bool` - -HasProofs returns a boolean if a field has been set. - -### GetAuditStartTime - -`func (o *GetAudit200Response) GetAuditStartTime() time.Time` - -GetAuditStartTime returns the AuditStartTime field if non-nil, zero value otherwise. - -### GetAuditStartTimeOk - -`func (o *GetAudit200Response) GetAuditStartTimeOk() (*time.Time, bool)` - -GetAuditStartTimeOk returns a tuple with the AuditStartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditStartTime - -`func (o *GetAudit200Response) SetAuditStartTime(v time.Time)` - -SetAuditStartTime sets AuditStartTime field to given value. - -### HasAuditStartTime - -`func (o *GetAudit200Response) HasAuditStartTime() bool` - -HasAuditStartTime returns a boolean if a field has been set. - -### GetAuditEndTime - -`func (o *GetAudit200Response) GetAuditEndTime() time.Time` - -GetAuditEndTime returns the AuditEndTime field if non-nil, zero value otherwise. - -### GetAuditEndTimeOk - -`func (o *GetAudit200Response) GetAuditEndTimeOk() (*time.Time, bool)` - -GetAuditEndTimeOk returns a tuple with the AuditEndTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditEndTime - -`func (o *GetAudit200Response) SetAuditEndTime(v time.Time)` - -SetAuditEndTime sets AuditEndTime field to given value. - -### HasAuditEndTime - -`func (o *GetAudit200Response) HasAuditEndTime() bool` - -HasAuditEndTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditRequest.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditRequest.md deleted file mode 100644 index 97898c53b7..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditRequest.md +++ /dev/null @@ -1,108 +0,0 @@ -# GetAuditRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AuditStartDate** | Pointer to **time.Time** | The start datetime for the audit. | [optional] -**AuditEndDate** | Pointer to **time.Time** | The end datetime for the audit. | [optional] -**IncludeProofs** | Pointer to **bool** | Include proofs generated from each gateway transaction. | [optional] - -## Methods - -### NewGetAuditRequest - -`func NewGetAuditRequest() *GetAuditRequest` - -NewGetAuditRequest instantiates a new GetAuditRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAuditRequestWithDefaults - -`func NewGetAuditRequestWithDefaults() *GetAuditRequest` - -NewGetAuditRequestWithDefaults instantiates a new GetAuditRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAuditStartDate - -`func (o *GetAuditRequest) GetAuditStartDate() time.Time` - -GetAuditStartDate returns the AuditStartDate field if non-nil, zero value otherwise. - -### GetAuditStartDateOk - -`func (o *GetAuditRequest) GetAuditStartDateOk() (*time.Time, bool)` - -GetAuditStartDateOk returns a tuple with the AuditStartDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditStartDate - -`func (o *GetAuditRequest) SetAuditStartDate(v time.Time)` - -SetAuditStartDate sets AuditStartDate field to given value. - -### HasAuditStartDate - -`func (o *GetAuditRequest) HasAuditStartDate() bool` - -HasAuditStartDate returns a boolean if a field has been set. - -### GetAuditEndDate - -`func (o *GetAuditRequest) GetAuditEndDate() time.Time` - -GetAuditEndDate returns the AuditEndDate field if non-nil, zero value otherwise. - -### GetAuditEndDateOk - -`func (o *GetAuditRequest) GetAuditEndDateOk() (*time.Time, bool)` - -GetAuditEndDateOk returns a tuple with the AuditEndDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditEndDate - -`func (o *GetAuditRequest) SetAuditEndDate(v time.Time)` - -SetAuditEndDate sets AuditEndDate field to given value. - -### HasAuditEndDate - -`func (o *GetAuditRequest) HasAuditEndDate() bool` - -HasAuditEndDate returns a boolean if a field has been set. - -### GetIncludeProofs - -`func (o *GetAuditRequest) GetIncludeProofs() bool` - -GetIncludeProofs returns the IncludeProofs field if non-nil, zero value otherwise. - -### GetIncludeProofsOk - -`func (o *GetAuditRequest) GetIncludeProofsOk() (*bool, bool)` - -GetIncludeProofsOk returns a tuple with the IncludeProofs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludeProofs - -`func (o *GetAuditRequest) SetIncludeProofs(v bool)` - -SetIncludeProofs sets IncludeProofs field to given value. - -### HasIncludeProofs - -`func (o *GetAuditRequest) HasIncludeProofs() bool` - -HasIncludeProofs returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditResponse.md deleted file mode 100644 index e4792d2d5e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetAuditResponse.md +++ /dev/null @@ -1,108 +0,0 @@ -# GetAuditResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Proofs** | Pointer to **[]string** | An array of strings representing proofs. | [optional] -**AuditStartTime** | Pointer to **time.Time** | The start datetime of the audit period. | [optional] -**AuditEndTime** | Pointer to **time.Time** | The end datetime of the audit period. | [optional] - -## Methods - -### NewGetAuditResponse - -`func NewGetAuditResponse() *GetAuditResponse` - -NewGetAuditResponse instantiates a new GetAuditResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAuditResponseWithDefaults - -`func NewGetAuditResponseWithDefaults() *GetAuditResponse` - -NewGetAuditResponseWithDefaults instantiates a new GetAuditResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetProofs - -`func (o *GetAuditResponse) GetProofs() []string` - -GetProofs returns the Proofs field if non-nil, zero value otherwise. - -### GetProofsOk - -`func (o *GetAuditResponse) GetProofsOk() (*[]string, bool)` - -GetProofsOk returns a tuple with the Proofs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProofs - -`func (o *GetAuditResponse) SetProofs(v []string)` - -SetProofs sets Proofs field to given value. - -### HasProofs - -`func (o *GetAuditResponse) HasProofs() bool` - -HasProofs returns a boolean if a field has been set. - -### GetAuditStartTime - -`func (o *GetAuditResponse) GetAuditStartTime() time.Time` - -GetAuditStartTime returns the AuditStartTime field if non-nil, zero value otherwise. - -### GetAuditStartTimeOk - -`func (o *GetAuditResponse) GetAuditStartTimeOk() (*time.Time, bool)` - -GetAuditStartTimeOk returns a tuple with the AuditStartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditStartTime - -`func (o *GetAuditResponse) SetAuditStartTime(v time.Time)` - -SetAuditStartTime sets AuditStartTime field to given value. - -### HasAuditStartTime - -`func (o *GetAuditResponse) HasAuditStartTime() bool` - -HasAuditStartTime returns a boolean if a field has been set. - -### GetAuditEndTime - -`func (o *GetAuditResponse) GetAuditEndTime() time.Time` - -GetAuditEndTime returns the AuditEndTime field if non-nil, zero value otherwise. - -### GetAuditEndTimeOk - -`func (o *GetAuditResponse) GetAuditEndTimeOk() (*time.Time, bool)` - -GetAuditEndTimeOk returns a tuple with the AuditEndTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditEndTime - -`func (o *GetAuditResponse) SetAuditEndTime(v time.Time)` - -SetAuditEndTime sets AuditEndTime field to given value. - -### HasAuditEndTime - -`func (o *GetAuditResponse) HasAuditEndTime() bool` - -HasAuditEndTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetHealthCheck200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetHealthCheck200Response.md deleted file mode 100644 index c8d4efc8cd..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetHealthCheck200Response.md +++ /dev/null @@ -1,56 +0,0 @@ -# GetHealthCheck200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | Pointer to **string** | | [optional] - -## Methods - -### NewGetHealthCheck200Response - -`func NewGetHealthCheck200Response() *GetHealthCheck200Response` - -NewGetHealthCheck200Response instantiates a new GetHealthCheck200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetHealthCheck200ResponseWithDefaults - -`func NewGetHealthCheck200ResponseWithDefaults() *GetHealthCheck200Response` - -NewGetHealthCheck200ResponseWithDefaults instantiates a new GetHealthCheck200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetHealthCheck200Response) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetHealthCheck200Response) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetHealthCheck200Response) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *GetHealthCheck200Response) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200Response.md deleted file mode 100644 index 8aa3a9d2a2..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200Response.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetRoutes200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Routes** | [**[]GetRoutes200ResponseRoutesInner**](GetRoutes200ResponseRoutesInner.md) | A collection of route objects | - -## Methods - -### NewGetRoutes200Response - -`func NewGetRoutes200Response(routes []GetRoutes200ResponseRoutesInner, ) *GetRoutes200Response` - -NewGetRoutes200Response instantiates a new GetRoutes200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseWithDefaults - -`func NewGetRoutes200ResponseWithDefaults() *GetRoutes200Response` - -NewGetRoutes200ResponseWithDefaults instantiates a new GetRoutes200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRoutes - -`func (o *GetRoutes200Response) GetRoutes() []GetRoutes200ResponseRoutesInner` - -GetRoutes returns the Routes field if non-nil, zero value otherwise. - -### GetRoutesOk - -`func (o *GetRoutes200Response) GetRoutesOk() (*[]GetRoutes200ResponseRoutesInner, bool)` - -GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRoutes - -`func (o *GetRoutes200Response) SetRoutes(v []GetRoutes200ResponseRoutesInner)` - -SetRoutes sets Routes field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInner.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInner.md deleted file mode 100644 index e5e2cf01e1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInner.md +++ /dev/null @@ -1,457 +0,0 @@ -# GetRoutes200ResponseRoutesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | A unique identifier of the route. | -**GatewayID** | **string** | A unique identifier for the gateway. | -**Mode** | **string** | The mode of operation for this route - 'data' for arbitrary payload handling, 'transfer' for asset transfer. | -**FromDLTNetworkID** | Pointer to **string** | The ID of the DLT Network where the operation will originate. | [optional] -**FromAmountUSD** | Pointer to **float64** | The amount of 'fromToken' to be transferred in USD, specified as a string to maintain precision. | [optional] -**FromAmount** | Pointer to **string** | The amount that should be sent including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). | [optional] -**FromToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**ToDLTNetworkID** | Pointer to **string** | The ID of the DLT Network where the operation will end. | [optional] -**ToAmountUSD** | Pointer to **string** | The expected amount to be received in USD. | [optional] -**ToAmount** | Pointer to **string** | The expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). | [optional] -**ToAmountMin** | Pointer to **string** | The minimum expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). | [optional] -**ToToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**GasCostUSD** | Pointer to **string** | The expected gas cost in USD. | [optional] -**ContainsSwitchChain** | Pointer to **bool** | Whether chain switching is enabled or not. | [optional] -**Steps** | Pointer to [**[]GetRoutes200ResponseRoutesInnerStepsInner**](GetRoutes200ResponseRoutesInnerStepsInner.md) | List of steps involved in this route, adjusted for mode. | [optional] -**Insurance** | Pointer to [**GetRoutes200ResponseRoutesInnerInsurance**](GetRoutes200ResponseRoutesInnerInsurance.md) | | [optional] -**Tags** | Pointer to **[]string** | List of tags identifiers providing additional context or categorization. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInner - -`func NewGetRoutes200ResponseRoutesInner(id string, gatewayID string, mode string, ) *GetRoutes200ResponseRoutesInner` - -NewGetRoutes200ResponseRoutesInner instantiates a new GetRoutes200ResponseRoutesInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerWithDefaults() *GetRoutes200ResponseRoutesInner` - -NewGetRoutes200ResponseRoutesInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *GetRoutes200ResponseRoutesInner) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *GetRoutes200ResponseRoutesInner) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *GetRoutes200ResponseRoutesInner) SetId(v string)` - -SetId sets Id field to given value. - - -### GetGatewayID - -`func (o *GetRoutes200ResponseRoutesInner) GetGatewayID() string` - -GetGatewayID returns the GatewayID field if non-nil, zero value otherwise. - -### GetGatewayIDOk - -`func (o *GetRoutes200ResponseRoutesInner) GetGatewayIDOk() (*string, bool)` - -GetGatewayIDOk returns a tuple with the GatewayID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGatewayID - -`func (o *GetRoutes200ResponseRoutesInner) SetGatewayID(v string)` - -SetGatewayID sets GatewayID field to given value. - - -### GetMode - -`func (o *GetRoutes200ResponseRoutesInner) GetMode() string` - -GetMode returns the Mode field if non-nil, zero value otherwise. - -### GetModeOk - -`func (o *GetRoutes200ResponseRoutesInner) GetModeOk() (*string, bool)` - -GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMode - -`func (o *GetRoutes200ResponseRoutesInner) SetMode(v string)` - -SetMode sets Mode field to given value. - - -### GetFromDLTNetworkID - -`func (o *GetRoutes200ResponseRoutesInner) GetFromDLTNetworkID() string` - -GetFromDLTNetworkID returns the FromDLTNetworkID field if non-nil, zero value otherwise. - -### GetFromDLTNetworkIDOk - -`func (o *GetRoutes200ResponseRoutesInner) GetFromDLTNetworkIDOk() (*string, bool)` - -GetFromDLTNetworkIDOk returns a tuple with the FromDLTNetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromDLTNetworkID - -`func (o *GetRoutes200ResponseRoutesInner) SetFromDLTNetworkID(v string)` - -SetFromDLTNetworkID sets FromDLTNetworkID field to given value. - -### HasFromDLTNetworkID - -`func (o *GetRoutes200ResponseRoutesInner) HasFromDLTNetworkID() bool` - -HasFromDLTNetworkID returns a boolean if a field has been set. - -### GetFromAmountUSD - -`func (o *GetRoutes200ResponseRoutesInner) GetFromAmountUSD() float64` - -GetFromAmountUSD returns the FromAmountUSD field if non-nil, zero value otherwise. - -### GetFromAmountUSDOk - -`func (o *GetRoutes200ResponseRoutesInner) GetFromAmountUSDOk() (*float64, bool)` - -GetFromAmountUSDOk returns a tuple with the FromAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmountUSD - -`func (o *GetRoutes200ResponseRoutesInner) SetFromAmountUSD(v float64)` - -SetFromAmountUSD sets FromAmountUSD field to given value. - -### HasFromAmountUSD - -`func (o *GetRoutes200ResponseRoutesInner) HasFromAmountUSD() bool` - -HasFromAmountUSD returns a boolean if a field has been set. - -### GetFromAmount - -`func (o *GetRoutes200ResponseRoutesInner) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *GetRoutes200ResponseRoutesInner) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *GetRoutes200ResponseRoutesInner) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - -### HasFromAmount - -`func (o *GetRoutes200ResponseRoutesInner) HasFromAmount() bool` - -HasFromAmount returns a boolean if a field has been set. - -### GetFromToken - -`func (o *GetRoutes200ResponseRoutesInner) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetFromToken returns the FromToken field if non-nil, zero value otherwise. - -### GetFromTokenOk - -`func (o *GetRoutes200ResponseRoutesInner) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetFromTokenOk returns a tuple with the FromToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromToken - -`func (o *GetRoutes200ResponseRoutesInner) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetFromToken sets FromToken field to given value. - -### HasFromToken - -`func (o *GetRoutes200ResponseRoutesInner) HasFromToken() bool` - -HasFromToken returns a boolean if a field has been set. - -### GetToDLTNetworkID - -`func (o *GetRoutes200ResponseRoutesInner) GetToDLTNetworkID() string` - -GetToDLTNetworkID returns the ToDLTNetworkID field if non-nil, zero value otherwise. - -### GetToDLTNetworkIDOk - -`func (o *GetRoutes200ResponseRoutesInner) GetToDLTNetworkIDOk() (*string, bool)` - -GetToDLTNetworkIDOk returns a tuple with the ToDLTNetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToDLTNetworkID - -`func (o *GetRoutes200ResponseRoutesInner) SetToDLTNetworkID(v string)` - -SetToDLTNetworkID sets ToDLTNetworkID field to given value. - -### HasToDLTNetworkID - -`func (o *GetRoutes200ResponseRoutesInner) HasToDLTNetworkID() bool` - -HasToDLTNetworkID returns a boolean if a field has been set. - -### GetToAmountUSD - -`func (o *GetRoutes200ResponseRoutesInner) GetToAmountUSD() string` - -GetToAmountUSD returns the ToAmountUSD field if non-nil, zero value otherwise. - -### GetToAmountUSDOk - -`func (o *GetRoutes200ResponseRoutesInner) GetToAmountUSDOk() (*string, bool)` - -GetToAmountUSDOk returns a tuple with the ToAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountUSD - -`func (o *GetRoutes200ResponseRoutesInner) SetToAmountUSD(v string)` - -SetToAmountUSD sets ToAmountUSD field to given value. - -### HasToAmountUSD - -`func (o *GetRoutes200ResponseRoutesInner) HasToAmountUSD() bool` - -HasToAmountUSD returns a boolean if a field has been set. - -### GetToAmount - -`func (o *GetRoutes200ResponseRoutesInner) GetToAmount() string` - -GetToAmount returns the ToAmount field if non-nil, zero value otherwise. - -### GetToAmountOk - -`func (o *GetRoutes200ResponseRoutesInner) GetToAmountOk() (*string, bool)` - -GetToAmountOk returns a tuple with the ToAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmount - -`func (o *GetRoutes200ResponseRoutesInner) SetToAmount(v string)` - -SetToAmount sets ToAmount field to given value. - -### HasToAmount - -`func (o *GetRoutes200ResponseRoutesInner) HasToAmount() bool` - -HasToAmount returns a boolean if a field has been set. - -### GetToAmountMin - -`func (o *GetRoutes200ResponseRoutesInner) GetToAmountMin() string` - -GetToAmountMin returns the ToAmountMin field if non-nil, zero value otherwise. - -### GetToAmountMinOk - -`func (o *GetRoutes200ResponseRoutesInner) GetToAmountMinOk() (*string, bool)` - -GetToAmountMinOk returns a tuple with the ToAmountMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountMin - -`func (o *GetRoutes200ResponseRoutesInner) SetToAmountMin(v string)` - -SetToAmountMin sets ToAmountMin field to given value. - -### HasToAmountMin - -`func (o *GetRoutes200ResponseRoutesInner) HasToAmountMin() bool` - -HasToAmountMin returns a boolean if a field has been set. - -### GetToToken - -`func (o *GetRoutes200ResponseRoutesInner) GetToToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetToToken returns the ToToken field if non-nil, zero value otherwise. - -### GetToTokenOk - -`func (o *GetRoutes200ResponseRoutesInner) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetToTokenOk returns a tuple with the ToToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToToken - -`func (o *GetRoutes200ResponseRoutesInner) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetToToken sets ToToken field to given value. - -### HasToToken - -`func (o *GetRoutes200ResponseRoutesInner) HasToToken() bool` - -HasToToken returns a boolean if a field has been set. - -### GetGasCostUSD - -`func (o *GetRoutes200ResponseRoutesInner) GetGasCostUSD() string` - -GetGasCostUSD returns the GasCostUSD field if non-nil, zero value otherwise. - -### GetGasCostUSDOk - -`func (o *GetRoutes200ResponseRoutesInner) GetGasCostUSDOk() (*string, bool)` - -GetGasCostUSDOk returns a tuple with the GasCostUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGasCostUSD - -`func (o *GetRoutes200ResponseRoutesInner) SetGasCostUSD(v string)` - -SetGasCostUSD sets GasCostUSD field to given value. - -### HasGasCostUSD - -`func (o *GetRoutes200ResponseRoutesInner) HasGasCostUSD() bool` - -HasGasCostUSD returns a boolean if a field has been set. - -### GetContainsSwitchChain - -`func (o *GetRoutes200ResponseRoutesInner) GetContainsSwitchChain() bool` - -GetContainsSwitchChain returns the ContainsSwitchChain field if non-nil, zero value otherwise. - -### GetContainsSwitchChainOk - -`func (o *GetRoutes200ResponseRoutesInner) GetContainsSwitchChainOk() (*bool, bool)` - -GetContainsSwitchChainOk returns a tuple with the ContainsSwitchChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContainsSwitchChain - -`func (o *GetRoutes200ResponseRoutesInner) SetContainsSwitchChain(v bool)` - -SetContainsSwitchChain sets ContainsSwitchChain field to given value. - -### HasContainsSwitchChain - -`func (o *GetRoutes200ResponseRoutesInner) HasContainsSwitchChain() bool` - -HasContainsSwitchChain returns a boolean if a field has been set. - -### GetSteps - -`func (o *GetRoutes200ResponseRoutesInner) GetSteps() []GetRoutes200ResponseRoutesInnerStepsInner` - -GetSteps returns the Steps field if non-nil, zero value otherwise. - -### GetStepsOk - -`func (o *GetRoutes200ResponseRoutesInner) GetStepsOk() (*[]GetRoutes200ResponseRoutesInnerStepsInner, bool)` - -GetStepsOk returns a tuple with the Steps field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSteps - -`func (o *GetRoutes200ResponseRoutesInner) SetSteps(v []GetRoutes200ResponseRoutesInnerStepsInner)` - -SetSteps sets Steps field to given value. - -### HasSteps - -`func (o *GetRoutes200ResponseRoutesInner) HasSteps() bool` - -HasSteps returns a boolean if a field has been set. - -### GetInsurance - -`func (o *GetRoutes200ResponseRoutesInner) GetInsurance() GetRoutes200ResponseRoutesInnerInsurance` - -GetInsurance returns the Insurance field if non-nil, zero value otherwise. - -### GetInsuranceOk - -`func (o *GetRoutes200ResponseRoutesInner) GetInsuranceOk() (*GetRoutes200ResponseRoutesInnerInsurance, bool)` - -GetInsuranceOk returns a tuple with the Insurance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInsurance - -`func (o *GetRoutes200ResponseRoutesInner) SetInsurance(v GetRoutes200ResponseRoutesInnerInsurance)` - -SetInsurance sets Insurance field to given value. - -### HasInsurance - -`func (o *GetRoutes200ResponseRoutesInner) HasInsurance() bool` - -HasInsurance returns a boolean if a field has been set. - -### GetTags - -`func (o *GetRoutes200ResponseRoutesInner) GetTags() []string` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *GetRoutes200ResponseRoutesInner) GetTagsOk() (*[]string, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *GetRoutes200ResponseRoutesInner) SetTags(v []string)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *GetRoutes200ResponseRoutesInner) HasTags() bool` - -HasTags returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromToken.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromToken.md deleted file mode 100644 index b8964106e4..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromToken.md +++ /dev/null @@ -1,265 +0,0 @@ -# GetRoutes200ResponseRoutesInnerFromToken - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ChainID** | **string** | The network of the DLT being interacted with. TODO: implement network identification draft | -**ChainType** | **string** | Supported DLT protocols. | -**Address** | **string** | A blockchain address. | -**Name** | Pointer to **string** | The name of the token. | [optional] -**Symbol** | **string** | The symbol of the token. | -**Decimals** | **int32** | How many decimals the token supports. | -**LogoURI** | Pointer to **string** | The logo of a token, chain, dex etc. | [optional] -**Tags** | Pointer to **[]string** | List of tags identifiers providing additional context or categorization. | [optional] -**PriceUSD** | Pointer to **string** | The current price of the token in USD. | [optional] -**Extensions** | Pointer to [**GetRoutes200ResponseRoutesInnerFromTokenExtensions**](GetRoutes200ResponseRoutesInnerFromTokenExtensions.md) | | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerFromToken - -`func NewGetRoutes200ResponseRoutesInnerFromToken(chainID string, chainType string, address string, symbol string, decimals int32, ) *GetRoutes200ResponseRoutesInnerFromToken` - -NewGetRoutes200ResponseRoutesInnerFromToken instantiates a new GetRoutes200ResponseRoutesInnerFromToken object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerFromTokenWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerFromTokenWithDefaults() *GetRoutes200ResponseRoutesInnerFromToken` - -NewGetRoutes200ResponseRoutesInnerFromTokenWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerFromToken object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetChainID - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainID() string` - -GetChainID returns the ChainID field if non-nil, zero value otherwise. - -### GetChainIDOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainIDOk() (*string, bool)` - -GetChainIDOk returns a tuple with the ChainID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainID - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetChainID(v string)` - -SetChainID sets ChainID field to given value. - - -### GetChainType - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainType() string` - -GetChainType returns the ChainType field if non-nil, zero value otherwise. - -### GetChainTypeOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainTypeOk() (*string, bool)` - -GetChainTypeOk returns a tuple with the ChainType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainType - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetChainType(v string)` - -SetChainType sets ChainType field to given value. - - -### GetAddress - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetAddress() string` - -GetAddress returns the Address field if non-nil, zero value otherwise. - -### GetAddressOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetAddressOk() (*string, bool)` - -GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAddress - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetAddress(v string)` - -SetAddress sets Address field to given value. - - -### GetName - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetSymbol - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - -### GetDecimals - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetDecimals() int32` - -GetDecimals returns the Decimals field if non-nil, zero value otherwise. - -### GetDecimalsOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetDecimalsOk() (*int32, bool)` - -GetDecimalsOk returns a tuple with the Decimals field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecimals - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetDecimals(v int32)` - -SetDecimals sets Decimals field to given value. - - -### GetLogoURI - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetLogoURI() string` - -GetLogoURI returns the LogoURI field if non-nil, zero value otherwise. - -### GetLogoURIOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetLogoURIOk() (*string, bool)` - -GetLogoURIOk returns a tuple with the LogoURI field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLogoURI - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetLogoURI(v string)` - -SetLogoURI sets LogoURI field to given value. - -### HasLogoURI - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) HasLogoURI() bool` - -HasLogoURI returns a boolean if a field has been set. - -### GetTags - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetTags() []string` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetTagsOk() (*[]string, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetTags(v []string)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetPriceUSD - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetPriceUSD() string` - -GetPriceUSD returns the PriceUSD field if non-nil, zero value otherwise. - -### GetPriceUSDOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetPriceUSDOk() (*string, bool)` - -GetPriceUSDOk returns a tuple with the PriceUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPriceUSD - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetPriceUSD(v string)` - -SetPriceUSD sets PriceUSD field to given value. - -### HasPriceUSD - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) HasPriceUSD() bool` - -HasPriceUSD returns a boolean if a field has been set. - -### GetExtensions - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetExtensions() GetRoutes200ResponseRoutesInnerFromTokenExtensions` - -GetExtensions returns the Extensions field if non-nil, zero value otherwise. - -### GetExtensionsOk - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) GetExtensionsOk() (*GetRoutes200ResponseRoutesInnerFromTokenExtensions, bool)` - -GetExtensionsOk returns a tuple with the Extensions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExtensions - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) SetExtensions(v GetRoutes200ResponseRoutesInnerFromTokenExtensions)` - -SetExtensions sets Extensions field to given value. - -### HasExtensions - -`func (o *GetRoutes200ResponseRoutesInnerFromToken) HasExtensions() bool` - -HasExtensions returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensions.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensions.md deleted file mode 100644 index 99390587a8..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensions.md +++ /dev/null @@ -1,82 +0,0 @@ -# GetRoutes200ResponseRoutesInnerFromTokenExtensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BridgeInfo** | Pointer to [**map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue**](GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue.md) | | [optional] -**Verified** | Pointer to **bool** | Indicates whether the token is verified. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerFromTokenExtensions - -`func NewGetRoutes200ResponseRoutesInnerFromTokenExtensions() *GetRoutes200ResponseRoutesInnerFromTokenExtensions` - -NewGetRoutes200ResponseRoutesInnerFromTokenExtensions instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensions object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsWithDefaults() *GetRoutes200ResponseRoutesInnerFromTokenExtensions` - -NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensions object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBridgeInfo - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetBridgeInfo() map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue` - -GetBridgeInfo returns the BridgeInfo field if non-nil, zero value otherwise. - -### GetBridgeInfoOk - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetBridgeInfoOk() (*map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue, bool)` - -GetBridgeInfoOk returns a tuple with the BridgeInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBridgeInfo - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) SetBridgeInfo(v map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue)` - -SetBridgeInfo sets BridgeInfo field to given value. - -### HasBridgeInfo - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) HasBridgeInfo() bool` - -HasBridgeInfo returns a boolean if a field has been set. - -### GetVerified - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetVerified() bool` - -GetVerified returns the Verified field if non-nil, zero value otherwise. - -### GetVerifiedOk - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetVerifiedOk() (*bool, bool)` - -GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVerified - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) SetVerified(v bool)` - -SetVerified sets Verified field to given value. - -### HasVerified - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) HasVerified() bool` - -HasVerified returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue.md deleted file mode 100644 index f46c000316..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue.md +++ /dev/null @@ -1,56 +0,0 @@ -# GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TokenAddress** | Pointer to **string** | The address of the token being transferred. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue - -`func NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue() *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue` - -NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValueWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValueWithDefaults() *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue` - -NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValueWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTokenAddress - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) GetTokenAddress() string` - -GetTokenAddress returns the TokenAddress field if non-nil, zero value otherwise. - -### GetTokenAddressOk - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) GetTokenAddressOk() (*string, bool)` - -GetTokenAddressOk returns a tuple with the TokenAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokenAddress - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) SetTokenAddress(v string)` - -SetTokenAddress sets TokenAddress field to given value. - -### HasTokenAddress - -`func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) HasTokenAddress() bool` - -HasTokenAddress returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerInsurance.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerInsurance.md deleted file mode 100644 index d79fefaa14..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerInsurance.md +++ /dev/null @@ -1,82 +0,0 @@ -# GetRoutes200ResponseRoutesInnerInsurance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**State** | Pointer to **string** | The state of insurance applicability for the transaction. | [optional] -**FeeAmountUsd** | Pointer to **string** | The fee amount for insurance, represented in USD. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerInsurance - -`func NewGetRoutes200ResponseRoutesInnerInsurance() *GetRoutes200ResponseRoutesInnerInsurance` - -NewGetRoutes200ResponseRoutesInnerInsurance instantiates a new GetRoutes200ResponseRoutesInnerInsurance object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerInsuranceWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerInsuranceWithDefaults() *GetRoutes200ResponseRoutesInnerInsurance` - -NewGetRoutes200ResponseRoutesInnerInsuranceWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerInsurance object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetState - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) GetState() string` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) GetStateOk() (*string, bool)` - -GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetState - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) SetState(v string)` - -SetState sets State field to given value. - -### HasState - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) HasState() bool` - -HasState returns a boolean if a field has been set. - -### GetFeeAmountUsd - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) GetFeeAmountUsd() string` - -GetFeeAmountUsd returns the FeeAmountUsd field if non-nil, zero value otherwise. - -### GetFeeAmountUsdOk - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) GetFeeAmountUsdOk() (*string, bool)` - -GetFeeAmountUsdOk returns a tuple with the FeeAmountUsd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeeAmountUsd - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) SetFeeAmountUsd(v string)` - -SetFeeAmountUsd sets FeeAmountUsd field to given value. - -### HasFeeAmountUsd - -`func (o *GetRoutes200ResponseRoutesInnerInsurance) HasFeeAmountUsd() bool` - -HasFeeAmountUsd returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInner.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInner.md deleted file mode 100644 index 746bfbaec8..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInner.md +++ /dev/null @@ -1,238 +0,0 @@ -# GetRoutes200ResponseRoutesInnerStepsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | Id of the step | [optional] -**Type** | Pointer to **string** | Type of the step, typically describing the action, e.g., 'swap'. | [optional] -**Tool** | Pointer to **string** | Tool used in the step, e.g., 'stargate'. | [optional] -**Action** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerAction**](GetRoutes200ResponseRoutesInnerStepsInnerAction.md) | | [optional] -**Estimate** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerEstimate**](GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md) | | [optional] -**ToolDetails** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerToolDetails**](GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md) | | [optional] -**IntegrationDetails** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerToolDetails**](GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md) | | [optional] -**IncludedStepIds** | Pointer to **[]string** | IDs of further steps included within this step, allowing for nested actions without direct recursion. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerStepsInner - -`func NewGetRoutes200ResponseRoutesInnerStepsInner() *GetRoutes200ResponseRoutesInnerStepsInner` - -NewGetRoutes200ResponseRoutesInnerStepsInner instantiates a new GetRoutes200ResponseRoutesInnerStepsInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerStepsInnerWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInner` - -NewGetRoutes200ResponseRoutesInnerStepsInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetType - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetTool - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetTool() string` - -GetTool returns the Tool field if non-nil, zero value otherwise. - -### GetToolOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetToolOk() (*string, bool)` - -GetToolOk returns a tuple with the Tool field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTool - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetTool(v string)` - -SetTool sets Tool field to given value. - -### HasTool - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasTool() bool` - -HasTool returns a boolean if a field has been set. - -### GetAction - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetAction() GetRoutes200ResponseRoutesInnerStepsInnerAction` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetActionOk() (*GetRoutes200ResponseRoutesInnerStepsInnerAction, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetAction(v GetRoutes200ResponseRoutesInnerStepsInnerAction)` - -SetAction sets Action field to given value. - -### HasAction - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasAction() bool` - -HasAction returns a boolean if a field has been set. - -### GetEstimate - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetEstimate() GetRoutes200ResponseRoutesInnerStepsInnerEstimate` - -GetEstimate returns the Estimate field if non-nil, zero value otherwise. - -### GetEstimateOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetEstimateOk() (*GetRoutes200ResponseRoutesInnerStepsInnerEstimate, bool)` - -GetEstimateOk returns a tuple with the Estimate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEstimate - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetEstimate(v GetRoutes200ResponseRoutesInnerStepsInnerEstimate)` - -SetEstimate sets Estimate field to given value. - -### HasEstimate - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasEstimate() bool` - -HasEstimate returns a boolean if a field has been set. - -### GetToolDetails - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetToolDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails` - -GetToolDetails returns the ToolDetails field if non-nil, zero value otherwise. - -### GetToolDetailsOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetToolDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool)` - -GetToolDetailsOk returns a tuple with the ToolDetails field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToolDetails - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetToolDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails)` - -SetToolDetails sets ToolDetails field to given value. - -### HasToolDetails - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasToolDetails() bool` - -HasToolDetails returns a boolean if a field has been set. - -### GetIntegrationDetails - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIntegrationDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails` - -GetIntegrationDetails returns the IntegrationDetails field if non-nil, zero value otherwise. - -### GetIntegrationDetailsOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIntegrationDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool)` - -GetIntegrationDetailsOk returns a tuple with the IntegrationDetails field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntegrationDetails - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetIntegrationDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails)` - -SetIntegrationDetails sets IntegrationDetails field to given value. - -### HasIntegrationDetails - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasIntegrationDetails() bool` - -HasIntegrationDetails returns a boolean if a field has been set. - -### GetIncludedStepIds - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIncludedStepIds() []string` - -GetIncludedStepIds returns the IncludedStepIds field if non-nil, zero value otherwise. - -### GetIncludedStepIdsOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIncludedStepIdsOk() (*[]string, bool)` - -GetIncludedStepIdsOk returns a tuple with the IncludedStepIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludedStepIds - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetIncludedStepIds(v []string)` - -SetIncludedStepIds sets IncludedStepIds field to given value. - -### HasIncludedStepIds - -`func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasIncludedStepIds() bool` - -HasIncludedStepIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerAction.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerAction.md deleted file mode 100644 index 47c505197c..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerAction.md +++ /dev/null @@ -1,186 +0,0 @@ -# GetRoutes200ResponseRoutesInnerStepsInnerAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FromToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**FromAmount** | Pointer to **string** | The amount of 'fromToken' to be transferred, specified as a string to maintain precision. | [optional] -**ToToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**Slippage** | Pointer to **float32** | The maximum acceptable difference between the expected price of the 'toToken' and the price at the time of the transfer. | [optional] -**FromAddress** | Pointer to **string** | A blockchain address. | [optional] -**ToAddress** | Pointer to **string** | A blockchain address. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerStepsInnerAction - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerAction() *GetRoutes200ResponseRoutesInnerStepsInnerAction` - -NewGetRoutes200ResponseRoutesInnerStepsInnerAction instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerAction object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerStepsInnerActionWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerActionWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerAction` - -NewGetRoutes200ResponseRoutesInnerStepsInnerActionWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerAction object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFromToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetFromToken returns the FromToken field if non-nil, zero value otherwise. - -### GetFromTokenOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetFromTokenOk returns a tuple with the FromToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetFromToken sets FromToken field to given value. - -### HasFromToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasFromToken() bool` - -HasFromToken returns a boolean if a field has been set. - -### GetFromAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - -### HasFromAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasFromAmount() bool` - -HasFromAmount returns a boolean if a field has been set. - -### GetToToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetToToken returns the ToToken field if non-nil, zero value otherwise. - -### GetToTokenOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetToTokenOk returns a tuple with the ToToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetToToken sets ToToken field to given value. - -### HasToToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasToToken() bool` - -HasToToken returns a boolean if a field has been set. - -### GetSlippage - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetSlippage() float32` - -GetSlippage returns the Slippage field if non-nil, zero value otherwise. - -### GetSlippageOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetSlippageOk() (*float32, bool)` - -GetSlippageOk returns a tuple with the Slippage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSlippage - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetSlippage(v float32)` - -SetSlippage sets Slippage field to given value. - -### HasSlippage - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasSlippage() bool` - -HasSlippage returns a boolean if a field has been set. - -### GetFromAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAddress() string` - -GetFromAddress returns the FromAddress field if non-nil, zero value otherwise. - -### GetFromAddressOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAddressOk() (*string, bool)` - -GetFromAddressOk returns a tuple with the FromAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetFromAddress(v string)` - -SetFromAddress sets FromAddress field to given value. - -### HasFromAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasFromAddress() bool` - -HasFromAddress returns a boolean if a field has been set. - -### GetToAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToAddress() string` - -GetToAddress returns the ToAddress field if non-nil, zero value otherwise. - -### GetToAddressOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToAddressOk() (*string, bool)` - -GetToAddressOk returns a tuple with the ToAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetToAddress(v string)` - -SetToAddress sets ToAddress field to given value. - -### HasToAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasToAddress() bool` - -HasToAddress returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md deleted file mode 100644 index 9840b2ea49..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md +++ /dev/null @@ -1,290 +0,0 @@ -# GetRoutes200ResponseRoutesInnerStepsInnerEstimate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ApprovalAddress** | Pointer to **string** | A blockchain address. | [optional] -**ToAmountMin** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**ToAmount** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**FromAmount** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**FeeCosts** | Pointer to [**[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner**](GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md) | A collection of fee costs associated with the transaction. | [optional] -**GasCosts** | Pointer to [**[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner**](GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md) | A collection of estimated gas costs for executing the transaction. | [optional] -**ExecutionDuration** | Pointer to **int32** | The estimated duration for the transaction execution in seconds. | [optional] -**FromAmountUSD** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**ToAmountUSD** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**Tool** | Pointer to **string** | The tool or service used to generate this estimate. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerStepsInnerEstimate - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimate() *GetRoutes200ResponseRoutesInnerStepsInnerEstimate` - -NewGetRoutes200ResponseRoutesInnerStepsInnerEstimate instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerEstimate` - -NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetApprovalAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetApprovalAddress() string` - -GetApprovalAddress returns the ApprovalAddress field if non-nil, zero value otherwise. - -### GetApprovalAddressOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetApprovalAddressOk() (*string, bool)` - -GetApprovalAddressOk returns a tuple with the ApprovalAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetApprovalAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetApprovalAddress(v string)` - -SetApprovalAddress sets ApprovalAddress field to given value. - -### HasApprovalAddress - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasApprovalAddress() bool` - -HasApprovalAddress returns a boolean if a field has been set. - -### GetToAmountMin - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountMin() string` - -GetToAmountMin returns the ToAmountMin field if non-nil, zero value otherwise. - -### GetToAmountMinOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountMinOk() (*string, bool)` - -GetToAmountMinOk returns a tuple with the ToAmountMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountMin - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetToAmountMin(v string)` - -SetToAmountMin sets ToAmountMin field to given value. - -### HasToAmountMin - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasToAmountMin() bool` - -HasToAmountMin returns a boolean if a field has been set. - -### GetToAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmount() string` - -GetToAmount returns the ToAmount field if non-nil, zero value otherwise. - -### GetToAmountOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountOk() (*string, bool)` - -GetToAmountOk returns a tuple with the ToAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetToAmount(v string)` - -SetToAmount sets ToAmount field to given value. - -### HasToAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasToAmount() bool` - -HasToAmount returns a boolean if a field has been set. - -### GetFromAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - -### HasFromAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasFromAmount() bool` - -HasFromAmount returns a boolean if a field has been set. - -### GetFeeCosts - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFeeCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner` - -GetFeeCosts returns the FeeCosts field if non-nil, zero value otherwise. - -### GetFeeCostsOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFeeCostsOk() (*[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner, bool)` - -GetFeeCostsOk returns a tuple with the FeeCosts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeeCosts - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetFeeCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner)` - -SetFeeCosts sets FeeCosts field to given value. - -### HasFeeCosts - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasFeeCosts() bool` - -HasFeeCosts returns a boolean if a field has been set. - -### GetGasCosts - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetGasCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner` - -GetGasCosts returns the GasCosts field if non-nil, zero value otherwise. - -### GetGasCostsOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetGasCostsOk() (*[]GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner, bool)` - -GetGasCostsOk returns a tuple with the GasCosts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGasCosts - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetGasCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner)` - -SetGasCosts sets GasCosts field to given value. - -### HasGasCosts - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasGasCosts() bool` - -HasGasCosts returns a boolean if a field has been set. - -### GetExecutionDuration - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetExecutionDuration() int32` - -GetExecutionDuration returns the ExecutionDuration field if non-nil, zero value otherwise. - -### GetExecutionDurationOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetExecutionDurationOk() (*int32, bool)` - -GetExecutionDurationOk returns a tuple with the ExecutionDuration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExecutionDuration - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetExecutionDuration(v int32)` - -SetExecutionDuration sets ExecutionDuration field to given value. - -### HasExecutionDuration - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasExecutionDuration() bool` - -HasExecutionDuration returns a boolean if a field has been set. - -### GetFromAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmountUSD() string` - -GetFromAmountUSD returns the FromAmountUSD field if non-nil, zero value otherwise. - -### GetFromAmountUSDOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmountUSDOk() (*string, bool)` - -GetFromAmountUSDOk returns a tuple with the FromAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetFromAmountUSD(v string)` - -SetFromAmountUSD sets FromAmountUSD field to given value. - -### HasFromAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasFromAmountUSD() bool` - -HasFromAmountUSD returns a boolean if a field has been set. - -### GetToAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountUSD() string` - -GetToAmountUSD returns the ToAmountUSD field if non-nil, zero value otherwise. - -### GetToAmountUSDOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountUSDOk() (*string, bool)` - -GetToAmountUSDOk returns a tuple with the ToAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetToAmountUSD(v string)` - -SetToAmountUSD sets ToAmountUSD field to given value. - -### HasToAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasToAmountUSD() bool` - -HasToAmountUSD returns a boolean if a field has been set. - -### GetTool - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetTool() string` - -GetTool returns the Tool field if non-nil, zero value otherwise. - -### GetToolOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToolOk() (*string, bool)` - -GetToolOk returns a tuple with the Tool field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTool - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetTool(v string)` - -SetTool sets Tool field to given value. - -### HasTool - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasTool() bool` - -HasTool returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md deleted file mode 100644 index bb5e8d99ff..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md +++ /dev/null @@ -1,160 +0,0 @@ -# GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | Name of the fee cost. | [optional] -**Amount** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**AmountUSD** | Pointer to **string** | The amount in string format including all decimals. | [optional] -**Token** | Pointer to **string** | The symbol of a token | [optional] -**Included** | Pointer to **bool** | Indicates if the fee is included in the transaction amount. | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner` - -NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInnerWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInnerWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner` - -NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmountUSD() string` - -GetAmountUSD returns the AmountUSD field if non-nil, zero value otherwise. - -### GetAmountUSDOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmountUSDOk() (*string, bool)` - -GetAmountUSDOk returns a tuple with the AmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetAmountUSD(v string)` - -SetAmountUSD sets AmountUSD field to given value. - -### HasAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasAmountUSD() bool` - -HasAmountUSD returns a boolean if a field has been set. - -### GetToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetToken() string` - -GetToken returns the Token field if non-nil, zero value otherwise. - -### GetTokenOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetTokenOk() (*string, bool)` - -GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetToken(v string)` - -SetToken sets Token field to given value. - -### HasToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasToken() bool` - -HasToken returns a boolean if a field has been set. - -### GetIncluded - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetIncluded() bool` - -GetIncluded returns the Included field if non-nil, zero value otherwise. - -### GetIncludedOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetIncludedOk() (*bool, bool)` - -GetIncludedOk returns a tuple with the Included field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncluded - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetIncluded(v bool)` - -SetIncluded sets Included field to given value. - -### HasIncluded - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasIncluded() bool` - -HasIncluded returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md deleted file mode 100644 index a13fec9594..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md +++ /dev/null @@ -1,212 +0,0 @@ -# GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **string** | The type of the gas cost. | [optional] -**Price** | Pointer to **string** | The gas price, specified as a string to maintain precision. | [optional] -**Estimate** | Pointer to **string** | The estimated gas required, specified as a string to maintain precision. | [optional] -**Limit** | Pointer to **string** | The gas limit for the transaction, specified as a string to maintain precision. | [optional] -**Amount** | Pointer to **string** | The amount of gas required in the gas currency. | [optional] -**AmountUSD** | Pointer to **string** | The amount of gas required in USD. | [optional] -**Token** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] - -## Methods - -### NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner` - -NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInnerWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInnerWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner` - -NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetPrice - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetPrice() string` - -GetPrice returns the Price field if non-nil, zero value otherwise. - -### GetPriceOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetPriceOk() (*string, bool)` - -GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrice - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetPrice(v string)` - -SetPrice sets Price field to given value. - -### HasPrice - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasPrice() bool` - -HasPrice returns a boolean if a field has been set. - -### GetEstimate - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetEstimate() string` - -GetEstimate returns the Estimate field if non-nil, zero value otherwise. - -### GetEstimateOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetEstimateOk() (*string, bool)` - -GetEstimateOk returns a tuple with the Estimate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEstimate - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetEstimate(v string)` - -SetEstimate sets Estimate field to given value. - -### HasEstimate - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasEstimate() bool` - -HasEstimate returns a boolean if a field has been set. - -### GetLimit - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetLimit() string` - -GetLimit returns the Limit field if non-nil, zero value otherwise. - -### GetLimitOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetLimitOk() (*string, bool)` - -GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLimit - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetLimit(v string)` - -SetLimit sets Limit field to given value. - -### HasLimit - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasLimit() bool` - -HasLimit returns a boolean if a field has been set. - -### GetAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmountUSD() string` - -GetAmountUSD returns the AmountUSD field if non-nil, zero value otherwise. - -### GetAmountUSDOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmountUSDOk() (*string, bool)` - -GetAmountUSDOk returns a tuple with the AmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetAmountUSD(v string)` - -SetAmountUSD sets AmountUSD field to given value. - -### HasAmountUSD - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasAmountUSD() bool` - -HasAmountUSD returns a boolean if a field has been set. - -### GetToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetToken returns the Token field if non-nil, zero value otherwise. - -### GetTokenOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetToken sets Token field to given value. - -### HasToken - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasToken() bool` - -HasToken returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md deleted file mode 100644 index 253f051140..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md +++ /dev/null @@ -1,93 +0,0 @@ -# GetRoutes200ResponseRoutesInnerStepsInnerToolDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Key** | **string** | A unique identifier for the integration or tool. | -**Name** | **string** | The name of the integration or tool. | -**LogoURI** | **string** | URL to the logo of the integration or tool. | - -## Methods - -### NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetails - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetails(key string, name string, logoURI string, ) *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails` - -NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetails instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerToolDetails object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetailsWithDefaults - -`func NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetailsWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails` - -NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetailsWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerToolDetails object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKey - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) SetKey(v string)` - -SetKey sets Key field to given value. - - -### GetName - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) SetName(v string)` - -SetName sets Name field to given value. - - -### GetLogoURI - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetLogoURI() string` - -GetLogoURI returns the LogoURI field if non-nil, zero value otherwise. - -### GetLogoURIOk - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetLogoURIOk() (*string, bool)` - -GetLogoURIOk returns a tuple with the LogoURI field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLogoURI - -`func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) SetLogoURI(v string)` - -SetLogoURI sets LogoURI field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/HealthCheckResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/HealthCheckResponse.md deleted file mode 100644 index b2b2c03b63..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/HealthCheckResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# HealthCheckResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | Pointer to **string** | | [optional] - -## Methods - -### NewHealthCheckResponse - -`func NewHealthCheckResponse() *HealthCheckResponse` - -NewHealthCheckResponse instantiates a new HealthCheckResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHealthCheckResponseWithDefaults - -`func NewHealthCheckResponseWithDefaults() *HealthCheckResponse` - -NewHealthCheckResponseWithDefaults instantiates a new HealthCheckResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *HealthCheckResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *HealthCheckResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *HealthCheckResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *HealthCheckResponse) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IncludedStep.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IncludedStep.md deleted file mode 100644 index edadf54431..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IncludedStep.md +++ /dev/null @@ -1,238 +0,0 @@ -# IncludedStep - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | Id of the step | [optional] -**Type** | Pointer to **string** | Type of the step, typically describing the action, e.g., 'swap'. | [optional] -**Tool** | Pointer to **string** | Tool used in the step, e.g., 'stargate'. | [optional] -**Action** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerAction**](GetRoutes200ResponseRoutesInnerStepsInnerAction.md) | | [optional] -**Estimate** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerEstimate**](GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md) | | [optional] -**ToolDetails** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerToolDetails**](GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md) | | [optional] -**IntegrationDetails** | Pointer to [**GetRoutes200ResponseRoutesInnerStepsInnerToolDetails**](GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md) | | [optional] -**IncludedStepIds** | Pointer to **[]string** | IDs of further steps included within this step, allowing for nested actions without direct recursion. | [optional] - -## Methods - -### NewIncludedStep - -`func NewIncludedStep() *IncludedStep` - -NewIncludedStep instantiates a new IncludedStep object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewIncludedStepWithDefaults - -`func NewIncludedStepWithDefaults() *IncludedStep` - -NewIncludedStepWithDefaults instantiates a new IncludedStep object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *IncludedStep) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *IncludedStep) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *IncludedStep) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *IncludedStep) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetType - -`func (o *IncludedStep) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *IncludedStep) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *IncludedStep) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *IncludedStep) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetTool - -`func (o *IncludedStep) GetTool() string` - -GetTool returns the Tool field if non-nil, zero value otherwise. - -### GetToolOk - -`func (o *IncludedStep) GetToolOk() (*string, bool)` - -GetToolOk returns a tuple with the Tool field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTool - -`func (o *IncludedStep) SetTool(v string)` - -SetTool sets Tool field to given value. - -### HasTool - -`func (o *IncludedStep) HasTool() bool` - -HasTool returns a boolean if a field has been set. - -### GetAction - -`func (o *IncludedStep) GetAction() GetRoutes200ResponseRoutesInnerStepsInnerAction` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *IncludedStep) GetActionOk() (*GetRoutes200ResponseRoutesInnerStepsInnerAction, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *IncludedStep) SetAction(v GetRoutes200ResponseRoutesInnerStepsInnerAction)` - -SetAction sets Action field to given value. - -### HasAction - -`func (o *IncludedStep) HasAction() bool` - -HasAction returns a boolean if a field has been set. - -### GetEstimate - -`func (o *IncludedStep) GetEstimate() GetRoutes200ResponseRoutesInnerStepsInnerEstimate` - -GetEstimate returns the Estimate field if non-nil, zero value otherwise. - -### GetEstimateOk - -`func (o *IncludedStep) GetEstimateOk() (*GetRoutes200ResponseRoutesInnerStepsInnerEstimate, bool)` - -GetEstimateOk returns a tuple with the Estimate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEstimate - -`func (o *IncludedStep) SetEstimate(v GetRoutes200ResponseRoutesInnerStepsInnerEstimate)` - -SetEstimate sets Estimate field to given value. - -### HasEstimate - -`func (o *IncludedStep) HasEstimate() bool` - -HasEstimate returns a boolean if a field has been set. - -### GetToolDetails - -`func (o *IncludedStep) GetToolDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails` - -GetToolDetails returns the ToolDetails field if non-nil, zero value otherwise. - -### GetToolDetailsOk - -`func (o *IncludedStep) GetToolDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool)` - -GetToolDetailsOk returns a tuple with the ToolDetails field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToolDetails - -`func (o *IncludedStep) SetToolDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails)` - -SetToolDetails sets ToolDetails field to given value. - -### HasToolDetails - -`func (o *IncludedStep) HasToolDetails() bool` - -HasToolDetails returns a boolean if a field has been set. - -### GetIntegrationDetails - -`func (o *IncludedStep) GetIntegrationDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails` - -GetIntegrationDetails returns the IntegrationDetails field if non-nil, zero value otherwise. - -### GetIntegrationDetailsOk - -`func (o *IncludedStep) GetIntegrationDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool)` - -GetIntegrationDetailsOk returns a tuple with the IntegrationDetails field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntegrationDetails - -`func (o *IncludedStep) SetIntegrationDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails)` - -SetIntegrationDetails sets IntegrationDetails field to given value. - -### HasIntegrationDetails - -`func (o *IncludedStep) HasIntegrationDetails() bool` - -HasIntegrationDetails returns a boolean if a field has been set. - -### GetIncludedStepIds - -`func (o *IncludedStep) GetIncludedStepIds() []string` - -GetIncludedStepIds returns the IncludedStepIds field if non-nil, zero value otherwise. - -### GetIncludedStepIdsOk - -`func (o *IncludedStep) GetIncludedStepIdsOk() (*[]string, bool)` - -GetIncludedStepIdsOk returns a tuple with the IncludedStepIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludedStepIds - -`func (o *IncludedStep) SetIncludedStepIds(v []string)` - -SetIncludedStepIds sets IncludedStepIds field to given value. - -### HasIncludedStepIds - -`func (o *IncludedStep) HasIncludedStepIds() bool` - -HasIncludedStepIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Insurance.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Insurance.md deleted file mode 100644 index 4c687611f5..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Insurance.md +++ /dev/null @@ -1,82 +0,0 @@ -# Insurance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**State** | Pointer to **string** | The state of insurance applicability for the transaction. | [optional] -**FeeAmountUsd** | Pointer to **string** | The fee amount for insurance, represented in USD. | [optional] - -## Methods - -### NewInsurance - -`func NewInsurance() *Insurance` - -NewInsurance instantiates a new Insurance object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewInsuranceWithDefaults - -`func NewInsuranceWithDefaults() *Insurance` - -NewInsuranceWithDefaults instantiates a new Insurance object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetState - -`func (o *Insurance) GetState() string` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *Insurance) GetStateOk() (*string, bool)` - -GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetState - -`func (o *Insurance) SetState(v string)` - -SetState sets State field to given value. - -### HasState - -`func (o *Insurance) HasState() bool` - -HasState returns a boolean if a field has been set. - -### GetFeeAmountUsd - -`func (o *Insurance) GetFeeAmountUsd() string` - -GetFeeAmountUsd returns the FeeAmountUsd field if non-nil, zero value otherwise. - -### GetFeeAmountUsdOk - -`func (o *Insurance) GetFeeAmountUsdOk() (*string, bool)` - -GetFeeAmountUsdOk returns a tuple with the FeeAmountUsd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeeAmountUsd - -`func (o *Insurance) SetFeeAmountUsd(v string)` - -SetFeeAmountUsd sets FeeAmountUsd field to given value. - -### HasFeeAmountUsd - -`func (o *Insurance) HasFeeAmountUsd() bool` - -HasFeeAmountUsd returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IntegrationDetails.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IntegrationDetails.md deleted file mode 100644 index b4e531cbb6..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/IntegrationDetails.md +++ /dev/null @@ -1,93 +0,0 @@ -# IntegrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Key** | **string** | A unique identifier for the integration or tool. | -**Name** | **string** | The name of the integration or tool. | -**LogoURI** | **string** | URL to the logo of the integration or tool. | - -## Methods - -### NewIntegrationDetails - -`func NewIntegrationDetails(key string, name string, logoURI string, ) *IntegrationDetails` - -NewIntegrationDetails instantiates a new IntegrationDetails object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewIntegrationDetailsWithDefaults - -`func NewIntegrationDetailsWithDefaults() *IntegrationDetails` - -NewIntegrationDetailsWithDefaults instantiates a new IntegrationDetails object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKey - -`func (o *IntegrationDetails) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *IntegrationDetails) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *IntegrationDetails) SetKey(v string)` - -SetKey sets Key field to given value. - - -### GetName - -`func (o *IntegrationDetails) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *IntegrationDetails) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *IntegrationDetails) SetName(v string)` - -SetName sets Name field to given value. - - -### GetLogoURI - -`func (o *IntegrationDetails) GetLogoURI() string` - -GetLogoURI returns the LogoURI field if non-nil, zero value otherwise. - -### GetLogoURIOk - -`func (o *IntegrationDetails) GetLogoURIOk() (*string, bool)` - -GetLogoURIOk returns a tuple with the LogoURI field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLogoURI - -`func (o *IntegrationDetails) SetLogoURI(v string)` - -SetLogoURI sets LogoURI field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Pause200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Pause200Response.md deleted file mode 100644 index c18f13405d..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Pause200Response.md +++ /dev/null @@ -1,51 +0,0 @@ -# Pause200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | - -## Methods - -### NewPause200Response - -`func NewPause200Response(statusResponse Transact200ResponseStatusResponse, ) *Pause200Response` - -NewPause200Response instantiates a new Pause200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPause200ResponseWithDefaults - -`func NewPause200ResponseWithDefaults() *Pause200Response` - -NewPause200ResponseWithDefaults instantiates a new Pause200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusResponse - -`func (o *Pause200Response) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *Pause200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *Pause200Response) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseRequest.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseRequest.md deleted file mode 100644 index 211f1a9dc6..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/PauseRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# PauseRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionId** | Pointer to **string** | | [optional] -**ContextId** | Pointer to **string** | | [optional] - -## Methods - -### NewPauseRequest - -`func NewPauseRequest() *PauseRequest` - -NewPauseRequest instantiates a new PauseRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPauseRequestWithDefaults - -`func NewPauseRequestWithDefaults() *PauseRequest` - -NewPauseRequestWithDefaults instantiates a new PauseRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSessionId - -`func (o *PauseRequest) GetSessionId() string` - -GetSessionId returns the SessionId field if non-nil, zero value otherwise. - -### GetSessionIdOk - -`func (o *PauseRequest) GetSessionIdOk() (*string, bool)` - -GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSessionId - -`func (o *PauseRequest) SetSessionId(v string)` - -SetSessionId sets SessionId field to given value. - -### HasSessionId - -`func (o *PauseRequest) HasSessionId() bool` - -HasSessionId returns a boolean if a field has been set. - -### GetContextId - -`func (o *PauseRequest) GetContextId() string` - -GetContextId returns the ContextId field if non-nil, zero value otherwise. - -### GetContextIdOk - -`func (o *PauseRequest) GetContextIdOk() (*string, bool)` - -GetContextIdOk returns a tuple with the ContextId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContextId - -`func (o *PauseRequest) SetContextId(v string)` - -SetContextId sets ContextId field to given value. - -### HasContextId - -`func (o *PauseRequest) HasContextId() bool` - -HasContextId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Route.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Route.md deleted file mode 100644 index 6e9e5117c9..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Route.md +++ /dev/null @@ -1,457 +0,0 @@ -# Route - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | A unique identifier of the route. | -**GatewayID** | **string** | A unique identifier for the gateway. | -**Mode** | **string** | The mode of operation for this route - 'data' for arbitrary payload handling, 'transfer' for asset transfer. | -**FromDLTNetworkID** | Pointer to **string** | The ID of the DLT Network where the operation will originate. | [optional] -**FromAmountUSD** | Pointer to **float64** | The amount of 'fromToken' to be transferred in USD, specified as a string to maintain precision. | [optional] -**FromAmount** | Pointer to **string** | The amount that should be sent including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). | [optional] -**FromToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**ToDLTNetworkID** | Pointer to **string** | The ID of the DLT Network where the operation will end. | [optional] -**ToAmountUSD** | Pointer to **string** | The expected amount to be received in USD. | [optional] -**ToAmount** | Pointer to **string** | The expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). | [optional] -**ToAmountMin** | Pointer to **string** | The minimum expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). | [optional] -**ToToken** | Pointer to [**GetRoutes200ResponseRoutesInnerFromToken**](GetRoutes200ResponseRoutesInnerFromToken.md) | | [optional] -**GasCostUSD** | Pointer to **string** | The expected gas cost in USD. | [optional] -**ContainsSwitchChain** | Pointer to **bool** | Whether chain switching is enabled or not. | [optional] -**Steps** | Pointer to [**[]GetRoutes200ResponseRoutesInnerStepsInner**](GetRoutes200ResponseRoutesInnerStepsInner.md) | List of steps involved in this route, adjusted for mode. | [optional] -**Insurance** | Pointer to [**GetRoutes200ResponseRoutesInnerInsurance**](GetRoutes200ResponseRoutesInnerInsurance.md) | | [optional] -**Tags** | Pointer to **[]string** | List of tags identifiers providing additional context or categorization. | [optional] - -## Methods - -### NewRoute - -`func NewRoute(id string, gatewayID string, mode string, ) *Route` - -NewRoute instantiates a new Route object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRouteWithDefaults - -`func NewRouteWithDefaults() *Route` - -NewRouteWithDefaults instantiates a new Route object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *Route) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *Route) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *Route) SetId(v string)` - -SetId sets Id field to given value. - - -### GetGatewayID - -`func (o *Route) GetGatewayID() string` - -GetGatewayID returns the GatewayID field if non-nil, zero value otherwise. - -### GetGatewayIDOk - -`func (o *Route) GetGatewayIDOk() (*string, bool)` - -GetGatewayIDOk returns a tuple with the GatewayID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGatewayID - -`func (o *Route) SetGatewayID(v string)` - -SetGatewayID sets GatewayID field to given value. - - -### GetMode - -`func (o *Route) GetMode() string` - -GetMode returns the Mode field if non-nil, zero value otherwise. - -### GetModeOk - -`func (o *Route) GetModeOk() (*string, bool)` - -GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMode - -`func (o *Route) SetMode(v string)` - -SetMode sets Mode field to given value. - - -### GetFromDLTNetworkID - -`func (o *Route) GetFromDLTNetworkID() string` - -GetFromDLTNetworkID returns the FromDLTNetworkID field if non-nil, zero value otherwise. - -### GetFromDLTNetworkIDOk - -`func (o *Route) GetFromDLTNetworkIDOk() (*string, bool)` - -GetFromDLTNetworkIDOk returns a tuple with the FromDLTNetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromDLTNetworkID - -`func (o *Route) SetFromDLTNetworkID(v string)` - -SetFromDLTNetworkID sets FromDLTNetworkID field to given value. - -### HasFromDLTNetworkID - -`func (o *Route) HasFromDLTNetworkID() bool` - -HasFromDLTNetworkID returns a boolean if a field has been set. - -### GetFromAmountUSD - -`func (o *Route) GetFromAmountUSD() float64` - -GetFromAmountUSD returns the FromAmountUSD field if non-nil, zero value otherwise. - -### GetFromAmountUSDOk - -`func (o *Route) GetFromAmountUSDOk() (*float64, bool)` - -GetFromAmountUSDOk returns a tuple with the FromAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmountUSD - -`func (o *Route) SetFromAmountUSD(v float64)` - -SetFromAmountUSD sets FromAmountUSD field to given value. - -### HasFromAmountUSD - -`func (o *Route) HasFromAmountUSD() bool` - -HasFromAmountUSD returns a boolean if a field has been set. - -### GetFromAmount - -`func (o *Route) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *Route) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *Route) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - -### HasFromAmount - -`func (o *Route) HasFromAmount() bool` - -HasFromAmount returns a boolean if a field has been set. - -### GetFromToken - -`func (o *Route) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetFromToken returns the FromToken field if non-nil, zero value otherwise. - -### GetFromTokenOk - -`func (o *Route) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetFromTokenOk returns a tuple with the FromToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromToken - -`func (o *Route) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetFromToken sets FromToken field to given value. - -### HasFromToken - -`func (o *Route) HasFromToken() bool` - -HasFromToken returns a boolean if a field has been set. - -### GetToDLTNetworkID - -`func (o *Route) GetToDLTNetworkID() string` - -GetToDLTNetworkID returns the ToDLTNetworkID field if non-nil, zero value otherwise. - -### GetToDLTNetworkIDOk - -`func (o *Route) GetToDLTNetworkIDOk() (*string, bool)` - -GetToDLTNetworkIDOk returns a tuple with the ToDLTNetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToDLTNetworkID - -`func (o *Route) SetToDLTNetworkID(v string)` - -SetToDLTNetworkID sets ToDLTNetworkID field to given value. - -### HasToDLTNetworkID - -`func (o *Route) HasToDLTNetworkID() bool` - -HasToDLTNetworkID returns a boolean if a field has been set. - -### GetToAmountUSD - -`func (o *Route) GetToAmountUSD() string` - -GetToAmountUSD returns the ToAmountUSD field if non-nil, zero value otherwise. - -### GetToAmountUSDOk - -`func (o *Route) GetToAmountUSDOk() (*string, bool)` - -GetToAmountUSDOk returns a tuple with the ToAmountUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountUSD - -`func (o *Route) SetToAmountUSD(v string)` - -SetToAmountUSD sets ToAmountUSD field to given value. - -### HasToAmountUSD - -`func (o *Route) HasToAmountUSD() bool` - -HasToAmountUSD returns a boolean if a field has been set. - -### GetToAmount - -`func (o *Route) GetToAmount() string` - -GetToAmount returns the ToAmount field if non-nil, zero value otherwise. - -### GetToAmountOk - -`func (o *Route) GetToAmountOk() (*string, bool)` - -GetToAmountOk returns a tuple with the ToAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmount - -`func (o *Route) SetToAmount(v string)` - -SetToAmount sets ToAmount field to given value. - -### HasToAmount - -`func (o *Route) HasToAmount() bool` - -HasToAmount returns a boolean if a field has been set. - -### GetToAmountMin - -`func (o *Route) GetToAmountMin() string` - -GetToAmountMin returns the ToAmountMin field if non-nil, zero value otherwise. - -### GetToAmountMinOk - -`func (o *Route) GetToAmountMinOk() (*string, bool)` - -GetToAmountMinOk returns a tuple with the ToAmountMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmountMin - -`func (o *Route) SetToAmountMin(v string)` - -SetToAmountMin sets ToAmountMin field to given value. - -### HasToAmountMin - -`func (o *Route) HasToAmountMin() bool` - -HasToAmountMin returns a boolean if a field has been set. - -### GetToToken - -`func (o *Route) GetToToken() GetRoutes200ResponseRoutesInnerFromToken` - -GetToToken returns the ToToken field if non-nil, zero value otherwise. - -### GetToTokenOk - -`func (o *Route) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool)` - -GetToTokenOk returns a tuple with the ToToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToToken - -`func (o *Route) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken)` - -SetToToken sets ToToken field to given value. - -### HasToToken - -`func (o *Route) HasToToken() bool` - -HasToToken returns a boolean if a field has been set. - -### GetGasCostUSD - -`func (o *Route) GetGasCostUSD() string` - -GetGasCostUSD returns the GasCostUSD field if non-nil, zero value otherwise. - -### GetGasCostUSDOk - -`func (o *Route) GetGasCostUSDOk() (*string, bool)` - -GetGasCostUSDOk returns a tuple with the GasCostUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGasCostUSD - -`func (o *Route) SetGasCostUSD(v string)` - -SetGasCostUSD sets GasCostUSD field to given value. - -### HasGasCostUSD - -`func (o *Route) HasGasCostUSD() bool` - -HasGasCostUSD returns a boolean if a field has been set. - -### GetContainsSwitchChain - -`func (o *Route) GetContainsSwitchChain() bool` - -GetContainsSwitchChain returns the ContainsSwitchChain field if non-nil, zero value otherwise. - -### GetContainsSwitchChainOk - -`func (o *Route) GetContainsSwitchChainOk() (*bool, bool)` - -GetContainsSwitchChainOk returns a tuple with the ContainsSwitchChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContainsSwitchChain - -`func (o *Route) SetContainsSwitchChain(v bool)` - -SetContainsSwitchChain sets ContainsSwitchChain field to given value. - -### HasContainsSwitchChain - -`func (o *Route) HasContainsSwitchChain() bool` - -HasContainsSwitchChain returns a boolean if a field has been set. - -### GetSteps - -`func (o *Route) GetSteps() []GetRoutes200ResponseRoutesInnerStepsInner` - -GetSteps returns the Steps field if non-nil, zero value otherwise. - -### GetStepsOk - -`func (o *Route) GetStepsOk() (*[]GetRoutes200ResponseRoutesInnerStepsInner, bool)` - -GetStepsOk returns a tuple with the Steps field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSteps - -`func (o *Route) SetSteps(v []GetRoutes200ResponseRoutesInnerStepsInner)` - -SetSteps sets Steps field to given value. - -### HasSteps - -`func (o *Route) HasSteps() bool` - -HasSteps returns a boolean if a field has been set. - -### GetInsurance - -`func (o *Route) GetInsurance() GetRoutes200ResponseRoutesInnerInsurance` - -GetInsurance returns the Insurance field if non-nil, zero value otherwise. - -### GetInsuranceOk - -`func (o *Route) GetInsuranceOk() (*GetRoutes200ResponseRoutesInnerInsurance, bool)` - -GetInsuranceOk returns a tuple with the Insurance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInsurance - -`func (o *Route) SetInsurance(v GetRoutes200ResponseRoutesInnerInsurance)` - -SetInsurance sets Insurance field to given value. - -### HasInsurance - -`func (o *Route) HasInsurance() bool` - -HasInsurance returns a boolean if a field has been set. - -### GetTags - -`func (o *Route) GetTags() []string` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Route) GetTagsOk() (*[]string, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Route) SetTags(v []string)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Route) HasTags() bool` - -HasTags returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/RoutesResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/RoutesResponse.md deleted file mode 100644 index b4c5f64a92..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/RoutesResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# RoutesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Routes** | [**[]GetRoutes200ResponseRoutesInner**](GetRoutes200ResponseRoutesInner.md) | A collection of route objects | - -## Methods - -### NewRoutesResponse - -`func NewRoutesResponse(routes []GetRoutes200ResponseRoutesInner, ) *RoutesResponse` - -NewRoutesResponse instantiates a new RoutesResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRoutesResponseWithDefaults - -`func NewRoutesResponseWithDefaults() *RoutesResponse` - -NewRoutesResponseWithDefaults instantiates a new RoutesResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRoutes - -`func (o *RoutesResponse) GetRoutes() []GetRoutes200ResponseRoutesInner` - -GetRoutes returns the Routes field if non-nil, zero value otherwise. - -### GetRoutesOk - -`func (o *RoutesResponse) GetRoutesOk() (*[]GetRoutes200ResponseRoutesInner, bool)` - -GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRoutes - -`func (o *RoutesResponse) SetRoutes(v []GetRoutes200ResponseRoutesInner)` - -SetRoutes sets Routes field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusRequest.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusRequest.md deleted file mode 100644 index 36168e81d1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# StatusRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionID** | **string** | The ID of the session for which the status is being requested. | - -## Methods - -### NewStatusRequest - -`func NewStatusRequest(sessionID string, ) *StatusRequest` - -NewStatusRequest instantiates a new StatusRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewStatusRequestWithDefaults - -`func NewStatusRequestWithDefaults() *StatusRequest` - -NewStatusRequestWithDefaults instantiates a new StatusRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSessionID - -`func (o *StatusRequest) GetSessionID() string` - -GetSessionID returns the SessionID field if non-nil, zero value otherwise. - -### GetSessionIDOk - -`func (o *StatusRequest) GetSessionIDOk() (*string, bool)` - -GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSessionID - -`func (o *StatusRequest) SetSessionID(v string)` - -SetSessionID sets SessionID field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusResponse.md deleted file mode 100644 index 5fd67dade1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/StatusResponse.md +++ /dev/null @@ -1,177 +0,0 @@ -# StatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **string** | | -**Substatus** | **string** | | -**Stage** | **string** | | -**Step** | **string** | | -**StartTime** | **time.Time** | | -**OriginChain** | [**Transact200ResponseStatusResponseOriginChain**](Transact200ResponseStatusResponseOriginChain.md) | | -**DestinationChain** | [**Transact200ResponseStatusResponseDestinationChain**](Transact200ResponseStatusResponseDestinationChain.md) | | - -## Methods - -### NewStatusResponse - -`func NewStatusResponse(status string, substatus string, stage string, step string, startTime time.Time, originChain Transact200ResponseStatusResponseOriginChain, destinationChain Transact200ResponseStatusResponseDestinationChain, ) *StatusResponse` - -NewStatusResponse instantiates a new StatusResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewStatusResponseWithDefaults - -`func NewStatusResponseWithDefaults() *StatusResponse` - -NewStatusResponseWithDefaults instantiates a new StatusResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *StatusResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *StatusResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *StatusResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - - -### GetSubstatus - -`func (o *StatusResponse) GetSubstatus() string` - -GetSubstatus returns the Substatus field if non-nil, zero value otherwise. - -### GetSubstatusOk - -`func (o *StatusResponse) GetSubstatusOk() (*string, bool)` - -GetSubstatusOk returns a tuple with the Substatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubstatus - -`func (o *StatusResponse) SetSubstatus(v string)` - -SetSubstatus sets Substatus field to given value. - - -### GetStage - -`func (o *StatusResponse) GetStage() string` - -GetStage returns the Stage field if non-nil, zero value otherwise. - -### GetStageOk - -`func (o *StatusResponse) GetStageOk() (*string, bool)` - -GetStageOk returns a tuple with the Stage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStage - -`func (o *StatusResponse) SetStage(v string)` - -SetStage sets Stage field to given value. - - -### GetStep - -`func (o *StatusResponse) GetStep() string` - -GetStep returns the Step field if non-nil, zero value otherwise. - -### GetStepOk - -`func (o *StatusResponse) GetStepOk() (*string, bool)` - -GetStepOk returns a tuple with the Step field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStep - -`func (o *StatusResponse) SetStep(v string)` - -SetStep sets Step field to given value. - - -### GetStartTime - -`func (o *StatusResponse) GetStartTime() time.Time` - -GetStartTime returns the StartTime field if non-nil, zero value otherwise. - -### GetStartTimeOk - -`func (o *StatusResponse) GetStartTimeOk() (*time.Time, bool)` - -GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartTime - -`func (o *StatusResponse) SetStartTime(v time.Time)` - -SetStartTime sets StartTime field to given value. - - -### GetOriginChain - -`func (o *StatusResponse) GetOriginChain() Transact200ResponseStatusResponseOriginChain` - -GetOriginChain returns the OriginChain field if non-nil, zero value otherwise. - -### GetOriginChainOk - -`func (o *StatusResponse) GetOriginChainOk() (*Transact200ResponseStatusResponseOriginChain, bool)` - -GetOriginChainOk returns a tuple with the OriginChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOriginChain - -`func (o *StatusResponse) SetOriginChain(v Transact200ResponseStatusResponseOriginChain)` - -SetOriginChain sets OriginChain field to given value. - - -### GetDestinationChain - -`func (o *StatusResponse) GetDestinationChain() Transact200ResponseStatusResponseDestinationChain` - -GetDestinationChain returns the DestinationChain field if non-nil, zero value otherwise. - -### GetDestinationChainOk - -`func (o *StatusResponse) GetDestinationChainOk() (*Transact200ResponseStatusResponseDestinationChain, bool)` - -GetDestinationChainOk returns a tuple with the DestinationChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDestinationChain - -`func (o *StatusResponse) SetDestinationChain(v Transact200ResponseStatusResponseDestinationChain)` - -SetDestinationChain sets DestinationChain field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Token.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Token.md deleted file mode 100644 index 89c2fe1484..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Token.md +++ /dev/null @@ -1,265 +0,0 @@ -# Token - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ChainID** | **string** | The network of the DLT being interacted with. TODO: implement network identification draft | -**ChainType** | **string** | Supported DLT protocols. | -**Address** | **string** | A blockchain address. | -**Name** | Pointer to **string** | The name of the token. | [optional] -**Symbol** | **string** | The symbol of the token. | -**Decimals** | **int32** | How many decimals the token supports. | -**LogoURI** | Pointer to **string** | The logo of a token, chain, dex etc. | [optional] -**Tags** | Pointer to **[]string** | List of tags identifiers providing additional context or categorization. | [optional] -**PriceUSD** | Pointer to **string** | The current price of the token in USD. | [optional] -**Extensions** | Pointer to [**GetRoutes200ResponseRoutesInnerFromTokenExtensions**](GetRoutes200ResponseRoutesInnerFromTokenExtensions.md) | | [optional] - -## Methods - -### NewToken - -`func NewToken(chainID string, chainType string, address string, symbol string, decimals int32, ) *Token` - -NewToken instantiates a new Token object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTokenWithDefaults - -`func NewTokenWithDefaults() *Token` - -NewTokenWithDefaults instantiates a new Token object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetChainID - -`func (o *Token) GetChainID() string` - -GetChainID returns the ChainID field if non-nil, zero value otherwise. - -### GetChainIDOk - -`func (o *Token) GetChainIDOk() (*string, bool)` - -GetChainIDOk returns a tuple with the ChainID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainID - -`func (o *Token) SetChainID(v string)` - -SetChainID sets ChainID field to given value. - - -### GetChainType - -`func (o *Token) GetChainType() string` - -GetChainType returns the ChainType field if non-nil, zero value otherwise. - -### GetChainTypeOk - -`func (o *Token) GetChainTypeOk() (*string, bool)` - -GetChainTypeOk returns a tuple with the ChainType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChainType - -`func (o *Token) SetChainType(v string)` - -SetChainType sets ChainType field to given value. - - -### GetAddress - -`func (o *Token) GetAddress() string` - -GetAddress returns the Address field if non-nil, zero value otherwise. - -### GetAddressOk - -`func (o *Token) GetAddressOk() (*string, bool)` - -GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAddress - -`func (o *Token) SetAddress(v string)` - -SetAddress sets Address field to given value. - - -### GetName - -`func (o *Token) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *Token) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *Token) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *Token) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetSymbol - -`func (o *Token) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *Token) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *Token) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - -### GetDecimals - -`func (o *Token) GetDecimals() int32` - -GetDecimals returns the Decimals field if non-nil, zero value otherwise. - -### GetDecimalsOk - -`func (o *Token) GetDecimalsOk() (*int32, bool)` - -GetDecimalsOk returns a tuple with the Decimals field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecimals - -`func (o *Token) SetDecimals(v int32)` - -SetDecimals sets Decimals field to given value. - - -### GetLogoURI - -`func (o *Token) GetLogoURI() string` - -GetLogoURI returns the LogoURI field if non-nil, zero value otherwise. - -### GetLogoURIOk - -`func (o *Token) GetLogoURIOk() (*string, bool)` - -GetLogoURIOk returns a tuple with the LogoURI field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLogoURI - -`func (o *Token) SetLogoURI(v string)` - -SetLogoURI sets LogoURI field to given value. - -### HasLogoURI - -`func (o *Token) HasLogoURI() bool` - -HasLogoURI returns a boolean if a field has been set. - -### GetTags - -`func (o *Token) GetTags() []string` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Token) GetTagsOk() (*[]string, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Token) SetTags(v []string)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Token) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetPriceUSD - -`func (o *Token) GetPriceUSD() string` - -GetPriceUSD returns the PriceUSD field if non-nil, zero value otherwise. - -### GetPriceUSDOk - -`func (o *Token) GetPriceUSDOk() (*string, bool)` - -GetPriceUSDOk returns a tuple with the PriceUSD field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPriceUSD - -`func (o *Token) SetPriceUSD(v string)` - -SetPriceUSD sets PriceUSD field to given value. - -### HasPriceUSD - -`func (o *Token) HasPriceUSD() bool` - -HasPriceUSD returns a boolean if a field has been set. - -### GetExtensions - -`func (o *Token) GetExtensions() GetRoutes200ResponseRoutesInnerFromTokenExtensions` - -GetExtensions returns the Extensions field if non-nil, zero value otherwise. - -### GetExtensionsOk - -`func (o *Token) GetExtensionsOk() (*GetRoutes200ResponseRoutesInnerFromTokenExtensions, bool)` - -GetExtensionsOk returns a tuple with the Extensions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExtensions - -`func (o *Token) SetExtensions(v GetRoutes200ResponseRoutesInnerFromTokenExtensions)` - -SetExtensions sets Extensions field to given value. - -### HasExtensions - -`func (o *Token) HasExtensions() bool` - -HasExtensions returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200Response.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200Response.md deleted file mode 100644 index 385a3357a3..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200Response.md +++ /dev/null @@ -1,72 +0,0 @@ -# Transact200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionID** | **string** | Unique identifier (UUID) for the session. | -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | - -## Methods - -### NewTransact200Response - -`func NewTransact200Response(sessionID string, statusResponse Transact200ResponseStatusResponse, ) *Transact200Response` - -NewTransact200Response instantiates a new Transact200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransact200ResponseWithDefaults - -`func NewTransact200ResponseWithDefaults() *Transact200Response` - -NewTransact200ResponseWithDefaults instantiates a new Transact200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSessionID - -`func (o *Transact200Response) GetSessionID() string` - -GetSessionID returns the SessionID field if non-nil, zero value otherwise. - -### GetSessionIDOk - -`func (o *Transact200Response) GetSessionIDOk() (*string, bool)` - -GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSessionID - -`func (o *Transact200Response) SetSessionID(v string)` - -SetSessionID sets SessionID field to given value. - - -### GetStatusResponse - -`func (o *Transact200Response) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *Transact200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *Transact200Response) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponse.md deleted file mode 100644 index 4db9ef1c76..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponse.md +++ /dev/null @@ -1,177 +0,0 @@ -# Transact200ResponseStatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **string** | | -**Substatus** | **string** | | -**Stage** | **string** | | -**Step** | **string** | | -**StartTime** | **time.Time** | | -**OriginChain** | [**Transact200ResponseStatusResponseOriginChain**](Transact200ResponseStatusResponseOriginChain.md) | | -**DestinationChain** | [**Transact200ResponseStatusResponseDestinationChain**](Transact200ResponseStatusResponseDestinationChain.md) | | - -## Methods - -### NewTransact200ResponseStatusResponse - -`func NewTransact200ResponseStatusResponse(status string, substatus string, stage string, step string, startTime time.Time, originChain Transact200ResponseStatusResponseOriginChain, destinationChain Transact200ResponseStatusResponseDestinationChain, ) *Transact200ResponseStatusResponse` - -NewTransact200ResponseStatusResponse instantiates a new Transact200ResponseStatusResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransact200ResponseStatusResponseWithDefaults - -`func NewTransact200ResponseStatusResponseWithDefaults() *Transact200ResponseStatusResponse` - -NewTransact200ResponseStatusResponseWithDefaults instantiates a new Transact200ResponseStatusResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *Transact200ResponseStatusResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Transact200ResponseStatusResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Transact200ResponseStatusResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - - -### GetSubstatus - -`func (o *Transact200ResponseStatusResponse) GetSubstatus() string` - -GetSubstatus returns the Substatus field if non-nil, zero value otherwise. - -### GetSubstatusOk - -`func (o *Transact200ResponseStatusResponse) GetSubstatusOk() (*string, bool)` - -GetSubstatusOk returns a tuple with the Substatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubstatus - -`func (o *Transact200ResponseStatusResponse) SetSubstatus(v string)` - -SetSubstatus sets Substatus field to given value. - - -### GetStage - -`func (o *Transact200ResponseStatusResponse) GetStage() string` - -GetStage returns the Stage field if non-nil, zero value otherwise. - -### GetStageOk - -`func (o *Transact200ResponseStatusResponse) GetStageOk() (*string, bool)` - -GetStageOk returns a tuple with the Stage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStage - -`func (o *Transact200ResponseStatusResponse) SetStage(v string)` - -SetStage sets Stage field to given value. - - -### GetStep - -`func (o *Transact200ResponseStatusResponse) GetStep() string` - -GetStep returns the Step field if non-nil, zero value otherwise. - -### GetStepOk - -`func (o *Transact200ResponseStatusResponse) GetStepOk() (*string, bool)` - -GetStepOk returns a tuple with the Step field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStep - -`func (o *Transact200ResponseStatusResponse) SetStep(v string)` - -SetStep sets Step field to given value. - - -### GetStartTime - -`func (o *Transact200ResponseStatusResponse) GetStartTime() time.Time` - -GetStartTime returns the StartTime field if non-nil, zero value otherwise. - -### GetStartTimeOk - -`func (o *Transact200ResponseStatusResponse) GetStartTimeOk() (*time.Time, bool)` - -GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartTime - -`func (o *Transact200ResponseStatusResponse) SetStartTime(v time.Time)` - -SetStartTime sets StartTime field to given value. - - -### GetOriginChain - -`func (o *Transact200ResponseStatusResponse) GetOriginChain() Transact200ResponseStatusResponseOriginChain` - -GetOriginChain returns the OriginChain field if non-nil, zero value otherwise. - -### GetOriginChainOk - -`func (o *Transact200ResponseStatusResponse) GetOriginChainOk() (*Transact200ResponseStatusResponseOriginChain, bool)` - -GetOriginChainOk returns a tuple with the OriginChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOriginChain - -`func (o *Transact200ResponseStatusResponse) SetOriginChain(v Transact200ResponseStatusResponseOriginChain)` - -SetOriginChain sets OriginChain field to given value. - - -### GetDestinationChain - -`func (o *Transact200ResponseStatusResponse) GetDestinationChain() Transact200ResponseStatusResponseDestinationChain` - -GetDestinationChain returns the DestinationChain field if non-nil, zero value otherwise. - -### GetDestinationChainOk - -`func (o *Transact200ResponseStatusResponse) GetDestinationChainOk() (*Transact200ResponseStatusResponseDestinationChain, bool)` - -GetDestinationChainOk returns a tuple with the DestinationChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDestinationChain - -`func (o *Transact200ResponseStatusResponse) SetDestinationChain(v Transact200ResponseStatusResponseDestinationChain)` - -SetDestinationChain sets DestinationChain field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseDestinationChain.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseDestinationChain.md deleted file mode 100644 index fdff89f7a4..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseDestinationChain.md +++ /dev/null @@ -1,102 +0,0 @@ -# Transact200ResponseStatusResponseDestinationChain - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DltProtocol** | Pointer to **interface{}** | | [optional] -**DltSubnetworkID** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewTransact200ResponseStatusResponseDestinationChain - -`func NewTransact200ResponseStatusResponseDestinationChain() *Transact200ResponseStatusResponseDestinationChain` - -NewTransact200ResponseStatusResponseDestinationChain instantiates a new Transact200ResponseStatusResponseDestinationChain object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransact200ResponseStatusResponseDestinationChainWithDefaults - -`func NewTransact200ResponseStatusResponseDestinationChainWithDefaults() *Transact200ResponseStatusResponseDestinationChain` - -NewTransact200ResponseStatusResponseDestinationChainWithDefaults instantiates a new Transact200ResponseStatusResponseDestinationChain object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDltProtocol - -`func (o *Transact200ResponseStatusResponseDestinationChain) GetDltProtocol() interface{}` - -GetDltProtocol returns the DltProtocol field if non-nil, zero value otherwise. - -### GetDltProtocolOk - -`func (o *Transact200ResponseStatusResponseDestinationChain) GetDltProtocolOk() (*interface{}, bool)` - -GetDltProtocolOk returns a tuple with the DltProtocol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDltProtocol - -`func (o *Transact200ResponseStatusResponseDestinationChain) SetDltProtocol(v interface{})` - -SetDltProtocol sets DltProtocol field to given value. - -### HasDltProtocol - -`func (o *Transact200ResponseStatusResponseDestinationChain) HasDltProtocol() bool` - -HasDltProtocol returns a boolean if a field has been set. - -### SetDltProtocolNil - -`func (o *Transact200ResponseStatusResponseDestinationChain) SetDltProtocolNil(b bool)` - - SetDltProtocolNil sets the value for DltProtocol to be an explicit nil - -### UnsetDltProtocol -`func (o *Transact200ResponseStatusResponseDestinationChain) UnsetDltProtocol()` - -UnsetDltProtocol ensures that no value is present for DltProtocol, not even an explicit nil -### GetDltSubnetworkID - -`func (o *Transact200ResponseStatusResponseDestinationChain) GetDltSubnetworkID() interface{}` - -GetDltSubnetworkID returns the DltSubnetworkID field if non-nil, zero value otherwise. - -### GetDltSubnetworkIDOk - -`func (o *Transact200ResponseStatusResponseDestinationChain) GetDltSubnetworkIDOk() (*interface{}, bool)` - -GetDltSubnetworkIDOk returns a tuple with the DltSubnetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDltSubnetworkID - -`func (o *Transact200ResponseStatusResponseDestinationChain) SetDltSubnetworkID(v interface{})` - -SetDltSubnetworkID sets DltSubnetworkID field to given value. - -### HasDltSubnetworkID - -`func (o *Transact200ResponseStatusResponseDestinationChain) HasDltSubnetworkID() bool` - -HasDltSubnetworkID returns a boolean if a field has been set. - -### SetDltSubnetworkIDNil - -`func (o *Transact200ResponseStatusResponseDestinationChain) SetDltSubnetworkIDNil(b bool)` - - SetDltSubnetworkIDNil sets the value for DltSubnetworkID to be an explicit nil - -### UnsetDltSubnetworkID -`func (o *Transact200ResponseStatusResponseDestinationChain) UnsetDltSubnetworkID()` - -UnsetDltSubnetworkID ensures that no value is present for DltSubnetworkID, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseOriginChain.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseOriginChain.md deleted file mode 100644 index 1c53906205..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/Transact200ResponseStatusResponseOriginChain.md +++ /dev/null @@ -1,102 +0,0 @@ -# Transact200ResponseStatusResponseOriginChain - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DltProtocol** | Pointer to **interface{}** | | [optional] -**DltSubnetworkID** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewTransact200ResponseStatusResponseOriginChain - -`func NewTransact200ResponseStatusResponseOriginChain() *Transact200ResponseStatusResponseOriginChain` - -NewTransact200ResponseStatusResponseOriginChain instantiates a new Transact200ResponseStatusResponseOriginChain object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransact200ResponseStatusResponseOriginChainWithDefaults - -`func NewTransact200ResponseStatusResponseOriginChainWithDefaults() *Transact200ResponseStatusResponseOriginChain` - -NewTransact200ResponseStatusResponseOriginChainWithDefaults instantiates a new Transact200ResponseStatusResponseOriginChain object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDltProtocol - -`func (o *Transact200ResponseStatusResponseOriginChain) GetDltProtocol() interface{}` - -GetDltProtocol returns the DltProtocol field if non-nil, zero value otherwise. - -### GetDltProtocolOk - -`func (o *Transact200ResponseStatusResponseOriginChain) GetDltProtocolOk() (*interface{}, bool)` - -GetDltProtocolOk returns a tuple with the DltProtocol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDltProtocol - -`func (o *Transact200ResponseStatusResponseOriginChain) SetDltProtocol(v interface{})` - -SetDltProtocol sets DltProtocol field to given value. - -### HasDltProtocol - -`func (o *Transact200ResponseStatusResponseOriginChain) HasDltProtocol() bool` - -HasDltProtocol returns a boolean if a field has been set. - -### SetDltProtocolNil - -`func (o *Transact200ResponseStatusResponseOriginChain) SetDltProtocolNil(b bool)` - - SetDltProtocolNil sets the value for DltProtocol to be an explicit nil - -### UnsetDltProtocol -`func (o *Transact200ResponseStatusResponseOriginChain) UnsetDltProtocol()` - -UnsetDltProtocol ensures that no value is present for DltProtocol, not even an explicit nil -### GetDltSubnetworkID - -`func (o *Transact200ResponseStatusResponseOriginChain) GetDltSubnetworkID() interface{}` - -GetDltSubnetworkID returns the DltSubnetworkID field if non-nil, zero value otherwise. - -### GetDltSubnetworkIDOk - -`func (o *Transact200ResponseStatusResponseOriginChain) GetDltSubnetworkIDOk() (*interface{}, bool)` - -GetDltSubnetworkIDOk returns a tuple with the DltSubnetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDltSubnetworkID - -`func (o *Transact200ResponseStatusResponseOriginChain) SetDltSubnetworkID(v interface{})` - -SetDltSubnetworkID sets DltSubnetworkID field to given value. - -### HasDltSubnetworkID - -`func (o *Transact200ResponseStatusResponseOriginChain) HasDltSubnetworkID() bool` - -HasDltSubnetworkID returns a boolean if a field has been set. - -### SetDltSubnetworkIDNil - -`func (o *Transact200ResponseStatusResponseOriginChain) SetDltSubnetworkIDNil(b bool)` - - SetDltSubnetworkIDNil sets the value for DltSubnetworkID to be an explicit nil - -### UnsetDltSubnetworkID -`func (o *Transact200ResponseStatusResponseOriginChain) UnsetDltSubnetworkID()` - -UnsetDltSubnetworkID ensures that no value is present for DltSubnetworkID, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactDefaultResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactDefaultResponse.md deleted file mode 100644 index 59b5689048..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactDefaultResponse.md +++ /dev/null @@ -1,135 +0,0 @@ -# TransactDefaultResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | HTTP error type | -**Code** | **int32** | Numeric error code | -**Status** | **int32** | HTTP status of the error | -**Message** | **string** | Long error description | -**Timestamp** | **string** | Timestamp of the error | - -## Methods - -### NewTransactDefaultResponse - -`func NewTransactDefaultResponse(type_ string, code int32, status int32, message string, timestamp string, ) *TransactDefaultResponse` - -NewTransactDefaultResponse instantiates a new TransactDefaultResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactDefaultResponseWithDefaults - -`func NewTransactDefaultResponseWithDefaults() *TransactDefaultResponse` - -NewTransactDefaultResponseWithDefaults instantiates a new TransactDefaultResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TransactDefaultResponse) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TransactDefaultResponse) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TransactDefaultResponse) SetType(v string)` - -SetType sets Type field to given value. - - -### GetCode - -`func (o *TransactDefaultResponse) GetCode() int32` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *TransactDefaultResponse) GetCodeOk() (*int32, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *TransactDefaultResponse) SetCode(v int32)` - -SetCode sets Code field to given value. - - -### GetStatus - -`func (o *TransactDefaultResponse) GetStatus() int32` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *TransactDefaultResponse) GetStatusOk() (*int32, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *TransactDefaultResponse) SetStatus(v int32)` - -SetStatus sets Status field to given value. - - -### GetMessage - -`func (o *TransactDefaultResponse) GetMessage() string` - -GetMessage returns the Message field if non-nil, zero value otherwise. - -### GetMessageOk - -`func (o *TransactDefaultResponse) GetMessageOk() (*string, bool)` - -GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMessage - -`func (o *TransactDefaultResponse) SetMessage(v string)` - -SetMessage sets Message field to given value. - - -### GetTimestamp - -`func (o *TransactDefaultResponse) GetTimestamp() string` - -GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. - -### GetTimestampOk - -`func (o *TransactDefaultResponse) GetTimestampOk() (*string, bool)` - -GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimestamp - -`func (o *TransactDefaultResponse) SetTimestamp(v string)` - -SetTimestamp sets Timestamp field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequest.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequest.md deleted file mode 100644 index 37525e16dd..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequest.md +++ /dev/null @@ -1,245 +0,0 @@ -# TransactRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ContextID** | **string** | | -**Payload** | Pointer to **string** | | [optional] -**FromDLTNetworkID** | **string** | | -**ToDLTNetworkID** | **string** | | -**FromAmount** | **string** | | -**ToAmount** | **string** | | -**BeneficiaryPubkey** | **string** | | -**OriginatorPubkey** | **string** | | -**SourceAsset** | [**TransactRequestSourceAsset**](TransactRequestSourceAsset.md) | | -**DestinyAsset** | [**TransactRequestSourceAsset**](TransactRequestSourceAsset.md) | | - -## Methods - -### NewTransactRequest - -`func NewTransactRequest(contextID string, fromDLTNetworkID string, toDLTNetworkID string, fromAmount string, toAmount string, beneficiaryPubkey string, originatorPubkey string, sourceAsset TransactRequestSourceAsset, destinyAsset TransactRequestSourceAsset, ) *TransactRequest` - -NewTransactRequest instantiates a new TransactRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactRequestWithDefaults - -`func NewTransactRequestWithDefaults() *TransactRequest` - -NewTransactRequestWithDefaults instantiates a new TransactRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetContextID - -`func (o *TransactRequest) GetContextID() string` - -GetContextID returns the ContextID field if non-nil, zero value otherwise. - -### GetContextIDOk - -`func (o *TransactRequest) GetContextIDOk() (*string, bool)` - -GetContextIDOk returns a tuple with the ContextID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContextID - -`func (o *TransactRequest) SetContextID(v string)` - -SetContextID sets ContextID field to given value. - - -### GetPayload - -`func (o *TransactRequest) GetPayload() string` - -GetPayload returns the Payload field if non-nil, zero value otherwise. - -### GetPayloadOk - -`func (o *TransactRequest) GetPayloadOk() (*string, bool)` - -GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayload - -`func (o *TransactRequest) SetPayload(v string)` - -SetPayload sets Payload field to given value. - -### HasPayload - -`func (o *TransactRequest) HasPayload() bool` - -HasPayload returns a boolean if a field has been set. - -### GetFromDLTNetworkID - -`func (o *TransactRequest) GetFromDLTNetworkID() string` - -GetFromDLTNetworkID returns the FromDLTNetworkID field if non-nil, zero value otherwise. - -### GetFromDLTNetworkIDOk - -`func (o *TransactRequest) GetFromDLTNetworkIDOk() (*string, bool)` - -GetFromDLTNetworkIDOk returns a tuple with the FromDLTNetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromDLTNetworkID - -`func (o *TransactRequest) SetFromDLTNetworkID(v string)` - -SetFromDLTNetworkID sets FromDLTNetworkID field to given value. - - -### GetToDLTNetworkID - -`func (o *TransactRequest) GetToDLTNetworkID() string` - -GetToDLTNetworkID returns the ToDLTNetworkID field if non-nil, zero value otherwise. - -### GetToDLTNetworkIDOk - -`func (o *TransactRequest) GetToDLTNetworkIDOk() (*string, bool)` - -GetToDLTNetworkIDOk returns a tuple with the ToDLTNetworkID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToDLTNetworkID - -`func (o *TransactRequest) SetToDLTNetworkID(v string)` - -SetToDLTNetworkID sets ToDLTNetworkID field to given value. - - -### GetFromAmount - -`func (o *TransactRequest) GetFromAmount() string` - -GetFromAmount returns the FromAmount field if non-nil, zero value otherwise. - -### GetFromAmountOk - -`func (o *TransactRequest) GetFromAmountOk() (*string, bool)` - -GetFromAmountOk returns a tuple with the FromAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFromAmount - -`func (o *TransactRequest) SetFromAmount(v string)` - -SetFromAmount sets FromAmount field to given value. - - -### GetToAmount - -`func (o *TransactRequest) GetToAmount() string` - -GetToAmount returns the ToAmount field if non-nil, zero value otherwise. - -### GetToAmountOk - -`func (o *TransactRequest) GetToAmountOk() (*string, bool)` - -GetToAmountOk returns a tuple with the ToAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetToAmount - -`func (o *TransactRequest) SetToAmount(v string)` - -SetToAmount sets ToAmount field to given value. - - -### GetBeneficiaryPubkey - -`func (o *TransactRequest) GetBeneficiaryPubkey() string` - -GetBeneficiaryPubkey returns the BeneficiaryPubkey field if non-nil, zero value otherwise. - -### GetBeneficiaryPubkeyOk - -`func (o *TransactRequest) GetBeneficiaryPubkeyOk() (*string, bool)` - -GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBeneficiaryPubkey - -`func (o *TransactRequest) SetBeneficiaryPubkey(v string)` - -SetBeneficiaryPubkey sets BeneficiaryPubkey field to given value. - - -### GetOriginatorPubkey - -`func (o *TransactRequest) GetOriginatorPubkey() string` - -GetOriginatorPubkey returns the OriginatorPubkey field if non-nil, zero value otherwise. - -### GetOriginatorPubkeyOk - -`func (o *TransactRequest) GetOriginatorPubkeyOk() (*string, bool)` - -GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOriginatorPubkey - -`func (o *TransactRequest) SetOriginatorPubkey(v string)` - -SetOriginatorPubkey sets OriginatorPubkey field to given value. - - -### GetSourceAsset - -`func (o *TransactRequest) GetSourceAsset() TransactRequestSourceAsset` - -GetSourceAsset returns the SourceAsset field if non-nil, zero value otherwise. - -### GetSourceAssetOk - -`func (o *TransactRequest) GetSourceAssetOk() (*TransactRequestSourceAsset, bool)` - -GetSourceAssetOk returns a tuple with the SourceAsset field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSourceAsset - -`func (o *TransactRequest) SetSourceAsset(v TransactRequestSourceAsset)` - -SetSourceAsset sets SourceAsset field to given value. - - -### GetDestinyAsset - -`func (o *TransactRequest) GetDestinyAsset() TransactRequestSourceAsset` - -GetDestinyAsset returns the DestinyAsset field if non-nil, zero value otherwise. - -### GetDestinyAssetOk - -`func (o *TransactRequest) GetDestinyAssetOk() (*TransactRequestSourceAsset, bool)` - -GetDestinyAssetOk returns a tuple with the DestinyAsset field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDestinyAsset - -`func (o *TransactRequest) SetDestinyAsset(v TransactRequestSourceAsset)` - -SetDestinyAsset sets DestinyAsset field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequestSourceAsset.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequestSourceAsset.md deleted file mode 100644 index 2c1bf0579d..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactRequestSourceAsset.md +++ /dev/null @@ -1,171 +0,0 @@ -# TransactRequestSourceAsset - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Owner** | **string** | | -**Ontology** | **string** | | -**ContractName** | **string** | | -**ContractAddress** | Pointer to **string** | | [optional] -**MspId** | Pointer to **string** | | [optional] -**ChannelName** | Pointer to **string** | | [optional] - -## Methods - -### NewTransactRequestSourceAsset - -`func NewTransactRequestSourceAsset(owner string, ontology string, contractName string, ) *TransactRequestSourceAsset` - -NewTransactRequestSourceAsset instantiates a new TransactRequestSourceAsset object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactRequestSourceAssetWithDefaults - -`func NewTransactRequestSourceAssetWithDefaults() *TransactRequestSourceAsset` - -NewTransactRequestSourceAssetWithDefaults instantiates a new TransactRequestSourceAsset object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetOwner - -`func (o *TransactRequestSourceAsset) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *TransactRequestSourceAsset) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *TransactRequestSourceAsset) SetOwner(v string)` - -SetOwner sets Owner field to given value. - - -### GetOntology - -`func (o *TransactRequestSourceAsset) GetOntology() string` - -GetOntology returns the Ontology field if non-nil, zero value otherwise. - -### GetOntologyOk - -`func (o *TransactRequestSourceAsset) GetOntologyOk() (*string, bool)` - -GetOntologyOk returns a tuple with the Ontology field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOntology - -`func (o *TransactRequestSourceAsset) SetOntology(v string)` - -SetOntology sets Ontology field to given value. - - -### GetContractName - -`func (o *TransactRequestSourceAsset) GetContractName() string` - -GetContractName returns the ContractName field if non-nil, zero value otherwise. - -### GetContractNameOk - -`func (o *TransactRequestSourceAsset) GetContractNameOk() (*string, bool)` - -GetContractNameOk returns a tuple with the ContractName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContractName - -`func (o *TransactRequestSourceAsset) SetContractName(v string)` - -SetContractName sets ContractName field to given value. - - -### GetContractAddress - -`func (o *TransactRequestSourceAsset) GetContractAddress() string` - -GetContractAddress returns the ContractAddress field if non-nil, zero value otherwise. - -### GetContractAddressOk - -`func (o *TransactRequestSourceAsset) GetContractAddressOk() (*string, bool)` - -GetContractAddressOk returns a tuple with the ContractAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContractAddress - -`func (o *TransactRequestSourceAsset) SetContractAddress(v string)` - -SetContractAddress sets ContractAddress field to given value. - -### HasContractAddress - -`func (o *TransactRequestSourceAsset) HasContractAddress() bool` - -HasContractAddress returns a boolean if a field has been set. - -### GetMspId - -`func (o *TransactRequestSourceAsset) GetMspId() string` - -GetMspId returns the MspId field if non-nil, zero value otherwise. - -### GetMspIdOk - -`func (o *TransactRequestSourceAsset) GetMspIdOk() (*string, bool)` - -GetMspIdOk returns a tuple with the MspId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMspId - -`func (o *TransactRequestSourceAsset) SetMspId(v string)` - -SetMspId sets MspId field to given value. - -### HasMspId - -`func (o *TransactRequestSourceAsset) HasMspId() bool` - -HasMspId returns a boolean if a field has been set. - -### GetChannelName - -`func (o *TransactRequestSourceAsset) GetChannelName() string` - -GetChannelName returns the ChannelName field if non-nil, zero value otherwise. - -### GetChannelNameOk - -`func (o *TransactRequestSourceAsset) GetChannelNameOk() (*string, bool)` - -GetChannelNameOk returns a tuple with the ChannelName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChannelName - -`func (o *TransactRequestSourceAsset) SetChannelName(v string)` - -SetChannelName sets ChannelName field to given value. - -### HasChannelName - -`func (o *TransactRequestSourceAsset) HasChannelName() bool` - -HasChannelName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactResponse.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactResponse.md deleted file mode 100644 index 94b680f3bb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# TransactResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionID** | **string** | Unique identifier (UUID) for the session. | -**StatusResponse** | [**Transact200ResponseStatusResponse**](Transact200ResponseStatusResponse.md) | | - -## Methods - -### NewTransactResponse - -`func NewTransactResponse(sessionID string, statusResponse Transact200ResponseStatusResponse, ) *TransactResponse` - -NewTransactResponse instantiates a new TransactResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactResponseWithDefaults - -`func NewTransactResponseWithDefaults() *TransactResponse` - -NewTransactResponseWithDefaults instantiates a new TransactResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSessionID - -`func (o *TransactResponse) GetSessionID() string` - -GetSessionID returns the SessionID field if non-nil, zero value otherwise. - -### GetSessionIDOk - -`func (o *TransactResponse) GetSessionIDOk() (*string, bool)` - -GetSessionIDOk returns a tuple with the SessionID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSessionID - -`func (o *TransactResponse) SetSessionID(v string)` - -SetSessionID sets SessionID field to given value. - - -### GetStatusResponse - -`func (o *TransactResponse) GetStatusResponse() Transact200ResponseStatusResponse` - -GetStatusResponse returns the StatusResponse field if non-nil, zero value otherwise. - -### GetStatusResponseOk - -`func (o *TransactResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool)` - -GetStatusResponseOk returns a tuple with the StatusResponse field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusResponse - -`func (o *TransactResponse) SetStatusResponse(v Transact200ResponseStatusResponse)` - -SetStatusResponse sets StatusResponse field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactionApi.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactionApi.md deleted file mode 100644 index 03466cd9c2..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/docs/TransactionApi.md +++ /dev/null @@ -1,283 +0,0 @@ -# \TransactionApi - -All URIs are relative to *http://localhost:3011/api/v1/@hyperledger/cactus-plugin-satp-hermes* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**Cancel**](TransactionApi.md#Cancel) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/cancel | Cancel a transaction session -[**GetIntegrations**](TransactionApi.md#GetIntegrations) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/integrations | Get supported integrations -[**GetRoutes**](TransactionApi.md#GetRoutes) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/routes | Get a list of routes for a gateway-to-gateway asset transfer -[**Transact**](TransactionApi.md#Transact) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/transact | Submit a transaction intent - - - -## Cancel - -> Cancel200Response Cancel(ctx).CancelRequest(cancelRequest).Execute() - -Cancel a transaction session - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - cancelRequest := *openapiclient.NewCancelRequest("000003e8-e0b8-21ee-ba00-325096b39f47") // CancelRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionApi.Cancel(context.Background()).CancelRequest(cancelRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionApi.Cancel``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Cancel`: Cancel200Response - fmt.Fprintf(os.Stdout, "Response from `TransactionApi.Cancel`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCancelRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cancelRequest** | [**CancelRequest**](CancelRequest.md) | | - -### Return type - -[**Cancel200Response**](Cancel200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetIntegrations - -> []Chains1Inner GetIntegrations(ctx).Execute() - -Get supported integrations - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionApi.GetIntegrations(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionApi.GetIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIntegrations`: []Chains1Inner - fmt.Fprintf(os.Stdout, "Response from `TransactionApi.GetIntegrations`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetIntegrationsRequest struct via the builder pattern - - -### Return type - -[**[]Chains1Inner**](Chains1Inner.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetRoutes - -> GetRoutes200Response GetRoutes(ctx).FromNetworkID(fromNetworkID).FromAmount(fromAmount).FromToken(fromToken).ToDLTNetwork(toDLTNetwork).ToToken(toToken).FromAddress(fromAddress).ToAddress(toAddress).Execute() - -Get a list of routes for a gateway-to-gateway asset transfer - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - fromNetworkID := "fromNetworkID_example" // string | The sending DLT Network. - fromAmount := "1000000000000000000" // string | The amount that should be sent including all decimals. - fromToken := "0x102A0F6D9F0F507288fE1e26740cFaD61184CCC7" // string | The token that should be transferred. Can be the address or the symbol. - toDLTNetwork := "toDLTNetwork_example" // string | The receiving DLT Network. - toToken := "0x102A0F6D9F0F507288fE1e26740cFaD61184CCC7" // string | The token that should be transferred to. Can be the address or the symbol. - fromAddress := "0x102A0F6D9F0F507288fE1e26740cFaD61184CCC7" // string | The sending wallet address. - toAddress := "0x102A0F6D9F0F507288fE1e26740cFaD61184CCC7" // string | The receiving wallet address. If none is provided, the fromAddress will be used. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionApi.GetRoutes(context.Background()).FromNetworkID(fromNetworkID).FromAmount(fromAmount).FromToken(fromToken).ToDLTNetwork(toDLTNetwork).ToToken(toToken).FromAddress(fromAddress).ToAddress(toAddress).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionApi.GetRoutes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoutes`: GetRoutes200Response - fmt.Fprintf(os.Stdout, "Response from `TransactionApi.GetRoutes`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetRoutesRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fromNetworkID** | **string** | The sending DLT Network. | - **fromAmount** | **string** | The amount that should be sent including all decimals. | - **fromToken** | **string** | The token that should be transferred. Can be the address or the symbol. | - **toDLTNetwork** | **string** | The receiving DLT Network. | - **toToken** | **string** | The token that should be transferred to. Can be the address or the symbol. | - **fromAddress** | **string** | The sending wallet address. | - **toAddress** | **string** | The receiving wallet address. If none is provided, the fromAddress will be used. | - -### Return type - -[**GetRoutes200Response**](GetRoutes200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## Transact - -> Transact200Response Transact(ctx).TransactRequest(transactRequest).Execute() - -Submit a transaction intent - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func main() { - transactRequest := *openapiclient.NewTransactRequest("123e4567-e89b-12d3-a456-426614174000", "network1", "network2", "100", "95", "BeneficiaryPubkey_example", "OriginatorPubkey_example", *openapiclient.NewTransactRequestSourceAsset("Owner_example", "Ontology_example", "ContractName_example"), *openapiclient.NewTransactRequestSourceAsset("Owner_example", "Ontology_example", "ContractName_example")) // TransactRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionApi.Transact(context.Background()).TransactRequest(transactRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionApi.Transact``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Transact`: Transact200Response - fmt.Fprintf(os.Stdout, "Response from `TransactionApi.Transact`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiTransactRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **transactRequest** | [**TransactRequest**](TransactRequest.md) | | - -### Return type - -[**Transact200Response**](Transact200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/go.mod b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/go.mod deleted file mode 100644 index 0f12e37626..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/go.mod +++ /dev/null @@ -1,6 +0,0 @@ -module github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated - -go 1.18 - -require ( -) diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_action.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_action.go deleted file mode 100644 index 843bb4ba83..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_action.go +++ /dev/null @@ -1,310 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Action type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Action{} - -// Action struct for Action -type Action struct { - FromToken *GetRoutes200ResponseRoutesInnerFromToken `json:"fromToken,omitempty"` - // The amount of 'fromToken' to be transferred, specified as a string to maintain precision. - FromAmount *string `json:"fromAmount,omitempty"` - ToToken *GetRoutes200ResponseRoutesInnerFromToken `json:"toToken,omitempty"` - // The maximum acceptable difference between the expected price of the 'toToken' and the price at the time of the transfer. - Slippage *float32 `json:"slippage,omitempty"` - // A blockchain address. - FromAddress *string `json:"fromAddress,omitempty"` - // A blockchain address. - ToAddress *string `json:"toAddress,omitempty"` -} - -// NewAction instantiates a new Action object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAction() *Action { - this := Action{} - return &this -} - -// NewActionWithDefaults instantiates a new Action object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewActionWithDefaults() *Action { - this := Action{} - return &this -} - -// GetFromToken returns the FromToken field value if set, zero value otherwise. -func (o *Action) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.FromToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.FromToken -} - -// GetFromTokenOk returns a tuple with the FromToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Action) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.FromToken) { - return nil, false - } - return o.FromToken, true -} - -// HasFromToken returns a boolean if a field has been set. -func (o *Action) HasFromToken() bool { - if o != nil && !IsNil(o.FromToken) { - return true - } - - return false -} - -// SetFromToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the FromToken field. -func (o *Action) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.FromToken = &v -} - -// GetFromAmount returns the FromAmount field value if set, zero value otherwise. -func (o *Action) GetFromAmount() string { - if o == nil || IsNil(o.FromAmount) { - var ret string - return ret - } - return *o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Action) GetFromAmountOk() (*string, bool) { - if o == nil || IsNil(o.FromAmount) { - return nil, false - } - return o.FromAmount, true -} - -// HasFromAmount returns a boolean if a field has been set. -func (o *Action) HasFromAmount() bool { - if o != nil && !IsNil(o.FromAmount) { - return true - } - - return false -} - -// SetFromAmount gets a reference to the given string and assigns it to the FromAmount field. -func (o *Action) SetFromAmount(v string) { - o.FromAmount = &v -} - -// GetToToken returns the ToToken field value if set, zero value otherwise. -func (o *Action) GetToToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.ToToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.ToToken -} - -// GetToTokenOk returns a tuple with the ToToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Action) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.ToToken) { - return nil, false - } - return o.ToToken, true -} - -// HasToToken returns a boolean if a field has been set. -func (o *Action) HasToToken() bool { - if o != nil && !IsNil(o.ToToken) { - return true - } - - return false -} - -// SetToToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the ToToken field. -func (o *Action) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.ToToken = &v -} - -// GetSlippage returns the Slippage field value if set, zero value otherwise. -func (o *Action) GetSlippage() float32 { - if o == nil || IsNil(o.Slippage) { - var ret float32 - return ret - } - return *o.Slippage -} - -// GetSlippageOk returns a tuple with the Slippage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Action) GetSlippageOk() (*float32, bool) { - if o == nil || IsNil(o.Slippage) { - return nil, false - } - return o.Slippage, true -} - -// HasSlippage returns a boolean if a field has been set. -func (o *Action) HasSlippage() bool { - if o != nil && !IsNil(o.Slippage) { - return true - } - - return false -} - -// SetSlippage gets a reference to the given float32 and assigns it to the Slippage field. -func (o *Action) SetSlippage(v float32) { - o.Slippage = &v -} - -// GetFromAddress returns the FromAddress field value if set, zero value otherwise. -func (o *Action) GetFromAddress() string { - if o == nil || IsNil(o.FromAddress) { - var ret string - return ret - } - return *o.FromAddress -} - -// GetFromAddressOk returns a tuple with the FromAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Action) GetFromAddressOk() (*string, bool) { - if o == nil || IsNil(o.FromAddress) { - return nil, false - } - return o.FromAddress, true -} - -// HasFromAddress returns a boolean if a field has been set. -func (o *Action) HasFromAddress() bool { - if o != nil && !IsNil(o.FromAddress) { - return true - } - - return false -} - -// SetFromAddress gets a reference to the given string and assigns it to the FromAddress field. -func (o *Action) SetFromAddress(v string) { - o.FromAddress = &v -} - -// GetToAddress returns the ToAddress field value if set, zero value otherwise. -func (o *Action) GetToAddress() string { - if o == nil || IsNil(o.ToAddress) { - var ret string - return ret - } - return *o.ToAddress -} - -// GetToAddressOk returns a tuple with the ToAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Action) GetToAddressOk() (*string, bool) { - if o == nil || IsNil(o.ToAddress) { - return nil, false - } - return o.ToAddress, true -} - -// HasToAddress returns a boolean if a field has been set. -func (o *Action) HasToAddress() bool { - if o != nil && !IsNil(o.ToAddress) { - return true - } - - return false -} - -// SetToAddress gets a reference to the given string and assigns it to the ToAddress field. -func (o *Action) SetToAddress(v string) { - o.ToAddress = &v -} - -func (o Action) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Action) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.FromToken) { - toSerialize["fromToken"] = o.FromToken - } - if !IsNil(o.FromAmount) { - toSerialize["fromAmount"] = o.FromAmount - } - if !IsNil(o.ToToken) { - toSerialize["toToken"] = o.ToToken - } - if !IsNil(o.Slippage) { - toSerialize["slippage"] = o.Slippage - } - if !IsNil(o.FromAddress) { - toSerialize["fromAddress"] = o.FromAddress - } - if !IsNil(o.ToAddress) { - toSerialize["toAddress"] = o.ToAddress - } - return toSerialize, nil -} - -type NullableAction struct { - value *Action - isSet bool -} - -func (v NullableAction) Get() *Action { - return v.value -} - -func (v *NullableAction) Set(val *Action) { - v.value = val - v.isSet = true -} - -func (v NullableAction) IsSet() bool { - return v.isSet -} - -func (v *NullableAction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAction(val *Action) *NullableAction { - return &NullableAction{value: val, isSet: true} -} - -func (v NullableAction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_asset.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_asset.go deleted file mode 100644 index 40c45a69fe..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_asset.go +++ /dev/null @@ -1,279 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Asset type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Asset{} - -// Asset An asset -type Asset struct { - Owner string `json:"owner"` - Ontology string `json:"ontology"` - ContractName string `json:"contractName"` - ContractAddress *string `json:"contractAddress,omitempty"` - MspId *string `json:"mspId,omitempty"` - ChannelName *string `json:"channelName,omitempty"` -} - -// NewAsset instantiates a new Asset object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAsset(owner string, ontology string, contractName string) *Asset { - this := Asset{} - this.Owner = owner - this.Ontology = ontology - this.ContractName = contractName - return &this -} - -// NewAssetWithDefaults instantiates a new Asset object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAssetWithDefaults() *Asset { - this := Asset{} - return &this -} - -// GetOwner returns the Owner field value -func (o *Asset) GetOwner() string { - if o == nil { - var ret string - return ret - } - - return o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value -// and a boolean to check if the value has been set. -func (o *Asset) GetOwnerOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Owner, true -} - -// SetOwner sets field value -func (o *Asset) SetOwner(v string) { - o.Owner = v -} - -// GetOntology returns the Ontology field value -func (o *Asset) GetOntology() string { - if o == nil { - var ret string - return ret - } - - return o.Ontology -} - -// GetOntologyOk returns a tuple with the Ontology field value -// and a boolean to check if the value has been set. -func (o *Asset) GetOntologyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Ontology, true -} - -// SetOntology sets field value -func (o *Asset) SetOntology(v string) { - o.Ontology = v -} - -// GetContractName returns the ContractName field value -func (o *Asset) GetContractName() string { - if o == nil { - var ret string - return ret - } - - return o.ContractName -} - -// GetContractNameOk returns a tuple with the ContractName field value -// and a boolean to check if the value has been set. -func (o *Asset) GetContractNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ContractName, true -} - -// SetContractName sets field value -func (o *Asset) SetContractName(v string) { - o.ContractName = v -} - -// GetContractAddress returns the ContractAddress field value if set, zero value otherwise. -func (o *Asset) GetContractAddress() string { - if o == nil || IsNil(o.ContractAddress) { - var ret string - return ret - } - return *o.ContractAddress -} - -// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Asset) GetContractAddressOk() (*string, bool) { - if o == nil || IsNil(o.ContractAddress) { - return nil, false - } - return o.ContractAddress, true -} - -// HasContractAddress returns a boolean if a field has been set. -func (o *Asset) HasContractAddress() bool { - if o != nil && !IsNil(o.ContractAddress) { - return true - } - - return false -} - -// SetContractAddress gets a reference to the given string and assigns it to the ContractAddress field. -func (o *Asset) SetContractAddress(v string) { - o.ContractAddress = &v -} - -// GetMspId returns the MspId field value if set, zero value otherwise. -func (o *Asset) GetMspId() string { - if o == nil || IsNil(o.MspId) { - var ret string - return ret - } - return *o.MspId -} - -// GetMspIdOk returns a tuple with the MspId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Asset) GetMspIdOk() (*string, bool) { - if o == nil || IsNil(o.MspId) { - return nil, false - } - return o.MspId, true -} - -// HasMspId returns a boolean if a field has been set. -func (o *Asset) HasMspId() bool { - if o != nil && !IsNil(o.MspId) { - return true - } - - return false -} - -// SetMspId gets a reference to the given string and assigns it to the MspId field. -func (o *Asset) SetMspId(v string) { - o.MspId = &v -} - -// GetChannelName returns the ChannelName field value if set, zero value otherwise. -func (o *Asset) GetChannelName() string { - if o == nil || IsNil(o.ChannelName) { - var ret string - return ret - } - return *o.ChannelName -} - -// GetChannelNameOk returns a tuple with the ChannelName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Asset) GetChannelNameOk() (*string, bool) { - if o == nil || IsNil(o.ChannelName) { - return nil, false - } - return o.ChannelName, true -} - -// HasChannelName returns a boolean if a field has been set. -func (o *Asset) HasChannelName() bool { - if o != nil && !IsNil(o.ChannelName) { - return true - } - - return false -} - -// SetChannelName gets a reference to the given string and assigns it to the ChannelName field. -func (o *Asset) SetChannelName(v string) { - o.ChannelName = &v -} - -func (o Asset) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Asset) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["owner"] = o.Owner - toSerialize["ontology"] = o.Ontology - toSerialize["contractName"] = o.ContractName - if !IsNil(o.ContractAddress) { - toSerialize["contractAddress"] = o.ContractAddress - } - if !IsNil(o.MspId) { - toSerialize["mspId"] = o.MspId - } - if !IsNil(o.ChannelName) { - toSerialize["channelName"] = o.ChannelName - } - return toSerialize, nil -} - -type NullableAsset struct { - value *Asset - isSet bool -} - -func (v NullableAsset) Get() *Asset { - return v.value -} - -func (v *NullableAsset) Set(val *Asset) { - v.value = val - v.isSet = true -} - -func (v NullableAsset) IsSet() bool { - return v.isSet -} - -func (v *NullableAsset) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAsset(val *Asset) *NullableAsset { - return &NullableAsset{value: val, isSet: true} -} - -func (v NullableAsset) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAsset) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_jwt_claim.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_jwt_claim.go deleted file mode 100644 index f4678b2f82..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_jwt_claim.go +++ /dev/null @@ -1,109 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "fmt" -) - -// AuthzJwtClaim Stores global constants related to the authorization of the application. Specifically enumerates the claims to validate for as per RFC 7519, section 4.1. See: https://tools.ietf.org/html/rfc7519#section-4.1 -type AuthzJwtClaim string - -// List of AuthzJwtClaim -const ( - iss AuthzJwtClaim = "Hyperledger Labs - Carbon Accounting Tool" -) - -// All allowed values of AuthzJwtClaim enum -var AllowedAuthzJwtClaimEnumValues = []AuthzJwtClaim{ - "Hyperledger Labs - Carbon Accounting Tool", -} - -func (v *AuthzJwtClaim) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := AuthzJwtClaim(value) - for _, existing := range AllowedAuthzJwtClaimEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid AuthzJwtClaim", value) -} - -// NewAuthzJwtClaimFromValue returns a pointer to a valid AuthzJwtClaim -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewAuthzJwtClaimFromValue(v string) (*AuthzJwtClaim, error) { - ev := AuthzJwtClaim(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for AuthzJwtClaim: valid values are %v", v, AllowedAuthzJwtClaimEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v AuthzJwtClaim) IsValid() bool { - for _, existing := range AllowedAuthzJwtClaimEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to AuthzJwtClaim value -func (v AuthzJwtClaim) Ptr() *AuthzJwtClaim { - return &v -} - -type NullableAuthzJwtClaim struct { - value *AuthzJwtClaim - isSet bool -} - -func (v NullableAuthzJwtClaim) Get() *AuthzJwtClaim { - return v.value -} - -func (v *NullableAuthzJwtClaim) Set(val *AuthzJwtClaim) { - v.value = val - v.isSet = true -} - -func (v NullableAuthzJwtClaim) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthzJwtClaim) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthzJwtClaim(val *AuthzJwtClaim) *NullableAuthzJwtClaim { - return &NullableAuthzJwtClaim{value: val, isSet: true} -} - -func (v NullableAuthzJwtClaim) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAuthzJwtClaim) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_scope.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_scope.go deleted file mode 100644 index 598e3de1d5..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_authz_scope.go +++ /dev/null @@ -1,111 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "fmt" -) - -// AuthzScope the model 'AuthzScope' -type AuthzScope string - -// List of AuthzScope -const ( - GroupAdmin AuthzScope = "group:admin" - GroupUser AuthzScope = "group:user" -) - -// All allowed values of AuthzScope enum -var AllowedAuthzScopeEnumValues = []AuthzScope{ - "group:admin", - "group:user", -} - -func (v *AuthzScope) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := AuthzScope(value) - for _, existing := range AllowedAuthzScopeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid AuthzScope", value) -} - -// NewAuthzScopeFromValue returns a pointer to a valid AuthzScope -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewAuthzScopeFromValue(v string) (*AuthzScope, error) { - ev := AuthzScope(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for AuthzScope: valid values are %v", v, AllowedAuthzScopeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v AuthzScope) IsValid() bool { - for _, existing := range AllowedAuthzScopeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to AuthzScope value -func (v AuthzScope) Ptr() *AuthzScope { - return &v -} - -type NullableAuthzScope struct { - value *AuthzScope - isSet bool -} - -func (v NullableAuthzScope) Get() *AuthzScope { - return v.value -} - -func (v *NullableAuthzScope) Set(val *AuthzScope) { - v.value = val - v.isSet = true -} - -func (v NullableAuthzScope) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthzScope) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthzScope(val *AuthzScope) *NullableAuthzScope { - return &NullableAuthzScope{value: val, isSet: true} -} - -func (v NullableAuthzScope) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAuthzScope) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_bridge_info.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_bridge_info.go deleted file mode 100644 index d92106add6..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_bridge_info.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the BridgeInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BridgeInfo{} - -// BridgeInfo Information about the bridge used for the token transfer. -type BridgeInfo struct { - // The address of the token being transferred. - TokenAddress *string `json:"tokenAddress,omitempty"` -} - -// NewBridgeInfo instantiates a new BridgeInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBridgeInfo() *BridgeInfo { - this := BridgeInfo{} - return &this -} - -// NewBridgeInfoWithDefaults instantiates a new BridgeInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBridgeInfoWithDefaults() *BridgeInfo { - this := BridgeInfo{} - return &this -} - -// GetTokenAddress returns the TokenAddress field value if set, zero value otherwise. -func (o *BridgeInfo) GetTokenAddress() string { - if o == nil || IsNil(o.TokenAddress) { - var ret string - return ret - } - return *o.TokenAddress -} - -// GetTokenAddressOk returns a tuple with the TokenAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BridgeInfo) GetTokenAddressOk() (*string, bool) { - if o == nil || IsNil(o.TokenAddress) { - return nil, false - } - return o.TokenAddress, true -} - -// HasTokenAddress returns a boolean if a field has been set. -func (o *BridgeInfo) HasTokenAddress() bool { - if o != nil && !IsNil(o.TokenAddress) { - return true - } - - return false -} - -// SetTokenAddress gets a reference to the given string and assigns it to the TokenAddress field. -func (o *BridgeInfo) SetTokenAddress(v string) { - o.TokenAddress = &v -} - -func (o BridgeInfo) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BridgeInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.TokenAddress) { - toSerialize["tokenAddress"] = o.TokenAddress - } - return toSerialize, nil -} - -type NullableBridgeInfo struct { - value *BridgeInfo - isSet bool -} - -func (v NullableBridgeInfo) Get() *BridgeInfo { - return v.value -} - -func (v *NullableBridgeInfo) Set(val *BridgeInfo) { - v.value = val - v.isSet = true -} - -func (v NullableBridgeInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableBridgeInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBridgeInfo(val *BridgeInfo) *NullableBridgeInfo { - return &NullableBridgeInfo{value: val, isSet: true} -} - -func (v NullableBridgeInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBridgeInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_200_response.go deleted file mode 100644 index 3f4a06dde0..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_200_response.go +++ /dev/null @@ -1,145 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Cancel200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Cancel200Response{} - -// Cancel200Response Response for a cancel transaction request. Indicates whether the cancel action was successful and includes the current session status. -type Cancel200Response struct { - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` - // Indicates whether the cancel operation was successful. - CancelSuccessful bool `json:"cancelSuccessful"` -} - -// NewCancel200Response instantiates a new Cancel200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCancel200Response(statusResponse Transact200ResponseStatusResponse, cancelSuccessful bool) *Cancel200Response { - this := Cancel200Response{} - this.StatusResponse = statusResponse - this.CancelSuccessful = cancelSuccessful - return &this -} - -// NewCancel200ResponseWithDefaults instantiates a new Cancel200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCancel200ResponseWithDefaults() *Cancel200Response { - this := Cancel200Response{} - return &this -} - -// GetStatusResponse returns the StatusResponse field value -func (o *Cancel200Response) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *Cancel200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *Cancel200Response) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -// GetCancelSuccessful returns the CancelSuccessful field value -func (o *Cancel200Response) GetCancelSuccessful() bool { - if o == nil { - var ret bool - return ret - } - - return o.CancelSuccessful -} - -// GetCancelSuccessfulOk returns a tuple with the CancelSuccessful field value -// and a boolean to check if the value has been set. -func (o *Cancel200Response) GetCancelSuccessfulOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.CancelSuccessful, true -} - -// SetCancelSuccessful sets field value -func (o *Cancel200Response) SetCancelSuccessful(v bool) { - o.CancelSuccessful = v -} - -func (o Cancel200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Cancel200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusResponse"] = o.StatusResponse - toSerialize["cancelSuccessful"] = o.CancelSuccessful - return toSerialize, nil -} - -type NullableCancel200Response struct { - value *Cancel200Response - isSet bool -} - -func (v NullableCancel200Response) Get() *Cancel200Response { - return v.value -} - -func (v *NullableCancel200Response) Set(val *Cancel200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCancel200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCancel200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCancel200Response(val *Cancel200Response) *NullableCancel200Response { - return &NullableCancel200Response{value: val, isSet: true} -} - -func (v NullableCancel200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCancel200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_request.go deleted file mode 100644 index 87e6e244be..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_request.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the CancelRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CancelRequest{} - -// CancelRequest Request to cancel an ongoing transaction session, identified by the session ID. -type CancelRequest struct { - // Unique identifier (UUID) for the session. - SessionID string `json:"sessionID"` -} - -// NewCancelRequest instantiates a new CancelRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCancelRequest(sessionID string) *CancelRequest { - this := CancelRequest{} - this.SessionID = sessionID - return &this -} - -// NewCancelRequestWithDefaults instantiates a new CancelRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCancelRequestWithDefaults() *CancelRequest { - this := CancelRequest{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *CancelRequest) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *CancelRequest) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *CancelRequest) SetSessionID(v string) { - o.SessionID = v -} - -func (o CancelRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CancelRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - return toSerialize, nil -} - -type NullableCancelRequest struct { - value *CancelRequest - isSet bool -} - -func (v NullableCancelRequest) Get() *CancelRequest { - return v.value -} - -func (v *NullableCancelRequest) Set(val *CancelRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCancelRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCancelRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCancelRequest(val *CancelRequest) *NullableCancelRequest { - return &NullableCancelRequest{value: val, isSet: true} -} - -func (v NullableCancelRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCancelRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_response.go deleted file mode 100644 index e5c960e37a..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_cancel_response.go +++ /dev/null @@ -1,145 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the CancelResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CancelResponse{} - -// CancelResponse Response for a cancel transaction request. Indicates whether the cancel action was successful and includes the current session status. -type CancelResponse struct { - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` - // Indicates whether the cancel operation was successful. - CancelSuccessful bool `json:"cancelSuccessful"` -} - -// NewCancelResponse instantiates a new CancelResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCancelResponse(statusResponse Transact200ResponseStatusResponse, cancelSuccessful bool) *CancelResponse { - this := CancelResponse{} - this.StatusResponse = statusResponse - this.CancelSuccessful = cancelSuccessful - return &this -} - -// NewCancelResponseWithDefaults instantiates a new CancelResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCancelResponseWithDefaults() *CancelResponse { - this := CancelResponse{} - return &this -} - -// GetStatusResponse returns the StatusResponse field value -func (o *CancelResponse) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *CancelResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *CancelResponse) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -// GetCancelSuccessful returns the CancelSuccessful field value -func (o *CancelResponse) GetCancelSuccessful() bool { - if o == nil { - var ret bool - return ret - } - - return o.CancelSuccessful -} - -// GetCancelSuccessfulOk returns a tuple with the CancelSuccessful field value -// and a boolean to check if the value has been set. -func (o *CancelResponse) GetCancelSuccessfulOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.CancelSuccessful, true -} - -// SetCancelSuccessful sets field value -func (o *CancelResponse) SetCancelSuccessful(v bool) { - o.CancelSuccessful = v -} - -func (o CancelResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CancelResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusResponse"] = o.StatusResponse - toSerialize["cancelSuccessful"] = o.CancelSuccessful - return toSerialize, nil -} - -type NullableCancelResponse struct { - value *CancelResponse - isSet bool -} - -func (v NullableCancelResponse) Get() *CancelResponse { - return v.value -} - -func (v *NullableCancelResponse) Set(val *CancelResponse) { - v.value = val - v.isSet = true -} - -func (v NullableCancelResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableCancelResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCancelResponse(val *CancelResponse) *NullableCancelResponse { - return &NullableCancelResponse{value: val, isSet: true} -} - -func (v NullableCancelResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCancelResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chain.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chain.go deleted file mode 100644 index f2e7079574..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chain.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Chain type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Chain{} - -// Chain struct for Chain -type Chain struct { - // A unique identifier for the blockchain network. - ChainId string `json:"chainId"` - // The name of the blockchain network. - ChainName string `json:"chainName"` - // The type of blockchain network (e.g., 'evm', 'fabric'). - ChainType string `json:"chainType"` - // The specific network name within the blockchain (e.g., 'mainnet', 'testnet'). - NetworkName string `json:"networkName"` -} - -// NewChain instantiates a new Chain object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewChain(chainId string, chainName string, chainType string, networkName string) *Chain { - this := Chain{} - this.ChainId = chainId - this.ChainName = chainName - this.ChainType = chainType - this.NetworkName = networkName - return &this -} - -// NewChainWithDefaults instantiates a new Chain object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewChainWithDefaults() *Chain { - this := Chain{} - return &this -} - -// GetChainId returns the ChainId field value -func (o *Chain) GetChainId() string { - if o == nil { - var ret string - return ret - } - - return o.ChainId -} - -// GetChainIdOk returns a tuple with the ChainId field value -// and a boolean to check if the value has been set. -func (o *Chain) GetChainIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainId, true -} - -// SetChainId sets field value -func (o *Chain) SetChainId(v string) { - o.ChainId = v -} - -// GetChainName returns the ChainName field value -func (o *Chain) GetChainName() string { - if o == nil { - var ret string - return ret - } - - return o.ChainName -} - -// GetChainNameOk returns a tuple with the ChainName field value -// and a boolean to check if the value has been set. -func (o *Chain) GetChainNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainName, true -} - -// SetChainName sets field value -func (o *Chain) SetChainName(v string) { - o.ChainName = v -} - -// GetChainType returns the ChainType field value -func (o *Chain) GetChainType() string { - if o == nil { - var ret string - return ret - } - - return o.ChainType -} - -// GetChainTypeOk returns a tuple with the ChainType field value -// and a boolean to check if the value has been set. -func (o *Chain) GetChainTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainType, true -} - -// SetChainType sets field value -func (o *Chain) SetChainType(v string) { - o.ChainType = v -} - -// GetNetworkName returns the NetworkName field value -func (o *Chain) GetNetworkName() string { - if o == nil { - var ret string - return ret - } - - return o.NetworkName -} - -// GetNetworkNameOk returns a tuple with the NetworkName field value -// and a boolean to check if the value has been set. -func (o *Chain) GetNetworkNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.NetworkName, true -} - -// SetNetworkName sets field value -func (o *Chain) SetNetworkName(v string) { - o.NetworkName = v -} - -func (o Chain) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Chain) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["chainId"] = o.ChainId - toSerialize["chainName"] = o.ChainName - toSerialize["chainType"] = o.ChainType - toSerialize["networkName"] = o.NetworkName - return toSerialize, nil -} - -type NullableChain struct { - value *Chain - isSet bool -} - -func (v NullableChain) Get() *Chain { - return v.value -} - -func (v *NullableChain) Set(val *Chain) { - v.value = val - v.isSet = true -} - -func (v NullableChain) IsSet() bool { - return v.isSet -} - -func (v *NullableChain) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableChain(val *Chain) *NullableChain { - return &NullableChain{value: val, isSet: true} -} - -func (v NullableChain) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableChain) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chains_1_inner.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chains_1_inner.go deleted file mode 100644 index 49d8379190..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_chains_1_inner.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Chains1Inner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Chains1Inner{} - -// Chains1Inner struct for Chains1Inner -type Chains1Inner struct { - // A unique identifier for the blockchain network. - ChainId string `json:"chainId"` - // The name of the blockchain network. - ChainName string `json:"chainName"` - // The type of blockchain network (e.g., 'evm', 'fabric'). - ChainType string `json:"chainType"` - // The specific network name within the blockchain (e.g., 'mainnet', 'testnet'). - NetworkName string `json:"networkName"` -} - -// NewChains1Inner instantiates a new Chains1Inner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewChains1Inner(chainId string, chainName string, chainType string, networkName string) *Chains1Inner { - this := Chains1Inner{} - this.ChainId = chainId - this.ChainName = chainName - this.ChainType = chainType - this.NetworkName = networkName - return &this -} - -// NewChains1InnerWithDefaults instantiates a new Chains1Inner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewChains1InnerWithDefaults() *Chains1Inner { - this := Chains1Inner{} - return &this -} - -// GetChainId returns the ChainId field value -func (o *Chains1Inner) GetChainId() string { - if o == nil { - var ret string - return ret - } - - return o.ChainId -} - -// GetChainIdOk returns a tuple with the ChainId field value -// and a boolean to check if the value has been set. -func (o *Chains1Inner) GetChainIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainId, true -} - -// SetChainId sets field value -func (o *Chains1Inner) SetChainId(v string) { - o.ChainId = v -} - -// GetChainName returns the ChainName field value -func (o *Chains1Inner) GetChainName() string { - if o == nil { - var ret string - return ret - } - - return o.ChainName -} - -// GetChainNameOk returns a tuple with the ChainName field value -// and a boolean to check if the value has been set. -func (o *Chains1Inner) GetChainNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainName, true -} - -// SetChainName sets field value -func (o *Chains1Inner) SetChainName(v string) { - o.ChainName = v -} - -// GetChainType returns the ChainType field value -func (o *Chains1Inner) GetChainType() string { - if o == nil { - var ret string - return ret - } - - return o.ChainType -} - -// GetChainTypeOk returns a tuple with the ChainType field value -// and a boolean to check if the value has been set. -func (o *Chains1Inner) GetChainTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainType, true -} - -// SetChainType sets field value -func (o *Chains1Inner) SetChainType(v string) { - o.ChainType = v -} - -// GetNetworkName returns the NetworkName field value -func (o *Chains1Inner) GetNetworkName() string { - if o == nil { - var ret string - return ret - } - - return o.NetworkName -} - -// GetNetworkNameOk returns a tuple with the NetworkName field value -// and a boolean to check if the value has been set. -func (o *Chains1Inner) GetNetworkNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.NetworkName, true -} - -// SetNetworkName sets field value -func (o *Chains1Inner) SetNetworkName(v string) { - o.NetworkName = v -} - -func (o Chains1Inner) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Chains1Inner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["chainId"] = o.ChainId - toSerialize["chainName"] = o.ChainName - toSerialize["chainType"] = o.ChainType - toSerialize["networkName"] = o.NetworkName - return toSerialize, nil -} - -type NullableChains1Inner struct { - value *Chains1Inner - isSet bool -} - -func (v NullableChains1Inner) Get() *Chains1Inner { - return v.value -} - -func (v *NullableChains1Inner) Set(val *Chains1Inner) { - v.value = val - v.isSet = true -} - -func (v NullableChains1Inner) IsSet() bool { - return v.isSet -} - -func (v *NullableChains1Inner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableChains1Inner(val *Chains1Inner) *NullableChains1Inner { - return &NullableChains1Inner{value: val, isSet: true} -} - -func (v NullableChains1Inner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableChains1Inner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_200_response.go deleted file mode 100644 index d9bea245da..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_200_response.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Continue200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Continue200Response{} - -// Continue200Response Response schema for a continue request, returning the status of the SATP session. -type Continue200Response struct { - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` -} - -// NewContinue200Response instantiates a new Continue200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewContinue200Response(statusResponse Transact200ResponseStatusResponse) *Continue200Response { - this := Continue200Response{} - this.StatusResponse = statusResponse - return &this -} - -// NewContinue200ResponseWithDefaults instantiates a new Continue200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewContinue200ResponseWithDefaults() *Continue200Response { - this := Continue200Response{} - return &this -} - -// GetStatusResponse returns the StatusResponse field value -func (o *Continue200Response) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *Continue200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *Continue200Response) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -func (o Continue200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Continue200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusResponse"] = o.StatusResponse - return toSerialize, nil -} - -type NullableContinue200Response struct { - value *Continue200Response - isSet bool -} - -func (v NullableContinue200Response) Get() *Continue200Response { - return v.value -} - -func (v *NullableContinue200Response) Set(val *Continue200Response) { - v.value = val - v.isSet = true -} - -func (v NullableContinue200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableContinue200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableContinue200Response(val *Continue200Response) *NullableContinue200Response { - return &NullableContinue200Response{value: val, isSet: true} -} - -func (v NullableContinue200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableContinue200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_request.go deleted file mode 100644 index 672169e029..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_request.go +++ /dev/null @@ -1,146 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the ContinueRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ContinueRequest{} - -// ContinueRequest Schema for a request to continue a paused transaction session. -type ContinueRequest struct { - // A unique identifier for the transaction session to be continued. - SessionId string `json:"sessionId"` - // A unique identifier for the transaction context. - ContextId string `json:"contextId"` -} - -// NewContinueRequest instantiates a new ContinueRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewContinueRequest(sessionId string, contextId string) *ContinueRequest { - this := ContinueRequest{} - this.SessionId = sessionId - this.ContextId = contextId - return &this -} - -// NewContinueRequestWithDefaults instantiates a new ContinueRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewContinueRequestWithDefaults() *ContinueRequest { - this := ContinueRequest{} - return &this -} - -// GetSessionId returns the SessionId field value -func (o *ContinueRequest) GetSessionId() string { - if o == nil { - var ret string - return ret - } - - return o.SessionId -} - -// GetSessionIdOk returns a tuple with the SessionId field value -// and a boolean to check if the value has been set. -func (o *ContinueRequest) GetSessionIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionId, true -} - -// SetSessionId sets field value -func (o *ContinueRequest) SetSessionId(v string) { - o.SessionId = v -} - -// GetContextId returns the ContextId field value -func (o *ContinueRequest) GetContextId() string { - if o == nil { - var ret string - return ret - } - - return o.ContextId -} - -// GetContextIdOk returns a tuple with the ContextId field value -// and a boolean to check if the value has been set. -func (o *ContinueRequest) GetContextIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ContextId, true -} - -// SetContextId sets field value -func (o *ContinueRequest) SetContextId(v string) { - o.ContextId = v -} - -func (o ContinueRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ContinueRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionId"] = o.SessionId - toSerialize["contextId"] = o.ContextId - return toSerialize, nil -} - -type NullableContinueRequest struct { - value *ContinueRequest - isSet bool -} - -func (v NullableContinueRequest) Get() *ContinueRequest { - return v.value -} - -func (v *NullableContinueRequest) Set(val *ContinueRequest) { - v.value = val - v.isSet = true -} - -func (v NullableContinueRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableContinueRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableContinueRequest(val *ContinueRequest) *NullableContinueRequest { - return &NullableContinueRequest{value: val, isSet: true} -} - -func (v NullableContinueRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableContinueRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_response.go deleted file mode 100644 index 74f3b5d9d5..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_continue_response.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the ContinueResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ContinueResponse{} - -// ContinueResponse Response schema for a continue request, returning the status of the SATP session. -type ContinueResponse struct { - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` -} - -// NewContinueResponse instantiates a new ContinueResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewContinueResponse(statusResponse Transact200ResponseStatusResponse) *ContinueResponse { - this := ContinueResponse{} - this.StatusResponse = statusResponse - return &this -} - -// NewContinueResponseWithDefaults instantiates a new ContinueResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewContinueResponseWithDefaults() *ContinueResponse { - this := ContinueResponse{} - return &this -} - -// GetStatusResponse returns the StatusResponse field value -func (o *ContinueResponse) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *ContinueResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *ContinueResponse) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -func (o ContinueResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ContinueResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusResponse"] = o.StatusResponse - return toSerialize, nil -} - -type NullableContinueResponse struct { - value *ContinueResponse - isSet bool -} - -func (v NullableContinueResponse) Get() *ContinueResponse { - return v.value -} - -func (v *NullableContinueResponse) Set(val *ContinueResponse) { - v.value = val - v.isSet = true -} - -func (v NullableContinueResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableContinueResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableContinueResponse(val *ContinueResponse) *NullableContinueResponse { - return &NullableContinueResponse{value: val, isSet: true} -} - -func (v NullableContinueResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableContinueResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_credential_profile.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_credential_profile.go deleted file mode 100644 index b6226e4217..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_credential_profile.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "fmt" -) - -// CredentialProfile the model 'CredentialProfile' -type CredentialProfile string - -// List of CredentialProfile -const ( - SAML CredentialProfile = "SAML" - OAUTH CredentialProfile = "OAUTH" - X509 CredentialProfile = "X509" -) - -// All allowed values of CredentialProfile enum -var AllowedCredentialProfileEnumValues = []CredentialProfile{ - "SAML", - "OAUTH", - "X509", -} - -func (v *CredentialProfile) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := CredentialProfile(value) - for _, existing := range AllowedCredentialProfileEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid CredentialProfile", value) -} - -// NewCredentialProfileFromValue returns a pointer to a valid CredentialProfile -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewCredentialProfileFromValue(v string) (*CredentialProfile, error) { - ev := CredentialProfile(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for CredentialProfile: valid values are %v", v, AllowedCredentialProfileEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v CredentialProfile) IsValid() bool { - for _, existing := range AllowedCredentialProfileEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to CredentialProfile value -func (v CredentialProfile) Ptr() *CredentialProfile { - return &v -} - -type NullableCredentialProfile struct { - value *CredentialProfile - isSet bool -} - -func (v NullableCredentialProfile) Get() *CredentialProfile { - return v.value -} - -func (v *NullableCredentialProfile) Set(val *CredentialProfile) { - v.value = val - v.isSet = true -} - -func (v NullableCredentialProfile) IsSet() bool { - return v.isSet -} - -func (v *NullableCredentialProfile) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCredentialProfile(val *CredentialProfile) *NullableCredentialProfile { - return &NullableCredentialProfile{value: val, isSet: true} -} - -func (v NullableCredentialProfile) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCredentialProfile) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_dlt_protocol.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_dlt_protocol.go deleted file mode 100644 index 10e52a3a8e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_dlt_protocol.go +++ /dev/null @@ -1,111 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "fmt" -) - -// DLTProtocol Supported DLT protocols. -type DLTProtocol string - -// List of DLTProtocol -const ( - HYPERLEDGER_FABRIC DLTProtocol = "HyperledgerFabric" - HYPERLEDGER_BESU DLTProtocol = "HyperledgerBesu" -) - -// All allowed values of DLTProtocol enum -var AllowedDLTProtocolEnumValues = []DLTProtocol{ - "HyperledgerFabric", - "HyperledgerBesu", -} - -func (v *DLTProtocol) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := DLTProtocol(value) - for _, existing := range AllowedDLTProtocolEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid DLTProtocol", value) -} - -// NewDLTProtocolFromValue returns a pointer to a valid DLTProtocol -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewDLTProtocolFromValue(v string) (*DLTProtocol, error) { - ev := DLTProtocol(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for DLTProtocol: valid values are %v", v, AllowedDLTProtocolEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v DLTProtocol) IsValid() bool { - for _, existing := range AllowedDLTProtocolEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to DLTProtocol value -func (v DLTProtocol) Ptr() *DLTProtocol { - return &v -} - -type NullableDLTProtocol struct { - value *DLTProtocol - isSet bool -} - -func (v NullableDLTProtocol) Get() *DLTProtocol { - return v.value -} - -func (v *NullableDLTProtocol) Set(val *DLTProtocol) { - v.value = val - v.isSet = true -} - -func (v NullableDLTProtocol) IsSet() bool { - return v.isSet -} - -func (v *NullableDLTProtocol) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDLTProtocol(val *DLTProtocol) *NullableDLTProtocol { - return &NullableDLTProtocol{value: val, isSet: true} -} - -func (v NullableDLTProtocol) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDLTProtocol) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_estimate.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_estimate.go deleted file mode 100644 index 6f6e4a4a37..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_estimate.go +++ /dev/null @@ -1,460 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Estimate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Estimate{} - -// Estimate Provides an estimation for a transaction, including costs, amounts, and execution duration. -type Estimate struct { - // A blockchain address. - ApprovalAddress *string `json:"approvalAddress,omitempty"` - // The amount in string format including all decimals. - ToAmountMin *string `json:"toAmountMin,omitempty"` - // The amount in string format including all decimals. - ToAmount *string `json:"toAmount,omitempty"` - // The amount in string format including all decimals. - FromAmount *string `json:"fromAmount,omitempty"` - // A collection of fee costs associated with the transaction. - FeeCosts []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner `json:"feeCosts,omitempty"` - // A collection of estimated gas costs for executing the transaction. - GasCosts []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner `json:"gasCosts,omitempty"` - // The estimated duration for the transaction execution in seconds. - ExecutionDuration *int32 `json:"executionDuration,omitempty"` - // The amount in string format including all decimals. - FromAmountUSD *string `json:"fromAmountUSD,omitempty"` - // The amount in string format including all decimals. - ToAmountUSD *string `json:"toAmountUSD,omitempty"` - // The tool or service used to generate this estimate. - Tool *string `json:"tool,omitempty"` -} - -// NewEstimate instantiates a new Estimate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewEstimate() *Estimate { - this := Estimate{} - return &this -} - -// NewEstimateWithDefaults instantiates a new Estimate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewEstimateWithDefaults() *Estimate { - this := Estimate{} - return &this -} - -// GetApprovalAddress returns the ApprovalAddress field value if set, zero value otherwise. -func (o *Estimate) GetApprovalAddress() string { - if o == nil || IsNil(o.ApprovalAddress) { - var ret string - return ret - } - return *o.ApprovalAddress -} - -// GetApprovalAddressOk returns a tuple with the ApprovalAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetApprovalAddressOk() (*string, bool) { - if o == nil || IsNil(o.ApprovalAddress) { - return nil, false - } - return o.ApprovalAddress, true -} - -// HasApprovalAddress returns a boolean if a field has been set. -func (o *Estimate) HasApprovalAddress() bool { - if o != nil && !IsNil(o.ApprovalAddress) { - return true - } - - return false -} - -// SetApprovalAddress gets a reference to the given string and assigns it to the ApprovalAddress field. -func (o *Estimate) SetApprovalAddress(v string) { - o.ApprovalAddress = &v -} - -// GetToAmountMin returns the ToAmountMin field value if set, zero value otherwise. -func (o *Estimate) GetToAmountMin() string { - if o == nil || IsNil(o.ToAmountMin) { - var ret string - return ret - } - return *o.ToAmountMin -} - -// GetToAmountMinOk returns a tuple with the ToAmountMin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetToAmountMinOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountMin) { - return nil, false - } - return o.ToAmountMin, true -} - -// HasToAmountMin returns a boolean if a field has been set. -func (o *Estimate) HasToAmountMin() bool { - if o != nil && !IsNil(o.ToAmountMin) { - return true - } - - return false -} - -// SetToAmountMin gets a reference to the given string and assigns it to the ToAmountMin field. -func (o *Estimate) SetToAmountMin(v string) { - o.ToAmountMin = &v -} - -// GetToAmount returns the ToAmount field value if set, zero value otherwise. -func (o *Estimate) GetToAmount() string { - if o == nil || IsNil(o.ToAmount) { - var ret string - return ret - } - return *o.ToAmount -} - -// GetToAmountOk returns a tuple with the ToAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetToAmountOk() (*string, bool) { - if o == nil || IsNil(o.ToAmount) { - return nil, false - } - return o.ToAmount, true -} - -// HasToAmount returns a boolean if a field has been set. -func (o *Estimate) HasToAmount() bool { - if o != nil && !IsNil(o.ToAmount) { - return true - } - - return false -} - -// SetToAmount gets a reference to the given string and assigns it to the ToAmount field. -func (o *Estimate) SetToAmount(v string) { - o.ToAmount = &v -} - -// GetFromAmount returns the FromAmount field value if set, zero value otherwise. -func (o *Estimate) GetFromAmount() string { - if o == nil || IsNil(o.FromAmount) { - var ret string - return ret - } - return *o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetFromAmountOk() (*string, bool) { - if o == nil || IsNil(o.FromAmount) { - return nil, false - } - return o.FromAmount, true -} - -// HasFromAmount returns a boolean if a field has been set. -func (o *Estimate) HasFromAmount() bool { - if o != nil && !IsNil(o.FromAmount) { - return true - } - - return false -} - -// SetFromAmount gets a reference to the given string and assigns it to the FromAmount field. -func (o *Estimate) SetFromAmount(v string) { - o.FromAmount = &v -} - -// GetFeeCosts returns the FeeCosts field value if set, zero value otherwise. -func (o *Estimate) GetFeeCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner { - if o == nil || IsNil(o.FeeCosts) { - var ret []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner - return ret - } - return o.FeeCosts -} - -// GetFeeCostsOk returns a tuple with the FeeCosts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetFeeCostsOk() ([]GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner, bool) { - if o == nil || IsNil(o.FeeCosts) { - return nil, false - } - return o.FeeCosts, true -} - -// HasFeeCosts returns a boolean if a field has been set. -func (o *Estimate) HasFeeCosts() bool { - if o != nil && !IsNil(o.FeeCosts) { - return true - } - - return false -} - -// SetFeeCosts gets a reference to the given []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner and assigns it to the FeeCosts field. -func (o *Estimate) SetFeeCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) { - o.FeeCosts = v -} - -// GetGasCosts returns the GasCosts field value if set, zero value otherwise. -func (o *Estimate) GetGasCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner { - if o == nil || IsNil(o.GasCosts) { - var ret []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner - return ret - } - return o.GasCosts -} - -// GetGasCostsOk returns a tuple with the GasCosts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetGasCostsOk() ([]GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner, bool) { - if o == nil || IsNil(o.GasCosts) { - return nil, false - } - return o.GasCosts, true -} - -// HasGasCosts returns a boolean if a field has been set. -func (o *Estimate) HasGasCosts() bool { - if o != nil && !IsNil(o.GasCosts) { - return true - } - - return false -} - -// SetGasCosts gets a reference to the given []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner and assigns it to the GasCosts field. -func (o *Estimate) SetGasCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) { - o.GasCosts = v -} - -// GetExecutionDuration returns the ExecutionDuration field value if set, zero value otherwise. -func (o *Estimate) GetExecutionDuration() int32 { - if o == nil || IsNil(o.ExecutionDuration) { - var ret int32 - return ret - } - return *o.ExecutionDuration -} - -// GetExecutionDurationOk returns a tuple with the ExecutionDuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetExecutionDurationOk() (*int32, bool) { - if o == nil || IsNil(o.ExecutionDuration) { - return nil, false - } - return o.ExecutionDuration, true -} - -// HasExecutionDuration returns a boolean if a field has been set. -func (o *Estimate) HasExecutionDuration() bool { - if o != nil && !IsNil(o.ExecutionDuration) { - return true - } - - return false -} - -// SetExecutionDuration gets a reference to the given int32 and assigns it to the ExecutionDuration field. -func (o *Estimate) SetExecutionDuration(v int32) { - o.ExecutionDuration = &v -} - -// GetFromAmountUSD returns the FromAmountUSD field value if set, zero value otherwise. -func (o *Estimate) GetFromAmountUSD() string { - if o == nil || IsNil(o.FromAmountUSD) { - var ret string - return ret - } - return *o.FromAmountUSD -} - -// GetFromAmountUSDOk returns a tuple with the FromAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetFromAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.FromAmountUSD) { - return nil, false - } - return o.FromAmountUSD, true -} - -// HasFromAmountUSD returns a boolean if a field has been set. -func (o *Estimate) HasFromAmountUSD() bool { - if o != nil && !IsNil(o.FromAmountUSD) { - return true - } - - return false -} - -// SetFromAmountUSD gets a reference to the given string and assigns it to the FromAmountUSD field. -func (o *Estimate) SetFromAmountUSD(v string) { - o.FromAmountUSD = &v -} - -// GetToAmountUSD returns the ToAmountUSD field value if set, zero value otherwise. -func (o *Estimate) GetToAmountUSD() string { - if o == nil || IsNil(o.ToAmountUSD) { - var ret string - return ret - } - return *o.ToAmountUSD -} - -// GetToAmountUSDOk returns a tuple with the ToAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetToAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountUSD) { - return nil, false - } - return o.ToAmountUSD, true -} - -// HasToAmountUSD returns a boolean if a field has been set. -func (o *Estimate) HasToAmountUSD() bool { - if o != nil && !IsNil(o.ToAmountUSD) { - return true - } - - return false -} - -// SetToAmountUSD gets a reference to the given string and assigns it to the ToAmountUSD field. -func (o *Estimate) SetToAmountUSD(v string) { - o.ToAmountUSD = &v -} - -// GetTool returns the Tool field value if set, zero value otherwise. -func (o *Estimate) GetTool() string { - if o == nil || IsNil(o.Tool) { - var ret string - return ret - } - return *o.Tool -} - -// GetToolOk returns a tuple with the Tool field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Estimate) GetToolOk() (*string, bool) { - if o == nil || IsNil(o.Tool) { - return nil, false - } - return o.Tool, true -} - -// HasTool returns a boolean if a field has been set. -func (o *Estimate) HasTool() bool { - if o != nil && !IsNil(o.Tool) { - return true - } - - return false -} - -// SetTool gets a reference to the given string and assigns it to the Tool field. -func (o *Estimate) SetTool(v string) { - o.Tool = &v -} - -func (o Estimate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Estimate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ApprovalAddress) { - toSerialize["approvalAddress"] = o.ApprovalAddress - } - if !IsNil(o.ToAmountMin) { - toSerialize["toAmountMin"] = o.ToAmountMin - } - if !IsNil(o.ToAmount) { - toSerialize["toAmount"] = o.ToAmount - } - if !IsNil(o.FromAmount) { - toSerialize["fromAmount"] = o.FromAmount - } - if !IsNil(o.FeeCosts) { - toSerialize["feeCosts"] = o.FeeCosts - } - if !IsNil(o.GasCosts) { - toSerialize["gasCosts"] = o.GasCosts - } - if !IsNil(o.ExecutionDuration) { - toSerialize["executionDuration"] = o.ExecutionDuration - } - if !IsNil(o.FromAmountUSD) { - toSerialize["fromAmountUSD"] = o.FromAmountUSD - } - if !IsNil(o.ToAmountUSD) { - toSerialize["toAmountUSD"] = o.ToAmountUSD - } - if !IsNil(o.Tool) { - toSerialize["tool"] = o.Tool - } - return toSerialize, nil -} - -type NullableEstimate struct { - value *Estimate - isSet bool -} - -func (v NullableEstimate) Get() *Estimate { - return v.value -} - -func (v *NullableEstimate) Set(val *Estimate) { - v.value = val - v.isSet = true -} - -func (v NullableEstimate) IsSet() bool { - return v.isSet -} - -func (v *NullableEstimate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEstimate(val *Estimate) *NullableEstimate { - return &NullableEstimate{value: val, isSet: true} -} - -func (v NullableEstimate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableEstimate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_fee_cost.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_fee_cost.go deleted file mode 100644 index 940490ec88..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_fee_cost.go +++ /dev/null @@ -1,275 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the FeeCost type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FeeCost{} - -// FeeCost Details about a specific fee cost associated with the transaction. -type FeeCost struct { - // Name of the fee cost. - Name *string `json:"name,omitempty"` - // The amount in string format including all decimals. - Amount *string `json:"amount,omitempty"` - // The amount in string format including all decimals. - AmountUSD *string `json:"amountUSD,omitempty"` - // The symbol of a token - Token *string `json:"token,omitempty"` - // Indicates if the fee is included in the transaction amount. - Included *bool `json:"included,omitempty"` -} - -// NewFeeCost instantiates a new FeeCost object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFeeCost() *FeeCost { - this := FeeCost{} - return &this -} - -// NewFeeCostWithDefaults instantiates a new FeeCost object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFeeCostWithDefaults() *FeeCost { - this := FeeCost{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *FeeCost) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FeeCost) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *FeeCost) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *FeeCost) SetName(v string) { - o.Name = &v -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *FeeCost) GetAmount() string { - if o == nil || IsNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FeeCost) GetAmountOk() (*string, bool) { - if o == nil || IsNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *FeeCost) HasAmount() bool { - if o != nil && !IsNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *FeeCost) SetAmount(v string) { - o.Amount = &v -} - -// GetAmountUSD returns the AmountUSD field value if set, zero value otherwise. -func (o *FeeCost) GetAmountUSD() string { - if o == nil || IsNil(o.AmountUSD) { - var ret string - return ret - } - return *o.AmountUSD -} - -// GetAmountUSDOk returns a tuple with the AmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FeeCost) GetAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.AmountUSD) { - return nil, false - } - return o.AmountUSD, true -} - -// HasAmountUSD returns a boolean if a field has been set. -func (o *FeeCost) HasAmountUSD() bool { - if o != nil && !IsNil(o.AmountUSD) { - return true - } - - return false -} - -// SetAmountUSD gets a reference to the given string and assigns it to the AmountUSD field. -func (o *FeeCost) SetAmountUSD(v string) { - o.AmountUSD = &v -} - -// GetToken returns the Token field value if set, zero value otherwise. -func (o *FeeCost) GetToken() string { - if o == nil || IsNil(o.Token) { - var ret string - return ret - } - return *o.Token -} - -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FeeCost) GetTokenOk() (*string, bool) { - if o == nil || IsNil(o.Token) { - return nil, false - } - return o.Token, true -} - -// HasToken returns a boolean if a field has been set. -func (o *FeeCost) HasToken() bool { - if o != nil && !IsNil(o.Token) { - return true - } - - return false -} - -// SetToken gets a reference to the given string and assigns it to the Token field. -func (o *FeeCost) SetToken(v string) { - o.Token = &v -} - -// GetIncluded returns the Included field value if set, zero value otherwise. -func (o *FeeCost) GetIncluded() bool { - if o == nil || IsNil(o.Included) { - var ret bool - return ret - } - return *o.Included -} - -// GetIncludedOk returns a tuple with the Included field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FeeCost) GetIncludedOk() (*bool, bool) { - if o == nil || IsNil(o.Included) { - return nil, false - } - return o.Included, true -} - -// HasIncluded returns a boolean if a field has been set. -func (o *FeeCost) HasIncluded() bool { - if o != nil && !IsNil(o.Included) { - return true - } - - return false -} - -// SetIncluded gets a reference to the given bool and assigns it to the Included field. -func (o *FeeCost) SetIncluded(v bool) { - o.Included = &v -} - -func (o FeeCost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FeeCost) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !IsNil(o.AmountUSD) { - toSerialize["amountUSD"] = o.AmountUSD - } - if !IsNil(o.Token) { - toSerialize["token"] = o.Token - } - if !IsNil(o.Included) { - toSerialize["included"] = o.Included - } - return toSerialize, nil -} - -type NullableFeeCost struct { - value *FeeCost - isSet bool -} - -func (v NullableFeeCost) Get() *FeeCost { - return v.value -} - -func (v *NullableFeeCost) Set(val *FeeCost) { - v.value = val - v.isSet = true -} - -func (v NullableFeeCost) IsSet() bool { - return v.isSet -} - -func (v *NullableFeeCost) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFeeCost(val *FeeCost) *NullableFeeCost { - return &NullableFeeCost{value: val, isSet: true} -} - -func (v NullableFeeCost) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFeeCost) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_gas_cost.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_gas_cost.go deleted file mode 100644 index 328d136f2b..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_gas_cost.go +++ /dev/null @@ -1,348 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GasCost type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GasCost{} - -// GasCost struct for GasCost -type GasCost struct { - // The type of the gas cost. - Type *string `json:"type,omitempty"` - // The gas price, specified as a string to maintain precision. - Price *string `json:"price,omitempty"` - // The estimated gas required, specified as a string to maintain precision. - Estimate *string `json:"estimate,omitempty"` - // The gas limit for the transaction, specified as a string to maintain precision. - Limit *string `json:"limit,omitempty"` - // The amount of gas required in the gas currency. - Amount *string `json:"amount,omitempty"` - // The amount of gas required in USD. - AmountUSD *string `json:"amountUSD,omitempty"` - Token *GetRoutes200ResponseRoutesInnerFromToken `json:"token,omitempty"` -} - -// NewGasCost instantiates a new GasCost object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGasCost() *GasCost { - this := GasCost{} - return &this -} - -// NewGasCostWithDefaults instantiates a new GasCost object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGasCostWithDefaults() *GasCost { - this := GasCost{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *GasCost) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GasCost) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *GasCost) SetType(v string) { - o.Type = &v -} - -// GetPrice returns the Price field value if set, zero value otherwise. -func (o *GasCost) GetPrice() string { - if o == nil || IsNil(o.Price) { - var ret string - return ret - } - return *o.Price -} - -// GetPriceOk returns a tuple with the Price field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetPriceOk() (*string, bool) { - if o == nil || IsNil(o.Price) { - return nil, false - } - return o.Price, true -} - -// HasPrice returns a boolean if a field has been set. -func (o *GasCost) HasPrice() bool { - if o != nil && !IsNil(o.Price) { - return true - } - - return false -} - -// SetPrice gets a reference to the given string and assigns it to the Price field. -func (o *GasCost) SetPrice(v string) { - o.Price = &v -} - -// GetEstimate returns the Estimate field value if set, zero value otherwise. -func (o *GasCost) GetEstimate() string { - if o == nil || IsNil(o.Estimate) { - var ret string - return ret - } - return *o.Estimate -} - -// GetEstimateOk returns a tuple with the Estimate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetEstimateOk() (*string, bool) { - if o == nil || IsNil(o.Estimate) { - return nil, false - } - return o.Estimate, true -} - -// HasEstimate returns a boolean if a field has been set. -func (o *GasCost) HasEstimate() bool { - if o != nil && !IsNil(o.Estimate) { - return true - } - - return false -} - -// SetEstimate gets a reference to the given string and assigns it to the Estimate field. -func (o *GasCost) SetEstimate(v string) { - o.Estimate = &v -} - -// GetLimit returns the Limit field value if set, zero value otherwise. -func (o *GasCost) GetLimit() string { - if o == nil || IsNil(o.Limit) { - var ret string - return ret - } - return *o.Limit -} - -// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetLimitOk() (*string, bool) { - if o == nil || IsNil(o.Limit) { - return nil, false - } - return o.Limit, true -} - -// HasLimit returns a boolean if a field has been set. -func (o *GasCost) HasLimit() bool { - if o != nil && !IsNil(o.Limit) { - return true - } - - return false -} - -// SetLimit gets a reference to the given string and assigns it to the Limit field. -func (o *GasCost) SetLimit(v string) { - o.Limit = &v -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *GasCost) GetAmount() string { - if o == nil || IsNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetAmountOk() (*string, bool) { - if o == nil || IsNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *GasCost) HasAmount() bool { - if o != nil && !IsNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *GasCost) SetAmount(v string) { - o.Amount = &v -} - -// GetAmountUSD returns the AmountUSD field value if set, zero value otherwise. -func (o *GasCost) GetAmountUSD() string { - if o == nil || IsNil(o.AmountUSD) { - var ret string - return ret - } - return *o.AmountUSD -} - -// GetAmountUSDOk returns a tuple with the AmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.AmountUSD) { - return nil, false - } - return o.AmountUSD, true -} - -// HasAmountUSD returns a boolean if a field has been set. -func (o *GasCost) HasAmountUSD() bool { - if o != nil && !IsNil(o.AmountUSD) { - return true - } - - return false -} - -// SetAmountUSD gets a reference to the given string and assigns it to the AmountUSD field. -func (o *GasCost) SetAmountUSD(v string) { - o.AmountUSD = &v -} - -// GetToken returns the Token field value if set, zero value otherwise. -func (o *GasCost) GetToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.Token) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.Token -} - -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GasCost) GetTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.Token) { - return nil, false - } - return o.Token, true -} - -// HasToken returns a boolean if a field has been set. -func (o *GasCost) HasToken() bool { - if o != nil && !IsNil(o.Token) { - return true - } - - return false -} - -// SetToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the Token field. -func (o *GasCost) SetToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.Token = &v -} - -func (o GasCost) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GasCost) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Price) { - toSerialize["price"] = o.Price - } - if !IsNil(o.Estimate) { - toSerialize["estimate"] = o.Estimate - } - if !IsNil(o.Limit) { - toSerialize["limit"] = o.Limit - } - if !IsNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !IsNil(o.AmountUSD) { - toSerialize["amountUSD"] = o.AmountUSD - } - if !IsNil(o.Token) { - toSerialize["token"] = o.Token - } - return toSerialize, nil -} - -type NullableGasCost struct { - value *GasCost - isSet bool -} - -func (v NullableGasCost) Get() *GasCost { - return v.value -} - -func (v *NullableGasCost) Set(val *GasCost) { - v.value = val - v.isSet = true -} - -func (v NullableGasCost) IsSet() bool { - return v.isSet -} - -func (v *NullableGasCost) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGasCost(val *GasCost) *NullableGasCost { - return &NullableGasCost{value: val, isSet: true} -} - -func (v NullableGasCost) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGasCost) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_200_response.go deleted file mode 100644 index f92c619e5e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_200_response.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "time" -) - -// checks if the GetAudit200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetAudit200Response{} - -// GetAudit200Response Response schema for an audit request. Contains the proofs generated during the audit period and the start and end datetimes. -type GetAudit200Response struct { - // An array of strings representing proofs. - Proofs []string `json:"proofs,omitempty"` - // The start datetime of the audit period. - AuditStartTime *time.Time `json:"auditStartTime,omitempty"` - // The end datetime of the audit period. - AuditEndTime *time.Time `json:"auditEndTime,omitempty"` -} - -// NewGetAudit200Response instantiates a new GetAudit200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetAudit200Response() *GetAudit200Response { - this := GetAudit200Response{} - return &this -} - -// NewGetAudit200ResponseWithDefaults instantiates a new GetAudit200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetAudit200ResponseWithDefaults() *GetAudit200Response { - this := GetAudit200Response{} - return &this -} - -// GetProofs returns the Proofs field value if set, zero value otherwise. -func (o *GetAudit200Response) GetProofs() []string { - if o == nil || IsNil(o.Proofs) { - var ret []string - return ret - } - return o.Proofs -} - -// GetProofsOk returns a tuple with the Proofs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAudit200Response) GetProofsOk() ([]string, bool) { - if o == nil || IsNil(o.Proofs) { - return nil, false - } - return o.Proofs, true -} - -// HasProofs returns a boolean if a field has been set. -func (o *GetAudit200Response) HasProofs() bool { - if o != nil && !IsNil(o.Proofs) { - return true - } - - return false -} - -// SetProofs gets a reference to the given []string and assigns it to the Proofs field. -func (o *GetAudit200Response) SetProofs(v []string) { - o.Proofs = v -} - -// GetAuditStartTime returns the AuditStartTime field value if set, zero value otherwise. -func (o *GetAudit200Response) GetAuditStartTime() time.Time { - if o == nil || IsNil(o.AuditStartTime) { - var ret time.Time - return ret - } - return *o.AuditStartTime -} - -// GetAuditStartTimeOk returns a tuple with the AuditStartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAudit200Response) GetAuditStartTimeOk() (*time.Time, bool) { - if o == nil || IsNil(o.AuditStartTime) { - return nil, false - } - return o.AuditStartTime, true -} - -// HasAuditStartTime returns a boolean if a field has been set. -func (o *GetAudit200Response) HasAuditStartTime() bool { - if o != nil && !IsNil(o.AuditStartTime) { - return true - } - - return false -} - -// SetAuditStartTime gets a reference to the given time.Time and assigns it to the AuditStartTime field. -func (o *GetAudit200Response) SetAuditStartTime(v time.Time) { - o.AuditStartTime = &v -} - -// GetAuditEndTime returns the AuditEndTime field value if set, zero value otherwise. -func (o *GetAudit200Response) GetAuditEndTime() time.Time { - if o == nil || IsNil(o.AuditEndTime) { - var ret time.Time - return ret - } - return *o.AuditEndTime -} - -// GetAuditEndTimeOk returns a tuple with the AuditEndTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAudit200Response) GetAuditEndTimeOk() (*time.Time, bool) { - if o == nil || IsNil(o.AuditEndTime) { - return nil, false - } - return o.AuditEndTime, true -} - -// HasAuditEndTime returns a boolean if a field has been set. -func (o *GetAudit200Response) HasAuditEndTime() bool { - if o != nil && !IsNil(o.AuditEndTime) { - return true - } - - return false -} - -// SetAuditEndTime gets a reference to the given time.Time and assigns it to the AuditEndTime field. -func (o *GetAudit200Response) SetAuditEndTime(v time.Time) { - o.AuditEndTime = &v -} - -func (o GetAudit200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetAudit200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Proofs) { - toSerialize["proofs"] = o.Proofs - } - if !IsNil(o.AuditStartTime) { - toSerialize["auditStartTime"] = o.AuditStartTime - } - if !IsNil(o.AuditEndTime) { - toSerialize["auditEndTime"] = o.AuditEndTime - } - return toSerialize, nil -} - -type NullableGetAudit200Response struct { - value *GetAudit200Response - isSet bool -} - -func (v NullableGetAudit200Response) Get() *GetAudit200Response { - return v.value -} - -func (v *NullableGetAudit200Response) Set(val *GetAudit200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetAudit200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAudit200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAudit200Response(val *GetAudit200Response) *NullableGetAudit200Response { - return &NullableGetAudit200Response{value: val, isSet: true} -} - -func (v NullableGetAudit200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAudit200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_request.go deleted file mode 100644 index fffc0b47d7..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_request.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "time" -) - -// checks if the GetAuditRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetAuditRequest{} - -// GetAuditRequest Request schema for initiating an audit. Includes the start and end dates for the audit period and an option to include proofs. -type GetAuditRequest struct { - // The start datetime for the audit. - AuditStartDate *time.Time `json:"auditStartDate,omitempty"` - // The end datetime for the audit. - AuditEndDate *time.Time `json:"auditEndDate,omitempty"` - // Include proofs generated from each gateway transaction. - IncludeProofs *bool `json:"includeProofs,omitempty"` -} - -// NewGetAuditRequest instantiates a new GetAuditRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetAuditRequest() *GetAuditRequest { - this := GetAuditRequest{} - return &this -} - -// NewGetAuditRequestWithDefaults instantiates a new GetAuditRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetAuditRequestWithDefaults() *GetAuditRequest { - this := GetAuditRequest{} - return &this -} - -// GetAuditStartDate returns the AuditStartDate field value if set, zero value otherwise. -func (o *GetAuditRequest) GetAuditStartDate() time.Time { - if o == nil || IsNil(o.AuditStartDate) { - var ret time.Time - return ret - } - return *o.AuditStartDate -} - -// GetAuditStartDateOk returns a tuple with the AuditStartDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAuditRequest) GetAuditStartDateOk() (*time.Time, bool) { - if o == nil || IsNil(o.AuditStartDate) { - return nil, false - } - return o.AuditStartDate, true -} - -// HasAuditStartDate returns a boolean if a field has been set. -func (o *GetAuditRequest) HasAuditStartDate() bool { - if o != nil && !IsNil(o.AuditStartDate) { - return true - } - - return false -} - -// SetAuditStartDate gets a reference to the given time.Time and assigns it to the AuditStartDate field. -func (o *GetAuditRequest) SetAuditStartDate(v time.Time) { - o.AuditStartDate = &v -} - -// GetAuditEndDate returns the AuditEndDate field value if set, zero value otherwise. -func (o *GetAuditRequest) GetAuditEndDate() time.Time { - if o == nil || IsNil(o.AuditEndDate) { - var ret time.Time - return ret - } - return *o.AuditEndDate -} - -// GetAuditEndDateOk returns a tuple with the AuditEndDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAuditRequest) GetAuditEndDateOk() (*time.Time, bool) { - if o == nil || IsNil(o.AuditEndDate) { - return nil, false - } - return o.AuditEndDate, true -} - -// HasAuditEndDate returns a boolean if a field has been set. -func (o *GetAuditRequest) HasAuditEndDate() bool { - if o != nil && !IsNil(o.AuditEndDate) { - return true - } - - return false -} - -// SetAuditEndDate gets a reference to the given time.Time and assigns it to the AuditEndDate field. -func (o *GetAuditRequest) SetAuditEndDate(v time.Time) { - o.AuditEndDate = &v -} - -// GetIncludeProofs returns the IncludeProofs field value if set, zero value otherwise. -func (o *GetAuditRequest) GetIncludeProofs() bool { - if o == nil || IsNil(o.IncludeProofs) { - var ret bool - return ret - } - return *o.IncludeProofs -} - -// GetIncludeProofsOk returns a tuple with the IncludeProofs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAuditRequest) GetIncludeProofsOk() (*bool, bool) { - if o == nil || IsNil(o.IncludeProofs) { - return nil, false - } - return o.IncludeProofs, true -} - -// HasIncludeProofs returns a boolean if a field has been set. -func (o *GetAuditRequest) HasIncludeProofs() bool { - if o != nil && !IsNil(o.IncludeProofs) { - return true - } - - return false -} - -// SetIncludeProofs gets a reference to the given bool and assigns it to the IncludeProofs field. -func (o *GetAuditRequest) SetIncludeProofs(v bool) { - o.IncludeProofs = &v -} - -func (o GetAuditRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetAuditRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AuditStartDate) { - toSerialize["auditStartDate"] = o.AuditStartDate - } - if !IsNil(o.AuditEndDate) { - toSerialize["auditEndDate"] = o.AuditEndDate - } - if !IsNil(o.IncludeProofs) { - toSerialize["includeProofs"] = o.IncludeProofs - } - return toSerialize, nil -} - -type NullableGetAuditRequest struct { - value *GetAuditRequest - isSet bool -} - -func (v NullableGetAuditRequest) Get() *GetAuditRequest { - return v.value -} - -func (v *NullableGetAuditRequest) Set(val *GetAuditRequest) { - v.value = val - v.isSet = true -} - -func (v NullableGetAuditRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAuditRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAuditRequest(val *GetAuditRequest) *NullableGetAuditRequest { - return &NullableGetAuditRequest{value: val, isSet: true} -} - -func (v NullableGetAuditRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAuditRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_response.go deleted file mode 100644 index 2bde4e9595..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_audit_response.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "time" -) - -// checks if the GetAuditResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetAuditResponse{} - -// GetAuditResponse Response schema for an audit request. Contains the proofs generated during the audit period and the start and end datetimes. -type GetAuditResponse struct { - // An array of strings representing proofs. - Proofs []string `json:"proofs,omitempty"` - // The start datetime of the audit period. - AuditStartTime *time.Time `json:"auditStartTime,omitempty"` - // The end datetime of the audit period. - AuditEndTime *time.Time `json:"auditEndTime,omitempty"` -} - -// NewGetAuditResponse instantiates a new GetAuditResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetAuditResponse() *GetAuditResponse { - this := GetAuditResponse{} - return &this -} - -// NewGetAuditResponseWithDefaults instantiates a new GetAuditResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetAuditResponseWithDefaults() *GetAuditResponse { - this := GetAuditResponse{} - return &this -} - -// GetProofs returns the Proofs field value if set, zero value otherwise. -func (o *GetAuditResponse) GetProofs() []string { - if o == nil || IsNil(o.Proofs) { - var ret []string - return ret - } - return o.Proofs -} - -// GetProofsOk returns a tuple with the Proofs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAuditResponse) GetProofsOk() ([]string, bool) { - if o == nil || IsNil(o.Proofs) { - return nil, false - } - return o.Proofs, true -} - -// HasProofs returns a boolean if a field has been set. -func (o *GetAuditResponse) HasProofs() bool { - if o != nil && !IsNil(o.Proofs) { - return true - } - - return false -} - -// SetProofs gets a reference to the given []string and assigns it to the Proofs field. -func (o *GetAuditResponse) SetProofs(v []string) { - o.Proofs = v -} - -// GetAuditStartTime returns the AuditStartTime field value if set, zero value otherwise. -func (o *GetAuditResponse) GetAuditStartTime() time.Time { - if o == nil || IsNil(o.AuditStartTime) { - var ret time.Time - return ret - } - return *o.AuditStartTime -} - -// GetAuditStartTimeOk returns a tuple with the AuditStartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAuditResponse) GetAuditStartTimeOk() (*time.Time, bool) { - if o == nil || IsNil(o.AuditStartTime) { - return nil, false - } - return o.AuditStartTime, true -} - -// HasAuditStartTime returns a boolean if a field has been set. -func (o *GetAuditResponse) HasAuditStartTime() bool { - if o != nil && !IsNil(o.AuditStartTime) { - return true - } - - return false -} - -// SetAuditStartTime gets a reference to the given time.Time and assigns it to the AuditStartTime field. -func (o *GetAuditResponse) SetAuditStartTime(v time.Time) { - o.AuditStartTime = &v -} - -// GetAuditEndTime returns the AuditEndTime field value if set, zero value otherwise. -func (o *GetAuditResponse) GetAuditEndTime() time.Time { - if o == nil || IsNil(o.AuditEndTime) { - var ret time.Time - return ret - } - return *o.AuditEndTime -} - -// GetAuditEndTimeOk returns a tuple with the AuditEndTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAuditResponse) GetAuditEndTimeOk() (*time.Time, bool) { - if o == nil || IsNil(o.AuditEndTime) { - return nil, false - } - return o.AuditEndTime, true -} - -// HasAuditEndTime returns a boolean if a field has been set. -func (o *GetAuditResponse) HasAuditEndTime() bool { - if o != nil && !IsNil(o.AuditEndTime) { - return true - } - - return false -} - -// SetAuditEndTime gets a reference to the given time.Time and assigns it to the AuditEndTime field. -func (o *GetAuditResponse) SetAuditEndTime(v time.Time) { - o.AuditEndTime = &v -} - -func (o GetAuditResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetAuditResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Proofs) { - toSerialize["proofs"] = o.Proofs - } - if !IsNil(o.AuditStartTime) { - toSerialize["auditStartTime"] = o.AuditStartTime - } - if !IsNil(o.AuditEndTime) { - toSerialize["auditEndTime"] = o.AuditEndTime - } - return toSerialize, nil -} - -type NullableGetAuditResponse struct { - value *GetAuditResponse - isSet bool -} - -func (v NullableGetAuditResponse) Get() *GetAuditResponse { - return v.value -} - -func (v *NullableGetAuditResponse) Set(val *GetAuditResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetAuditResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAuditResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAuditResponse(val *GetAuditResponse) *NullableGetAuditResponse { - return &NullableGetAuditResponse{value: val, isSet: true} -} - -func (v NullableGetAuditResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAuditResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_health_check_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_health_check_200_response.go deleted file mode 100644 index b25ba1ae46..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_health_check_200_response.go +++ /dev/null @@ -1,126 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetHealthCheck200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetHealthCheck200Response{} - -// GetHealthCheck200Response struct for GetHealthCheck200Response -type GetHealthCheck200Response struct { - Status *string `json:"status,omitempty"` -} - -// NewGetHealthCheck200Response instantiates a new GetHealthCheck200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetHealthCheck200Response() *GetHealthCheck200Response { - this := GetHealthCheck200Response{} - return &this -} - -// NewGetHealthCheck200ResponseWithDefaults instantiates a new GetHealthCheck200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetHealthCheck200ResponseWithDefaults() *GetHealthCheck200Response { - this := GetHealthCheck200Response{} - return &this -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *GetHealthCheck200Response) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetHealthCheck200Response) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *GetHealthCheck200Response) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *GetHealthCheck200Response) SetStatus(v string) { - o.Status = &v -} - -func (o GetHealthCheck200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetHealthCheck200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableGetHealthCheck200Response struct { - value *GetHealthCheck200Response - isSet bool -} - -func (v NullableGetHealthCheck200Response) Get() *GetHealthCheck200Response { - return v.value -} - -func (v *NullableGetHealthCheck200Response) Set(val *GetHealthCheck200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetHealthCheck200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetHealthCheck200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetHealthCheck200Response(val *GetHealthCheck200Response) *NullableGetHealthCheck200Response { - return &NullableGetHealthCheck200Response{value: val, isSet: true} -} - -func (v NullableGetHealthCheck200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetHealthCheck200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response.go deleted file mode 100644 index f58f5d0eda..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200Response{} - -// GetRoutes200Response A collection of available and unavailable routes -type GetRoutes200Response struct { - // A collection of route objects - Routes []GetRoutes200ResponseRoutesInner `json:"routes"` -} - -// NewGetRoutes200Response instantiates a new GetRoutes200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200Response(routes []GetRoutes200ResponseRoutesInner) *GetRoutes200Response { - this := GetRoutes200Response{} - this.Routes = routes - return &this -} - -// NewGetRoutes200ResponseWithDefaults instantiates a new GetRoutes200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseWithDefaults() *GetRoutes200Response { - this := GetRoutes200Response{} - return &this -} - -// GetRoutes returns the Routes field value -func (o *GetRoutes200Response) GetRoutes() []GetRoutes200ResponseRoutesInner { - if o == nil { - var ret []GetRoutes200ResponseRoutesInner - return ret - } - - return o.Routes -} - -// GetRoutesOk returns a tuple with the Routes field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200Response) GetRoutesOk() ([]GetRoutes200ResponseRoutesInner, bool) { - if o == nil { - return nil, false - } - return o.Routes, true -} - -// SetRoutes sets field value -func (o *GetRoutes200Response) SetRoutes(v []GetRoutes200ResponseRoutesInner) { - o.Routes = v -} - -func (o GetRoutes200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["routes"] = o.Routes - return toSerialize, nil -} - -type NullableGetRoutes200Response struct { - value *GetRoutes200Response - isSet bool -} - -func (v NullableGetRoutes200Response) Get() *GetRoutes200Response { - return v.value -} - -func (v *NullableGetRoutes200Response) Set(val *GetRoutes200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200Response(val *GetRoutes200Response) *NullableGetRoutes200Response { - return &NullableGetRoutes200Response{value: val, isSet: true} -} - -func (v NullableGetRoutes200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner.go deleted file mode 100644 index affc059c9e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner.go +++ /dev/null @@ -1,689 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInner{} - -// GetRoutes200ResponseRoutesInner struct for GetRoutes200ResponseRoutesInner -type GetRoutes200ResponseRoutesInner struct { - // A unique identifier of the route. - Id string `json:"id"` - // A unique identifier for the gateway. - GatewayID string `json:"gatewayID"` - // The mode of operation for this route - 'data' for arbitrary payload handling, 'transfer' for asset transfer. - Mode string `json:"mode"` - // The ID of the DLT Network where the operation will originate. - FromDLTNetworkID *string `json:"fromDLTNetworkID,omitempty"` - // The amount of 'fromToken' to be transferred in USD, specified as a string to maintain precision. - FromAmountUSD *float64 `json:"fromAmountUSD,omitempty"` - // The amount that should be sent including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). - FromAmount *string `json:"fromAmount,omitempty"` - FromToken *GetRoutes200ResponseRoutesInnerFromToken `json:"fromToken,omitempty"` - // The ID of the DLT Network where the operation will end. - ToDLTNetworkID *string `json:"toDLTNetworkID,omitempty"` - // The expected amount to be received in USD. - ToAmountUSD *string `json:"toAmountUSD,omitempty"` - // The expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). - ToAmount *string `json:"toAmount,omitempty"` - // The minimum expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). - ToAmountMin *string `json:"toAmountMin,omitempty"` - ToToken *GetRoutes200ResponseRoutesInnerFromToken `json:"toToken,omitempty"` - // The expected gas cost in USD. - GasCostUSD *string `json:"gasCostUSD,omitempty"` - // Whether chain switching is enabled or not. - ContainsSwitchChain *bool `json:"containsSwitchChain,omitempty"` - // List of steps involved in this route, adjusted for mode. - Steps []GetRoutes200ResponseRoutesInnerStepsInner `json:"steps,omitempty"` - Insurance *GetRoutes200ResponseRoutesInnerInsurance `json:"insurance,omitempty"` - // List of tags identifiers providing additional context or categorization. - Tags []string `json:"tags,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInner instantiates a new GetRoutes200ResponseRoutesInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInner(id string, gatewayID string, mode string) *GetRoutes200ResponseRoutesInner { - this := GetRoutes200ResponseRoutesInner{} - this.Id = id - this.GatewayID = gatewayID - this.Mode = mode - return &this -} - -// NewGetRoutes200ResponseRoutesInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerWithDefaults() *GetRoutes200ResponseRoutesInner { - this := GetRoutes200ResponseRoutesInner{} - return &this -} - -// GetId returns the Id field value -func (o *GetRoutes200ResponseRoutesInner) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *GetRoutes200ResponseRoutesInner) SetId(v string) { - o.Id = v -} - -// GetGatewayID returns the GatewayID field value -func (o *GetRoutes200ResponseRoutesInner) GetGatewayID() string { - if o == nil { - var ret string - return ret - } - - return o.GatewayID -} - -// GetGatewayIDOk returns a tuple with the GatewayID field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetGatewayIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.GatewayID, true -} - -// SetGatewayID sets field value -func (o *GetRoutes200ResponseRoutesInner) SetGatewayID(v string) { - o.GatewayID = v -} - -// GetMode returns the Mode field value -func (o *GetRoutes200ResponseRoutesInner) GetMode() string { - if o == nil { - var ret string - return ret - } - - return o.Mode -} - -// GetModeOk returns a tuple with the Mode field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetModeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Mode, true -} - -// SetMode sets field value -func (o *GetRoutes200ResponseRoutesInner) SetMode(v string) { - o.Mode = v -} - -// GetFromDLTNetworkID returns the FromDLTNetworkID field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetFromDLTNetworkID() string { - if o == nil || IsNil(o.FromDLTNetworkID) { - var ret string - return ret - } - return *o.FromDLTNetworkID -} - -// GetFromDLTNetworkIDOk returns a tuple with the FromDLTNetworkID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetFromDLTNetworkIDOk() (*string, bool) { - if o == nil || IsNil(o.FromDLTNetworkID) { - return nil, false - } - return o.FromDLTNetworkID, true -} - -// HasFromDLTNetworkID returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasFromDLTNetworkID() bool { - if o != nil && !IsNil(o.FromDLTNetworkID) { - return true - } - - return false -} - -// SetFromDLTNetworkID gets a reference to the given string and assigns it to the FromDLTNetworkID field. -func (o *GetRoutes200ResponseRoutesInner) SetFromDLTNetworkID(v string) { - o.FromDLTNetworkID = &v -} - -// GetFromAmountUSD returns the FromAmountUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetFromAmountUSD() float64 { - if o == nil || IsNil(o.FromAmountUSD) { - var ret float64 - return ret - } - return *o.FromAmountUSD -} - -// GetFromAmountUSDOk returns a tuple with the FromAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetFromAmountUSDOk() (*float64, bool) { - if o == nil || IsNil(o.FromAmountUSD) { - return nil, false - } - return o.FromAmountUSD, true -} - -// HasFromAmountUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasFromAmountUSD() bool { - if o != nil && !IsNil(o.FromAmountUSD) { - return true - } - - return false -} - -// SetFromAmountUSD gets a reference to the given float64 and assigns it to the FromAmountUSD field. -func (o *GetRoutes200ResponseRoutesInner) SetFromAmountUSD(v float64) { - o.FromAmountUSD = &v -} - -// GetFromAmount returns the FromAmount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetFromAmount() string { - if o == nil || IsNil(o.FromAmount) { - var ret string - return ret - } - return *o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetFromAmountOk() (*string, bool) { - if o == nil || IsNil(o.FromAmount) { - return nil, false - } - return o.FromAmount, true -} - -// HasFromAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasFromAmount() bool { - if o != nil && !IsNil(o.FromAmount) { - return true - } - - return false -} - -// SetFromAmount gets a reference to the given string and assigns it to the FromAmount field. -func (o *GetRoutes200ResponseRoutesInner) SetFromAmount(v string) { - o.FromAmount = &v -} - -// GetFromToken returns the FromToken field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.FromToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.FromToken -} - -// GetFromTokenOk returns a tuple with the FromToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.FromToken) { - return nil, false - } - return o.FromToken, true -} - -// HasFromToken returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasFromToken() bool { - if o != nil && !IsNil(o.FromToken) { - return true - } - - return false -} - -// SetFromToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the FromToken field. -func (o *GetRoutes200ResponseRoutesInner) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.FromToken = &v -} - -// GetToDLTNetworkID returns the ToDLTNetworkID field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetToDLTNetworkID() string { - if o == nil || IsNil(o.ToDLTNetworkID) { - var ret string - return ret - } - return *o.ToDLTNetworkID -} - -// GetToDLTNetworkIDOk returns a tuple with the ToDLTNetworkID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetToDLTNetworkIDOk() (*string, bool) { - if o == nil || IsNil(o.ToDLTNetworkID) { - return nil, false - } - return o.ToDLTNetworkID, true -} - -// HasToDLTNetworkID returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasToDLTNetworkID() bool { - if o != nil && !IsNil(o.ToDLTNetworkID) { - return true - } - - return false -} - -// SetToDLTNetworkID gets a reference to the given string and assigns it to the ToDLTNetworkID field. -func (o *GetRoutes200ResponseRoutesInner) SetToDLTNetworkID(v string) { - o.ToDLTNetworkID = &v -} - -// GetToAmountUSD returns the ToAmountUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetToAmountUSD() string { - if o == nil || IsNil(o.ToAmountUSD) { - var ret string - return ret - } - return *o.ToAmountUSD -} - -// GetToAmountUSDOk returns a tuple with the ToAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetToAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountUSD) { - return nil, false - } - return o.ToAmountUSD, true -} - -// HasToAmountUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasToAmountUSD() bool { - if o != nil && !IsNil(o.ToAmountUSD) { - return true - } - - return false -} - -// SetToAmountUSD gets a reference to the given string and assigns it to the ToAmountUSD field. -func (o *GetRoutes200ResponseRoutesInner) SetToAmountUSD(v string) { - o.ToAmountUSD = &v -} - -// GetToAmount returns the ToAmount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetToAmount() string { - if o == nil || IsNil(o.ToAmount) { - var ret string - return ret - } - return *o.ToAmount -} - -// GetToAmountOk returns a tuple with the ToAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetToAmountOk() (*string, bool) { - if o == nil || IsNil(o.ToAmount) { - return nil, false - } - return o.ToAmount, true -} - -// HasToAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasToAmount() bool { - if o != nil && !IsNil(o.ToAmount) { - return true - } - - return false -} - -// SetToAmount gets a reference to the given string and assigns it to the ToAmount field. -func (o *GetRoutes200ResponseRoutesInner) SetToAmount(v string) { - o.ToAmount = &v -} - -// GetToAmountMin returns the ToAmountMin field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetToAmountMin() string { - if o == nil || IsNil(o.ToAmountMin) { - var ret string - return ret - } - return *o.ToAmountMin -} - -// GetToAmountMinOk returns a tuple with the ToAmountMin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetToAmountMinOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountMin) { - return nil, false - } - return o.ToAmountMin, true -} - -// HasToAmountMin returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasToAmountMin() bool { - if o != nil && !IsNil(o.ToAmountMin) { - return true - } - - return false -} - -// SetToAmountMin gets a reference to the given string and assigns it to the ToAmountMin field. -func (o *GetRoutes200ResponseRoutesInner) SetToAmountMin(v string) { - o.ToAmountMin = &v -} - -// GetToToken returns the ToToken field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetToToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.ToToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.ToToken -} - -// GetToTokenOk returns a tuple with the ToToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.ToToken) { - return nil, false - } - return o.ToToken, true -} - -// HasToToken returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasToToken() bool { - if o != nil && !IsNil(o.ToToken) { - return true - } - - return false -} - -// SetToToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the ToToken field. -func (o *GetRoutes200ResponseRoutesInner) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.ToToken = &v -} - -// GetGasCostUSD returns the GasCostUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetGasCostUSD() string { - if o == nil || IsNil(o.GasCostUSD) { - var ret string - return ret - } - return *o.GasCostUSD -} - -// GetGasCostUSDOk returns a tuple with the GasCostUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetGasCostUSDOk() (*string, bool) { - if o == nil || IsNil(o.GasCostUSD) { - return nil, false - } - return o.GasCostUSD, true -} - -// HasGasCostUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasGasCostUSD() bool { - if o != nil && !IsNil(o.GasCostUSD) { - return true - } - - return false -} - -// SetGasCostUSD gets a reference to the given string and assigns it to the GasCostUSD field. -func (o *GetRoutes200ResponseRoutesInner) SetGasCostUSD(v string) { - o.GasCostUSD = &v -} - -// GetContainsSwitchChain returns the ContainsSwitchChain field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetContainsSwitchChain() bool { - if o == nil || IsNil(o.ContainsSwitchChain) { - var ret bool - return ret - } - return *o.ContainsSwitchChain -} - -// GetContainsSwitchChainOk returns a tuple with the ContainsSwitchChain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetContainsSwitchChainOk() (*bool, bool) { - if o == nil || IsNil(o.ContainsSwitchChain) { - return nil, false - } - return o.ContainsSwitchChain, true -} - -// HasContainsSwitchChain returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasContainsSwitchChain() bool { - if o != nil && !IsNil(o.ContainsSwitchChain) { - return true - } - - return false -} - -// SetContainsSwitchChain gets a reference to the given bool and assigns it to the ContainsSwitchChain field. -func (o *GetRoutes200ResponseRoutesInner) SetContainsSwitchChain(v bool) { - o.ContainsSwitchChain = &v -} - -// GetSteps returns the Steps field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetSteps() []GetRoutes200ResponseRoutesInnerStepsInner { - if o == nil || IsNil(o.Steps) { - var ret []GetRoutes200ResponseRoutesInnerStepsInner - return ret - } - return o.Steps -} - -// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetStepsOk() ([]GetRoutes200ResponseRoutesInnerStepsInner, bool) { - if o == nil || IsNil(o.Steps) { - return nil, false - } - return o.Steps, true -} - -// HasSteps returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasSteps() bool { - if o != nil && !IsNil(o.Steps) { - return true - } - - return false -} - -// SetSteps gets a reference to the given []GetRoutes200ResponseRoutesInnerStepsInner and assigns it to the Steps field. -func (o *GetRoutes200ResponseRoutesInner) SetSteps(v []GetRoutes200ResponseRoutesInnerStepsInner) { - o.Steps = v -} - -// GetInsurance returns the Insurance field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetInsurance() GetRoutes200ResponseRoutesInnerInsurance { - if o == nil || IsNil(o.Insurance) { - var ret GetRoutes200ResponseRoutesInnerInsurance - return ret - } - return *o.Insurance -} - -// GetInsuranceOk returns a tuple with the Insurance field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetInsuranceOk() (*GetRoutes200ResponseRoutesInnerInsurance, bool) { - if o == nil || IsNil(o.Insurance) { - return nil, false - } - return o.Insurance, true -} - -// HasInsurance returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasInsurance() bool { - if o != nil && !IsNil(o.Insurance) { - return true - } - - return false -} - -// SetInsurance gets a reference to the given GetRoutes200ResponseRoutesInnerInsurance and assigns it to the Insurance field. -func (o *GetRoutes200ResponseRoutesInner) SetInsurance(v GetRoutes200ResponseRoutesInnerInsurance) { - o.Insurance = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInner) GetTags() []string { - if o == nil || IsNil(o.Tags) { - var ret []string - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInner) GetTagsOk() ([]string, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInner) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []string and assigns it to the Tags field. -func (o *GetRoutes200ResponseRoutesInner) SetTags(v []string) { - o.Tags = v -} - -func (o GetRoutes200ResponseRoutesInner) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["gatewayID"] = o.GatewayID - toSerialize["mode"] = o.Mode - if !IsNil(o.FromDLTNetworkID) { - toSerialize["fromDLTNetworkID"] = o.FromDLTNetworkID - } - if !IsNil(o.FromAmountUSD) { - toSerialize["fromAmountUSD"] = o.FromAmountUSD - } - if !IsNil(o.FromAmount) { - toSerialize["fromAmount"] = o.FromAmount - } - if !IsNil(o.FromToken) { - toSerialize["fromToken"] = o.FromToken - } - if !IsNil(o.ToDLTNetworkID) { - toSerialize["toDLTNetworkID"] = o.ToDLTNetworkID - } - if !IsNil(o.ToAmountUSD) { - toSerialize["toAmountUSD"] = o.ToAmountUSD - } - if !IsNil(o.ToAmount) { - toSerialize["toAmount"] = o.ToAmount - } - if !IsNil(o.ToAmountMin) { - toSerialize["toAmountMin"] = o.ToAmountMin - } - if !IsNil(o.ToToken) { - toSerialize["toToken"] = o.ToToken - } - if !IsNil(o.GasCostUSD) { - toSerialize["gasCostUSD"] = o.GasCostUSD - } - if !IsNil(o.ContainsSwitchChain) { - toSerialize["containsSwitchChain"] = o.ContainsSwitchChain - } - if !IsNil(o.Steps) { - toSerialize["steps"] = o.Steps - } - if !IsNil(o.Insurance) { - toSerialize["insurance"] = o.Insurance - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInner struct { - value *GetRoutes200ResponseRoutesInner - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInner) Get() *GetRoutes200ResponseRoutesInner { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInner) Set(val *GetRoutes200ResponseRoutesInner) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInner) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInner(val *GetRoutes200ResponseRoutesInner) *NullableGetRoutes200ResponseRoutesInner { - return &NullableGetRoutes200ResponseRoutesInner{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token.go deleted file mode 100644 index 6537a62963..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token.go +++ /dev/null @@ -1,414 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerFromToken type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerFromToken{} - -// GetRoutes200ResponseRoutesInnerFromToken Metadata detailing a supported token -type GetRoutes200ResponseRoutesInnerFromToken struct { - // The network of the DLT being interacted with. TODO: implement network identification draft - ChainID string `json:"chainID"` - // Supported DLT protocols. - ChainType string `json:"chainType"` - // A blockchain address. - Address string `json:"address"` - // The name of the token. - Name *string `json:"name,omitempty"` - // The symbol of the token. - Symbol string `json:"symbol"` - // How many decimals the token supports. - Decimals int32 `json:"decimals"` - // The logo of a token, chain, dex etc. - LogoURI *string `json:"logoURI,omitempty"` - // List of tags identifiers providing additional context or categorization. - Tags []string `json:"tags,omitempty"` - // The current price of the token in USD. - PriceUSD *string `json:"priceUSD,omitempty"` - Extensions *GetRoutes200ResponseRoutesInnerFromTokenExtensions `json:"extensions,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerFromToken instantiates a new GetRoutes200ResponseRoutesInnerFromToken object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerFromToken(chainID string, chainType string, address string, symbol string, decimals int32) *GetRoutes200ResponseRoutesInnerFromToken { - this := GetRoutes200ResponseRoutesInnerFromToken{} - this.ChainID = chainID - this.ChainType = chainType - this.Address = address - this.Symbol = symbol - this.Decimals = decimals - return &this -} - -// NewGetRoutes200ResponseRoutesInnerFromTokenWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerFromToken object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerFromTokenWithDefaults() *GetRoutes200ResponseRoutesInnerFromToken { - this := GetRoutes200ResponseRoutesInnerFromToken{} - return &this -} - -// GetChainID returns the ChainID field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainID() string { - if o == nil { - var ret string - return ret - } - - return o.ChainID -} - -// GetChainIDOk returns a tuple with the ChainID field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainID, true -} - -// SetChainID sets field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetChainID(v string) { - o.ChainID = v -} - -// GetChainType returns the ChainType field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainType() string { - if o == nil { - var ret string - return ret - } - - return o.ChainType -} - -// GetChainTypeOk returns a tuple with the ChainType field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetChainTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainType, true -} - -// SetChainType sets field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetChainType(v string) { - o.ChainType = v -} - -// GetAddress returns the Address field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetAddress() string { - if o == nil { - var ret string - return ret - } - - return o.Address -} - -// GetAddressOk returns a tuple with the Address field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetAddressOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Address, true -} - -// SetAddress sets field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetAddress(v string) { - o.Address = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetName(v string) { - o.Name = &v -} - -// GetSymbol returns the Symbol field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetSymbol(v string) { - o.Symbol = v -} - -// GetDecimals returns the Decimals field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetDecimals() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Decimals -} - -// GetDecimalsOk returns a tuple with the Decimals field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetDecimalsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Decimals, true -} - -// SetDecimals sets field value -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetDecimals(v int32) { - o.Decimals = v -} - -// GetLogoURI returns the LogoURI field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetLogoURI() string { - if o == nil || IsNil(o.LogoURI) { - var ret string - return ret - } - return *o.LogoURI -} - -// GetLogoURIOk returns a tuple with the LogoURI field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetLogoURIOk() (*string, bool) { - if o == nil || IsNil(o.LogoURI) { - return nil, false - } - return o.LogoURI, true -} - -// HasLogoURI returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) HasLogoURI() bool { - if o != nil && !IsNil(o.LogoURI) { - return true - } - - return false -} - -// SetLogoURI gets a reference to the given string and assigns it to the LogoURI field. -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetLogoURI(v string) { - o.LogoURI = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetTags() []string { - if o == nil || IsNil(o.Tags) { - var ret []string - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetTagsOk() ([]string, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []string and assigns it to the Tags field. -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetTags(v []string) { - o.Tags = v -} - -// GetPriceUSD returns the PriceUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetPriceUSD() string { - if o == nil || IsNil(o.PriceUSD) { - var ret string - return ret - } - return *o.PriceUSD -} - -// GetPriceUSDOk returns a tuple with the PriceUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetPriceUSDOk() (*string, bool) { - if o == nil || IsNil(o.PriceUSD) { - return nil, false - } - return o.PriceUSD, true -} - -// HasPriceUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) HasPriceUSD() bool { - if o != nil && !IsNil(o.PriceUSD) { - return true - } - - return false -} - -// SetPriceUSD gets a reference to the given string and assigns it to the PriceUSD field. -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetPriceUSD(v string) { - o.PriceUSD = &v -} - -// GetExtensions returns the Extensions field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetExtensions() GetRoutes200ResponseRoutesInnerFromTokenExtensions { - if o == nil || IsNil(o.Extensions) { - var ret GetRoutes200ResponseRoutesInnerFromTokenExtensions - return ret - } - return *o.Extensions -} - -// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) GetExtensionsOk() (*GetRoutes200ResponseRoutesInnerFromTokenExtensions, bool) { - if o == nil || IsNil(o.Extensions) { - return nil, false - } - return o.Extensions, true -} - -// HasExtensions returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromToken) HasExtensions() bool { - if o != nil && !IsNil(o.Extensions) { - return true - } - - return false -} - -// SetExtensions gets a reference to the given GetRoutes200ResponseRoutesInnerFromTokenExtensions and assigns it to the Extensions field. -func (o *GetRoutes200ResponseRoutesInnerFromToken) SetExtensions(v GetRoutes200ResponseRoutesInnerFromTokenExtensions) { - o.Extensions = &v -} - -func (o GetRoutes200ResponseRoutesInnerFromToken) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerFromToken) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["chainID"] = o.ChainID - toSerialize["chainType"] = o.ChainType - toSerialize["address"] = o.Address - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["symbol"] = o.Symbol - toSerialize["decimals"] = o.Decimals - if !IsNil(o.LogoURI) { - toSerialize["logoURI"] = o.LogoURI - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.PriceUSD) { - toSerialize["priceUSD"] = o.PriceUSD - } - if !IsNil(o.Extensions) { - toSerialize["extensions"] = o.Extensions - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerFromToken struct { - value *GetRoutes200ResponseRoutesInnerFromToken - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromToken) Get() *GetRoutes200ResponseRoutesInnerFromToken { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromToken) Set(val *GetRoutes200ResponseRoutesInnerFromToken) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromToken) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromToken) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerFromToken(val *GetRoutes200ResponseRoutesInnerFromToken) *NullableGetRoutes200ResponseRoutesInnerFromToken { - return &NullableGetRoutes200ResponseRoutesInnerFromToken{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromToken) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromToken) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions.go deleted file mode 100644 index a0099c3234..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerFromTokenExtensions type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerFromTokenExtensions{} - -// GetRoutes200ResponseRoutesInnerFromTokenExtensions struct for GetRoutes200ResponseRoutesInnerFromTokenExtensions -type GetRoutes200ResponseRoutesInnerFromTokenExtensions struct { - BridgeInfo *map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue `json:"bridgeInfo,omitempty"` - // Indicates whether the token is verified. - Verified *bool `json:"verified,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerFromTokenExtensions instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensions object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerFromTokenExtensions() *GetRoutes200ResponseRoutesInnerFromTokenExtensions { - this := GetRoutes200ResponseRoutesInnerFromTokenExtensions{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensions object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsWithDefaults() *GetRoutes200ResponseRoutesInnerFromTokenExtensions { - this := GetRoutes200ResponseRoutesInnerFromTokenExtensions{} - return &this -} - -// GetBridgeInfo returns the BridgeInfo field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetBridgeInfo() map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue { - if o == nil || IsNil(o.BridgeInfo) { - var ret map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue - return ret - } - return *o.BridgeInfo -} - -// GetBridgeInfoOk returns a tuple with the BridgeInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetBridgeInfoOk() (*map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue, bool) { - if o == nil || IsNil(o.BridgeInfo) { - return nil, false - } - return o.BridgeInfo, true -} - -// HasBridgeInfo returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) HasBridgeInfo() bool { - if o != nil && !IsNil(o.BridgeInfo) { - return true - } - - return false -} - -// SetBridgeInfo gets a reference to the given map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue and assigns it to the BridgeInfo field. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) SetBridgeInfo(v map[string]GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) { - o.BridgeInfo = &v -} - -// GetVerified returns the Verified field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetVerified() bool { - if o == nil || IsNil(o.Verified) { - var ret bool - return ret - } - return *o.Verified -} - -// GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) GetVerifiedOk() (*bool, bool) { - if o == nil || IsNil(o.Verified) { - return nil, false - } - return o.Verified, true -} - -// HasVerified returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) HasVerified() bool { - if o != nil && !IsNil(o.Verified) { - return true - } - - return false -} - -// SetVerified gets a reference to the given bool and assigns it to the Verified field. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensions) SetVerified(v bool) { - o.Verified = &v -} - -func (o GetRoutes200ResponseRoutesInnerFromTokenExtensions) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerFromTokenExtensions) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.BridgeInfo) { - toSerialize["bridgeInfo"] = o.BridgeInfo - } - if !IsNil(o.Verified) { - toSerialize["verified"] = o.Verified - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions struct { - value *GetRoutes200ResponseRoutesInnerFromTokenExtensions - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions) Get() *GetRoutes200ResponseRoutesInnerFromTokenExtensions { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions) Set(val *GetRoutes200ResponseRoutesInnerFromTokenExtensions) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerFromTokenExtensions(val *GetRoutes200ResponseRoutesInnerFromTokenExtensions) *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions { - return &NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions_bridge_info_value.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions_bridge_info_value.go deleted file mode 100644 index d6337f0003..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_from_token_extensions_bridge_info_value.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue{} - -// GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue Information about the bridge used for the token transfer. -type GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue struct { - // The address of the token being transferred. - TokenAddress *string `json:"tokenAddress,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue() *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue { - this := GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValueWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValueWithDefaults() *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue { - this := GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue{} - return &this -} - -// GetTokenAddress returns the TokenAddress field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) GetTokenAddress() string { - if o == nil || IsNil(o.TokenAddress) { - var ret string - return ret - } - return *o.TokenAddress -} - -// GetTokenAddressOk returns a tuple with the TokenAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) GetTokenAddressOk() (*string, bool) { - if o == nil || IsNil(o.TokenAddress) { - return nil, false - } - return o.TokenAddress, true -} - -// HasTokenAddress returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) HasTokenAddress() bool { - if o != nil && !IsNil(o.TokenAddress) { - return true - } - - return false -} - -// SetTokenAddress gets a reference to the given string and assigns it to the TokenAddress field. -func (o *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) SetTokenAddress(v string) { - o.TokenAddress = &v -} - -func (o GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.TokenAddress) { - toSerialize["tokenAddress"] = o.TokenAddress - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue struct { - value *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) Get() *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) Set(val *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue(val *GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue { - return &NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_insurance.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_insurance.go deleted file mode 100644 index 76404d4938..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_insurance.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerInsurance type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerInsurance{} - -// GetRoutes200ResponseRoutesInnerInsurance struct for GetRoutes200ResponseRoutesInnerInsurance -type GetRoutes200ResponseRoutesInnerInsurance struct { - // The state of insurance applicability for the transaction. - State *string `json:"state,omitempty"` - // The fee amount for insurance, represented in USD. - FeeAmountUsd *string `json:"feeAmountUsd,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerInsurance instantiates a new GetRoutes200ResponseRoutesInnerInsurance object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerInsurance() *GetRoutes200ResponseRoutesInnerInsurance { - this := GetRoutes200ResponseRoutesInnerInsurance{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerInsuranceWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerInsurance object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerInsuranceWithDefaults() *GetRoutes200ResponseRoutesInnerInsurance { - this := GetRoutes200ResponseRoutesInnerInsurance{} - return &this -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerInsurance) GetState() string { - if o == nil || IsNil(o.State) { - var ret string - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerInsurance) GetStateOk() (*string, bool) { - if o == nil || IsNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerInsurance) HasState() bool { - if o != nil && !IsNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given string and assigns it to the State field. -func (o *GetRoutes200ResponseRoutesInnerInsurance) SetState(v string) { - o.State = &v -} - -// GetFeeAmountUsd returns the FeeAmountUsd field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerInsurance) GetFeeAmountUsd() string { - if o == nil || IsNil(o.FeeAmountUsd) { - var ret string - return ret - } - return *o.FeeAmountUsd -} - -// GetFeeAmountUsdOk returns a tuple with the FeeAmountUsd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerInsurance) GetFeeAmountUsdOk() (*string, bool) { - if o == nil || IsNil(o.FeeAmountUsd) { - return nil, false - } - return o.FeeAmountUsd, true -} - -// HasFeeAmountUsd returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerInsurance) HasFeeAmountUsd() bool { - if o != nil && !IsNil(o.FeeAmountUsd) { - return true - } - - return false -} - -// SetFeeAmountUsd gets a reference to the given string and assigns it to the FeeAmountUsd field. -func (o *GetRoutes200ResponseRoutesInnerInsurance) SetFeeAmountUsd(v string) { - o.FeeAmountUsd = &v -} - -func (o GetRoutes200ResponseRoutesInnerInsurance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerInsurance) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.State) { - toSerialize["state"] = o.State - } - if !IsNil(o.FeeAmountUsd) { - toSerialize["feeAmountUsd"] = o.FeeAmountUsd - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerInsurance struct { - value *GetRoutes200ResponseRoutesInnerInsurance - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerInsurance) Get() *GetRoutes200ResponseRoutesInnerInsurance { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerInsurance) Set(val *GetRoutes200ResponseRoutesInnerInsurance) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerInsurance) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerInsurance) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerInsurance(val *GetRoutes200ResponseRoutesInnerInsurance) *NullableGetRoutes200ResponseRoutesInnerInsurance { - return &NullableGetRoutes200ResponseRoutesInnerInsurance{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerInsurance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerInsurance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner.go deleted file mode 100644 index 21523c9b17..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner.go +++ /dev/null @@ -1,382 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerStepsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerStepsInner{} - -// GetRoutes200ResponseRoutesInnerStepsInner Details a single step within a route including actions and estimates. -type GetRoutes200ResponseRoutesInnerStepsInner struct { - // Id of the step - Id *string `json:"id,omitempty"` - // Type of the step, typically describing the action, e.g., 'swap'. - Type *string `json:"type,omitempty"` - // Tool used in the step, e.g., 'stargate'. - Tool *string `json:"tool,omitempty"` - Action *GetRoutes200ResponseRoutesInnerStepsInnerAction `json:"action,omitempty"` - Estimate *GetRoutes200ResponseRoutesInnerStepsInnerEstimate `json:"estimate,omitempty"` - ToolDetails *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails `json:"toolDetails,omitempty"` - IntegrationDetails *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails `json:"integrationDetails,omitempty"` - // IDs of further steps included within this step, allowing for nested actions without direct recursion. - IncludedStepIds []string `json:"includedStepIds,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerStepsInner instantiates a new GetRoutes200ResponseRoutesInnerStepsInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerStepsInner() *GetRoutes200ResponseRoutesInnerStepsInner { - this := GetRoutes200ResponseRoutesInnerStepsInner{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerStepsInnerWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInner { - this := GetRoutes200ResponseRoutesInnerStepsInner{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetId(v string) { - o.Id = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetType(v string) { - o.Type = &v -} - -// GetTool returns the Tool field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetTool() string { - if o == nil || IsNil(o.Tool) { - var ret string - return ret - } - return *o.Tool -} - -// GetToolOk returns a tuple with the Tool field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetToolOk() (*string, bool) { - if o == nil || IsNil(o.Tool) { - return nil, false - } - return o.Tool, true -} - -// HasTool returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasTool() bool { - if o != nil && !IsNil(o.Tool) { - return true - } - - return false -} - -// SetTool gets a reference to the given string and assigns it to the Tool field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetTool(v string) { - o.Tool = &v -} - -// GetAction returns the Action field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetAction() GetRoutes200ResponseRoutesInnerStepsInnerAction { - if o == nil || IsNil(o.Action) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerAction - return ret - } - return *o.Action -} - -// GetActionOk returns a tuple with the Action field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetActionOk() (*GetRoutes200ResponseRoutesInnerStepsInnerAction, bool) { - if o == nil || IsNil(o.Action) { - return nil, false - } - return o.Action, true -} - -// HasAction returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasAction() bool { - if o != nil && !IsNil(o.Action) { - return true - } - - return false -} - -// SetAction gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerAction and assigns it to the Action field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetAction(v GetRoutes200ResponseRoutesInnerStepsInnerAction) { - o.Action = &v -} - -// GetEstimate returns the Estimate field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetEstimate() GetRoutes200ResponseRoutesInnerStepsInnerEstimate { - if o == nil || IsNil(o.Estimate) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerEstimate - return ret - } - return *o.Estimate -} - -// GetEstimateOk returns a tuple with the Estimate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetEstimateOk() (*GetRoutes200ResponseRoutesInnerStepsInnerEstimate, bool) { - if o == nil || IsNil(o.Estimate) { - return nil, false - } - return o.Estimate, true -} - -// HasEstimate returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasEstimate() bool { - if o != nil && !IsNil(o.Estimate) { - return true - } - - return false -} - -// SetEstimate gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerEstimate and assigns it to the Estimate field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetEstimate(v GetRoutes200ResponseRoutesInnerStepsInnerEstimate) { - o.Estimate = &v -} - -// GetToolDetails returns the ToolDetails field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetToolDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - if o == nil || IsNil(o.ToolDetails) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerToolDetails - return ret - } - return *o.ToolDetails -} - -// GetToolDetailsOk returns a tuple with the ToolDetails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetToolDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool) { - if o == nil || IsNil(o.ToolDetails) { - return nil, false - } - return o.ToolDetails, true -} - -// HasToolDetails returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasToolDetails() bool { - if o != nil && !IsNil(o.ToolDetails) { - return true - } - - return false -} - -// SetToolDetails gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerToolDetails and assigns it to the ToolDetails field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetToolDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) { - o.ToolDetails = &v -} - -// GetIntegrationDetails returns the IntegrationDetails field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIntegrationDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - if o == nil || IsNil(o.IntegrationDetails) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerToolDetails - return ret - } - return *o.IntegrationDetails -} - -// GetIntegrationDetailsOk returns a tuple with the IntegrationDetails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIntegrationDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool) { - if o == nil || IsNil(o.IntegrationDetails) { - return nil, false - } - return o.IntegrationDetails, true -} - -// HasIntegrationDetails returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasIntegrationDetails() bool { - if o != nil && !IsNil(o.IntegrationDetails) { - return true - } - - return false -} - -// SetIntegrationDetails gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerToolDetails and assigns it to the IntegrationDetails field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetIntegrationDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) { - o.IntegrationDetails = &v -} - -// GetIncludedStepIds returns the IncludedStepIds field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIncludedStepIds() []string { - if o == nil || IsNil(o.IncludedStepIds) { - var ret []string - return ret - } - return o.IncludedStepIds -} - -// GetIncludedStepIdsOk returns a tuple with the IncludedStepIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) GetIncludedStepIdsOk() ([]string, bool) { - if o == nil || IsNil(o.IncludedStepIds) { - return nil, false - } - return o.IncludedStepIds, true -} - -// HasIncludedStepIds returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) HasIncludedStepIds() bool { - if o != nil && !IsNil(o.IncludedStepIds) { - return true - } - - return false -} - -// SetIncludedStepIds gets a reference to the given []string and assigns it to the IncludedStepIds field. -func (o *GetRoutes200ResponseRoutesInnerStepsInner) SetIncludedStepIds(v []string) { - o.IncludedStepIds = v -} - -func (o GetRoutes200ResponseRoutesInnerStepsInner) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerStepsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Tool) { - toSerialize["tool"] = o.Tool - } - if !IsNil(o.Action) { - toSerialize["action"] = o.Action - } - if !IsNil(o.Estimate) { - toSerialize["estimate"] = o.Estimate - } - if !IsNil(o.ToolDetails) { - toSerialize["toolDetails"] = o.ToolDetails - } - if !IsNil(o.IntegrationDetails) { - toSerialize["integrationDetails"] = o.IntegrationDetails - } - if !IsNil(o.IncludedStepIds) { - toSerialize["includedStepIds"] = o.IncludedStepIds - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerStepsInner struct { - value *GetRoutes200ResponseRoutesInnerStepsInner - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInner) Get() *GetRoutes200ResponseRoutesInnerStepsInner { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInner) Set(val *GetRoutes200ResponseRoutesInnerStepsInner) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerStepsInner(val *GetRoutes200ResponseRoutesInnerStepsInner) *NullableGetRoutes200ResponseRoutesInnerStepsInner { - return &NullableGetRoutes200ResponseRoutesInnerStepsInner{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_action.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_action.go deleted file mode 100644 index f1148a04fd..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_action.go +++ /dev/null @@ -1,310 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerStepsInnerAction type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerStepsInnerAction{} - -// GetRoutes200ResponseRoutesInnerStepsInnerAction struct for GetRoutes200ResponseRoutesInnerStepsInnerAction -type GetRoutes200ResponseRoutesInnerStepsInnerAction struct { - FromToken *GetRoutes200ResponseRoutesInnerFromToken `json:"fromToken,omitempty"` - // The amount of 'fromToken' to be transferred, specified as a string to maintain precision. - FromAmount *string `json:"fromAmount,omitempty"` - ToToken *GetRoutes200ResponseRoutesInnerFromToken `json:"toToken,omitempty"` - // The maximum acceptable difference between the expected price of the 'toToken' and the price at the time of the transfer. - Slippage *float32 `json:"slippage,omitempty"` - // A blockchain address. - FromAddress *string `json:"fromAddress,omitempty"` - // A blockchain address. - ToAddress *string `json:"toAddress,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerAction instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerAction object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerStepsInnerAction() *GetRoutes200ResponseRoutesInnerStepsInnerAction { - this := GetRoutes200ResponseRoutesInnerStepsInnerAction{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerActionWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerAction object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerStepsInnerActionWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerAction { - this := GetRoutes200ResponseRoutesInnerStepsInnerAction{} - return &this -} - -// GetFromToken returns the FromToken field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.FromToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.FromToken -} - -// GetFromTokenOk returns a tuple with the FromToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.FromToken) { - return nil, false - } - return o.FromToken, true -} - -// HasFromToken returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasFromToken() bool { - if o != nil && !IsNil(o.FromToken) { - return true - } - - return false -} - -// SetFromToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the FromToken field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.FromToken = &v -} - -// GetFromAmount returns the FromAmount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAmount() string { - if o == nil || IsNil(o.FromAmount) { - var ret string - return ret - } - return *o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAmountOk() (*string, bool) { - if o == nil || IsNil(o.FromAmount) { - return nil, false - } - return o.FromAmount, true -} - -// HasFromAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasFromAmount() bool { - if o != nil && !IsNil(o.FromAmount) { - return true - } - - return false -} - -// SetFromAmount gets a reference to the given string and assigns it to the FromAmount field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetFromAmount(v string) { - o.FromAmount = &v -} - -// GetToToken returns the ToToken field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.ToToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.ToToken -} - -// GetToTokenOk returns a tuple with the ToToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.ToToken) { - return nil, false - } - return o.ToToken, true -} - -// HasToToken returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasToToken() bool { - if o != nil && !IsNil(o.ToToken) { - return true - } - - return false -} - -// SetToToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the ToToken field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.ToToken = &v -} - -// GetSlippage returns the Slippage field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetSlippage() float32 { - if o == nil || IsNil(o.Slippage) { - var ret float32 - return ret - } - return *o.Slippage -} - -// GetSlippageOk returns a tuple with the Slippage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetSlippageOk() (*float32, bool) { - if o == nil || IsNil(o.Slippage) { - return nil, false - } - return o.Slippage, true -} - -// HasSlippage returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasSlippage() bool { - if o != nil && !IsNil(o.Slippage) { - return true - } - - return false -} - -// SetSlippage gets a reference to the given float32 and assigns it to the Slippage field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetSlippage(v float32) { - o.Slippage = &v -} - -// GetFromAddress returns the FromAddress field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAddress() string { - if o == nil || IsNil(o.FromAddress) { - var ret string - return ret - } - return *o.FromAddress -} - -// GetFromAddressOk returns a tuple with the FromAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetFromAddressOk() (*string, bool) { - if o == nil || IsNil(o.FromAddress) { - return nil, false - } - return o.FromAddress, true -} - -// HasFromAddress returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasFromAddress() bool { - if o != nil && !IsNil(o.FromAddress) { - return true - } - - return false -} - -// SetFromAddress gets a reference to the given string and assigns it to the FromAddress field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetFromAddress(v string) { - o.FromAddress = &v -} - -// GetToAddress returns the ToAddress field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToAddress() string { - if o == nil || IsNil(o.ToAddress) { - var ret string - return ret - } - return *o.ToAddress -} - -// GetToAddressOk returns a tuple with the ToAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) GetToAddressOk() (*string, bool) { - if o == nil || IsNil(o.ToAddress) { - return nil, false - } - return o.ToAddress, true -} - -// HasToAddress returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) HasToAddress() bool { - if o != nil && !IsNil(o.ToAddress) { - return true - } - - return false -} - -// SetToAddress gets a reference to the given string and assigns it to the ToAddress field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerAction) SetToAddress(v string) { - o.ToAddress = &v -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerAction) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerAction) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.FromToken) { - toSerialize["fromToken"] = o.FromToken - } - if !IsNil(o.FromAmount) { - toSerialize["fromAmount"] = o.FromAmount - } - if !IsNil(o.ToToken) { - toSerialize["toToken"] = o.ToToken - } - if !IsNil(o.Slippage) { - toSerialize["slippage"] = o.Slippage - } - if !IsNil(o.FromAddress) { - toSerialize["fromAddress"] = o.FromAddress - } - if !IsNil(o.ToAddress) { - toSerialize["toAddress"] = o.ToAddress - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerStepsInnerAction struct { - value *GetRoutes200ResponseRoutesInnerStepsInnerAction - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerAction) Get() *GetRoutes200ResponseRoutesInnerStepsInnerAction { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerAction) Set(val *GetRoutes200ResponseRoutesInnerStepsInnerAction) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerAction) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerAction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerStepsInnerAction(val *GetRoutes200ResponseRoutesInnerStepsInnerAction) *NullableGetRoutes200ResponseRoutesInnerStepsInnerAction { - return &NullableGetRoutes200ResponseRoutesInnerStepsInnerAction{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerAction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerAction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate.go deleted file mode 100644 index 62d15bf400..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate.go +++ /dev/null @@ -1,460 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerStepsInnerEstimate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerStepsInnerEstimate{} - -// GetRoutes200ResponseRoutesInnerStepsInnerEstimate Provides an estimation for a transaction, including costs, amounts, and execution duration. -type GetRoutes200ResponseRoutesInnerStepsInnerEstimate struct { - // A blockchain address. - ApprovalAddress *string `json:"approvalAddress,omitempty"` - // The amount in string format including all decimals. - ToAmountMin *string `json:"toAmountMin,omitempty"` - // The amount in string format including all decimals. - ToAmount *string `json:"toAmount,omitempty"` - // The amount in string format including all decimals. - FromAmount *string `json:"fromAmount,omitempty"` - // A collection of fee costs associated with the transaction. - FeeCosts []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner `json:"feeCosts,omitempty"` - // A collection of estimated gas costs for executing the transaction. - GasCosts []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner `json:"gasCosts,omitempty"` - // The estimated duration for the transaction execution in seconds. - ExecutionDuration *int32 `json:"executionDuration,omitempty"` - // The amount in string format including all decimals. - FromAmountUSD *string `json:"fromAmountUSD,omitempty"` - // The amount in string format including all decimals. - ToAmountUSD *string `json:"toAmountUSD,omitempty"` - // The tool or service used to generate this estimate. - Tool *string `json:"tool,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerEstimate instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimate() *GetRoutes200ResponseRoutesInnerStepsInnerEstimate { - this := GetRoutes200ResponseRoutesInnerStepsInnerEstimate{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerEstimate { - this := GetRoutes200ResponseRoutesInnerStepsInnerEstimate{} - return &this -} - -// GetApprovalAddress returns the ApprovalAddress field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetApprovalAddress() string { - if o == nil || IsNil(o.ApprovalAddress) { - var ret string - return ret - } - return *o.ApprovalAddress -} - -// GetApprovalAddressOk returns a tuple with the ApprovalAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetApprovalAddressOk() (*string, bool) { - if o == nil || IsNil(o.ApprovalAddress) { - return nil, false - } - return o.ApprovalAddress, true -} - -// HasApprovalAddress returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasApprovalAddress() bool { - if o != nil && !IsNil(o.ApprovalAddress) { - return true - } - - return false -} - -// SetApprovalAddress gets a reference to the given string and assigns it to the ApprovalAddress field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetApprovalAddress(v string) { - o.ApprovalAddress = &v -} - -// GetToAmountMin returns the ToAmountMin field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountMin() string { - if o == nil || IsNil(o.ToAmountMin) { - var ret string - return ret - } - return *o.ToAmountMin -} - -// GetToAmountMinOk returns a tuple with the ToAmountMin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountMinOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountMin) { - return nil, false - } - return o.ToAmountMin, true -} - -// HasToAmountMin returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasToAmountMin() bool { - if o != nil && !IsNil(o.ToAmountMin) { - return true - } - - return false -} - -// SetToAmountMin gets a reference to the given string and assigns it to the ToAmountMin field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetToAmountMin(v string) { - o.ToAmountMin = &v -} - -// GetToAmount returns the ToAmount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmount() string { - if o == nil || IsNil(o.ToAmount) { - var ret string - return ret - } - return *o.ToAmount -} - -// GetToAmountOk returns a tuple with the ToAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountOk() (*string, bool) { - if o == nil || IsNil(o.ToAmount) { - return nil, false - } - return o.ToAmount, true -} - -// HasToAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasToAmount() bool { - if o != nil && !IsNil(o.ToAmount) { - return true - } - - return false -} - -// SetToAmount gets a reference to the given string and assigns it to the ToAmount field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetToAmount(v string) { - o.ToAmount = &v -} - -// GetFromAmount returns the FromAmount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmount() string { - if o == nil || IsNil(o.FromAmount) { - var ret string - return ret - } - return *o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmountOk() (*string, bool) { - if o == nil || IsNil(o.FromAmount) { - return nil, false - } - return o.FromAmount, true -} - -// HasFromAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasFromAmount() bool { - if o != nil && !IsNil(o.FromAmount) { - return true - } - - return false -} - -// SetFromAmount gets a reference to the given string and assigns it to the FromAmount field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetFromAmount(v string) { - o.FromAmount = &v -} - -// GetFeeCosts returns the FeeCosts field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFeeCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner { - if o == nil || IsNil(o.FeeCosts) { - var ret []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner - return ret - } - return o.FeeCosts -} - -// GetFeeCostsOk returns a tuple with the FeeCosts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFeeCostsOk() ([]GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner, bool) { - if o == nil || IsNil(o.FeeCosts) { - return nil, false - } - return o.FeeCosts, true -} - -// HasFeeCosts returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasFeeCosts() bool { - if o != nil && !IsNil(o.FeeCosts) { - return true - } - - return false -} - -// SetFeeCosts gets a reference to the given []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner and assigns it to the FeeCosts field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetFeeCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) { - o.FeeCosts = v -} - -// GetGasCosts returns the GasCosts field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetGasCosts() []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner { - if o == nil || IsNil(o.GasCosts) { - var ret []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner - return ret - } - return o.GasCosts -} - -// GetGasCostsOk returns a tuple with the GasCosts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetGasCostsOk() ([]GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner, bool) { - if o == nil || IsNil(o.GasCosts) { - return nil, false - } - return o.GasCosts, true -} - -// HasGasCosts returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasGasCosts() bool { - if o != nil && !IsNil(o.GasCosts) { - return true - } - - return false -} - -// SetGasCosts gets a reference to the given []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner and assigns it to the GasCosts field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetGasCosts(v []GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) { - o.GasCosts = v -} - -// GetExecutionDuration returns the ExecutionDuration field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetExecutionDuration() int32 { - if o == nil || IsNil(o.ExecutionDuration) { - var ret int32 - return ret - } - return *o.ExecutionDuration -} - -// GetExecutionDurationOk returns a tuple with the ExecutionDuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetExecutionDurationOk() (*int32, bool) { - if o == nil || IsNil(o.ExecutionDuration) { - return nil, false - } - return o.ExecutionDuration, true -} - -// HasExecutionDuration returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasExecutionDuration() bool { - if o != nil && !IsNil(o.ExecutionDuration) { - return true - } - - return false -} - -// SetExecutionDuration gets a reference to the given int32 and assigns it to the ExecutionDuration field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetExecutionDuration(v int32) { - o.ExecutionDuration = &v -} - -// GetFromAmountUSD returns the FromAmountUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmountUSD() string { - if o == nil || IsNil(o.FromAmountUSD) { - var ret string - return ret - } - return *o.FromAmountUSD -} - -// GetFromAmountUSDOk returns a tuple with the FromAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetFromAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.FromAmountUSD) { - return nil, false - } - return o.FromAmountUSD, true -} - -// HasFromAmountUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasFromAmountUSD() bool { - if o != nil && !IsNil(o.FromAmountUSD) { - return true - } - - return false -} - -// SetFromAmountUSD gets a reference to the given string and assigns it to the FromAmountUSD field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetFromAmountUSD(v string) { - o.FromAmountUSD = &v -} - -// GetToAmountUSD returns the ToAmountUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountUSD() string { - if o == nil || IsNil(o.ToAmountUSD) { - var ret string - return ret - } - return *o.ToAmountUSD -} - -// GetToAmountUSDOk returns a tuple with the ToAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountUSD) { - return nil, false - } - return o.ToAmountUSD, true -} - -// HasToAmountUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasToAmountUSD() bool { - if o != nil && !IsNil(o.ToAmountUSD) { - return true - } - - return false -} - -// SetToAmountUSD gets a reference to the given string and assigns it to the ToAmountUSD field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetToAmountUSD(v string) { - o.ToAmountUSD = &v -} - -// GetTool returns the Tool field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetTool() string { - if o == nil || IsNil(o.Tool) { - var ret string - return ret - } - return *o.Tool -} - -// GetToolOk returns a tuple with the Tool field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) GetToolOk() (*string, bool) { - if o == nil || IsNil(o.Tool) { - return nil, false - } - return o.Tool, true -} - -// HasTool returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) HasTool() bool { - if o != nil && !IsNil(o.Tool) { - return true - } - - return false -} - -// SetTool gets a reference to the given string and assigns it to the Tool field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) SetTool(v string) { - o.Tool = &v -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerEstimate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerEstimate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ApprovalAddress) { - toSerialize["approvalAddress"] = o.ApprovalAddress - } - if !IsNil(o.ToAmountMin) { - toSerialize["toAmountMin"] = o.ToAmountMin - } - if !IsNil(o.ToAmount) { - toSerialize["toAmount"] = o.ToAmount - } - if !IsNil(o.FromAmount) { - toSerialize["fromAmount"] = o.FromAmount - } - if !IsNil(o.FeeCosts) { - toSerialize["feeCosts"] = o.FeeCosts - } - if !IsNil(o.GasCosts) { - toSerialize["gasCosts"] = o.GasCosts - } - if !IsNil(o.ExecutionDuration) { - toSerialize["executionDuration"] = o.ExecutionDuration - } - if !IsNil(o.FromAmountUSD) { - toSerialize["fromAmountUSD"] = o.FromAmountUSD - } - if !IsNil(o.ToAmountUSD) { - toSerialize["toAmountUSD"] = o.ToAmountUSD - } - if !IsNil(o.Tool) { - toSerialize["tool"] = o.Tool - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate struct { - value *GetRoutes200ResponseRoutesInnerStepsInnerEstimate - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate) Get() *GetRoutes200ResponseRoutesInnerStepsInnerEstimate { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate) Set(val *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate(val *GetRoutes200ResponseRoutesInnerStepsInnerEstimate) *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate { - return &NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_fee_costs_inner.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_fee_costs_inner.go deleted file mode 100644 index 36653106eb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_fee_costs_inner.go +++ /dev/null @@ -1,275 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner{} - -// GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner Details about a specific fee cost associated with the transaction. -type GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner struct { - // Name of the fee cost. - Name *string `json:"name,omitempty"` - // The amount in string format including all decimals. - Amount *string `json:"amount,omitempty"` - // The amount in string format including all decimals. - AmountUSD *string `json:"amountUSD,omitempty"` - // The symbol of a token - Token *string `json:"token,omitempty"` - // Indicates if the fee is included in the transaction amount. - Included *bool `json:"included,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner { - this := GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInnerWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner { - this := GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetName(v string) { - o.Name = &v -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmount() string { - if o == nil || IsNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmountOk() (*string, bool) { - if o == nil || IsNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasAmount() bool { - if o != nil && !IsNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetAmount(v string) { - o.Amount = &v -} - -// GetAmountUSD returns the AmountUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmountUSD() string { - if o == nil || IsNil(o.AmountUSD) { - var ret string - return ret - } - return *o.AmountUSD -} - -// GetAmountUSDOk returns a tuple with the AmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.AmountUSD) { - return nil, false - } - return o.AmountUSD, true -} - -// HasAmountUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasAmountUSD() bool { - if o != nil && !IsNil(o.AmountUSD) { - return true - } - - return false -} - -// SetAmountUSD gets a reference to the given string and assigns it to the AmountUSD field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetAmountUSD(v string) { - o.AmountUSD = &v -} - -// GetToken returns the Token field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetToken() string { - if o == nil || IsNil(o.Token) { - var ret string - return ret - } - return *o.Token -} - -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetTokenOk() (*string, bool) { - if o == nil || IsNil(o.Token) { - return nil, false - } - return o.Token, true -} - -// HasToken returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasToken() bool { - if o != nil && !IsNil(o.Token) { - return true - } - - return false -} - -// SetToken gets a reference to the given string and assigns it to the Token field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetToken(v string) { - o.Token = &v -} - -// GetIncluded returns the Included field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetIncluded() bool { - if o == nil || IsNil(o.Included) { - var ret bool - return ret - } - return *o.Included -} - -// GetIncludedOk returns a tuple with the Included field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) GetIncludedOk() (*bool, bool) { - if o == nil || IsNil(o.Included) { - return nil, false - } - return o.Included, true -} - -// HasIncluded returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) HasIncluded() bool { - if o != nil && !IsNil(o.Included) { - return true - } - - return false -} - -// SetIncluded gets a reference to the given bool and assigns it to the Included field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) SetIncluded(v bool) { - o.Included = &v -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !IsNil(o.AmountUSD) { - toSerialize["amountUSD"] = o.AmountUSD - } - if !IsNil(o.Token) { - toSerialize["token"] = o.Token - } - if !IsNil(o.Included) { - toSerialize["included"] = o.Included - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner struct { - value *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) Get() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) Set(val *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner(val *GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner { - return &NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_gas_costs_inner.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_gas_costs_inner.go deleted file mode 100644 index a883fbf098..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_estimate_gas_costs_inner.go +++ /dev/null @@ -1,348 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner{} - -// GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner struct for GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner -type GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner struct { - // The type of the gas cost. - Type *string `json:"type,omitempty"` - // The gas price, specified as a string to maintain precision. - Price *string `json:"price,omitempty"` - // The estimated gas required, specified as a string to maintain precision. - Estimate *string `json:"estimate,omitempty"` - // The gas limit for the transaction, specified as a string to maintain precision. - Limit *string `json:"limit,omitempty"` - // The amount of gas required in the gas currency. - Amount *string `json:"amount,omitempty"` - // The amount of gas required in USD. - AmountUSD *string `json:"amountUSD,omitempty"` - Token *GetRoutes200ResponseRoutesInnerFromToken `json:"token,omitempty"` -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner { - this := GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner{} - return &this -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInnerWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInnerWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner { - this := GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetType(v string) { - o.Type = &v -} - -// GetPrice returns the Price field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetPrice() string { - if o == nil || IsNil(o.Price) { - var ret string - return ret - } - return *o.Price -} - -// GetPriceOk returns a tuple with the Price field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetPriceOk() (*string, bool) { - if o == nil || IsNil(o.Price) { - return nil, false - } - return o.Price, true -} - -// HasPrice returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasPrice() bool { - if o != nil && !IsNil(o.Price) { - return true - } - - return false -} - -// SetPrice gets a reference to the given string and assigns it to the Price field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetPrice(v string) { - o.Price = &v -} - -// GetEstimate returns the Estimate field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetEstimate() string { - if o == nil || IsNil(o.Estimate) { - var ret string - return ret - } - return *o.Estimate -} - -// GetEstimateOk returns a tuple with the Estimate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetEstimateOk() (*string, bool) { - if o == nil || IsNil(o.Estimate) { - return nil, false - } - return o.Estimate, true -} - -// HasEstimate returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasEstimate() bool { - if o != nil && !IsNil(o.Estimate) { - return true - } - - return false -} - -// SetEstimate gets a reference to the given string and assigns it to the Estimate field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetEstimate(v string) { - o.Estimate = &v -} - -// GetLimit returns the Limit field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetLimit() string { - if o == nil || IsNil(o.Limit) { - var ret string - return ret - } - return *o.Limit -} - -// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetLimitOk() (*string, bool) { - if o == nil || IsNil(o.Limit) { - return nil, false - } - return o.Limit, true -} - -// HasLimit returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasLimit() bool { - if o != nil && !IsNil(o.Limit) { - return true - } - - return false -} - -// SetLimit gets a reference to the given string and assigns it to the Limit field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetLimit(v string) { - o.Limit = &v -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmount() string { - if o == nil || IsNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmountOk() (*string, bool) { - if o == nil || IsNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasAmount() bool { - if o != nil && !IsNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetAmount(v string) { - o.Amount = &v -} - -// GetAmountUSD returns the AmountUSD field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmountUSD() string { - if o == nil || IsNil(o.AmountUSD) { - var ret string - return ret - } - return *o.AmountUSD -} - -// GetAmountUSDOk returns a tuple with the AmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.AmountUSD) { - return nil, false - } - return o.AmountUSD, true -} - -// HasAmountUSD returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasAmountUSD() bool { - if o != nil && !IsNil(o.AmountUSD) { - return true - } - - return false -} - -// SetAmountUSD gets a reference to the given string and assigns it to the AmountUSD field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetAmountUSD(v string) { - o.AmountUSD = &v -} - -// GetToken returns the Token field value if set, zero value otherwise. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.Token) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.Token -} - -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) GetTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.Token) { - return nil, false - } - return o.Token, true -} - -// HasToken returns a boolean if a field has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) HasToken() bool { - if o != nil && !IsNil(o.Token) { - return true - } - - return false -} - -// SetToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the Token field. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) SetToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.Token = &v -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Price) { - toSerialize["price"] = o.Price - } - if !IsNil(o.Estimate) { - toSerialize["estimate"] = o.Estimate - } - if !IsNil(o.Limit) { - toSerialize["limit"] = o.Limit - } - if !IsNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !IsNil(o.AmountUSD) { - toSerialize["amountUSD"] = o.AmountUSD - } - if !IsNil(o.Token) { - toSerialize["token"] = o.Token - } - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner struct { - value *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) Get() *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) Set(val *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner(val *GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner { - return &NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_tool_details.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_tool_details.go deleted file mode 100644 index c321992456..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_get_routes_200_response_routes_inner_steps_inner_tool_details.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the GetRoutes200ResponseRoutesInnerStepsInnerToolDetails type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetRoutes200ResponseRoutesInnerStepsInnerToolDetails{} - -// GetRoutes200ResponseRoutesInnerStepsInnerToolDetails Describes integration or tool details such as bridges or exchanges involved in the transaction. -type GetRoutes200ResponseRoutesInnerStepsInnerToolDetails struct { - // A unique identifier for the integration or tool. - Key string `json:"key"` - // The name of the integration or tool. - Name string `json:"name"` - // URL to the logo of the integration or tool. - LogoURI string `json:"logoURI"` -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetails instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerToolDetails object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetails(key string, name string, logoURI string) *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - this := GetRoutes200ResponseRoutesInnerStepsInnerToolDetails{} - this.Key = key - this.Name = name - this.LogoURI = logoURI - return &this -} - -// NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetailsWithDefaults instantiates a new GetRoutes200ResponseRoutesInnerStepsInnerToolDetails object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetRoutes200ResponseRoutesInnerStepsInnerToolDetailsWithDefaults() *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - this := GetRoutes200ResponseRoutesInnerStepsInnerToolDetails{} - return &this -} - -// GetKey returns the Key field value -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) SetKey(v string) { - o.Key = v -} - -// GetName returns the Name field value -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) SetName(v string) { - o.Name = v -} - -// GetLogoURI returns the LogoURI field value -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetLogoURI() string { - if o == nil { - var ret string - return ret - } - - return o.LogoURI -} - -// GetLogoURIOk returns a tuple with the LogoURI field value -// and a boolean to check if the value has been set. -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) GetLogoURIOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LogoURI, true -} - -// SetLogoURI sets field value -func (o *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) SetLogoURI(v string) { - o.LogoURI = v -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["key"] = o.Key - toSerialize["name"] = o.Name - toSerialize["logoURI"] = o.LogoURI - return toSerialize, nil -} - -type NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails struct { - value *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails - isSet bool -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails) Get() *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - return v.value -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails) Set(val *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) { - v.value = val - v.isSet = true -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails(val *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) *NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - return &NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails{value: val, isSet: true} -} - -func (v NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetRoutes200ResponseRoutesInnerStepsInnerToolDetails) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_health_check_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_health_check_response.go deleted file mode 100644 index 439a89681c..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_health_check_response.go +++ /dev/null @@ -1,126 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the HealthCheckResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HealthCheckResponse{} - -// HealthCheckResponse struct for HealthCheckResponse -type HealthCheckResponse struct { - Status *string `json:"status,omitempty"` -} - -// NewHealthCheckResponse instantiates a new HealthCheckResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHealthCheckResponse() *HealthCheckResponse { - this := HealthCheckResponse{} - return &this -} - -// NewHealthCheckResponseWithDefaults instantiates a new HealthCheckResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHealthCheckResponseWithDefaults() *HealthCheckResponse { - this := HealthCheckResponse{} - return &this -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *HealthCheckResponse) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HealthCheckResponse) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *HealthCheckResponse) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *HealthCheckResponse) SetStatus(v string) { - o.Status = &v -} - -func (o HealthCheckResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HealthCheckResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableHealthCheckResponse struct { - value *HealthCheckResponse - isSet bool -} - -func (v NullableHealthCheckResponse) Get() *HealthCheckResponse { - return v.value -} - -func (v *NullableHealthCheckResponse) Set(val *HealthCheckResponse) { - v.value = val - v.isSet = true -} - -func (v NullableHealthCheckResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableHealthCheckResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHealthCheckResponse(val *HealthCheckResponse) *NullableHealthCheckResponse { - return &NullableHealthCheckResponse{value: val, isSet: true} -} - -func (v NullableHealthCheckResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHealthCheckResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_included_step.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_included_step.go deleted file mode 100644 index 086e0c91c2..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_included_step.go +++ /dev/null @@ -1,382 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the IncludedStep type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &IncludedStep{} - -// IncludedStep Details a single step within a route including actions and estimates. -type IncludedStep struct { - // Id of the step - Id *string `json:"id,omitempty"` - // Type of the step, typically describing the action, e.g., 'swap'. - Type *string `json:"type,omitempty"` - // Tool used in the step, e.g., 'stargate'. - Tool *string `json:"tool,omitempty"` - Action *GetRoutes200ResponseRoutesInnerStepsInnerAction `json:"action,omitempty"` - Estimate *GetRoutes200ResponseRoutesInnerStepsInnerEstimate `json:"estimate,omitempty"` - ToolDetails *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails `json:"toolDetails,omitempty"` - IntegrationDetails *GetRoutes200ResponseRoutesInnerStepsInnerToolDetails `json:"integrationDetails,omitempty"` - // IDs of further steps included within this step, allowing for nested actions without direct recursion. - IncludedStepIds []string `json:"includedStepIds,omitempty"` -} - -// NewIncludedStep instantiates a new IncludedStep object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewIncludedStep() *IncludedStep { - this := IncludedStep{} - return &this -} - -// NewIncludedStepWithDefaults instantiates a new IncludedStep object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewIncludedStepWithDefaults() *IncludedStep { - this := IncludedStep{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *IncludedStep) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *IncludedStep) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *IncludedStep) SetId(v string) { - o.Id = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *IncludedStep) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *IncludedStep) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *IncludedStep) SetType(v string) { - o.Type = &v -} - -// GetTool returns the Tool field value if set, zero value otherwise. -func (o *IncludedStep) GetTool() string { - if o == nil || IsNil(o.Tool) { - var ret string - return ret - } - return *o.Tool -} - -// GetToolOk returns a tuple with the Tool field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetToolOk() (*string, bool) { - if o == nil || IsNil(o.Tool) { - return nil, false - } - return o.Tool, true -} - -// HasTool returns a boolean if a field has been set. -func (o *IncludedStep) HasTool() bool { - if o != nil && !IsNil(o.Tool) { - return true - } - - return false -} - -// SetTool gets a reference to the given string and assigns it to the Tool field. -func (o *IncludedStep) SetTool(v string) { - o.Tool = &v -} - -// GetAction returns the Action field value if set, zero value otherwise. -func (o *IncludedStep) GetAction() GetRoutes200ResponseRoutesInnerStepsInnerAction { - if o == nil || IsNil(o.Action) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerAction - return ret - } - return *o.Action -} - -// GetActionOk returns a tuple with the Action field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetActionOk() (*GetRoutes200ResponseRoutesInnerStepsInnerAction, bool) { - if o == nil || IsNil(o.Action) { - return nil, false - } - return o.Action, true -} - -// HasAction returns a boolean if a field has been set. -func (o *IncludedStep) HasAction() bool { - if o != nil && !IsNil(o.Action) { - return true - } - - return false -} - -// SetAction gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerAction and assigns it to the Action field. -func (o *IncludedStep) SetAction(v GetRoutes200ResponseRoutesInnerStepsInnerAction) { - o.Action = &v -} - -// GetEstimate returns the Estimate field value if set, zero value otherwise. -func (o *IncludedStep) GetEstimate() GetRoutes200ResponseRoutesInnerStepsInnerEstimate { - if o == nil || IsNil(o.Estimate) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerEstimate - return ret - } - return *o.Estimate -} - -// GetEstimateOk returns a tuple with the Estimate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetEstimateOk() (*GetRoutes200ResponseRoutesInnerStepsInnerEstimate, bool) { - if o == nil || IsNil(o.Estimate) { - return nil, false - } - return o.Estimate, true -} - -// HasEstimate returns a boolean if a field has been set. -func (o *IncludedStep) HasEstimate() bool { - if o != nil && !IsNil(o.Estimate) { - return true - } - - return false -} - -// SetEstimate gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerEstimate and assigns it to the Estimate field. -func (o *IncludedStep) SetEstimate(v GetRoutes200ResponseRoutesInnerStepsInnerEstimate) { - o.Estimate = &v -} - -// GetToolDetails returns the ToolDetails field value if set, zero value otherwise. -func (o *IncludedStep) GetToolDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - if o == nil || IsNil(o.ToolDetails) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerToolDetails - return ret - } - return *o.ToolDetails -} - -// GetToolDetailsOk returns a tuple with the ToolDetails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetToolDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool) { - if o == nil || IsNil(o.ToolDetails) { - return nil, false - } - return o.ToolDetails, true -} - -// HasToolDetails returns a boolean if a field has been set. -func (o *IncludedStep) HasToolDetails() bool { - if o != nil && !IsNil(o.ToolDetails) { - return true - } - - return false -} - -// SetToolDetails gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerToolDetails and assigns it to the ToolDetails field. -func (o *IncludedStep) SetToolDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) { - o.ToolDetails = &v -} - -// GetIntegrationDetails returns the IntegrationDetails field value if set, zero value otherwise. -func (o *IncludedStep) GetIntegrationDetails() GetRoutes200ResponseRoutesInnerStepsInnerToolDetails { - if o == nil || IsNil(o.IntegrationDetails) { - var ret GetRoutes200ResponseRoutesInnerStepsInnerToolDetails - return ret - } - return *o.IntegrationDetails -} - -// GetIntegrationDetailsOk returns a tuple with the IntegrationDetails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetIntegrationDetailsOk() (*GetRoutes200ResponseRoutesInnerStepsInnerToolDetails, bool) { - if o == nil || IsNil(o.IntegrationDetails) { - return nil, false - } - return o.IntegrationDetails, true -} - -// HasIntegrationDetails returns a boolean if a field has been set. -func (o *IncludedStep) HasIntegrationDetails() bool { - if o != nil && !IsNil(o.IntegrationDetails) { - return true - } - - return false -} - -// SetIntegrationDetails gets a reference to the given GetRoutes200ResponseRoutesInnerStepsInnerToolDetails and assigns it to the IntegrationDetails field. -func (o *IncludedStep) SetIntegrationDetails(v GetRoutes200ResponseRoutesInnerStepsInnerToolDetails) { - o.IntegrationDetails = &v -} - -// GetIncludedStepIds returns the IncludedStepIds field value if set, zero value otherwise. -func (o *IncludedStep) GetIncludedStepIds() []string { - if o == nil || IsNil(o.IncludedStepIds) { - var ret []string - return ret - } - return o.IncludedStepIds -} - -// GetIncludedStepIdsOk returns a tuple with the IncludedStepIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IncludedStep) GetIncludedStepIdsOk() ([]string, bool) { - if o == nil || IsNil(o.IncludedStepIds) { - return nil, false - } - return o.IncludedStepIds, true -} - -// HasIncludedStepIds returns a boolean if a field has been set. -func (o *IncludedStep) HasIncludedStepIds() bool { - if o != nil && !IsNil(o.IncludedStepIds) { - return true - } - - return false -} - -// SetIncludedStepIds gets a reference to the given []string and assigns it to the IncludedStepIds field. -func (o *IncludedStep) SetIncludedStepIds(v []string) { - o.IncludedStepIds = v -} - -func (o IncludedStep) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o IncludedStep) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Tool) { - toSerialize["tool"] = o.Tool - } - if !IsNil(o.Action) { - toSerialize["action"] = o.Action - } - if !IsNil(o.Estimate) { - toSerialize["estimate"] = o.Estimate - } - if !IsNil(o.ToolDetails) { - toSerialize["toolDetails"] = o.ToolDetails - } - if !IsNil(o.IntegrationDetails) { - toSerialize["integrationDetails"] = o.IntegrationDetails - } - if !IsNil(o.IncludedStepIds) { - toSerialize["includedStepIds"] = o.IncludedStepIds - } - return toSerialize, nil -} - -type NullableIncludedStep struct { - value *IncludedStep - isSet bool -} - -func (v NullableIncludedStep) Get() *IncludedStep { - return v.value -} - -func (v *NullableIncludedStep) Set(val *IncludedStep) { - v.value = val - v.isSet = true -} - -func (v NullableIncludedStep) IsSet() bool { - return v.isSet -} - -func (v *NullableIncludedStep) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIncludedStep(val *IncludedStep) *NullableIncludedStep { - return &NullableIncludedStep{value: val, isSet: true} -} - -func (v NullableIncludedStep) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableIncludedStep) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_insurance.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_insurance.go deleted file mode 100644 index c4ed1d8ef2..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_insurance.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Insurance type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Insurance{} - -// Insurance struct for Insurance -type Insurance struct { - // The state of insurance applicability for the transaction. - State *string `json:"state,omitempty"` - // The fee amount for insurance, represented in USD. - FeeAmountUsd *string `json:"feeAmountUsd,omitempty"` -} - -// NewInsurance instantiates a new Insurance object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewInsurance() *Insurance { - this := Insurance{} - return &this -} - -// NewInsuranceWithDefaults instantiates a new Insurance object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewInsuranceWithDefaults() *Insurance { - this := Insurance{} - return &this -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *Insurance) GetState() string { - if o == nil || IsNil(o.State) { - var ret string - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Insurance) GetStateOk() (*string, bool) { - if o == nil || IsNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *Insurance) HasState() bool { - if o != nil && !IsNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given string and assigns it to the State field. -func (o *Insurance) SetState(v string) { - o.State = &v -} - -// GetFeeAmountUsd returns the FeeAmountUsd field value if set, zero value otherwise. -func (o *Insurance) GetFeeAmountUsd() string { - if o == nil || IsNil(o.FeeAmountUsd) { - var ret string - return ret - } - return *o.FeeAmountUsd -} - -// GetFeeAmountUsdOk returns a tuple with the FeeAmountUsd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Insurance) GetFeeAmountUsdOk() (*string, bool) { - if o == nil || IsNil(o.FeeAmountUsd) { - return nil, false - } - return o.FeeAmountUsd, true -} - -// HasFeeAmountUsd returns a boolean if a field has been set. -func (o *Insurance) HasFeeAmountUsd() bool { - if o != nil && !IsNil(o.FeeAmountUsd) { - return true - } - - return false -} - -// SetFeeAmountUsd gets a reference to the given string and assigns it to the FeeAmountUsd field. -func (o *Insurance) SetFeeAmountUsd(v string) { - o.FeeAmountUsd = &v -} - -func (o Insurance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Insurance) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.State) { - toSerialize["state"] = o.State - } - if !IsNil(o.FeeAmountUsd) { - toSerialize["feeAmountUsd"] = o.FeeAmountUsd - } - return toSerialize, nil -} - -type NullableInsurance struct { - value *Insurance - isSet bool -} - -func (v NullableInsurance) Get() *Insurance { - return v.value -} - -func (v *NullableInsurance) Set(val *Insurance) { - v.value = val - v.isSet = true -} - -func (v NullableInsurance) IsSet() bool { - return v.isSet -} - -func (v *NullableInsurance) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInsurance(val *Insurance) *NullableInsurance { - return &NullableInsurance{value: val, isSet: true} -} - -func (v NullableInsurance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInsurance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_integration_details.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_integration_details.go deleted file mode 100644 index bff096548e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_integration_details.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the IntegrationDetails type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &IntegrationDetails{} - -// IntegrationDetails Describes integration or tool details such as bridges or exchanges involved in the transaction. -type IntegrationDetails struct { - // A unique identifier for the integration or tool. - Key string `json:"key"` - // The name of the integration or tool. - Name string `json:"name"` - // URL to the logo of the integration or tool. - LogoURI string `json:"logoURI"` -} - -// NewIntegrationDetails instantiates a new IntegrationDetails object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewIntegrationDetails(key string, name string, logoURI string) *IntegrationDetails { - this := IntegrationDetails{} - this.Key = key - this.Name = name - this.LogoURI = logoURI - return &this -} - -// NewIntegrationDetailsWithDefaults instantiates a new IntegrationDetails object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewIntegrationDetailsWithDefaults() *IntegrationDetails { - this := IntegrationDetails{} - return &this -} - -// GetKey returns the Key field value -func (o *IntegrationDetails) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *IntegrationDetails) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *IntegrationDetails) SetKey(v string) { - o.Key = v -} - -// GetName returns the Name field value -func (o *IntegrationDetails) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *IntegrationDetails) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *IntegrationDetails) SetName(v string) { - o.Name = v -} - -// GetLogoURI returns the LogoURI field value -func (o *IntegrationDetails) GetLogoURI() string { - if o == nil { - var ret string - return ret - } - - return o.LogoURI -} - -// GetLogoURIOk returns a tuple with the LogoURI field value -// and a boolean to check if the value has been set. -func (o *IntegrationDetails) GetLogoURIOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LogoURI, true -} - -// SetLogoURI sets field value -func (o *IntegrationDetails) SetLogoURI(v string) { - o.LogoURI = v -} - -func (o IntegrationDetails) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o IntegrationDetails) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["key"] = o.Key - toSerialize["name"] = o.Name - toSerialize["logoURI"] = o.LogoURI - return toSerialize, nil -} - -type NullableIntegrationDetails struct { - value *IntegrationDetails - isSet bool -} - -func (v NullableIntegrationDetails) Get() *IntegrationDetails { - return v.value -} - -func (v *NullableIntegrationDetails) Set(val *IntegrationDetails) { - v.value = val - v.isSet = true -} - -func (v NullableIntegrationDetails) IsSet() bool { - return v.isSet -} - -func (v *NullableIntegrationDetails) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIntegrationDetails(val *IntegrationDetails) *NullableIntegrationDetails { - return &NullableIntegrationDetails{value: val, isSet: true} -} - -func (v NullableIntegrationDetails) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableIntegrationDetails) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_200_response.go deleted file mode 100644 index f8caa99058..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_200_response.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Pause200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Pause200Response{} - -// Pause200Response Response for a pause transaction request. Returns the current status of the SATP session post-pause action. -type Pause200Response struct { - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` -} - -// NewPause200Response instantiates a new Pause200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPause200Response(statusResponse Transact200ResponseStatusResponse) *Pause200Response { - this := Pause200Response{} - this.StatusResponse = statusResponse - return &this -} - -// NewPause200ResponseWithDefaults instantiates a new Pause200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPause200ResponseWithDefaults() *Pause200Response { - this := Pause200Response{} - return &this -} - -// GetStatusResponse returns the StatusResponse field value -func (o *Pause200Response) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *Pause200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *Pause200Response) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -func (o Pause200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Pause200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusResponse"] = o.StatusResponse - return toSerialize, nil -} - -type NullablePause200Response struct { - value *Pause200Response - isSet bool -} - -func (v NullablePause200Response) Get() *Pause200Response { - return v.value -} - -func (v *NullablePause200Response) Set(val *Pause200Response) { - v.value = val - v.isSet = true -} - -func (v NullablePause200Response) IsSet() bool { - return v.isSet -} - -func (v *NullablePause200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePause200Response(val *Pause200Response) *NullablePause200Response { - return &NullablePause200Response{value: val, isSet: true} -} - -func (v NullablePause200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePause200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_request.go deleted file mode 100644 index ca3360617b..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_request.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the PauseRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PauseRequest{} - -// PauseRequest Request to temporarily pause an ongoing transaction session, identified by the session and context IDs. -type PauseRequest struct { - SessionId *string `json:"sessionId,omitempty"` - ContextId *string `json:"contextId,omitempty"` -} - -// NewPauseRequest instantiates a new PauseRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPauseRequest() *PauseRequest { - this := PauseRequest{} - return &this -} - -// NewPauseRequestWithDefaults instantiates a new PauseRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPauseRequestWithDefaults() *PauseRequest { - this := PauseRequest{} - return &this -} - -// GetSessionId returns the SessionId field value if set, zero value otherwise. -func (o *PauseRequest) GetSessionId() string { - if o == nil || IsNil(o.SessionId) { - var ret string - return ret - } - return *o.SessionId -} - -// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PauseRequest) GetSessionIdOk() (*string, bool) { - if o == nil || IsNil(o.SessionId) { - return nil, false - } - return o.SessionId, true -} - -// HasSessionId returns a boolean if a field has been set. -func (o *PauseRequest) HasSessionId() bool { - if o != nil && !IsNil(o.SessionId) { - return true - } - - return false -} - -// SetSessionId gets a reference to the given string and assigns it to the SessionId field. -func (o *PauseRequest) SetSessionId(v string) { - o.SessionId = &v -} - -// GetContextId returns the ContextId field value if set, zero value otherwise. -func (o *PauseRequest) GetContextId() string { - if o == nil || IsNil(o.ContextId) { - var ret string - return ret - } - return *o.ContextId -} - -// GetContextIdOk returns a tuple with the ContextId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PauseRequest) GetContextIdOk() (*string, bool) { - if o == nil || IsNil(o.ContextId) { - return nil, false - } - return o.ContextId, true -} - -// HasContextId returns a boolean if a field has been set. -func (o *PauseRequest) HasContextId() bool { - if o != nil && !IsNil(o.ContextId) { - return true - } - - return false -} - -// SetContextId gets a reference to the given string and assigns it to the ContextId field. -func (o *PauseRequest) SetContextId(v string) { - o.ContextId = &v -} - -func (o PauseRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PauseRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.SessionId) { - toSerialize["sessionId"] = o.SessionId - } - if !IsNil(o.ContextId) { - toSerialize["contextId"] = o.ContextId - } - return toSerialize, nil -} - -type NullablePauseRequest struct { - value *PauseRequest - isSet bool -} - -func (v NullablePauseRequest) Get() *PauseRequest { - return v.value -} - -func (v *NullablePauseRequest) Set(val *PauseRequest) { - v.value = val - v.isSet = true -} - -func (v NullablePauseRequest) IsSet() bool { - return v.isSet -} - -func (v *NullablePauseRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePauseRequest(val *PauseRequest) *NullablePauseRequest { - return &NullablePauseRequest{value: val, isSet: true} -} - -func (v NullablePauseRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePauseRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_response.go deleted file mode 100644 index 7735d228c9..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_pause_response.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the PauseResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PauseResponse{} - -// PauseResponse Response for a pause transaction request. Returns the current status of the SATP session post-pause action. -type PauseResponse struct { - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` -} - -// NewPauseResponse instantiates a new PauseResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPauseResponse(statusResponse Transact200ResponseStatusResponse) *PauseResponse { - this := PauseResponse{} - this.StatusResponse = statusResponse - return &this -} - -// NewPauseResponseWithDefaults instantiates a new PauseResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPauseResponseWithDefaults() *PauseResponse { - this := PauseResponse{} - return &this -} - -// GetStatusResponse returns the StatusResponse field value -func (o *PauseResponse) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *PauseResponse) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *PauseResponse) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -func (o PauseResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PauseResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusResponse"] = o.StatusResponse - return toSerialize, nil -} - -type NullablePauseResponse struct { - value *PauseResponse - isSet bool -} - -func (v NullablePauseResponse) Get() *PauseResponse { - return v.value -} - -func (v *NullablePauseResponse) Set(val *PauseResponse) { - v.value = val - v.isSet = true -} - -func (v NullablePauseResponse) IsSet() bool { - return v.isSet -} - -func (v *NullablePauseResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePauseResponse(val *PauseResponse) *NullablePauseResponse { - return &NullablePauseResponse{value: val, isSet: true} -} - -func (v NullablePauseResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePauseResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_route.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_route.go deleted file mode 100644 index 5266515586..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_route.go +++ /dev/null @@ -1,689 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Route type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Route{} - -// Route struct for Route -type Route struct { - // A unique identifier of the route. - Id string `json:"id"` - // A unique identifier for the gateway. - GatewayID string `json:"gatewayID"` - // The mode of operation for this route - 'data' for arbitrary payload handling, 'transfer' for asset transfer. - Mode string `json:"mode"` - // The ID of the DLT Network where the operation will originate. - FromDLTNetworkID *string `json:"fromDLTNetworkID,omitempty"` - // The amount of 'fromToken' to be transferred in USD, specified as a string to maintain precision. - FromAmountUSD *float64 `json:"fromAmountUSD,omitempty"` - // The amount that should be sent including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). - FromAmount *string `json:"fromAmount,omitempty"` - FromToken *GetRoutes200ResponseRoutesInnerFromToken `json:"fromToken,omitempty"` - // The ID of the DLT Network where the operation will end. - ToDLTNetworkID *string `json:"toDLTNetworkID,omitempty"` - // The expected amount to be received in USD. - ToAmountUSD *string `json:"toAmountUSD,omitempty"` - // The expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). - ToAmount *string `json:"toAmount,omitempty"` - // The minimum expected amount to be received including all decimals (e.g., 1000000 for 1 USDC (6 decimals)). - ToAmountMin *string `json:"toAmountMin,omitempty"` - ToToken *GetRoutes200ResponseRoutesInnerFromToken `json:"toToken,omitempty"` - // The expected gas cost in USD. - GasCostUSD *string `json:"gasCostUSD,omitempty"` - // Whether chain switching is enabled or not. - ContainsSwitchChain *bool `json:"containsSwitchChain,omitempty"` - // List of steps involved in this route, adjusted for mode. - Steps []GetRoutes200ResponseRoutesInnerStepsInner `json:"steps,omitempty"` - Insurance *GetRoutes200ResponseRoutesInnerInsurance `json:"insurance,omitempty"` - // List of tags identifiers providing additional context or categorization. - Tags []string `json:"tags,omitempty"` -} - -// NewRoute instantiates a new Route object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoute(id string, gatewayID string, mode string) *Route { - this := Route{} - this.Id = id - this.GatewayID = gatewayID - this.Mode = mode - return &this -} - -// NewRouteWithDefaults instantiates a new Route object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRouteWithDefaults() *Route { - this := Route{} - return &this -} - -// GetId returns the Id field value -func (o *Route) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *Route) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *Route) SetId(v string) { - o.Id = v -} - -// GetGatewayID returns the GatewayID field value -func (o *Route) GetGatewayID() string { - if o == nil { - var ret string - return ret - } - - return o.GatewayID -} - -// GetGatewayIDOk returns a tuple with the GatewayID field value -// and a boolean to check if the value has been set. -func (o *Route) GetGatewayIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.GatewayID, true -} - -// SetGatewayID sets field value -func (o *Route) SetGatewayID(v string) { - o.GatewayID = v -} - -// GetMode returns the Mode field value -func (o *Route) GetMode() string { - if o == nil { - var ret string - return ret - } - - return o.Mode -} - -// GetModeOk returns a tuple with the Mode field value -// and a boolean to check if the value has been set. -func (o *Route) GetModeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Mode, true -} - -// SetMode sets field value -func (o *Route) SetMode(v string) { - o.Mode = v -} - -// GetFromDLTNetworkID returns the FromDLTNetworkID field value if set, zero value otherwise. -func (o *Route) GetFromDLTNetworkID() string { - if o == nil || IsNil(o.FromDLTNetworkID) { - var ret string - return ret - } - return *o.FromDLTNetworkID -} - -// GetFromDLTNetworkIDOk returns a tuple with the FromDLTNetworkID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetFromDLTNetworkIDOk() (*string, bool) { - if o == nil || IsNil(o.FromDLTNetworkID) { - return nil, false - } - return o.FromDLTNetworkID, true -} - -// HasFromDLTNetworkID returns a boolean if a field has been set. -func (o *Route) HasFromDLTNetworkID() bool { - if o != nil && !IsNil(o.FromDLTNetworkID) { - return true - } - - return false -} - -// SetFromDLTNetworkID gets a reference to the given string and assigns it to the FromDLTNetworkID field. -func (o *Route) SetFromDLTNetworkID(v string) { - o.FromDLTNetworkID = &v -} - -// GetFromAmountUSD returns the FromAmountUSD field value if set, zero value otherwise. -func (o *Route) GetFromAmountUSD() float64 { - if o == nil || IsNil(o.FromAmountUSD) { - var ret float64 - return ret - } - return *o.FromAmountUSD -} - -// GetFromAmountUSDOk returns a tuple with the FromAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetFromAmountUSDOk() (*float64, bool) { - if o == nil || IsNil(o.FromAmountUSD) { - return nil, false - } - return o.FromAmountUSD, true -} - -// HasFromAmountUSD returns a boolean if a field has been set. -func (o *Route) HasFromAmountUSD() bool { - if o != nil && !IsNil(o.FromAmountUSD) { - return true - } - - return false -} - -// SetFromAmountUSD gets a reference to the given float64 and assigns it to the FromAmountUSD field. -func (o *Route) SetFromAmountUSD(v float64) { - o.FromAmountUSD = &v -} - -// GetFromAmount returns the FromAmount field value if set, zero value otherwise. -func (o *Route) GetFromAmount() string { - if o == nil || IsNil(o.FromAmount) { - var ret string - return ret - } - return *o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetFromAmountOk() (*string, bool) { - if o == nil || IsNil(o.FromAmount) { - return nil, false - } - return o.FromAmount, true -} - -// HasFromAmount returns a boolean if a field has been set. -func (o *Route) HasFromAmount() bool { - if o != nil && !IsNil(o.FromAmount) { - return true - } - - return false -} - -// SetFromAmount gets a reference to the given string and assigns it to the FromAmount field. -func (o *Route) SetFromAmount(v string) { - o.FromAmount = &v -} - -// GetFromToken returns the FromToken field value if set, zero value otherwise. -func (o *Route) GetFromToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.FromToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.FromToken -} - -// GetFromTokenOk returns a tuple with the FromToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetFromTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.FromToken) { - return nil, false - } - return o.FromToken, true -} - -// HasFromToken returns a boolean if a field has been set. -func (o *Route) HasFromToken() bool { - if o != nil && !IsNil(o.FromToken) { - return true - } - - return false -} - -// SetFromToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the FromToken field. -func (o *Route) SetFromToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.FromToken = &v -} - -// GetToDLTNetworkID returns the ToDLTNetworkID field value if set, zero value otherwise. -func (o *Route) GetToDLTNetworkID() string { - if o == nil || IsNil(o.ToDLTNetworkID) { - var ret string - return ret - } - return *o.ToDLTNetworkID -} - -// GetToDLTNetworkIDOk returns a tuple with the ToDLTNetworkID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetToDLTNetworkIDOk() (*string, bool) { - if o == nil || IsNil(o.ToDLTNetworkID) { - return nil, false - } - return o.ToDLTNetworkID, true -} - -// HasToDLTNetworkID returns a boolean if a field has been set. -func (o *Route) HasToDLTNetworkID() bool { - if o != nil && !IsNil(o.ToDLTNetworkID) { - return true - } - - return false -} - -// SetToDLTNetworkID gets a reference to the given string and assigns it to the ToDLTNetworkID field. -func (o *Route) SetToDLTNetworkID(v string) { - o.ToDLTNetworkID = &v -} - -// GetToAmountUSD returns the ToAmountUSD field value if set, zero value otherwise. -func (o *Route) GetToAmountUSD() string { - if o == nil || IsNil(o.ToAmountUSD) { - var ret string - return ret - } - return *o.ToAmountUSD -} - -// GetToAmountUSDOk returns a tuple with the ToAmountUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetToAmountUSDOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountUSD) { - return nil, false - } - return o.ToAmountUSD, true -} - -// HasToAmountUSD returns a boolean if a field has been set. -func (o *Route) HasToAmountUSD() bool { - if o != nil && !IsNil(o.ToAmountUSD) { - return true - } - - return false -} - -// SetToAmountUSD gets a reference to the given string and assigns it to the ToAmountUSD field. -func (o *Route) SetToAmountUSD(v string) { - o.ToAmountUSD = &v -} - -// GetToAmount returns the ToAmount field value if set, zero value otherwise. -func (o *Route) GetToAmount() string { - if o == nil || IsNil(o.ToAmount) { - var ret string - return ret - } - return *o.ToAmount -} - -// GetToAmountOk returns a tuple with the ToAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetToAmountOk() (*string, bool) { - if o == nil || IsNil(o.ToAmount) { - return nil, false - } - return o.ToAmount, true -} - -// HasToAmount returns a boolean if a field has been set. -func (o *Route) HasToAmount() bool { - if o != nil && !IsNil(o.ToAmount) { - return true - } - - return false -} - -// SetToAmount gets a reference to the given string and assigns it to the ToAmount field. -func (o *Route) SetToAmount(v string) { - o.ToAmount = &v -} - -// GetToAmountMin returns the ToAmountMin field value if set, zero value otherwise. -func (o *Route) GetToAmountMin() string { - if o == nil || IsNil(o.ToAmountMin) { - var ret string - return ret - } - return *o.ToAmountMin -} - -// GetToAmountMinOk returns a tuple with the ToAmountMin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetToAmountMinOk() (*string, bool) { - if o == nil || IsNil(o.ToAmountMin) { - return nil, false - } - return o.ToAmountMin, true -} - -// HasToAmountMin returns a boolean if a field has been set. -func (o *Route) HasToAmountMin() bool { - if o != nil && !IsNil(o.ToAmountMin) { - return true - } - - return false -} - -// SetToAmountMin gets a reference to the given string and assigns it to the ToAmountMin field. -func (o *Route) SetToAmountMin(v string) { - o.ToAmountMin = &v -} - -// GetToToken returns the ToToken field value if set, zero value otherwise. -func (o *Route) GetToToken() GetRoutes200ResponseRoutesInnerFromToken { - if o == nil || IsNil(o.ToToken) { - var ret GetRoutes200ResponseRoutesInnerFromToken - return ret - } - return *o.ToToken -} - -// GetToTokenOk returns a tuple with the ToToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetToTokenOk() (*GetRoutes200ResponseRoutesInnerFromToken, bool) { - if o == nil || IsNil(o.ToToken) { - return nil, false - } - return o.ToToken, true -} - -// HasToToken returns a boolean if a field has been set. -func (o *Route) HasToToken() bool { - if o != nil && !IsNil(o.ToToken) { - return true - } - - return false -} - -// SetToToken gets a reference to the given GetRoutes200ResponseRoutesInnerFromToken and assigns it to the ToToken field. -func (o *Route) SetToToken(v GetRoutes200ResponseRoutesInnerFromToken) { - o.ToToken = &v -} - -// GetGasCostUSD returns the GasCostUSD field value if set, zero value otherwise. -func (o *Route) GetGasCostUSD() string { - if o == nil || IsNil(o.GasCostUSD) { - var ret string - return ret - } - return *o.GasCostUSD -} - -// GetGasCostUSDOk returns a tuple with the GasCostUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetGasCostUSDOk() (*string, bool) { - if o == nil || IsNil(o.GasCostUSD) { - return nil, false - } - return o.GasCostUSD, true -} - -// HasGasCostUSD returns a boolean if a field has been set. -func (o *Route) HasGasCostUSD() bool { - if o != nil && !IsNil(o.GasCostUSD) { - return true - } - - return false -} - -// SetGasCostUSD gets a reference to the given string and assigns it to the GasCostUSD field. -func (o *Route) SetGasCostUSD(v string) { - o.GasCostUSD = &v -} - -// GetContainsSwitchChain returns the ContainsSwitchChain field value if set, zero value otherwise. -func (o *Route) GetContainsSwitchChain() bool { - if o == nil || IsNil(o.ContainsSwitchChain) { - var ret bool - return ret - } - return *o.ContainsSwitchChain -} - -// GetContainsSwitchChainOk returns a tuple with the ContainsSwitchChain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetContainsSwitchChainOk() (*bool, bool) { - if o == nil || IsNil(o.ContainsSwitchChain) { - return nil, false - } - return o.ContainsSwitchChain, true -} - -// HasContainsSwitchChain returns a boolean if a field has been set. -func (o *Route) HasContainsSwitchChain() bool { - if o != nil && !IsNil(o.ContainsSwitchChain) { - return true - } - - return false -} - -// SetContainsSwitchChain gets a reference to the given bool and assigns it to the ContainsSwitchChain field. -func (o *Route) SetContainsSwitchChain(v bool) { - o.ContainsSwitchChain = &v -} - -// GetSteps returns the Steps field value if set, zero value otherwise. -func (o *Route) GetSteps() []GetRoutes200ResponseRoutesInnerStepsInner { - if o == nil || IsNil(o.Steps) { - var ret []GetRoutes200ResponseRoutesInnerStepsInner - return ret - } - return o.Steps -} - -// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetStepsOk() ([]GetRoutes200ResponseRoutesInnerStepsInner, bool) { - if o == nil || IsNil(o.Steps) { - return nil, false - } - return o.Steps, true -} - -// HasSteps returns a boolean if a field has been set. -func (o *Route) HasSteps() bool { - if o != nil && !IsNil(o.Steps) { - return true - } - - return false -} - -// SetSteps gets a reference to the given []GetRoutes200ResponseRoutesInnerStepsInner and assigns it to the Steps field. -func (o *Route) SetSteps(v []GetRoutes200ResponseRoutesInnerStepsInner) { - o.Steps = v -} - -// GetInsurance returns the Insurance field value if set, zero value otherwise. -func (o *Route) GetInsurance() GetRoutes200ResponseRoutesInnerInsurance { - if o == nil || IsNil(o.Insurance) { - var ret GetRoutes200ResponseRoutesInnerInsurance - return ret - } - return *o.Insurance -} - -// GetInsuranceOk returns a tuple with the Insurance field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetInsuranceOk() (*GetRoutes200ResponseRoutesInnerInsurance, bool) { - if o == nil || IsNil(o.Insurance) { - return nil, false - } - return o.Insurance, true -} - -// HasInsurance returns a boolean if a field has been set. -func (o *Route) HasInsurance() bool { - if o != nil && !IsNil(o.Insurance) { - return true - } - - return false -} - -// SetInsurance gets a reference to the given GetRoutes200ResponseRoutesInnerInsurance and assigns it to the Insurance field. -func (o *Route) SetInsurance(v GetRoutes200ResponseRoutesInnerInsurance) { - o.Insurance = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Route) GetTags() []string { - if o == nil || IsNil(o.Tags) { - var ret []string - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Route) GetTagsOk() ([]string, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Route) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []string and assigns it to the Tags field. -func (o *Route) SetTags(v []string) { - o.Tags = v -} - -func (o Route) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Route) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["gatewayID"] = o.GatewayID - toSerialize["mode"] = o.Mode - if !IsNil(o.FromDLTNetworkID) { - toSerialize["fromDLTNetworkID"] = o.FromDLTNetworkID - } - if !IsNil(o.FromAmountUSD) { - toSerialize["fromAmountUSD"] = o.FromAmountUSD - } - if !IsNil(o.FromAmount) { - toSerialize["fromAmount"] = o.FromAmount - } - if !IsNil(o.FromToken) { - toSerialize["fromToken"] = o.FromToken - } - if !IsNil(o.ToDLTNetworkID) { - toSerialize["toDLTNetworkID"] = o.ToDLTNetworkID - } - if !IsNil(o.ToAmountUSD) { - toSerialize["toAmountUSD"] = o.ToAmountUSD - } - if !IsNil(o.ToAmount) { - toSerialize["toAmount"] = o.ToAmount - } - if !IsNil(o.ToAmountMin) { - toSerialize["toAmountMin"] = o.ToAmountMin - } - if !IsNil(o.ToToken) { - toSerialize["toToken"] = o.ToToken - } - if !IsNil(o.GasCostUSD) { - toSerialize["gasCostUSD"] = o.GasCostUSD - } - if !IsNil(o.ContainsSwitchChain) { - toSerialize["containsSwitchChain"] = o.ContainsSwitchChain - } - if !IsNil(o.Steps) { - toSerialize["steps"] = o.Steps - } - if !IsNil(o.Insurance) { - toSerialize["insurance"] = o.Insurance - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - return toSerialize, nil -} - -type NullableRoute struct { - value *Route - isSet bool -} - -func (v NullableRoute) Get() *Route { - return v.value -} - -func (v *NullableRoute) Set(val *Route) { - v.value = val - v.isSet = true -} - -func (v NullableRoute) IsSet() bool { - return v.isSet -} - -func (v *NullableRoute) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoute(val *Route) *NullableRoute { - return &NullableRoute{value: val, isSet: true} -} - -func (v NullableRoute) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoute) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_routes_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_routes_response.go deleted file mode 100644 index 6ffcfb08f5..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_routes_response.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the RoutesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RoutesResponse{} - -// RoutesResponse A collection of available and unavailable routes -type RoutesResponse struct { - // A collection of route objects - Routes []GetRoutes200ResponseRoutesInner `json:"routes"` -} - -// NewRoutesResponse instantiates a new RoutesResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoutesResponse(routes []GetRoutes200ResponseRoutesInner) *RoutesResponse { - this := RoutesResponse{} - this.Routes = routes - return &this -} - -// NewRoutesResponseWithDefaults instantiates a new RoutesResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRoutesResponseWithDefaults() *RoutesResponse { - this := RoutesResponse{} - return &this -} - -// GetRoutes returns the Routes field value -func (o *RoutesResponse) GetRoutes() []GetRoutes200ResponseRoutesInner { - if o == nil { - var ret []GetRoutes200ResponseRoutesInner - return ret - } - - return o.Routes -} - -// GetRoutesOk returns a tuple with the Routes field value -// and a boolean to check if the value has been set. -func (o *RoutesResponse) GetRoutesOk() ([]GetRoutes200ResponseRoutesInner, bool) { - if o == nil { - return nil, false - } - return o.Routes, true -} - -// SetRoutes sets field value -func (o *RoutesResponse) SetRoutes(v []GetRoutes200ResponseRoutesInner) { - o.Routes = v -} - -func (o RoutesResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RoutesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["routes"] = o.Routes - return toSerialize, nil -} - -type NullableRoutesResponse struct { - value *RoutesResponse - isSet bool -} - -func (v NullableRoutesResponse) Get() *RoutesResponse { - return v.value -} - -func (v *NullableRoutesResponse) Set(val *RoutesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableRoutesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableRoutesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoutesResponse(val *RoutesResponse) *NullableRoutesResponse { - return &NullableRoutesResponse{value: val, isSet: true} -} - -func (v NullableRoutesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoutesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_request.go deleted file mode 100644 index 4656d4e051..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_request.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the StatusRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StatusRequest{} - -// StatusRequest Request for retrieving the current status of a session, identified by the session ID. -type StatusRequest struct { - // The ID of the session for which the status is being requested. - SessionID string `json:"sessionID"` -} - -// NewStatusRequest instantiates a new StatusRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewStatusRequest(sessionID string) *StatusRequest { - this := StatusRequest{} - this.SessionID = sessionID - return &this -} - -// NewStatusRequestWithDefaults instantiates a new StatusRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewStatusRequestWithDefaults() *StatusRequest { - this := StatusRequest{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *StatusRequest) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *StatusRequest) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *StatusRequest) SetSessionID(v string) { - o.SessionID = v -} - -func (o StatusRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o StatusRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - return toSerialize, nil -} - -type NullableStatusRequest struct { - value *StatusRequest - isSet bool -} - -func (v NullableStatusRequest) Get() *StatusRequest { - return v.value -} - -func (v *NullableStatusRequest) Set(val *StatusRequest) { - v.value = val - v.isSet = true -} - -func (v NullableStatusRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableStatusRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatusRequest(val *StatusRequest) *NullableStatusRequest { - return &NullableStatusRequest{value: val, isSet: true} -} - -func (v NullableStatusRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStatusRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_response.go deleted file mode 100644 index 11a0778d86..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_status_response.go +++ /dev/null @@ -1,280 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "time" -) - -// checks if the StatusResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StatusResponse{} - -// StatusResponse Provides the current status of the SATP session including detailed information on the progress, such as substatus, stage, and step, along with the session start time and chain information. -type StatusResponse struct { - Status string `json:"status"` - Substatus string `json:"substatus"` - Stage string `json:"stage"` - Step string `json:"step"` - StartTime time.Time `json:"startTime"` - OriginChain Transact200ResponseStatusResponseOriginChain `json:"originChain"` - DestinationChain Transact200ResponseStatusResponseDestinationChain `json:"destinationChain"` -} - -// NewStatusResponse instantiates a new StatusResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewStatusResponse(status string, substatus string, stage string, step string, startTime time.Time, originChain Transact200ResponseStatusResponseOriginChain, destinationChain Transact200ResponseStatusResponseDestinationChain) *StatusResponse { - this := StatusResponse{} - this.Status = status - this.Substatus = substatus - this.Stage = stage - this.Step = step - this.StartTime = startTime - this.OriginChain = originChain - this.DestinationChain = destinationChain - return &this -} - -// NewStatusResponseWithDefaults instantiates a new StatusResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewStatusResponseWithDefaults() *StatusResponse { - this := StatusResponse{} - return &this -} - -// GetStatus returns the Status field value -func (o *StatusResponse) GetStatus() string { - if o == nil { - var ret string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *StatusResponse) SetStatus(v string) { - o.Status = v -} - -// GetSubstatus returns the Substatus field value -func (o *StatusResponse) GetSubstatus() string { - if o == nil { - var ret string - return ret - } - - return o.Substatus -} - -// GetSubstatusOk returns a tuple with the Substatus field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetSubstatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Substatus, true -} - -// SetSubstatus sets field value -func (o *StatusResponse) SetSubstatus(v string) { - o.Substatus = v -} - -// GetStage returns the Stage field value -func (o *StatusResponse) GetStage() string { - if o == nil { - var ret string - return ret - } - - return o.Stage -} - -// GetStageOk returns a tuple with the Stage field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetStageOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Stage, true -} - -// SetStage sets field value -func (o *StatusResponse) SetStage(v string) { - o.Stage = v -} - -// GetStep returns the Step field value -func (o *StatusResponse) GetStep() string { - if o == nil { - var ret string - return ret - } - - return o.Step -} - -// GetStepOk returns a tuple with the Step field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetStepOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Step, true -} - -// SetStep sets field value -func (o *StatusResponse) SetStep(v string) { - o.Step = v -} - -// GetStartTime returns the StartTime field value -func (o *StatusResponse) GetStartTime() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.StartTime -} - -// GetStartTimeOk returns a tuple with the StartTime field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetStartTimeOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.StartTime, true -} - -// SetStartTime sets field value -func (o *StatusResponse) SetStartTime(v time.Time) { - o.StartTime = v -} - -// GetOriginChain returns the OriginChain field value -func (o *StatusResponse) GetOriginChain() Transact200ResponseStatusResponseOriginChain { - if o == nil { - var ret Transact200ResponseStatusResponseOriginChain - return ret - } - - return o.OriginChain -} - -// GetOriginChainOk returns a tuple with the OriginChain field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetOriginChainOk() (*Transact200ResponseStatusResponseOriginChain, bool) { - if o == nil { - return nil, false - } - return &o.OriginChain, true -} - -// SetOriginChain sets field value -func (o *StatusResponse) SetOriginChain(v Transact200ResponseStatusResponseOriginChain) { - o.OriginChain = v -} - -// GetDestinationChain returns the DestinationChain field value -func (o *StatusResponse) GetDestinationChain() Transact200ResponseStatusResponseDestinationChain { - if o == nil { - var ret Transact200ResponseStatusResponseDestinationChain - return ret - } - - return o.DestinationChain -} - -// GetDestinationChainOk returns a tuple with the DestinationChain field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetDestinationChainOk() (*Transact200ResponseStatusResponseDestinationChain, bool) { - if o == nil { - return nil, false - } - return &o.DestinationChain, true -} - -// SetDestinationChain sets field value -func (o *StatusResponse) SetDestinationChain(v Transact200ResponseStatusResponseDestinationChain) { - o.DestinationChain = v -} - -func (o StatusResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o StatusResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["status"] = o.Status - toSerialize["substatus"] = o.Substatus - toSerialize["stage"] = o.Stage - toSerialize["step"] = o.Step - toSerialize["startTime"] = o.StartTime - toSerialize["originChain"] = o.OriginChain - toSerialize["destinationChain"] = o.DestinationChain - return toSerialize, nil -} - -type NullableStatusResponse struct { - value *StatusResponse - isSet bool -} - -func (v NullableStatusResponse) Get() *StatusResponse { - return v.value -} - -func (v *NullableStatusResponse) Set(val *StatusResponse) { - v.value = val - v.isSet = true -} - -func (v NullableStatusResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableStatusResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatusResponse(val *StatusResponse) *NullableStatusResponse { - return &NullableStatusResponse{value: val, isSet: true} -} - -func (v NullableStatusResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStatusResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_token.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_token.go deleted file mode 100644 index 869f7c6801..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_token.go +++ /dev/null @@ -1,414 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Token type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Token{} - -// Token Metadata detailing a supported token -type Token struct { - // The network of the DLT being interacted with. TODO: implement network identification draft - ChainID string `json:"chainID"` - // Supported DLT protocols. - ChainType string `json:"chainType"` - // A blockchain address. - Address string `json:"address"` - // The name of the token. - Name *string `json:"name,omitempty"` - // The symbol of the token. - Symbol string `json:"symbol"` - // How many decimals the token supports. - Decimals int32 `json:"decimals"` - // The logo of a token, chain, dex etc. - LogoURI *string `json:"logoURI,omitempty"` - // List of tags identifiers providing additional context or categorization. - Tags []string `json:"tags,omitempty"` - // The current price of the token in USD. - PriceUSD *string `json:"priceUSD,omitempty"` - Extensions *GetRoutes200ResponseRoutesInnerFromTokenExtensions `json:"extensions,omitempty"` -} - -// NewToken instantiates a new Token object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewToken(chainID string, chainType string, address string, symbol string, decimals int32) *Token { - this := Token{} - this.ChainID = chainID - this.ChainType = chainType - this.Address = address - this.Symbol = symbol - this.Decimals = decimals - return &this -} - -// NewTokenWithDefaults instantiates a new Token object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTokenWithDefaults() *Token { - this := Token{} - return &this -} - -// GetChainID returns the ChainID field value -func (o *Token) GetChainID() string { - if o == nil { - var ret string - return ret - } - - return o.ChainID -} - -// GetChainIDOk returns a tuple with the ChainID field value -// and a boolean to check if the value has been set. -func (o *Token) GetChainIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainID, true -} - -// SetChainID sets field value -func (o *Token) SetChainID(v string) { - o.ChainID = v -} - -// GetChainType returns the ChainType field value -func (o *Token) GetChainType() string { - if o == nil { - var ret string - return ret - } - - return o.ChainType -} - -// GetChainTypeOk returns a tuple with the ChainType field value -// and a boolean to check if the value has been set. -func (o *Token) GetChainTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ChainType, true -} - -// SetChainType sets field value -func (o *Token) SetChainType(v string) { - o.ChainType = v -} - -// GetAddress returns the Address field value -func (o *Token) GetAddress() string { - if o == nil { - var ret string - return ret - } - - return o.Address -} - -// GetAddressOk returns a tuple with the Address field value -// and a boolean to check if the value has been set. -func (o *Token) GetAddressOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Address, true -} - -// SetAddress sets field value -func (o *Token) SetAddress(v string) { - o.Address = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *Token) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Token) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *Token) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *Token) SetName(v string) { - o.Name = &v -} - -// GetSymbol returns the Symbol field value -func (o *Token) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *Token) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *Token) SetSymbol(v string) { - o.Symbol = v -} - -// GetDecimals returns the Decimals field value -func (o *Token) GetDecimals() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Decimals -} - -// GetDecimalsOk returns a tuple with the Decimals field value -// and a boolean to check if the value has been set. -func (o *Token) GetDecimalsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Decimals, true -} - -// SetDecimals sets field value -func (o *Token) SetDecimals(v int32) { - o.Decimals = v -} - -// GetLogoURI returns the LogoURI field value if set, zero value otherwise. -func (o *Token) GetLogoURI() string { - if o == nil || IsNil(o.LogoURI) { - var ret string - return ret - } - return *o.LogoURI -} - -// GetLogoURIOk returns a tuple with the LogoURI field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Token) GetLogoURIOk() (*string, bool) { - if o == nil || IsNil(o.LogoURI) { - return nil, false - } - return o.LogoURI, true -} - -// HasLogoURI returns a boolean if a field has been set. -func (o *Token) HasLogoURI() bool { - if o != nil && !IsNil(o.LogoURI) { - return true - } - - return false -} - -// SetLogoURI gets a reference to the given string and assigns it to the LogoURI field. -func (o *Token) SetLogoURI(v string) { - o.LogoURI = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Token) GetTags() []string { - if o == nil || IsNil(o.Tags) { - var ret []string - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Token) GetTagsOk() ([]string, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Token) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []string and assigns it to the Tags field. -func (o *Token) SetTags(v []string) { - o.Tags = v -} - -// GetPriceUSD returns the PriceUSD field value if set, zero value otherwise. -func (o *Token) GetPriceUSD() string { - if o == nil || IsNil(o.PriceUSD) { - var ret string - return ret - } - return *o.PriceUSD -} - -// GetPriceUSDOk returns a tuple with the PriceUSD field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Token) GetPriceUSDOk() (*string, bool) { - if o == nil || IsNil(o.PriceUSD) { - return nil, false - } - return o.PriceUSD, true -} - -// HasPriceUSD returns a boolean if a field has been set. -func (o *Token) HasPriceUSD() bool { - if o != nil && !IsNil(o.PriceUSD) { - return true - } - - return false -} - -// SetPriceUSD gets a reference to the given string and assigns it to the PriceUSD field. -func (o *Token) SetPriceUSD(v string) { - o.PriceUSD = &v -} - -// GetExtensions returns the Extensions field value if set, zero value otherwise. -func (o *Token) GetExtensions() GetRoutes200ResponseRoutesInnerFromTokenExtensions { - if o == nil || IsNil(o.Extensions) { - var ret GetRoutes200ResponseRoutesInnerFromTokenExtensions - return ret - } - return *o.Extensions -} - -// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Token) GetExtensionsOk() (*GetRoutes200ResponseRoutesInnerFromTokenExtensions, bool) { - if o == nil || IsNil(o.Extensions) { - return nil, false - } - return o.Extensions, true -} - -// HasExtensions returns a boolean if a field has been set. -func (o *Token) HasExtensions() bool { - if o != nil && !IsNil(o.Extensions) { - return true - } - - return false -} - -// SetExtensions gets a reference to the given GetRoutes200ResponseRoutesInnerFromTokenExtensions and assigns it to the Extensions field. -func (o *Token) SetExtensions(v GetRoutes200ResponseRoutesInnerFromTokenExtensions) { - o.Extensions = &v -} - -func (o Token) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Token) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["chainID"] = o.ChainID - toSerialize["chainType"] = o.ChainType - toSerialize["address"] = o.Address - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["symbol"] = o.Symbol - toSerialize["decimals"] = o.Decimals - if !IsNil(o.LogoURI) { - toSerialize["logoURI"] = o.LogoURI - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.PriceUSD) { - toSerialize["priceUSD"] = o.PriceUSD - } - if !IsNil(o.Extensions) { - toSerialize["extensions"] = o.Extensions - } - return toSerialize, nil -} - -type NullableToken struct { - value *Token - isSet bool -} - -func (v NullableToken) Get() *Token { - return v.value -} - -func (v *NullableToken) Set(val *Token) { - v.value = val - v.isSet = true -} - -func (v NullableToken) IsSet() bool { - return v.isSet -} - -func (v *NullableToken) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableToken(val *Token) *NullableToken { - return &NullableToken{value: val, isSet: true} -} - -func (v NullableToken) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableToken) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response.go deleted file mode 100644 index 271862f4cb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response.go +++ /dev/null @@ -1,145 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Transact200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Transact200Response{} - -// Transact200Response Response schema for a transaction request. Includes the session ID and the current status of the transaction. -type Transact200Response struct { - // Unique identifier (UUID) for the session. - SessionID string `json:"sessionID"` - StatusResponse Transact200ResponseStatusResponse `json:"statusResponse"` -} - -// NewTransact200Response instantiates a new Transact200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransact200Response(sessionID string, statusResponse Transact200ResponseStatusResponse) *Transact200Response { - this := Transact200Response{} - this.SessionID = sessionID - this.StatusResponse = statusResponse - return &this -} - -// NewTransact200ResponseWithDefaults instantiates a new Transact200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransact200ResponseWithDefaults() *Transact200Response { - this := Transact200Response{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *Transact200Response) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *Transact200Response) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *Transact200Response) SetSessionID(v string) { - o.SessionID = v -} - -// GetStatusResponse returns the StatusResponse field value -func (o *Transact200Response) GetStatusResponse() Transact200ResponseStatusResponse { - if o == nil { - var ret Transact200ResponseStatusResponse - return ret - } - - return o.StatusResponse -} - -// GetStatusResponseOk returns a tuple with the StatusResponse field value -// and a boolean to check if the value has been set. -func (o *Transact200Response) GetStatusResponseOk() (*Transact200ResponseStatusResponse, bool) { - if o == nil { - return nil, false - } - return &o.StatusResponse, true -} - -// SetStatusResponse sets field value -func (o *Transact200Response) SetStatusResponse(v Transact200ResponseStatusResponse) { - o.StatusResponse = v -} - -func (o Transact200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Transact200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["statusResponse"] = o.StatusResponse - return toSerialize, nil -} - -type NullableTransact200Response struct { - value *Transact200Response - isSet bool -} - -func (v NullableTransact200Response) Get() *Transact200Response { - return v.value -} - -func (v *NullableTransact200Response) Set(val *Transact200Response) { - v.value = val - v.isSet = true -} - -func (v NullableTransact200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableTransact200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransact200Response(val *Transact200Response) *NullableTransact200Response { - return &NullableTransact200Response{value: val, isSet: true} -} - -func (v NullableTransact200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransact200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response.go deleted file mode 100644 index 1c14b4a36e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response.go +++ /dev/null @@ -1,280 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "time" -) - -// checks if the Transact200ResponseStatusResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Transact200ResponseStatusResponse{} - -// Transact200ResponseStatusResponse Provides the current status of the SATP session including detailed information on the progress, such as substatus, stage, and step, along with the session start time and chain information. -type Transact200ResponseStatusResponse struct { - Status string `json:"status"` - Substatus string `json:"substatus"` - Stage string `json:"stage"` - Step string `json:"step"` - StartTime time.Time `json:"startTime"` - OriginChain Transact200ResponseStatusResponseOriginChain `json:"originChain"` - DestinationChain Transact200ResponseStatusResponseDestinationChain `json:"destinationChain"` -} - -// NewTransact200ResponseStatusResponse instantiates a new Transact200ResponseStatusResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransact200ResponseStatusResponse(status string, substatus string, stage string, step string, startTime time.Time, originChain Transact200ResponseStatusResponseOriginChain, destinationChain Transact200ResponseStatusResponseDestinationChain) *Transact200ResponseStatusResponse { - this := Transact200ResponseStatusResponse{} - this.Status = status - this.Substatus = substatus - this.Stage = stage - this.Step = step - this.StartTime = startTime - this.OriginChain = originChain - this.DestinationChain = destinationChain - return &this -} - -// NewTransact200ResponseStatusResponseWithDefaults instantiates a new Transact200ResponseStatusResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransact200ResponseStatusResponseWithDefaults() *Transact200ResponseStatusResponse { - this := Transact200ResponseStatusResponse{} - return &this -} - -// GetStatus returns the Status field value -func (o *Transact200ResponseStatusResponse) GetStatus() string { - if o == nil { - var ret string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *Transact200ResponseStatusResponse) SetStatus(v string) { - o.Status = v -} - -// GetSubstatus returns the Substatus field value -func (o *Transact200ResponseStatusResponse) GetSubstatus() string { - if o == nil { - var ret string - return ret - } - - return o.Substatus -} - -// GetSubstatusOk returns a tuple with the Substatus field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetSubstatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Substatus, true -} - -// SetSubstatus sets field value -func (o *Transact200ResponseStatusResponse) SetSubstatus(v string) { - o.Substatus = v -} - -// GetStage returns the Stage field value -func (o *Transact200ResponseStatusResponse) GetStage() string { - if o == nil { - var ret string - return ret - } - - return o.Stage -} - -// GetStageOk returns a tuple with the Stage field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetStageOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Stage, true -} - -// SetStage sets field value -func (o *Transact200ResponseStatusResponse) SetStage(v string) { - o.Stage = v -} - -// GetStep returns the Step field value -func (o *Transact200ResponseStatusResponse) GetStep() string { - if o == nil { - var ret string - return ret - } - - return o.Step -} - -// GetStepOk returns a tuple with the Step field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetStepOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Step, true -} - -// SetStep sets field value -func (o *Transact200ResponseStatusResponse) SetStep(v string) { - o.Step = v -} - -// GetStartTime returns the StartTime field value -func (o *Transact200ResponseStatusResponse) GetStartTime() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.StartTime -} - -// GetStartTimeOk returns a tuple with the StartTime field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetStartTimeOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.StartTime, true -} - -// SetStartTime sets field value -func (o *Transact200ResponseStatusResponse) SetStartTime(v time.Time) { - o.StartTime = v -} - -// GetOriginChain returns the OriginChain field value -func (o *Transact200ResponseStatusResponse) GetOriginChain() Transact200ResponseStatusResponseOriginChain { - if o == nil { - var ret Transact200ResponseStatusResponseOriginChain - return ret - } - - return o.OriginChain -} - -// GetOriginChainOk returns a tuple with the OriginChain field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetOriginChainOk() (*Transact200ResponseStatusResponseOriginChain, bool) { - if o == nil { - return nil, false - } - return &o.OriginChain, true -} - -// SetOriginChain sets field value -func (o *Transact200ResponseStatusResponse) SetOriginChain(v Transact200ResponseStatusResponseOriginChain) { - o.OriginChain = v -} - -// GetDestinationChain returns the DestinationChain field value -func (o *Transact200ResponseStatusResponse) GetDestinationChain() Transact200ResponseStatusResponseDestinationChain { - if o == nil { - var ret Transact200ResponseStatusResponseDestinationChain - return ret - } - - return o.DestinationChain -} - -// GetDestinationChainOk returns a tuple with the DestinationChain field value -// and a boolean to check if the value has been set. -func (o *Transact200ResponseStatusResponse) GetDestinationChainOk() (*Transact200ResponseStatusResponseDestinationChain, bool) { - if o == nil { - return nil, false - } - return &o.DestinationChain, true -} - -// SetDestinationChain sets field value -func (o *Transact200ResponseStatusResponse) SetDestinationChain(v Transact200ResponseStatusResponseDestinationChain) { - o.DestinationChain = v -} - -func (o Transact200ResponseStatusResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Transact200ResponseStatusResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["status"] = o.Status - toSerialize["substatus"] = o.Substatus - toSerialize["stage"] = o.Stage - toSerialize["step"] = o.Step - toSerialize["startTime"] = o.StartTime - toSerialize["originChain"] = o.OriginChain - toSerialize["destinationChain"] = o.DestinationChain - return toSerialize, nil -} - -type NullableTransact200ResponseStatusResponse struct { - value *Transact200ResponseStatusResponse - isSet bool -} - -func (v NullableTransact200ResponseStatusResponse) Get() *Transact200ResponseStatusResponse { - return v.value -} - -func (v *NullableTransact200ResponseStatusResponse) Set(val *Transact200ResponseStatusResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTransact200ResponseStatusResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTransact200ResponseStatusResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransact200ResponseStatusResponse(val *Transact200ResponseStatusResponse) *NullableTransact200ResponseStatusResponse { - return &NullableTransact200ResponseStatusResponse{value: val, isSet: true} -} - -func (v NullableTransact200ResponseStatusResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransact200ResponseStatusResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_destination_chain.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_destination_chain.go deleted file mode 100644 index 44c5b50c76..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_destination_chain.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Transact200ResponseStatusResponseDestinationChain type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Transact200ResponseStatusResponseDestinationChain{} - -// Transact200ResponseStatusResponseDestinationChain struct for Transact200ResponseStatusResponseDestinationChain -type Transact200ResponseStatusResponseDestinationChain struct { - DltProtocol interface{} `json:"dltProtocol,omitempty"` - DltSubnetworkID interface{} `json:"dltSubnetworkID,omitempty"` -} - -// NewTransact200ResponseStatusResponseDestinationChain instantiates a new Transact200ResponseStatusResponseDestinationChain object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransact200ResponseStatusResponseDestinationChain() *Transact200ResponseStatusResponseDestinationChain { - this := Transact200ResponseStatusResponseDestinationChain{} - return &this -} - -// NewTransact200ResponseStatusResponseDestinationChainWithDefaults instantiates a new Transact200ResponseStatusResponseDestinationChain object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransact200ResponseStatusResponseDestinationChainWithDefaults() *Transact200ResponseStatusResponseDestinationChain { - this := Transact200ResponseStatusResponseDestinationChain{} - return &this -} - -// GetDltProtocol returns the DltProtocol field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Transact200ResponseStatusResponseDestinationChain) GetDltProtocol() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.DltProtocol -} - -// GetDltProtocolOk returns a tuple with the DltProtocol field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Transact200ResponseStatusResponseDestinationChain) GetDltProtocolOk() (*interface{}, bool) { - if o == nil || IsNil(o.DltProtocol) { - return nil, false - } - return &o.DltProtocol, true -} - -// HasDltProtocol returns a boolean if a field has been set. -func (o *Transact200ResponseStatusResponseDestinationChain) HasDltProtocol() bool { - if o != nil && IsNil(o.DltProtocol) { - return true - } - - return false -} - -// SetDltProtocol gets a reference to the given interface{} and assigns it to the DltProtocol field. -func (o *Transact200ResponseStatusResponseDestinationChain) SetDltProtocol(v interface{}) { - o.DltProtocol = v -} - -// GetDltSubnetworkID returns the DltSubnetworkID field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Transact200ResponseStatusResponseDestinationChain) GetDltSubnetworkID() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.DltSubnetworkID -} - -// GetDltSubnetworkIDOk returns a tuple with the DltSubnetworkID field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Transact200ResponseStatusResponseDestinationChain) GetDltSubnetworkIDOk() (*interface{}, bool) { - if o == nil || IsNil(o.DltSubnetworkID) { - return nil, false - } - return &o.DltSubnetworkID, true -} - -// HasDltSubnetworkID returns a boolean if a field has been set. -func (o *Transact200ResponseStatusResponseDestinationChain) HasDltSubnetworkID() bool { - if o != nil && IsNil(o.DltSubnetworkID) { - return true - } - - return false -} - -// SetDltSubnetworkID gets a reference to the given interface{} and assigns it to the DltSubnetworkID field. -func (o *Transact200ResponseStatusResponseDestinationChain) SetDltSubnetworkID(v interface{}) { - o.DltSubnetworkID = v -} - -func (o Transact200ResponseStatusResponseDestinationChain) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Transact200ResponseStatusResponseDestinationChain) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.DltProtocol != nil { - toSerialize["dltProtocol"] = o.DltProtocol - } - if o.DltSubnetworkID != nil { - toSerialize["dltSubnetworkID"] = o.DltSubnetworkID - } - return toSerialize, nil -} - -type NullableTransact200ResponseStatusResponseDestinationChain struct { - value *Transact200ResponseStatusResponseDestinationChain - isSet bool -} - -func (v NullableTransact200ResponseStatusResponseDestinationChain) Get() *Transact200ResponseStatusResponseDestinationChain { - return v.value -} - -func (v *NullableTransact200ResponseStatusResponseDestinationChain) Set(val *Transact200ResponseStatusResponseDestinationChain) { - v.value = val - v.isSet = true -} - -func (v NullableTransact200ResponseStatusResponseDestinationChain) IsSet() bool { - return v.isSet -} - -func (v *NullableTransact200ResponseStatusResponseDestinationChain) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransact200ResponseStatusResponseDestinationChain(val *Transact200ResponseStatusResponseDestinationChain) *NullableTransact200ResponseStatusResponseDestinationChain { - return &NullableTransact200ResponseStatusResponseDestinationChain{value: val, isSet: true} -} - -func (v NullableTransact200ResponseStatusResponseDestinationChain) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransact200ResponseStatusResponseDestinationChain) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_origin_chain.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_origin_chain.go deleted file mode 100644 index c3429547bf..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_200_response_status_response_origin_chain.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the Transact200ResponseStatusResponseOriginChain type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Transact200ResponseStatusResponseOriginChain{} - -// Transact200ResponseStatusResponseOriginChain struct for Transact200ResponseStatusResponseOriginChain -type Transact200ResponseStatusResponseOriginChain struct { - DltProtocol interface{} `json:"dltProtocol,omitempty"` - DltSubnetworkID interface{} `json:"dltSubnetworkID,omitempty"` -} - -// NewTransact200ResponseStatusResponseOriginChain instantiates a new Transact200ResponseStatusResponseOriginChain object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransact200ResponseStatusResponseOriginChain() *Transact200ResponseStatusResponseOriginChain { - this := Transact200ResponseStatusResponseOriginChain{} - return &this -} - -// NewTransact200ResponseStatusResponseOriginChainWithDefaults instantiates a new Transact200ResponseStatusResponseOriginChain object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransact200ResponseStatusResponseOriginChainWithDefaults() *Transact200ResponseStatusResponseOriginChain { - this := Transact200ResponseStatusResponseOriginChain{} - return &this -} - -// GetDltProtocol returns the DltProtocol field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Transact200ResponseStatusResponseOriginChain) GetDltProtocol() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.DltProtocol -} - -// GetDltProtocolOk returns a tuple with the DltProtocol field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Transact200ResponseStatusResponseOriginChain) GetDltProtocolOk() (*interface{}, bool) { - if o == nil || IsNil(o.DltProtocol) { - return nil, false - } - return &o.DltProtocol, true -} - -// HasDltProtocol returns a boolean if a field has been set. -func (o *Transact200ResponseStatusResponseOriginChain) HasDltProtocol() bool { - if o != nil && IsNil(o.DltProtocol) { - return true - } - - return false -} - -// SetDltProtocol gets a reference to the given interface{} and assigns it to the DltProtocol field. -func (o *Transact200ResponseStatusResponseOriginChain) SetDltProtocol(v interface{}) { - o.DltProtocol = v -} - -// GetDltSubnetworkID returns the DltSubnetworkID field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Transact200ResponseStatusResponseOriginChain) GetDltSubnetworkID() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.DltSubnetworkID -} - -// GetDltSubnetworkIDOk returns a tuple with the DltSubnetworkID field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Transact200ResponseStatusResponseOriginChain) GetDltSubnetworkIDOk() (*interface{}, bool) { - if o == nil || IsNil(o.DltSubnetworkID) { - return nil, false - } - return &o.DltSubnetworkID, true -} - -// HasDltSubnetworkID returns a boolean if a field has been set. -func (o *Transact200ResponseStatusResponseOriginChain) HasDltSubnetworkID() bool { - if o != nil && IsNil(o.DltSubnetworkID) { - return true - } - - return false -} - -// SetDltSubnetworkID gets a reference to the given interface{} and assigns it to the DltSubnetworkID field. -func (o *Transact200ResponseStatusResponseOriginChain) SetDltSubnetworkID(v interface{}) { - o.DltSubnetworkID = v -} - -func (o Transact200ResponseStatusResponseOriginChain) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Transact200ResponseStatusResponseOriginChain) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.DltProtocol != nil { - toSerialize["dltProtocol"] = o.DltProtocol - } - if o.DltSubnetworkID != nil { - toSerialize["dltSubnetworkID"] = o.DltSubnetworkID - } - return toSerialize, nil -} - -type NullableTransact200ResponseStatusResponseOriginChain struct { - value *Transact200ResponseStatusResponseOriginChain - isSet bool -} - -func (v NullableTransact200ResponseStatusResponseOriginChain) Get() *Transact200ResponseStatusResponseOriginChain { - return v.value -} - -func (v *NullableTransact200ResponseStatusResponseOriginChain) Set(val *Transact200ResponseStatusResponseOriginChain) { - v.value = val - v.isSet = true -} - -func (v NullableTransact200ResponseStatusResponseOriginChain) IsSet() bool { - return v.isSet -} - -func (v *NullableTransact200ResponseStatusResponseOriginChain) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransact200ResponseStatusResponseOriginChain(val *Transact200ResponseStatusResponseOriginChain) *NullableTransact200ResponseStatusResponseOriginChain { - return &NullableTransact200ResponseStatusResponseOriginChain{value: val, isSet: true} -} - -func (v NullableTransact200ResponseStatusResponseOriginChain) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransact200ResponseStatusResponseOriginChain) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_default_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_default_response.go deleted file mode 100644 index 12d02cf2f1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_default_response.go +++ /dev/null @@ -1,230 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the TransactDefaultResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactDefaultResponse{} - -// TransactDefaultResponse An Error -type TransactDefaultResponse struct { - // HTTP error type - Type string `json:"type"` - // Numeric error code - Code int32 `json:"code"` - // HTTP status of the error - Status int32 `json:"status"` - // Long error description - Message string `json:"message"` - // Timestamp of the error - Timestamp string `json:"timestamp"` -} - -// NewTransactDefaultResponse instantiates a new TransactDefaultResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactDefaultResponse(type_ string, code int32, status int32, message string, timestamp string) *TransactDefaultResponse { - this := TransactDefaultResponse{} - this.Type = type_ - this.Code = code - this.Status = status - this.Message = message - this.Timestamp = timestamp - return &this -} - -// NewTransactDefaultResponseWithDefaults instantiates a new TransactDefaultResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactDefaultResponseWithDefaults() *TransactDefaultResponse { - this := TransactDefaultResponse{} - return &this -} - -// GetType returns the Type field value -func (o *TransactDefaultResponse) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TransactDefaultResponse) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TransactDefaultResponse) SetType(v string) { - o.Type = v -} - -// GetCode returns the Code field value -func (o *TransactDefaultResponse) GetCode() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Code -} - -// GetCodeOk returns a tuple with the Code field value -// and a boolean to check if the value has been set. -func (o *TransactDefaultResponse) GetCodeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Code, true -} - -// SetCode sets field value -func (o *TransactDefaultResponse) SetCode(v int32) { - o.Code = v -} - -// GetStatus returns the Status field value -func (o *TransactDefaultResponse) GetStatus() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *TransactDefaultResponse) GetStatusOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *TransactDefaultResponse) SetStatus(v int32) { - o.Status = v -} - -// GetMessage returns the Message field value -func (o *TransactDefaultResponse) GetMessage() string { - if o == nil { - var ret string - return ret - } - - return o.Message -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -func (o *TransactDefaultResponse) GetMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Message, true -} - -// SetMessage sets field value -func (o *TransactDefaultResponse) SetMessage(v string) { - o.Message = v -} - -// GetTimestamp returns the Timestamp field value -func (o *TransactDefaultResponse) GetTimestamp() string { - if o == nil { - var ret string - return ret - } - - return o.Timestamp -} - -// GetTimestampOk returns a tuple with the Timestamp field value -// and a boolean to check if the value has been set. -func (o *TransactDefaultResponse) GetTimestampOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Timestamp, true -} - -// SetTimestamp sets field value -func (o *TransactDefaultResponse) SetTimestamp(v string) { - o.Timestamp = v -} - -func (o TransactDefaultResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactDefaultResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["code"] = o.Code - toSerialize["status"] = o.Status - toSerialize["message"] = o.Message - toSerialize["timestamp"] = o.Timestamp - return toSerialize, nil -} - -type NullableTransactDefaultResponse struct { - value *TransactDefaultResponse - isSet bool -} - -func (v NullableTransactDefaultResponse) Get() *TransactDefaultResponse { - return v.value -} - -func (v *NullableTransactDefaultResponse) Set(val *TransactDefaultResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTransactDefaultResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactDefaultResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactDefaultResponse(val *TransactDefaultResponse) *NullableTransactDefaultResponse { - return &NullableTransactDefaultResponse{value: val, isSet: true} -} - -func (v NullableTransactDefaultResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactDefaultResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request.go deleted file mode 100644 index d596bae7e0..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request.go +++ /dev/null @@ -1,369 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the TransactRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactRequest{} - -// TransactRequest Request schema for initiating a transaction. Includes details such as the transaction context, mode (data or transfer), payload, and information about the source and destination DLT networks. -type TransactRequest struct { - ContextID string `json:"contextID"` - Payload *string `json:"payload,omitempty"` - FromDLTNetworkID string `json:"fromDLTNetworkID"` - ToDLTNetworkID string `json:"toDLTNetworkID"` - FromAmount string `json:"fromAmount"` - ToAmount string `json:"toAmount"` - BeneficiaryPubkey string `json:"beneficiaryPubkey"` - OriginatorPubkey string `json:"originatorPubkey"` - SourceAsset TransactRequestSourceAsset `json:"sourceAsset"` - DestinyAsset TransactRequestSourceAsset `json:"destinyAsset"` -} - -// NewTransactRequest instantiates a new TransactRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactRequest(contextID string, fromDLTNetworkID string, toDLTNetworkID string, fromAmount string, toAmount string, beneficiaryPubkey string, originatorPubkey string, sourceAsset TransactRequestSourceAsset, destinyAsset TransactRequestSourceAsset) *TransactRequest { - this := TransactRequest{} - this.ContextID = contextID - this.FromDLTNetworkID = fromDLTNetworkID - this.ToDLTNetworkID = toDLTNetworkID - this.FromAmount = fromAmount - this.ToAmount = toAmount - this.BeneficiaryPubkey = beneficiaryPubkey - this.OriginatorPubkey = originatorPubkey - this.SourceAsset = sourceAsset - this.DestinyAsset = destinyAsset - return &this -} - -// NewTransactRequestWithDefaults instantiates a new TransactRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactRequestWithDefaults() *TransactRequest { - this := TransactRequest{} - return &this -} - -// GetContextID returns the ContextID field value -func (o *TransactRequest) GetContextID() string { - if o == nil { - var ret string - return ret - } - - return o.ContextID -} - -// GetContextIDOk returns a tuple with the ContextID field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetContextIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ContextID, true -} - -// SetContextID sets field value -func (o *TransactRequest) SetContextID(v string) { - o.ContextID = v -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *TransactRequest) GetPayload() string { - if o == nil || IsNil(o.Payload) { - var ret string - return ret - } - return *o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetPayloadOk() (*string, bool) { - if o == nil || IsNil(o.Payload) { - return nil, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *TransactRequest) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given string and assigns it to the Payload field. -func (o *TransactRequest) SetPayload(v string) { - o.Payload = &v -} - -// GetFromDLTNetworkID returns the FromDLTNetworkID field value -func (o *TransactRequest) GetFromDLTNetworkID() string { - if o == nil { - var ret string - return ret - } - - return o.FromDLTNetworkID -} - -// GetFromDLTNetworkIDOk returns a tuple with the FromDLTNetworkID field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetFromDLTNetworkIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.FromDLTNetworkID, true -} - -// SetFromDLTNetworkID sets field value -func (o *TransactRequest) SetFromDLTNetworkID(v string) { - o.FromDLTNetworkID = v -} - -// GetToDLTNetworkID returns the ToDLTNetworkID field value -func (o *TransactRequest) GetToDLTNetworkID() string { - if o == nil { - var ret string - return ret - } - - return o.ToDLTNetworkID -} - -// GetToDLTNetworkIDOk returns a tuple with the ToDLTNetworkID field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetToDLTNetworkIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ToDLTNetworkID, true -} - -// SetToDLTNetworkID sets field value -func (o *TransactRequest) SetToDLTNetworkID(v string) { - o.ToDLTNetworkID = v -} - -// GetFromAmount returns the FromAmount field value -func (o *TransactRequest) GetFromAmount() string { - if o == nil { - var ret string - return ret - } - - return o.FromAmount -} - -// GetFromAmountOk returns a tuple with the FromAmount field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetFromAmountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.FromAmount, true -} - -// SetFromAmount sets field value -func (o *TransactRequest) SetFromAmount(v string) { - o.FromAmount = v -} - -// GetToAmount returns the ToAmount field value -func (o *TransactRequest) GetToAmount() string { - if o == nil { - var ret string - return ret - } - - return o.ToAmount -} - -// GetToAmountOk returns a tuple with the ToAmount field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetToAmountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ToAmount, true -} - -// SetToAmount sets field value -func (o *TransactRequest) SetToAmount(v string) { - o.ToAmount = v -} - -// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value -func (o *TransactRequest) GetBeneficiaryPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.BeneficiaryPubkey -} - -// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetBeneficiaryPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BeneficiaryPubkey, true -} - -// SetBeneficiaryPubkey sets field value -func (o *TransactRequest) SetBeneficiaryPubkey(v string) { - o.BeneficiaryPubkey = v -} - -// GetOriginatorPubkey returns the OriginatorPubkey field value -func (o *TransactRequest) GetOriginatorPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.OriginatorPubkey -} - -// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetOriginatorPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.OriginatorPubkey, true -} - -// SetOriginatorPubkey sets field value -func (o *TransactRequest) SetOriginatorPubkey(v string) { - o.OriginatorPubkey = v -} - -// GetSourceAsset returns the SourceAsset field value -func (o *TransactRequest) GetSourceAsset() TransactRequestSourceAsset { - if o == nil { - var ret TransactRequestSourceAsset - return ret - } - - return o.SourceAsset -} - -// GetSourceAssetOk returns a tuple with the SourceAsset field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetSourceAssetOk() (*TransactRequestSourceAsset, bool) { - if o == nil { - return nil, false - } - return &o.SourceAsset, true -} - -// SetSourceAsset sets field value -func (o *TransactRequest) SetSourceAsset(v TransactRequestSourceAsset) { - o.SourceAsset = v -} - -// GetDestinyAsset returns the DestinyAsset field value -func (o *TransactRequest) GetDestinyAsset() TransactRequestSourceAsset { - if o == nil { - var ret TransactRequestSourceAsset - return ret - } - - return o.DestinyAsset -} - -// GetDestinyAssetOk returns a tuple with the DestinyAsset field value -// and a boolean to check if the value has been set. -func (o *TransactRequest) GetDestinyAssetOk() (*TransactRequestSourceAsset, bool) { - if o == nil { - return nil, false - } - return &o.DestinyAsset, true -} - -// SetDestinyAsset sets field value -func (o *TransactRequest) SetDestinyAsset(v TransactRequestSourceAsset) { - o.DestinyAsset = v -} - -func (o TransactRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["contextID"] = o.ContextID - if !IsNil(o.Payload) { - toSerialize["payload"] = o.Payload - } - toSerialize["fromDLTNetworkID"] = o.FromDLTNetworkID - toSerialize["toDLTNetworkID"] = o.ToDLTNetworkID - toSerialize["fromAmount"] = o.FromAmount - toSerialize["toAmount"] = o.ToAmount - toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey - toSerialize["originatorPubkey"] = o.OriginatorPubkey - toSerialize["sourceAsset"] = o.SourceAsset - toSerialize["destinyAsset"] = o.DestinyAsset - return toSerialize, nil -} - -type NullableTransactRequest struct { - value *TransactRequest - isSet bool -} - -func (v NullableTransactRequest) Get() *TransactRequest { - return v.value -} - -func (v *NullableTransactRequest) Set(val *TransactRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTransactRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactRequest(val *TransactRequest) *NullableTransactRequest { - return &NullableTransactRequest{value: val, isSet: true} -} - -func (v NullableTransactRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request_source_asset.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request_source_asset.go deleted file mode 100644 index efa04419c1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/model_transact_request_source_asset.go +++ /dev/null @@ -1,279 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" -) - -// checks if the TransactRequestSourceAsset type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactRequestSourceAsset{} - -// TransactRequestSourceAsset An asset -type TransactRequestSourceAsset struct { - Owner string `json:"owner"` - Ontology string `json:"ontology"` - ContractName string `json:"contractName"` - ContractAddress *string `json:"contractAddress,omitempty"` - MspId *string `json:"mspId,omitempty"` - ChannelName *string `json:"channelName,omitempty"` -} - -// NewTransactRequestSourceAsset instantiates a new TransactRequestSourceAsset object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactRequestSourceAsset(owner string, ontology string, contractName string) *TransactRequestSourceAsset { - this := TransactRequestSourceAsset{} - this.Owner = owner - this.Ontology = ontology - this.ContractName = contractName - return &this -} - -// NewTransactRequestSourceAssetWithDefaults instantiates a new TransactRequestSourceAsset object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactRequestSourceAssetWithDefaults() *TransactRequestSourceAsset { - this := TransactRequestSourceAsset{} - return &this -} - -// GetOwner returns the Owner field value -func (o *TransactRequestSourceAsset) GetOwner() string { - if o == nil { - var ret string - return ret - } - - return o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value -// and a boolean to check if the value has been set. -func (o *TransactRequestSourceAsset) GetOwnerOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Owner, true -} - -// SetOwner sets field value -func (o *TransactRequestSourceAsset) SetOwner(v string) { - o.Owner = v -} - -// GetOntology returns the Ontology field value -func (o *TransactRequestSourceAsset) GetOntology() string { - if o == nil { - var ret string - return ret - } - - return o.Ontology -} - -// GetOntologyOk returns a tuple with the Ontology field value -// and a boolean to check if the value has been set. -func (o *TransactRequestSourceAsset) GetOntologyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Ontology, true -} - -// SetOntology sets field value -func (o *TransactRequestSourceAsset) SetOntology(v string) { - o.Ontology = v -} - -// GetContractName returns the ContractName field value -func (o *TransactRequestSourceAsset) GetContractName() string { - if o == nil { - var ret string - return ret - } - - return o.ContractName -} - -// GetContractNameOk returns a tuple with the ContractName field value -// and a boolean to check if the value has been set. -func (o *TransactRequestSourceAsset) GetContractNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ContractName, true -} - -// SetContractName sets field value -func (o *TransactRequestSourceAsset) SetContractName(v string) { - o.ContractName = v -} - -// GetContractAddress returns the ContractAddress field value if set, zero value otherwise. -func (o *TransactRequestSourceAsset) GetContractAddress() string { - if o == nil || IsNil(o.ContractAddress) { - var ret string - return ret - } - return *o.ContractAddress -} - -// GetContractAddressOk returns a tuple with the ContractAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactRequestSourceAsset) GetContractAddressOk() (*string, bool) { - if o == nil || IsNil(o.ContractAddress) { - return nil, false - } - return o.ContractAddress, true -} - -// HasContractAddress returns a boolean if a field has been set. -func (o *TransactRequestSourceAsset) HasContractAddress() bool { - if o != nil && !IsNil(o.ContractAddress) { - return true - } - - return false -} - -// SetContractAddress gets a reference to the given string and assigns it to the ContractAddress field. -func (o *TransactRequestSourceAsset) SetContractAddress(v string) { - o.ContractAddress = &v -} - -// GetMspId returns the MspId field value if set, zero value otherwise. -func (o *TransactRequestSourceAsset) GetMspId() string { - if o == nil || IsNil(o.MspId) { - var ret string - return ret - } - return *o.MspId -} - -// GetMspIdOk returns a tuple with the MspId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactRequestSourceAsset) GetMspIdOk() (*string, bool) { - if o == nil || IsNil(o.MspId) { - return nil, false - } - return o.MspId, true -} - -// HasMspId returns a boolean if a field has been set. -func (o *TransactRequestSourceAsset) HasMspId() bool { - if o != nil && !IsNil(o.MspId) { - return true - } - - return false -} - -// SetMspId gets a reference to the given string and assigns it to the MspId field. -func (o *TransactRequestSourceAsset) SetMspId(v string) { - o.MspId = &v -} - -// GetChannelName returns the ChannelName field value if set, zero value otherwise. -func (o *TransactRequestSourceAsset) GetChannelName() string { - if o == nil || IsNil(o.ChannelName) { - var ret string - return ret - } - return *o.ChannelName -} - -// GetChannelNameOk returns a tuple with the ChannelName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactRequestSourceAsset) GetChannelNameOk() (*string, bool) { - if o == nil || IsNil(o.ChannelName) { - return nil, false - } - return o.ChannelName, true -} - -// HasChannelName returns a boolean if a field has been set. -func (o *TransactRequestSourceAsset) HasChannelName() bool { - if o != nil && !IsNil(o.ChannelName) { - return true - } - - return false -} - -// SetChannelName gets a reference to the given string and assigns it to the ChannelName field. -func (o *TransactRequestSourceAsset) SetChannelName(v string) { - o.ChannelName = &v -} - -func (o TransactRequestSourceAsset) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactRequestSourceAsset) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["owner"] = o.Owner - toSerialize["ontology"] = o.Ontology - toSerialize["contractName"] = o.ContractName - if !IsNil(o.ContractAddress) { - toSerialize["contractAddress"] = o.ContractAddress - } - if !IsNil(o.MspId) { - toSerialize["mspId"] = o.MspId - } - if !IsNil(o.ChannelName) { - toSerialize["channelName"] = o.ChannelName - } - return toSerialize, nil -} - -type NullableTransactRequestSourceAsset struct { - value *TransactRequestSourceAsset - isSet bool -} - -func (v NullableTransactRequestSourceAsset) Get() *TransactRequestSourceAsset { - return v.value -} - -func (v *NullableTransactRequestSourceAsset) Set(val *TransactRequestSourceAsset) { - v.value = val - v.isSet = true -} - -func (v NullableTransactRequestSourceAsset) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactRequestSourceAsset) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactRequestSourceAsset(val *TransactRequestSourceAsset) *NullableTransactRequestSourceAsset { - return &NullableTransactRequestSourceAsset{value: val, isSet: true} -} - -func (v NullableTransactRequestSourceAsset) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactRequestSourceAsset) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/response.go deleted file mode 100644 index 4380f82140..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_admin_test.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_admin_test.go deleted file mode 100644 index 4cd51095ba..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_admin_test.go +++ /dev/null @@ -1,85 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -Testing AdminApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package generated - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func Test_generated_AdminApiService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test AdminApiService CallContinue", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AdminApi.CallContinue(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AdminApiService GetAudit", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AdminApi.GetAudit(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AdminApiService GetHealthCheck", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AdminApi.GetHealthCheck(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AdminApiService GetStatus", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AdminApi.GetStatus(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AdminApiService Pause", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AdminApi.Pause(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_transaction_test.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_transaction_test.go deleted file mode 100644 index 1b848e0db1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/test/api_transaction_test.go +++ /dev/null @@ -1,73 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -Testing TransactionApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package generated - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated" -) - -func Test_generated_TransactionApiService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test TransactionApiService Cancel", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TransactionApi.Cancel(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TransactionApiService GetIntegrations", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TransactionApi.GetIntegrations(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TransactionApiService GetRoutes", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TransactionApi.GetRoutes(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TransactionApiService Transact", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TransactionApi.Transact(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/utils.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/utils.go deleted file mode 100644 index 63010ca736..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/gateway-client/utils.go +++ /dev/null @@ -1,347 +0,0 @@ -/* -SATP Gateway Client (Business Logic Orchestrator) - -SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability. This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification. **Additional Resources**: - [Proposed SATP Charter](https://datatracker.ietf.org/doc/charter-ietf-satp/) - [SATP Core draft](https://datatracker.ietf.org/doc/draft-ietf-satp-core) - [SATP Crash Recovery draft](https://datatracker.ietf.org/doc/draft-belchior-satp-gateway-recovery/) - [SATP Architecture draft](https://datatracker.ietf.org/doc/draft-ietf-satp-architecture/) - [SATP Use-Cases draft](https://datatracker.ietf.org/doc/draft-ramakrishna-sat-use-cases/) - [SATP Data sharing draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-data-sharing) - [SATP View Addresses draft](https://datatracker.ietf.org/doc/draft-ramakrishna-satp-views-addresses) - -API version: 0.0.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package generated - -import ( - "encoding/json" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// IsNil checks if an input is nil -func IsNil(i interface{}) bool { - if i == nil { - return true - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES deleted file mode 100644 index 87c8b5f704..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/FILES +++ /dev/null @@ -1,37 +0,0 @@ -.travis.yml -README.md -api/openapi.yaml -api_default.go -client.go -configuration.go -go.mod -go.sum -model_asset_profile.go -model_client_v1_request.go -model_client_v1_request_client_gateway_configuration.go -model_commit_final_v1_request.go -model_commit_final_v1_response.go -model_commit_preparation_v1_request.go -model_commit_preparation_v1_response.go -model_credential_profile.go -model_history.go -model_local_log.go -model_lock_evidence_v1_request.go -model_lock_evidence_v1_response.go -model_payload_profile.go -model_recover_success_v1_message.go -model_recover_update_ack_v1_message.go -model_recover_update_v1_message.go -model_recover_v1_message.go -model_rollback_ack_v1_message.go -model_rollback_v1_message.go -model_satp_message.go -model_satp_message_action_response.go -model_session_data.go -model_transfer_commence_v1_request.go -model_transfer_commence_v1_response.go -model_transfer_complete_v1_request.go -model_transfer_initialization_v1_request.go -model_transfer_initialization_v1_response.go -response.go -utils.go diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION deleted file mode 100644 index cd802a1ec4..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.6.0 \ No newline at end of file diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.travis.yml b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.travis.yml deleted file mode 100644 index f5cb2ce9a5..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/README.md b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/README.md deleted file mode 100644 index 9217acb078..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/README.md +++ /dev/null @@ -1,155 +0,0 @@ -# Go API client for cactus-plugin-satp-hermes - -Implementation for Odap and Hermes - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 2.0.0-rc.7 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.GoClientCodegen - -## Installation - -Install the following dependencies: - -```shell -go get github.com/stretchr/testify/assert -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```golang -import cactus-plugin-satp-hermes "github.com/hyperledger/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client" -``` - -To use a proxy, set the environment variable `HTTP_PROXY`: - -```golang -os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") -``` - -## Configuration of Server URL - -Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. - -### Select Server Configuration - -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. - -```golang -ctx := context.WithValue(context.Background(), cactus-plugin-satp-hermes.ContextServerIndex, 1) -``` - -### Templated Server URL - -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. - -```golang -ctx := context.WithValue(context.Background(), cactus-plugin-satp-hermes.ContextServerVariables, map[string]string{ - "basePath": "v2", -}) -``` - -Note, enum values are always validated and all unused variables are silently ignored. - -### URLs Configuration per Operation - -Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. - -```golang -ctx := context.WithValue(context.Background(), cactus-plugin-satp-hermes.ContextOperationServerIndices, map[string]int{ - "{classname}Service.{nickname}": 2, -}) -ctx = context.WithValue(context.Background(), cactus-plugin-satp-hermes.ContextOperationServerVariables, map[string]map[string]string{ - "{classname}Service.{nickname}": { - "port": "8443", - }, -}) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DefaultApi* | [**ClientRequestV1**](docs/DefaultApi.md#clientrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/clientrequest | -*DefaultApi* | [**Phase1TransferInitiationRequestV1**](docs/DefaultApi.md#phase1transferinitiationrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationrequest | -*DefaultApi* | [**Phase1TransferInitiationResponseV1**](docs/DefaultApi.md#phase1transferinitiationresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationresponse | -*DefaultApi* | [**Phase2LockEvidenceRequestV1**](docs/DefaultApi.md#phase2lockevidencerequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidencerequest | -*DefaultApi* | [**Phase2LockEvidenceResponseV1**](docs/DefaultApi.md#phase2lockevidenceresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidenceresponse | -*DefaultApi* | [**Phase2TransferCommenceRequestV1**](docs/DefaultApi.md#phase2transfercommencerequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommencerequest | -*DefaultApi* | [**Phase2TransferCommenceResponseV1**](docs/DefaultApi.md#phase2transfercommenceresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommenceresponse | -*DefaultApi* | [**Phase3CommitFinalRequestV1**](docs/DefaultApi.md#phase3commitfinalrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalrequest | -*DefaultApi* | [**Phase3CommitFinalResponseV1**](docs/DefaultApi.md#phase3commitfinalresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalresponse | -*DefaultApi* | [**Phase3CommitPreparationRequestV1**](docs/DefaultApi.md#phase3commitpreparationrequestv1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationrequest | -*DefaultApi* | [**Phase3CommitPreparationResponseV1**](docs/DefaultApi.md#phase3commitpreparationresponsev1) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationresponse | -*DefaultApi* | [**Phase3TransferCompleteRequestV1**](docs/DefaultApi.md#phase3transfercompleterequestv1) | **Get** /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/transfercompleterequest | -*DefaultApi* | [**RecoverUpdateAckV1Message**](docs/DefaultApi.md#recoverupdateackv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdateackmessage | -*DefaultApi* | [**RecoverUpdateV1Message**](docs/DefaultApi.md#recoverupdatev1message) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdatemessage | -*DefaultApi* | [**RecoverV1Message**](docs/DefaultApi.md#recoverv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/recovermessage | -*DefaultApi* | [**RecoverV1Success**](docs/DefaultApi.md#recoverv1success) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoversuccessmessage | -*DefaultApi* | [**RollbackAckV1Message**](docs/DefaultApi.md#rollbackackv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackackmessage | -*DefaultApi* | [**RollbackV1Message**](docs/DefaultApi.md#rollbackv1message) | **Post** /api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackmessage | - - -## Documentation For Models - - - [AssetProfile](docs/AssetProfile.md) - - [ClientV1Request](docs/ClientV1Request.md) - - [ClientV1RequestClientGatewayConfiguration](docs/ClientV1RequestClientGatewayConfiguration.md) - - [CommitFinalV1Request](docs/CommitFinalV1Request.md) - - [CommitFinalV1Response](docs/CommitFinalV1Response.md) - - [CommitPreparationV1Request](docs/CommitPreparationV1Request.md) - - [CommitPreparationV1Response](docs/CommitPreparationV1Response.md) - - [CredentialProfile](docs/CredentialProfile.md) - - [History](docs/History.md) - - [LocalLog](docs/LocalLog.md) - - [LockEvidenceV1Request](docs/LockEvidenceV1Request.md) - - [LockEvidenceV1Response](docs/LockEvidenceV1Response.md) - - [PayloadProfile](docs/PayloadProfile.md) - - [RecoverSuccessV1Message](docs/RecoverSuccessV1Message.md) - - [RecoverUpdateAckV1Message](docs/RecoverUpdateAckV1Message.md) - - [RecoverUpdateV1Message](docs/RecoverUpdateV1Message.md) - - [RecoverV1Message](docs/RecoverV1Message.md) - - [RollbackAckV1Message](docs/RollbackAckV1Message.md) - - [RollbackV1Message](docs/RollbackV1Message.md) - - [SatpMessage](docs/SatpMessage.md) - - [SatpMessageActionResponse](docs/SatpMessageActionResponse.md) - - [SessionData](docs/SessionData.md) - - [TransferCommenceV1Request](docs/TransferCommenceV1Request.md) - - [TransferCommenceV1Response](docs/TransferCommenceV1Response.md) - - [TransferCompleteV1Request](docs/TransferCompleteV1Request.md) - - [TransferInitializationV1Request](docs/TransferInitializationV1Request.md) - - [TransferInitializationV1Response](docs/TransferInitializationV1Response.md) - - -## Documentation For Authorization - -Endpoints do not require authorization. - - -## Documentation for Utility Methods - -Due to the fact that model structure members are all pointers, this package contains -a number of utility functions to easily obtain pointers to values of basic types. -Each of these functions takes a value of the given basic type and returns a pointer to it: - -* `PtrBool` -* `PtrInt` -* `PtrInt32` -* `PtrInt64` -* `PtrFloat` -* `PtrFloat32` -* `PtrFloat64` -* `PtrString` -* `PtrTime` - -## Author - - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml deleted file mode 100644 index b3b2afde1a..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api/openapi.yaml +++ /dev/null @@ -1,1600 +0,0 @@ -openapi: 3.0.3 -info: - description: Implementation for Odap and Hermes - license: - name: Apache-2.0 - url: https://www.apache.org/licenses/LICENSE-2.0.html - title: Hyperledger Cactus Plugin - Odap Hermes - version: 2.0.0-rc.7 -servers: -- url: / -paths: - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationrequest: - post: - description: "" - operationId: phase1TransferInitiationRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TransferInitializationV1Request' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationrequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommencerequest: - post: - description: "" - operationId: phase2TransferCommenceRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TransferCommenceV1Request' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommencerequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidencerequest: - post: - description: "" - operationId: phase2LockEvidenceRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/LockEvidenceV1Request' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidencerequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationrequest: - post: - description: "" - operationId: phase3CommitPreparationRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CommitPreparationV1Request' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationrequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalrequest: - post: - description: "" - operationId: phase3CommitFinalRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CommitFinalV1Request' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalrequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/transfercompleterequest: - get: - description: "" - operationId: phase3TransferCompleteRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TransferCompleteV1Request' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: get - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/transfercompleterequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/clientrequest: - post: - description: "" - operationId: clientRequestV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientV1Request' - responses: - "200": - content: - application/json: - schema: {} - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/clientrequest - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationresponse: - post: - description: "" - operationId: phase1TransferInitiationResponseV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TransferInitializationV1Response' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationresponse - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommenceresponse: - post: - description: "" - operationId: phase2TransferCommenceResponseV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TransferCommenceV1Response' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommenceresponse - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidenceresponse: - post: - description: "" - operationId: phase2LockEvidenceResponseV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/LockEvidenceV1Response' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidenceresponse - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationresponse: - post: - description: "" - operationId: phase3CommitPreparationResponseV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CommitPreparationV1Response' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationresponse - /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalresponse: - post: - description: "" - operationId: phase3CommitFinalResponseV1 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CommitFinalV1Response' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalresponse - /api/v1/@hyperledger/cactus-plugin-satp-hermes/recovermessage: - post: - description: "" - operationId: RecoverV1Message - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RecoverV1Message' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/recovermessage - /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdatemessage: - post: - description: "" - operationId: RecoverUpdateV1Message - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RecoverUpdateV1Message' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdatemessage - /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdateackmessage: - post: - description: "" - operationId: RecoverUpdateAckV1Message - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RecoverUpdateAckV1Message' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdateackmessage - /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoversuccessmessage: - post: - description: "" - operationId: RecoverV1Success - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RecoverSuccessV1Message' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/recoversuccessmessage - /api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackmessage: - post: - description: "" - operationId: RollbackV1Message - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RollbackV1Message' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackmessage - /api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackackmessage: - post: - description: "" - operationId: RollbackAckV1Message - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RollbackAckV1Message' - responses: - "200": - description: OK - x-hyperledger-cacti: - http: - verbLowerCase: post - path: /api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackackmessage -components: - schemas: - CredentialProfile: - enum: - - SAML - - OAUTH - - X509 - type: string - PayloadProfile: - example: - assetProfile: - ledgerRequirements: - - "" - - "" - keyInformationLink: - - "" - - "" - assetCode: assetCode - issuanceDate: issuanceDate - digitalSignature: digitalSignature - verificationEndPoint: verificationEndPoint - prospectusLink: prospectusLink - issuer: issuer - assetCodeType: assetCodeType - transferRestriction: - - "" - - "" - expirationDate: expirationDate - keyWord: - - "" - - "" - capabilities: capabilities - properties: - assetProfile: - $ref: '#/components/schemas/AssetProfile' - capabilities: - type: string - required: - - assetProfile - type: object - ApplicationProfile: - type: object - Payload: - type: object - AssetProfile: - example: - ledgerRequirements: - - "" - - "" - keyInformationLink: - - "" - - "" - assetCode: assetCode - issuanceDate: issuanceDate - digitalSignature: digitalSignature - verificationEndPoint: verificationEndPoint - prospectusLink: prospectusLink - issuer: issuer - assetCodeType: assetCodeType - transferRestriction: - - "" - - "" - expirationDate: expirationDate - keyWord: - - "" - - "" - properties: - issuer: - type: string - assetCode: - type: string - assetCodeType: - type: string - issuanceDate: - type: string - expirationDate: - type: string - verificationEndPoint: - type: string - digitalSignature: - type: string - prospectusLink: - type: string - keyInformationLink: - items: {} - type: array - keyWord: - items: {} - type: array - transferRestriction: - items: {} - type: array - ledgerRequirements: - items: {} - type: array - required: - - expirationDate - type: object - LoggingProfile: - items: - type: string - type: array - AccessControlProfile: - items: - type: string - type: array - Permissions: - type: object - Transaction: - type: object - ActionCategory: - type: object - History: - example: - Origin: Origin - Transactions: - - null - - null - Destination: Destination - Actions: - - null - - null - CurrentStatus: "{}" - ApplicationSpecificParameters: "{}" - Balance: Balance - properties: - Transactions: - items: - $ref: '#/components/schemas/Transaction' - type: array - Actions: - items: - $ref: '#/components/schemas/ActionCategory' - type: array - Origin: - type: string - Destination: - type: string - Balance: - type: string - CurrentStatus: - type: object - ApplicationSpecificParameters: - type: object - type: object - SenderDltSystem: - type: object - RecipientDltSystem: - type: object - LockEvidenceClaim: - type: object - LockClaimFormat: - type: object - CommitFinalClaim: - type: object - CommitFinalClaimFormat: - type: object - CommitAcknowledgementClaim: - type: object - CommitAcknowledgementClaimFormat: - type: object - SessionData: - properties: - id: - type: string - step: - type: number - version: - type: string - lastSequenceNumber: - type: number - loggingProfile: - type: string - accessControlProfile: - type: string - applicationProfile: - type: string - payloadProfile: - $ref: '#/components/schemas/PayloadProfile' - assetProfile: - $ref: '#/components/schemas/AssetProfile' - allowedSourceBackupGateways: - items: - type: string - type: array - allowedRecipientBackupGateways: - items: - type: string - type: array - sourceBasePath: - type: string - recipientBasePath: - type: string - originatorPubkey: - type: string - beneficiaryPubkey: - type: string - sourceGatewayPubkey: - type: string - sourceGatewayDltSystem: - type: string - recipientGatewayPubkey: - type: string - recipientGatewayDltSystem: - type: string - initializationRequestMessageHash: - type: string - initializationResponseMessageHash: - type: string - initializationRequestMessageRcvTimeStamp: - type: string - initializationRequestMessageProcessedTimeStamp: - type: string - clientSignatureInitializationRequestMessage: - type: string - serverSignatureInitializationResponseMessage: - type: string - transferCommenceMessageRequestHash: - type: string - transferCommenceMessageResponseHash: - type: string - clientSignatureTransferCommenceRequestMessage: - type: string - serverSignatureTransferCommenceResponseMessage: - type: string - lockEvidenceRequestMessageHash: - type: string - lockEvidenceResponseMessageHash: - type: string - clientSignatureLockEvidenceRequestMessage: - type: string - serverSignatureLockEvidenceResponseMessage: - type: string - lockEvidenceClaim: - type: string - commitPrepareRequestMessageHash: - type: string - commitPrepareResponseMessageHash: - type: string - clientSignatureCommitPreparationRequestMessage: - type: string - serverSignatureCommitPreparationResponseMessage: - type: string - commitFinalRequestMessageHash: - type: string - commitFinalResponseMessageHash: - type: string - commitFinalClaim: - type: string - commitFinalClaimFormat: - type: string - commitAcknowledgementClaim: - type: string - commitAcknowledgementClaimFormat: - type: string - clientSignatureCommitFinalRequestMessage: - type: string - serverSignatureCommitFinalResponseMessage: - type: string - transferCompleteMessageHash: - type: string - clientSignatureTransferCompleteMessage: - type: string - maxRetries: - type: number - recipientLedgerAssetID: - type: string - sourceLedgerAssetID: - type: string - maxTimeout: - type: number - lastLogEntryTimestamp: - type: string - unlockAssetClaim: - type: string - recreateAssetClaim: - type: string - deleteAssetClaim: - type: string - lastMessageReceivedTimestamp: - type: string - rollback: - type: boolean - rollbackMessageHash: - type: string - rollbackProofs: - items: - type: string - type: array - rollbackActionsPerformed: - items: - enum: - - CREATE - - DELETE - - LOCK - - UNLOCK - type: string - type: array - type: object - TransferInitializationV1Request: - example: - recipientLedgerAssetID: recipientLedgerAssetID - subsequentCalls: "{}" - backupGatewaysAllowed: - - backupGatewaysAllowed - - backupGatewaysAllowed - signature: signature - credentialProfile: null - origin: origin - destination: destination - recipientGatewayPubkey: recipientGatewayPubkey - sessionID: sessionID - sourceBasePath: sourceBasePath - loggingProfile: loggingProfile - sourceLedgerAssetID: sourceLedgerAssetID - messageType: messageType - permissions: "{}" - multipleClaimsAllowed: true - payloadProfile: - assetProfile: - ledgerRequirements: - - "" - - "" - keyInformationLink: - - "" - - "" - assetCode: assetCode - issuanceDate: issuanceDate - digitalSignature: digitalSignature - verificationEndPoint: verificationEndPoint - prospectusLink: prospectusLink - issuer: issuer - assetCodeType: assetCodeType - transferRestriction: - - "" - - "" - expirationDate: expirationDate - keyWord: - - "" - - "" - capabilities: capabilities - applicationProfile: applicationProfile - sourceGatewayPubkey: sourceGatewayPubkey - recipientGatewayDltSystem: recipientGatewayDltSystem - sequenceNumber: 0 - accessControlProfile: accessControlProfile - developerURN: developerURN - histories: - - Origin: Origin - Transactions: - - null - - null - Destination: Destination - Actions: - - null - - null - CurrentStatus: "{}" - ApplicationSpecificParameters: "{}" - Balance: Balance - - Origin: Origin - Transactions: - - null - - null - Destination: Destination - Actions: - - null - - null - CurrentStatus: "{}" - ApplicationSpecificParameters: "{}" - Balance: Balance - version: version - multipleCancelsAllowed: true - escrowType: FAUCET - maxRetries: 6.027456183070403 - sourceGatewayDltSystem: sourceGatewayDltSystem - recipientBasePath: recipientBasePath - maxTimeout: 1.4658129805029452 - expiryTime: expiryTime - properties: - messageType: - type: string - sessionID: - type: string - version: - type: string - developerURN: - type: string - credentialProfile: - $ref: '#/components/schemas/CredentialProfile' - payloadProfile: - $ref: '#/components/schemas/PayloadProfile' - applicationProfile: - type: string - loggingProfile: - type: string - accessControlProfile: - type: string - signature: - type: string - sourceGatewayPubkey: - type: string - sourceGatewayDltSystem: - type: string - recipientGatewayPubkey: - type: string - recipientGatewayDltSystem: - type: string - escrowType: - enum: - - FAUCET - - TIMELOCK - - HASHLOCK - - HASHTIMELOCK - - MULTICLAIMPC - - DESTROY - - BURN - type: string - expiryTime: - type: string - multipleClaimsAllowed: - type: boolean - multipleCancelsAllowed: - type: boolean - permissions: - type: object - origin: - type: string - destination: - type: string - subsequentCalls: - type: object - histories: - items: - $ref: '#/components/schemas/History' - type: array - sequenceNumber: - type: integer - sourceBasePath: - type: string - recipientBasePath: - type: string - maxRetries: - type: number - maxTimeout: - type: number - backupGatewaysAllowed: - items: - type: string - type: array - recipientLedgerAssetID: - type: string - sourceLedgerAssetID: - type: string - required: - - accessControlProfile - - applicationProfile - - backupGatewaysAllowed - - loggingProfile - - maxRetries - - maxTimeout - - messageType - - payloadProfile - - recipientBasePath - - recipientGatewayDltSystem - - recipientGatewayPubkey - - recipientLedgerAssetID - - sequenceNumber - - sessionID - - signature - - sourceBasePath - - sourceGatewayDltSystem - - sourceGatewayPubkey - - sourceLedgerAssetID - type: object - TransferInitializationV1Response: - example: - timeStamp: timeStamp - sequenceNumber: 0.8008281904610115 - odapPhase: TransferInitialization - initialRequestMessageHash: initialRequestMessageHash - messageType: messageType - backupGatewaysAllowed: - - backupGatewaysAllowed - - backupGatewaysAllowed - processedTimeStamp: processedTimeStamp - signature: signature - destination: destination - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - messageType: - type: string - sessionID: - type: string - sequenceNumber: - type: number - odapPhase: - enum: - - TransferInitialization - - LockEvidenceVerification - - CommitmentEstablishment - type: string - initialRequestMessageHash: - type: string - destination: - type: string - timeStamp: - type: string - processedTimeStamp: - type: string - serverIdentityPubkey: - type: string - signature: - type: string - backupGatewaysAllowed: - items: - type: string - type: array - required: - - backupGatewaysAllowed - - initialRequestMessageHash - - messageType - - processedTimeStamp - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - - timeStamp - type: object - TransferCommenceV1Request: - example: - beneficiaryPubkey: beneficiaryPubkey - sequenceNumber: 1 - hashAssetProfile: hashAssetProfile - clientIdentityPubkey: clientIdentityPubkey - clientTransferNumber: 6 - signature: signature - recipientDltSystem: recipientDltSystem - sessionID: sessionID - hashPrevMessage: hashPrevMessage - serverIdentityPubkey: serverIdentityPubkey - assetUnit: 0 - messageType: messageType - senderDltSystem: senderDltSystem - originatorPubkey: originatorPubkey - properties: - sessionID: - type: string - messageType: - type: string - originatorPubkey: - type: string - beneficiaryPubkey: - type: string - senderDltSystem: - type: string - recipientDltSystem: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - hashAssetProfile: - type: string - assetUnit: - type: integer - hashPrevMessage: - type: string - clientTransferNumber: - nullable: true - type: integer - signature: - type: string - sequenceNumber: - type: integer - required: - - beneficiaryPubkey - - clientIdentityPubkey - - hashAssetProfile - - hashPrevMessage - - messageType - - originatorPubkey - - recipientDltSystem - - senderDltSystem - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - TransferCommenceV1Response: - example: - sequenceNumber: 6.027456183070403 - clientIdentityPubkey: clientIdentityPubkey - messageType: messageType - signature: signature - serverTransferNumber: 0 - messageHash: messageHash - sessionID: sessionID - hashCommenceRequest: hashCommenceRequest - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - hashCommenceRequest: - type: string - serverTransferNumber: - nullable: true - type: integer - signature: - type: string - messageType: - type: string - messageHash: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - hashCommenceRequest - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - LockEvidenceV1Request: - example: - sequenceNumber: 6.027456183070403 - lockEvidenceExpiration: lockEvidenceExpiration - clientIdentityPubkey: clientIdentityPubkey - clientTransferNumber: 0 - messageType: messageType - signature: signature - lockEvidenceClaim: lockEvidenceClaim - lockEvidenceFormat: "{}" - hashCommenceAckRequest: hashCommenceAckRequest - messageHash: messageHash - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - lockEvidenceClaim: - type: string - lockEvidenceFormat: - type: object - lockEvidenceExpiration: - type: string - hashCommenceAckRequest: - type: string - clientTransferNumber: - nullable: true - type: integer - signature: - type: string - messageType: - type: string - messageHash: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - hashCommenceAckRequest - - lockEvidenceClaim - - lockEvidenceExpiration - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - LockEvidenceV1Response: - example: - sequenceNumber: 6.027456183070403 - clientIdentityPubkey: clientIdentityPubkey - messageType: messageType - signature: signature - serverTransferNumber: 0 - hashLockEvidenceRequest: hashLockEvidenceRequest - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - hashLockEvidenceRequest: - type: string - serverTransferNumber: - nullable: true - type: integer - signature: - type: string - messageType: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - hashLockEvidenceRequest - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - CommitPreparationV1Request: - example: - sequenceNumber: 6.027456183070403 - clientIdentityPubkey: clientIdentityPubkey - hashLockEvidenceAck: hashLockEvidenceAck - messageType: messageType - clientTransferNumber: 0 - signature: signature - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - messageType: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - hashLockEvidenceAck: - type: string - clientTransferNumber: - type: integer - signature: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - hashLockEvidenceAck - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - CommitPreparationV1Response: - example: - sequenceNumber: 0.8008281904610115 - clientIdentityPubkey: clientIdentityPubkey - messageType: messageType - hashCommitPrep: hashCommitPrep - signature: signature - serverTransferNumber: serverTransferNumber - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - messageType: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - hashCommitPrep: - type: string - serverTransferNumber: - type: string - signature: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - hashCommitPrep - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - CommitFinalV1Request: - example: - sequenceNumber: 6.027456183070403 - clientIdentityPubkey: clientIdentityPubkey - messageType: messageType - clientTransferNumber: 0 - signature: signature - commitFinalClaim: commitFinalClaim - commitFinalClaimFormat: "{}" - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - hashCommitPrepareAck: hashCommitPrepareAck - properties: - sessionID: - type: string - messageType: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - commitFinalClaim: - type: string - commitFinalClaimFormat: - type: object - hashCommitPrepareAck: - type: string - clientTransferNumber: - nullable: true - type: integer - signature: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - commitFinalClaim - - hashCommitPrepareAck - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - CommitFinalV1Response: - example: - sequenceNumber: 6.027456183070403 - clientIdentityPubkey: clientIdentityPubkey - messageType: messageType - commitAcknowledgementClaimFormat: "{}" - signature: signature - serverTransferNumber: 0 - commitAcknowledgementClaim: commitAcknowledgementClaim - hashCommitFinal: hashCommitFinal - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - messageType: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - commitAcknowledgementClaim: - type: string - commitAcknowledgementClaimFormat: - type: object - hashCommitFinal: - type: string - serverTransferNumber: - type: integer - signature: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - commitAcknowledgementClaim - - hashCommitFinal - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - TransferCompleteV1Request: - example: - sequenceNumber: 6.027456183070403 - hashCommitFinalAck: hashCommitFinalAck - clientIdentityPubkey: clientIdentityPubkey - hashTransferCommence: hashTransferCommence - messageType: messageType - clientTransferNumber: 0 - signature: signature - sessionID: sessionID - serverIdentityPubkey: serverIdentityPubkey - properties: - sessionID: - type: string - messageType: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - hashCommitFinalAck: - type: string - clientTransferNumber: - nullable: true - type: integer - signature: - type: string - hashTransferCommence: - type: string - sequenceNumber: - type: number - required: - - clientIdentityPubkey - - hashCommitFinalAck - - hashTransferCommence - - messageType - - sequenceNumber - - serverIdentityPubkey - - sessionID - - signature - type: object - ClientV1Request: - example: - assetProfile: - ledgerRequirements: - - "" - - "" - keyInformationLink: - - "" - - "" - assetCode: assetCode - issuanceDate: issuanceDate - digitalSignature: digitalSignature - verificationEndPoint: verificationEndPoint - prospectusLink: prospectusLink - issuer: issuer - assetCodeType: assetCodeType - transferRestriction: - - "" - - "" - expirationDate: expirationDate - keyWord: - - "" - - "" - beneficiaryPubkey: beneficiaryPubkey - recipientLedgerAssetID: recipientLedgerAssetID - clientIdentityPubkey: clientIdentityPubkey - serverDltSystem: serverDltSystem - accessControlProfile: accessControlProfile - recipientGatewayPubkey: recipientGatewayPubkey - assetControlProfile: assetControlProfile - version: version - serverIdentityPubkey: serverIdentityPubkey - loggingProfile: loggingProfile - serverGatewayConfiguration: - apiHost: apiHost - sourceLedgerAssetID: sourceLedgerAssetID - clientGatewayConfiguration: - apiHost: apiHost - maxRetries: 0.8008281904610115 - sourceGatewayDltSystem: sourceGatewayDltSystem - maxTimeout: 6.027456183070403 - applicationProfile: applicationProfile - payloadProfile: - assetProfile: - ledgerRequirements: - - "" - - "" - keyInformationLink: - - "" - - "" - assetCode: assetCode - issuanceDate: issuanceDate - digitalSignature: digitalSignature - verificationEndPoint: verificationEndPoint - prospectusLink: prospectusLink - issuer: issuer - assetCodeType: assetCodeType - transferRestriction: - - "" - - "" - expirationDate: expirationDate - keyWord: - - "" - - "" - capabilities: capabilities - originatorPubkey: originatorPubkey - clientDltSystem: clientDltSystem - recipientGatewayDltSystem: recipientGatewayDltSystem - properties: - version: - type: string - loggingProfile: - type: string - accessControlProfile: - type: string - assetControlProfile: - type: string - applicationProfile: - type: string - assetProfile: - $ref: '#/components/schemas/AssetProfile' - payloadProfile: - $ref: '#/components/schemas/PayloadProfile' - sourceGatewayDltSystem: - type: string - recipientGatewayDltSystem: - type: string - recipientGatewayPubkey: - type: string - originatorPubkey: - type: string - beneficiaryPubkey: - type: string - clientIdentityPubkey: - type: string - serverIdentityPubkey: - type: string - clientDltSystem: - type: string - serverDltSystem: - type: string - clientGatewayConfiguration: - $ref: '#/components/schemas/ClientV1Request_clientGatewayConfiguration' - serverGatewayConfiguration: - $ref: '#/components/schemas/ClientV1Request_clientGatewayConfiguration' - maxRetries: - type: number - maxTimeout: - type: number - sourceLedgerAssetID: - type: string - recipientLedgerAssetID: - type: string - required: - - accessControlProfile - - applicationProfile - - assetControlProfile - - assetProfile - - beneficiaryPubkey - - clientDltSystem - - clientGatewayConfiguration - - clientIdentityPubkey - - loggingProfile - - maxRetries - - maxTimeout - - originatorPubkey - - payloadProfile - - recipientGatewayDltSystem - - recipientGatewayPubkey - - recipientLedgerAssetID - - serverDltSystem - - serverGatewayConfiguration - - serverIdentityPubkey - - sourceGatewayDltSystem - - sourceLedgerAssetID - - version - type: object - RecoverV1Message: - example: - sequenceNumber: 0.8008281904610115 - isBackup: true - odapPhase: odapPhase - signature: signature - sessionID: sessionID - newGatewayPubKey: newGatewayPubKey - newBasePath: newBasePath - lastLogEntryTimestamp: lastLogEntryTimestamp - properties: - sessionID: - type: string - odapPhase: - type: string - sequenceNumber: - type: number - lastLogEntryTimestamp: - type: string - isBackup: - type: boolean - newBasePath: - type: string - newGatewayPubKey: - type: string - signature: - type: string - required: - - isBackup - - lastLogEntryTimestamp - - newBasePath - - odapPhase - - sequenceNumber - - sessionID - - signature - type: object - RecoverUpdateV1Message: - example: - signature: signature - sessionID: sessionID - recoveredLogs: - - data: data - sessionID: sessionID - type: type - operation: operation - key: key - timestamp: timestamp - - data: data - sessionID: sessionID - type: type - operation: operation - key: key - timestamp: timestamp - properties: - sessionID: - type: string - recoveredLogs: - items: - $ref: '#/components/schemas/LocalLog' - type: array - signature: - type: string - required: - - recoveredLogs - - sessionID - - signature - type: object - RecoverUpdateAckV1Message: - example: - signature: signature - success: true - sessionID: sessionID - changedEntriesHash: - - changedEntriesHash - - changedEntriesHash - properties: - sessionID: - type: string - success: - type: boolean - changedEntriesHash: - items: - type: string - type: array - signature: - type: string - required: - - changedEntriesHash - - sessionID - - signature - - success - type: object - RecoverSuccessV1Message: - example: - signature: signature - success: true - sessionID: sessionID - properties: - sessionID: - type: string - success: - type: boolean - signature: - type: string - required: - - sessionID - - signature - - success - type: object - RollbackV1Message: - example: - actionPerformed: - - actionPerformed - - actionPerformed - signature: signature - success: true - proofs: - - proofs - - proofs - sessionID: sessionID - properties: - sessionID: - type: string - success: - type: boolean - actionPerformed: - items: - type: string - type: array - proofs: - items: - type: string - type: array - signature: - type: string - required: - - actionPerformed - - proofs - - sessionID - - signature - - success - type: object - RollbackAckV1Message: - example: - signature: signature - success: true - sessionID: sessionID - properties: - sessionID: - type: string - success: - type: boolean - signature: - type: string - required: - - sessionID - - signature - - success - type: object - LocalLog: - example: - data: data - sessionID: sessionID - type: type - operation: operation - key: key - timestamp: timestamp - properties: - key: - type: string - sessionID: - type: string - data: - type: string - type: - type: string - operation: - type: string - timestamp: - type: string - required: - - operation - - sessionID - - type - type: object - SatpMessage: - properties: - SequenceNumber: - type: number - Phase: - enum: - - TransferInitialization - - LockEvidenceVerification - - CommitmentEstablishment - type: string - ResourceURL: - type: string - DeveloperURN: - type: string - ActionResponse: - $ref: '#/components/schemas/SatpMessage_ActionResponse' - CredentialProfile: - enum: - - SAML - - OAuth - - X509 - type: string - CredentialBlock: - items: {} - type: array - CredentialsProfile: - $ref: '#/components/schemas/PayloadProfile' - ApplicationProfile: - type: object - Payload: - type: object - PayloadHash: - type: string - MessageSignature: - type: string - type: object - ClientV1Request_clientGatewayConfiguration: - example: - apiHost: apiHost - properties: - apiHost: - type: string - required: - - apiHost - type: object - SatpMessage_ActionResponse: - properties: - ResponseCode: - enum: - - "200" - - "404" - type: string - x-enum-varnames: - - OK - - RESOURCE_NOT_FOUND - Arguments: - items: {} - type: array - type: object diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api_default.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api_default.go deleted file mode 100644 index 333738a5bd..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/api_default.go +++ /dev/null @@ -1,1762 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -// DefaultApiService DefaultApi service -type DefaultApiService service - -type ApiClientRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - clientV1Request *ClientV1Request -} - -func (r ApiClientRequestV1Request) ClientV1Request(clientV1Request ClientV1Request) ApiClientRequestV1Request { - r.clientV1Request = &clientV1Request - return r -} - -func (r ApiClientRequestV1Request) Execute() (interface{}, *http.Response, error) { - return r.ApiService.ClientRequestV1Execute(r) -} - -/* -ClientRequestV1 Method for ClientRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiClientRequestV1Request -*/ -func (a *DefaultApiService) ClientRequestV1(ctx context.Context) ApiClientRequestV1Request { - return ApiClientRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return interface{} -func (a *DefaultApiService) ClientRequestV1Execute(r ApiClientRequestV1Request) (interface{}, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue interface{} - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ClientRequestV1") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/clientrequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.clientV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiPhase1TransferInitiationRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - transferInitializationV1Request *TransferInitializationV1Request -} - -func (r ApiPhase1TransferInitiationRequestV1Request) TransferInitializationV1Request(transferInitializationV1Request TransferInitializationV1Request) ApiPhase1TransferInitiationRequestV1Request { - r.transferInitializationV1Request = &transferInitializationV1Request - return r -} - -func (r ApiPhase1TransferInitiationRequestV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase1TransferInitiationRequestV1Execute(r) -} - -/* -Phase1TransferInitiationRequestV1 Method for Phase1TransferInitiationRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase1TransferInitiationRequestV1Request -*/ -func (a *DefaultApiService) Phase1TransferInitiationRequestV1(ctx context.Context) ApiPhase1TransferInitiationRequestV1Request { - return ApiPhase1TransferInitiationRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase1TransferInitiationRequestV1Execute(r ApiPhase1TransferInitiationRequestV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase1TransferInitiationRequestV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationrequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.transferInitializationV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase1TransferInitiationResponseV1Request struct { - ctx context.Context - ApiService *DefaultApiService - transferInitializationV1Response *TransferInitializationV1Response -} - -func (r ApiPhase1TransferInitiationResponseV1Request) TransferInitializationV1Response(transferInitializationV1Response TransferInitializationV1Response) ApiPhase1TransferInitiationResponseV1Request { - r.transferInitializationV1Response = &transferInitializationV1Response - return r -} - -func (r ApiPhase1TransferInitiationResponseV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase1TransferInitiationResponseV1Execute(r) -} - -/* -Phase1TransferInitiationResponseV1 Method for Phase1TransferInitiationResponseV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase1TransferInitiationResponseV1Request -*/ -func (a *DefaultApiService) Phase1TransferInitiationResponseV1(ctx context.Context) ApiPhase1TransferInitiationResponseV1Request { - return ApiPhase1TransferInitiationResponseV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase1TransferInitiationResponseV1Execute(r ApiPhase1TransferInitiationResponseV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase1TransferInitiationResponseV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase1/transferinitiationresponse" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.transferInitializationV1Response - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase2LockEvidenceRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - lockEvidenceV1Request *LockEvidenceV1Request -} - -func (r ApiPhase2LockEvidenceRequestV1Request) LockEvidenceV1Request(lockEvidenceV1Request LockEvidenceV1Request) ApiPhase2LockEvidenceRequestV1Request { - r.lockEvidenceV1Request = &lockEvidenceV1Request - return r -} - -func (r ApiPhase2LockEvidenceRequestV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase2LockEvidenceRequestV1Execute(r) -} - -/* -Phase2LockEvidenceRequestV1 Method for Phase2LockEvidenceRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase2LockEvidenceRequestV1Request -*/ -func (a *DefaultApiService) Phase2LockEvidenceRequestV1(ctx context.Context) ApiPhase2LockEvidenceRequestV1Request { - return ApiPhase2LockEvidenceRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase2LockEvidenceRequestV1Execute(r ApiPhase2LockEvidenceRequestV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2LockEvidenceRequestV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidencerequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.lockEvidenceV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase2LockEvidenceResponseV1Request struct { - ctx context.Context - ApiService *DefaultApiService - lockEvidenceV1Response *LockEvidenceV1Response -} - -func (r ApiPhase2LockEvidenceResponseV1Request) LockEvidenceV1Response(lockEvidenceV1Response LockEvidenceV1Response) ApiPhase2LockEvidenceResponseV1Request { - r.lockEvidenceV1Response = &lockEvidenceV1Response - return r -} - -func (r ApiPhase2LockEvidenceResponseV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase2LockEvidenceResponseV1Execute(r) -} - -/* -Phase2LockEvidenceResponseV1 Method for Phase2LockEvidenceResponseV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase2LockEvidenceResponseV1Request -*/ -func (a *DefaultApiService) Phase2LockEvidenceResponseV1(ctx context.Context) ApiPhase2LockEvidenceResponseV1Request { - return ApiPhase2LockEvidenceResponseV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase2LockEvidenceResponseV1Execute(r ApiPhase2LockEvidenceResponseV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2LockEvidenceResponseV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/lockevidenceresponse" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.lockEvidenceV1Response - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase2TransferCommenceRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - transferCommenceV1Request *TransferCommenceV1Request -} - -func (r ApiPhase2TransferCommenceRequestV1Request) TransferCommenceV1Request(transferCommenceV1Request TransferCommenceV1Request) ApiPhase2TransferCommenceRequestV1Request { - r.transferCommenceV1Request = &transferCommenceV1Request - return r -} - -func (r ApiPhase2TransferCommenceRequestV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase2TransferCommenceRequestV1Execute(r) -} - -/* -Phase2TransferCommenceRequestV1 Method for Phase2TransferCommenceRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase2TransferCommenceRequestV1Request -*/ -func (a *DefaultApiService) Phase2TransferCommenceRequestV1(ctx context.Context) ApiPhase2TransferCommenceRequestV1Request { - return ApiPhase2TransferCommenceRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase2TransferCommenceRequestV1Execute(r ApiPhase2TransferCommenceRequestV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2TransferCommenceRequestV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommencerequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.transferCommenceV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase2TransferCommenceResponseV1Request struct { - ctx context.Context - ApiService *DefaultApiService - transferCommenceV1Response *TransferCommenceV1Response -} - -func (r ApiPhase2TransferCommenceResponseV1Request) TransferCommenceV1Response(transferCommenceV1Response TransferCommenceV1Response) ApiPhase2TransferCommenceResponseV1Request { - r.transferCommenceV1Response = &transferCommenceV1Response - return r -} - -func (r ApiPhase2TransferCommenceResponseV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase2TransferCommenceResponseV1Execute(r) -} - -/* -Phase2TransferCommenceResponseV1 Method for Phase2TransferCommenceResponseV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase2TransferCommenceResponseV1Request -*/ -func (a *DefaultApiService) Phase2TransferCommenceResponseV1(ctx context.Context) ApiPhase2TransferCommenceResponseV1Request { - return ApiPhase2TransferCommenceResponseV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase2TransferCommenceResponseV1Execute(r ApiPhase2TransferCommenceResponseV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase2TransferCommenceResponseV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase2/transfercommenceresponse" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.transferCommenceV1Response - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase3CommitFinalRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - commitFinalV1Request *CommitFinalV1Request -} - -func (r ApiPhase3CommitFinalRequestV1Request) CommitFinalV1Request(commitFinalV1Request CommitFinalV1Request) ApiPhase3CommitFinalRequestV1Request { - r.commitFinalV1Request = &commitFinalV1Request - return r -} - -func (r ApiPhase3CommitFinalRequestV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase3CommitFinalRequestV1Execute(r) -} - -/* -Phase3CommitFinalRequestV1 Method for Phase3CommitFinalRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase3CommitFinalRequestV1Request -*/ -func (a *DefaultApiService) Phase3CommitFinalRequestV1(ctx context.Context) ApiPhase3CommitFinalRequestV1Request { - return ApiPhase3CommitFinalRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase3CommitFinalRequestV1Execute(r ApiPhase3CommitFinalRequestV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitFinalRequestV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalrequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.commitFinalV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase3CommitFinalResponseV1Request struct { - ctx context.Context - ApiService *DefaultApiService - commitFinalV1Response *CommitFinalV1Response -} - -func (r ApiPhase3CommitFinalResponseV1Request) CommitFinalV1Response(commitFinalV1Response CommitFinalV1Response) ApiPhase3CommitFinalResponseV1Request { - r.commitFinalV1Response = &commitFinalV1Response - return r -} - -func (r ApiPhase3CommitFinalResponseV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase3CommitFinalResponseV1Execute(r) -} - -/* -Phase3CommitFinalResponseV1 Method for Phase3CommitFinalResponseV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase3CommitFinalResponseV1Request -*/ -func (a *DefaultApiService) Phase3CommitFinalResponseV1(ctx context.Context) ApiPhase3CommitFinalResponseV1Request { - return ApiPhase3CommitFinalResponseV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase3CommitFinalResponseV1Execute(r ApiPhase3CommitFinalResponseV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitFinalResponseV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitfinalresponse" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.commitFinalV1Response - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase3CommitPreparationRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - commitPreparationV1Request *CommitPreparationV1Request -} - -func (r ApiPhase3CommitPreparationRequestV1Request) CommitPreparationV1Request(commitPreparationV1Request CommitPreparationV1Request) ApiPhase3CommitPreparationRequestV1Request { - r.commitPreparationV1Request = &commitPreparationV1Request - return r -} - -func (r ApiPhase3CommitPreparationRequestV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase3CommitPreparationRequestV1Execute(r) -} - -/* -Phase3CommitPreparationRequestV1 Method for Phase3CommitPreparationRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase3CommitPreparationRequestV1Request -*/ -func (a *DefaultApiService) Phase3CommitPreparationRequestV1(ctx context.Context) ApiPhase3CommitPreparationRequestV1Request { - return ApiPhase3CommitPreparationRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase3CommitPreparationRequestV1Execute(r ApiPhase3CommitPreparationRequestV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitPreparationRequestV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationrequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.commitPreparationV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase3CommitPreparationResponseV1Request struct { - ctx context.Context - ApiService *DefaultApiService - commitPreparationV1Response *CommitPreparationV1Response -} - -func (r ApiPhase3CommitPreparationResponseV1Request) CommitPreparationV1Response(commitPreparationV1Response CommitPreparationV1Response) ApiPhase3CommitPreparationResponseV1Request { - r.commitPreparationV1Response = &commitPreparationV1Response - return r -} - -func (r ApiPhase3CommitPreparationResponseV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase3CommitPreparationResponseV1Execute(r) -} - -/* -Phase3CommitPreparationResponseV1 Method for Phase3CommitPreparationResponseV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase3CommitPreparationResponseV1Request -*/ -func (a *DefaultApiService) Phase3CommitPreparationResponseV1(ctx context.Context) ApiPhase3CommitPreparationResponseV1Request { - return ApiPhase3CommitPreparationResponseV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase3CommitPreparationResponseV1Execute(r ApiPhase3CommitPreparationResponseV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3CommitPreparationResponseV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/commitpreparationresponse" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.commitPreparationV1Response - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiPhase3TransferCompleteRequestV1Request struct { - ctx context.Context - ApiService *DefaultApiService - transferCompleteV1Request *TransferCompleteV1Request -} - -func (r ApiPhase3TransferCompleteRequestV1Request) TransferCompleteV1Request(transferCompleteV1Request TransferCompleteV1Request) ApiPhase3TransferCompleteRequestV1Request { - r.transferCompleteV1Request = &transferCompleteV1Request - return r -} - -func (r ApiPhase3TransferCompleteRequestV1Request) Execute() (*http.Response, error) { - return r.ApiService.Phase3TransferCompleteRequestV1Execute(r) -} - -/* -Phase3TransferCompleteRequestV1 Method for Phase3TransferCompleteRequestV1 - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPhase3TransferCompleteRequestV1Request -*/ -func (a *DefaultApiService) Phase3TransferCompleteRequestV1(ctx context.Context) ApiPhase3TransferCompleteRequestV1Request { - return ApiPhase3TransferCompleteRequestV1Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) Phase3TransferCompleteRequestV1Execute(r ApiPhase3TransferCompleteRequestV1Request) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.Phase3TransferCompleteRequestV1") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/phase3/transfercompleterequest" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.transferCompleteV1Request - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRecoverUpdateAckV1MessageRequest struct { - ctx context.Context - ApiService *DefaultApiService - recoverUpdateAckV1Message *RecoverUpdateAckV1Message -} - -func (r ApiRecoverUpdateAckV1MessageRequest) RecoverUpdateAckV1Message(recoverUpdateAckV1Message RecoverUpdateAckV1Message) ApiRecoverUpdateAckV1MessageRequest { - r.recoverUpdateAckV1Message = &recoverUpdateAckV1Message - return r -} - -func (r ApiRecoverUpdateAckV1MessageRequest) Execute() (*http.Response, error) { - return r.ApiService.RecoverUpdateAckV1MessageExecute(r) -} - -/* -RecoverUpdateAckV1Message Method for RecoverUpdateAckV1Message - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecoverUpdateAckV1MessageRequest -*/ -func (a *DefaultApiService) RecoverUpdateAckV1Message(ctx context.Context) ApiRecoverUpdateAckV1MessageRequest { - return ApiRecoverUpdateAckV1MessageRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) RecoverUpdateAckV1MessageExecute(r ApiRecoverUpdateAckV1MessageRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverUpdateAckV1Message") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdateackmessage" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.recoverUpdateAckV1Message - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRecoverUpdateV1MessageRequest struct { - ctx context.Context - ApiService *DefaultApiService - recoverUpdateV1Message *RecoverUpdateV1Message -} - -func (r ApiRecoverUpdateV1MessageRequest) RecoverUpdateV1Message(recoverUpdateV1Message RecoverUpdateV1Message) ApiRecoverUpdateV1MessageRequest { - r.recoverUpdateV1Message = &recoverUpdateV1Message - return r -} - -func (r ApiRecoverUpdateV1MessageRequest) Execute() (*http.Response, error) { - return r.ApiService.RecoverUpdateV1MessageExecute(r) -} - -/* -RecoverUpdateV1Message Method for RecoverUpdateV1Message - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecoverUpdateV1MessageRequest -*/ -func (a *DefaultApiService) RecoverUpdateV1Message(ctx context.Context) ApiRecoverUpdateV1MessageRequest { - return ApiRecoverUpdateV1MessageRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) RecoverUpdateV1MessageExecute(r ApiRecoverUpdateV1MessageRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverUpdateV1Message") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/recoverupdatemessage" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.recoverUpdateV1Message - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRecoverV1MessageRequest struct { - ctx context.Context - ApiService *DefaultApiService - recoverV1Message *RecoverV1Message -} - -func (r ApiRecoverV1MessageRequest) RecoverV1Message(recoverV1Message RecoverV1Message) ApiRecoverV1MessageRequest { - r.recoverV1Message = &recoverV1Message - return r -} - -func (r ApiRecoverV1MessageRequest) Execute() (*http.Response, error) { - return r.ApiService.RecoverV1MessageExecute(r) -} - -/* -RecoverV1Message Method for RecoverV1Message - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecoverV1MessageRequest -*/ -func (a *DefaultApiService) RecoverV1Message(ctx context.Context) ApiRecoverV1MessageRequest { - return ApiRecoverV1MessageRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) RecoverV1MessageExecute(r ApiRecoverV1MessageRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverV1Message") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/recovermessage" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.recoverV1Message - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRecoverV1SuccessRequest struct { - ctx context.Context - ApiService *DefaultApiService - recoverSuccessV1Message *RecoverSuccessV1Message -} - -func (r ApiRecoverV1SuccessRequest) RecoverSuccessV1Message(recoverSuccessV1Message RecoverSuccessV1Message) ApiRecoverV1SuccessRequest { - r.recoverSuccessV1Message = &recoverSuccessV1Message - return r -} - -func (r ApiRecoverV1SuccessRequest) Execute() (*http.Response, error) { - return r.ApiService.RecoverV1SuccessExecute(r) -} - -/* -RecoverV1Success Method for RecoverV1Success - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecoverV1SuccessRequest -*/ -func (a *DefaultApiService) RecoverV1Success(ctx context.Context) ApiRecoverV1SuccessRequest { - return ApiRecoverV1SuccessRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) RecoverV1SuccessExecute(r ApiRecoverV1SuccessRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RecoverV1Success") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/recoversuccessmessage" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.recoverSuccessV1Message - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRollbackAckV1MessageRequest struct { - ctx context.Context - ApiService *DefaultApiService - rollbackAckV1Message *RollbackAckV1Message -} - -func (r ApiRollbackAckV1MessageRequest) RollbackAckV1Message(rollbackAckV1Message RollbackAckV1Message) ApiRollbackAckV1MessageRequest { - r.rollbackAckV1Message = &rollbackAckV1Message - return r -} - -func (r ApiRollbackAckV1MessageRequest) Execute() (*http.Response, error) { - return r.ApiService.RollbackAckV1MessageExecute(r) -} - -/* -RollbackAckV1Message Method for RollbackAckV1Message - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRollbackAckV1MessageRequest -*/ -func (a *DefaultApiService) RollbackAckV1Message(ctx context.Context) ApiRollbackAckV1MessageRequest { - return ApiRollbackAckV1MessageRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) RollbackAckV1MessageExecute(r ApiRollbackAckV1MessageRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RollbackAckV1Message") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackackmessage" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rollbackAckV1Message - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRollbackV1MessageRequest struct { - ctx context.Context - ApiService *DefaultApiService - rollbackV1Message *RollbackV1Message -} - -func (r ApiRollbackV1MessageRequest) RollbackV1Message(rollbackV1Message RollbackV1Message) ApiRollbackV1MessageRequest { - r.rollbackV1Message = &rollbackV1Message - return r -} - -func (r ApiRollbackV1MessageRequest) Execute() (*http.Response, error) { - return r.ApiService.RollbackV1MessageExecute(r) -} - -/* -RollbackV1Message Method for RollbackV1Message - - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRollbackV1MessageRequest -*/ -func (a *DefaultApiService) RollbackV1Message(ctx context.Context) ApiRollbackV1MessageRequest { - return ApiRollbackV1MessageRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DefaultApiService) RollbackV1MessageExecute(r ApiRollbackV1MessageRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.RollbackV1Message") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/@hyperledger/cactus-plugin-satp-hermes/rollbackmessage" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rollbackV1Message - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.mod b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.mod deleted file mode 100644 index eb0c2317be..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.mod +++ /dev/null @@ -1,6 +0,0 @@ -module github.com/hyperledger/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client - -go 1.18 - -require ( -) diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.sum b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.sum deleted file mode 100644 index c966c8ddfd..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/go.sum +++ /dev/null @@ -1,11 +0,0 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go deleted file mode 100644 index cafa14fb45..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_asset_profile.go +++ /dev/null @@ -1,513 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the AssetProfile type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssetProfile{} - -// AssetProfile struct for AssetProfile -type AssetProfile struct { - Issuer *string `json:"issuer,omitempty"` - AssetCode *string `json:"assetCode,omitempty"` - AssetCodeType *string `json:"assetCodeType,omitempty"` - IssuanceDate *string `json:"issuanceDate,omitempty"` - ExpirationDate string `json:"expirationDate"` - VerificationEndPoint *string `json:"verificationEndPoint,omitempty"` - DigitalSignature *string `json:"digitalSignature,omitempty"` - ProspectusLink *string `json:"prospectusLink,omitempty"` - KeyInformationLink []interface{} `json:"keyInformationLink,omitempty"` - KeyWord []interface{} `json:"keyWord,omitempty"` - TransferRestriction []interface{} `json:"transferRestriction,omitempty"` - LedgerRequirements []interface{} `json:"ledgerRequirements,omitempty"` -} - -// NewAssetProfile instantiates a new AssetProfile object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAssetProfile(expirationDate string) *AssetProfile { - this := AssetProfile{} - this.ExpirationDate = expirationDate - return &this -} - -// NewAssetProfileWithDefaults instantiates a new AssetProfile object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAssetProfileWithDefaults() *AssetProfile { - this := AssetProfile{} - return &this -} - -// GetIssuer returns the Issuer field value if set, zero value otherwise. -func (o *AssetProfile) GetIssuer() string { - if o == nil || IsNil(o.Issuer) { - var ret string - return ret - } - return *o.Issuer -} - -// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetIssuerOk() (*string, bool) { - if o == nil || IsNil(o.Issuer) { - return nil, false - } - return o.Issuer, true -} - -// HasIssuer returns a boolean if a field has been set. -func (o *AssetProfile) HasIssuer() bool { - if o != nil && !IsNil(o.Issuer) { - return true - } - - return false -} - -// SetIssuer gets a reference to the given string and assigns it to the Issuer field. -func (o *AssetProfile) SetIssuer(v string) { - o.Issuer = &v -} - -// GetAssetCode returns the AssetCode field value if set, zero value otherwise. -func (o *AssetProfile) GetAssetCode() string { - if o == nil || IsNil(o.AssetCode) { - var ret string - return ret - } - return *o.AssetCode -} - -// GetAssetCodeOk returns a tuple with the AssetCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetAssetCodeOk() (*string, bool) { - if o == nil || IsNil(o.AssetCode) { - return nil, false - } - return o.AssetCode, true -} - -// HasAssetCode returns a boolean if a field has been set. -func (o *AssetProfile) HasAssetCode() bool { - if o != nil && !IsNil(o.AssetCode) { - return true - } - - return false -} - -// SetAssetCode gets a reference to the given string and assigns it to the AssetCode field. -func (o *AssetProfile) SetAssetCode(v string) { - o.AssetCode = &v -} - -// GetAssetCodeType returns the AssetCodeType field value if set, zero value otherwise. -func (o *AssetProfile) GetAssetCodeType() string { - if o == nil || IsNil(o.AssetCodeType) { - var ret string - return ret - } - return *o.AssetCodeType -} - -// GetAssetCodeTypeOk returns a tuple with the AssetCodeType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetAssetCodeTypeOk() (*string, bool) { - if o == nil || IsNil(o.AssetCodeType) { - return nil, false - } - return o.AssetCodeType, true -} - -// HasAssetCodeType returns a boolean if a field has been set. -func (o *AssetProfile) HasAssetCodeType() bool { - if o != nil && !IsNil(o.AssetCodeType) { - return true - } - - return false -} - -// SetAssetCodeType gets a reference to the given string and assigns it to the AssetCodeType field. -func (o *AssetProfile) SetAssetCodeType(v string) { - o.AssetCodeType = &v -} - -// GetIssuanceDate returns the IssuanceDate field value if set, zero value otherwise. -func (o *AssetProfile) GetIssuanceDate() string { - if o == nil || IsNil(o.IssuanceDate) { - var ret string - return ret - } - return *o.IssuanceDate -} - -// GetIssuanceDateOk returns a tuple with the IssuanceDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetIssuanceDateOk() (*string, bool) { - if o == nil || IsNil(o.IssuanceDate) { - return nil, false - } - return o.IssuanceDate, true -} - -// HasIssuanceDate returns a boolean if a field has been set. -func (o *AssetProfile) HasIssuanceDate() bool { - if o != nil && !IsNil(o.IssuanceDate) { - return true - } - - return false -} - -// SetIssuanceDate gets a reference to the given string and assigns it to the IssuanceDate field. -func (o *AssetProfile) SetIssuanceDate(v string) { - o.IssuanceDate = &v -} - -// GetExpirationDate returns the ExpirationDate field value -func (o *AssetProfile) GetExpirationDate() string { - if o == nil { - var ret string - return ret - } - - return o.ExpirationDate -} - -// GetExpirationDateOk returns a tuple with the ExpirationDate field value -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetExpirationDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ExpirationDate, true -} - -// SetExpirationDate sets field value -func (o *AssetProfile) SetExpirationDate(v string) { - o.ExpirationDate = v -} - -// GetVerificationEndPoint returns the VerificationEndPoint field value if set, zero value otherwise. -func (o *AssetProfile) GetVerificationEndPoint() string { - if o == nil || IsNil(o.VerificationEndPoint) { - var ret string - return ret - } - return *o.VerificationEndPoint -} - -// GetVerificationEndPointOk returns a tuple with the VerificationEndPoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetVerificationEndPointOk() (*string, bool) { - if o == nil || IsNil(o.VerificationEndPoint) { - return nil, false - } - return o.VerificationEndPoint, true -} - -// HasVerificationEndPoint returns a boolean if a field has been set. -func (o *AssetProfile) HasVerificationEndPoint() bool { - if o != nil && !IsNil(o.VerificationEndPoint) { - return true - } - - return false -} - -// SetVerificationEndPoint gets a reference to the given string and assigns it to the VerificationEndPoint field. -func (o *AssetProfile) SetVerificationEndPoint(v string) { - o.VerificationEndPoint = &v -} - -// GetDigitalSignature returns the DigitalSignature field value if set, zero value otherwise. -func (o *AssetProfile) GetDigitalSignature() string { - if o == nil || IsNil(o.DigitalSignature) { - var ret string - return ret - } - return *o.DigitalSignature -} - -// GetDigitalSignatureOk returns a tuple with the DigitalSignature field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetDigitalSignatureOk() (*string, bool) { - if o == nil || IsNil(o.DigitalSignature) { - return nil, false - } - return o.DigitalSignature, true -} - -// HasDigitalSignature returns a boolean if a field has been set. -func (o *AssetProfile) HasDigitalSignature() bool { - if o != nil && !IsNil(o.DigitalSignature) { - return true - } - - return false -} - -// SetDigitalSignature gets a reference to the given string and assigns it to the DigitalSignature field. -func (o *AssetProfile) SetDigitalSignature(v string) { - o.DigitalSignature = &v -} - -// GetProspectusLink returns the ProspectusLink field value if set, zero value otherwise. -func (o *AssetProfile) GetProspectusLink() string { - if o == nil || IsNil(o.ProspectusLink) { - var ret string - return ret - } - return *o.ProspectusLink -} - -// GetProspectusLinkOk returns a tuple with the ProspectusLink field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetProspectusLinkOk() (*string, bool) { - if o == nil || IsNil(o.ProspectusLink) { - return nil, false - } - return o.ProspectusLink, true -} - -// HasProspectusLink returns a boolean if a field has been set. -func (o *AssetProfile) HasProspectusLink() bool { - if o != nil && !IsNil(o.ProspectusLink) { - return true - } - - return false -} - -// SetProspectusLink gets a reference to the given string and assigns it to the ProspectusLink field. -func (o *AssetProfile) SetProspectusLink(v string) { - o.ProspectusLink = &v -} - -// GetKeyInformationLink returns the KeyInformationLink field value if set, zero value otherwise. -func (o *AssetProfile) GetKeyInformationLink() []interface{} { - if o == nil || IsNil(o.KeyInformationLink) { - var ret []interface{} - return ret - } - return o.KeyInformationLink -} - -// GetKeyInformationLinkOk returns a tuple with the KeyInformationLink field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetKeyInformationLinkOk() ([]interface{}, bool) { - if o == nil || IsNil(o.KeyInformationLink) { - return nil, false - } - return o.KeyInformationLink, true -} - -// HasKeyInformationLink returns a boolean if a field has been set. -func (o *AssetProfile) HasKeyInformationLink() bool { - if o != nil && !IsNil(o.KeyInformationLink) { - return true - } - - return false -} - -// SetKeyInformationLink gets a reference to the given []interface{} and assigns it to the KeyInformationLink field. -func (o *AssetProfile) SetKeyInformationLink(v []interface{}) { - o.KeyInformationLink = v -} - -// GetKeyWord returns the KeyWord field value if set, zero value otherwise. -func (o *AssetProfile) GetKeyWord() []interface{} { - if o == nil || IsNil(o.KeyWord) { - var ret []interface{} - return ret - } - return o.KeyWord -} - -// GetKeyWordOk returns a tuple with the KeyWord field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetKeyWordOk() ([]interface{}, bool) { - if o == nil || IsNil(o.KeyWord) { - return nil, false - } - return o.KeyWord, true -} - -// HasKeyWord returns a boolean if a field has been set. -func (o *AssetProfile) HasKeyWord() bool { - if o != nil && !IsNil(o.KeyWord) { - return true - } - - return false -} - -// SetKeyWord gets a reference to the given []interface{} and assigns it to the KeyWord field. -func (o *AssetProfile) SetKeyWord(v []interface{}) { - o.KeyWord = v -} - -// GetTransferRestriction returns the TransferRestriction field value if set, zero value otherwise. -func (o *AssetProfile) GetTransferRestriction() []interface{} { - if o == nil || IsNil(o.TransferRestriction) { - var ret []interface{} - return ret - } - return o.TransferRestriction -} - -// GetTransferRestrictionOk returns a tuple with the TransferRestriction field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetTransferRestrictionOk() ([]interface{}, bool) { - if o == nil || IsNil(o.TransferRestriction) { - return nil, false - } - return o.TransferRestriction, true -} - -// HasTransferRestriction returns a boolean if a field has been set. -func (o *AssetProfile) HasTransferRestriction() bool { - if o != nil && !IsNil(o.TransferRestriction) { - return true - } - - return false -} - -// SetTransferRestriction gets a reference to the given []interface{} and assigns it to the TransferRestriction field. -func (o *AssetProfile) SetTransferRestriction(v []interface{}) { - o.TransferRestriction = v -} - -// GetLedgerRequirements returns the LedgerRequirements field value if set, zero value otherwise. -func (o *AssetProfile) GetLedgerRequirements() []interface{} { - if o == nil || IsNil(o.LedgerRequirements) { - var ret []interface{} - return ret - } - return o.LedgerRequirements -} - -// GetLedgerRequirementsOk returns a tuple with the LedgerRequirements field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssetProfile) GetLedgerRequirementsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.LedgerRequirements) { - return nil, false - } - return o.LedgerRequirements, true -} - -// HasLedgerRequirements returns a boolean if a field has been set. -func (o *AssetProfile) HasLedgerRequirements() bool { - if o != nil && !IsNil(o.LedgerRequirements) { - return true - } - - return false -} - -// SetLedgerRequirements gets a reference to the given []interface{} and assigns it to the LedgerRequirements field. -func (o *AssetProfile) SetLedgerRequirements(v []interface{}) { - o.LedgerRequirements = v -} - -func (o AssetProfile) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AssetProfile) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Issuer) { - toSerialize["issuer"] = o.Issuer - } - if !IsNil(o.AssetCode) { - toSerialize["assetCode"] = o.AssetCode - } - if !IsNil(o.AssetCodeType) { - toSerialize["assetCodeType"] = o.AssetCodeType - } - if !IsNil(o.IssuanceDate) { - toSerialize["issuanceDate"] = o.IssuanceDate - } - toSerialize["expirationDate"] = o.ExpirationDate - if !IsNil(o.VerificationEndPoint) { - toSerialize["verificationEndPoint"] = o.VerificationEndPoint - } - if !IsNil(o.DigitalSignature) { - toSerialize["digitalSignature"] = o.DigitalSignature - } - if !IsNil(o.ProspectusLink) { - toSerialize["prospectusLink"] = o.ProspectusLink - } - if !IsNil(o.KeyInformationLink) { - toSerialize["keyInformationLink"] = o.KeyInformationLink - } - if !IsNil(o.KeyWord) { - toSerialize["keyWord"] = o.KeyWord - } - if !IsNil(o.TransferRestriction) { - toSerialize["transferRestriction"] = o.TransferRestriction - } - if !IsNil(o.LedgerRequirements) { - toSerialize["ledgerRequirements"] = o.LedgerRequirements - } - return toSerialize, nil -} - -type NullableAssetProfile struct { - value *AssetProfile - isSet bool -} - -func (v NullableAssetProfile) Get() *AssetProfile { - return v.value -} - -func (v *NullableAssetProfile) Set(val *AssetProfile) { - v.value = val - v.isSet = true -} - -func (v NullableAssetProfile) IsSet() bool { - return v.isSet -} - -func (v *NullableAssetProfile) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAssetProfile(val *AssetProfile) *NullableAssetProfile { - return &NullableAssetProfile{value: val, isSet: true} -} - -func (v NullableAssetProfile) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAssetProfile) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go deleted file mode 100644 index 04b36c9b16..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request.go +++ /dev/null @@ -1,684 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the ClientV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ClientV1Request{} - -// ClientV1Request struct for ClientV1Request -type ClientV1Request struct { - Version string `json:"version"` - LoggingProfile string `json:"loggingProfile"` - AccessControlProfile string `json:"accessControlProfile"` - AssetControlProfile string `json:"assetControlProfile"` - ApplicationProfile string `json:"applicationProfile"` - AssetProfile AssetProfile `json:"assetProfile"` - PayloadProfile PayloadProfile `json:"payloadProfile"` - SourceGatewayDltSystem string `json:"sourceGatewayDltSystem"` - RecipientGatewayDltSystem string `json:"recipientGatewayDltSystem"` - RecipientGatewayPubkey string `json:"recipientGatewayPubkey"` - OriginatorPubkey string `json:"originatorPubkey"` - BeneficiaryPubkey string `json:"beneficiaryPubkey"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - ClientDltSystem string `json:"clientDltSystem"` - ServerDltSystem string `json:"serverDltSystem"` - ClientGatewayConfiguration ClientV1RequestClientGatewayConfiguration `json:"clientGatewayConfiguration"` - ServerGatewayConfiguration ClientV1RequestClientGatewayConfiguration `json:"serverGatewayConfiguration"` - MaxRetries float32 `json:"maxRetries"` - MaxTimeout float32 `json:"maxTimeout"` - SourceLedgerAssetID string `json:"sourceLedgerAssetID"` - RecipientLedgerAssetID string `json:"recipientLedgerAssetID"` -} - -// NewClientV1Request instantiates a new ClientV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewClientV1Request(version string, loggingProfile string, accessControlProfile string, assetControlProfile string, applicationProfile string, assetProfile AssetProfile, payloadProfile PayloadProfile, sourceGatewayDltSystem string, recipientGatewayDltSystem string, recipientGatewayPubkey string, originatorPubkey string, beneficiaryPubkey string, clientIdentityPubkey string, serverIdentityPubkey string, clientDltSystem string, serverDltSystem string, clientGatewayConfiguration ClientV1RequestClientGatewayConfiguration, serverGatewayConfiguration ClientV1RequestClientGatewayConfiguration, maxRetries float32, maxTimeout float32, sourceLedgerAssetID string, recipientLedgerAssetID string) *ClientV1Request { - this := ClientV1Request{} - this.Version = version - this.LoggingProfile = loggingProfile - this.AccessControlProfile = accessControlProfile - this.AssetControlProfile = assetControlProfile - this.ApplicationProfile = applicationProfile - this.AssetProfile = assetProfile - this.PayloadProfile = payloadProfile - this.SourceGatewayDltSystem = sourceGatewayDltSystem - this.RecipientGatewayDltSystem = recipientGatewayDltSystem - this.RecipientGatewayPubkey = recipientGatewayPubkey - this.OriginatorPubkey = originatorPubkey - this.BeneficiaryPubkey = beneficiaryPubkey - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.ClientDltSystem = clientDltSystem - this.ServerDltSystem = serverDltSystem - this.ClientGatewayConfiguration = clientGatewayConfiguration - this.ServerGatewayConfiguration = serverGatewayConfiguration - this.MaxRetries = maxRetries - this.MaxTimeout = maxTimeout - this.SourceLedgerAssetID = sourceLedgerAssetID - this.RecipientLedgerAssetID = recipientLedgerAssetID - return &this -} - -// NewClientV1RequestWithDefaults instantiates a new ClientV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewClientV1RequestWithDefaults() *ClientV1Request { - this := ClientV1Request{} - return &this -} - -// GetVersion returns the Version field value -func (o *ClientV1Request) GetVersion() string { - if o == nil { - var ret string - return ret - } - - return o.Version -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetVersionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Version, true -} - -// SetVersion sets field value -func (o *ClientV1Request) SetVersion(v string) { - o.Version = v -} - -// GetLoggingProfile returns the LoggingProfile field value -func (o *ClientV1Request) GetLoggingProfile() string { - if o == nil { - var ret string - return ret - } - - return o.LoggingProfile -} - -// GetLoggingProfileOk returns a tuple with the LoggingProfile field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetLoggingProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoggingProfile, true -} - -// SetLoggingProfile sets field value -func (o *ClientV1Request) SetLoggingProfile(v string) { - o.LoggingProfile = v -} - -// GetAccessControlProfile returns the AccessControlProfile field value -func (o *ClientV1Request) GetAccessControlProfile() string { - if o == nil { - var ret string - return ret - } - - return o.AccessControlProfile -} - -// GetAccessControlProfileOk returns a tuple with the AccessControlProfile field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetAccessControlProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AccessControlProfile, true -} - -// SetAccessControlProfile sets field value -func (o *ClientV1Request) SetAccessControlProfile(v string) { - o.AccessControlProfile = v -} - -// GetAssetControlProfile returns the AssetControlProfile field value -func (o *ClientV1Request) GetAssetControlProfile() string { - if o == nil { - var ret string - return ret - } - - return o.AssetControlProfile -} - -// GetAssetControlProfileOk returns a tuple with the AssetControlProfile field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetAssetControlProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AssetControlProfile, true -} - -// SetAssetControlProfile sets field value -func (o *ClientV1Request) SetAssetControlProfile(v string) { - o.AssetControlProfile = v -} - -// GetApplicationProfile returns the ApplicationProfile field value -func (o *ClientV1Request) GetApplicationProfile() string { - if o == nil { - var ret string - return ret - } - - return o.ApplicationProfile -} - -// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetApplicationProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApplicationProfile, true -} - -// SetApplicationProfile sets field value -func (o *ClientV1Request) SetApplicationProfile(v string) { - o.ApplicationProfile = v -} - -// GetAssetProfile returns the AssetProfile field value -func (o *ClientV1Request) GetAssetProfile() AssetProfile { - if o == nil { - var ret AssetProfile - return ret - } - - return o.AssetProfile -} - -// GetAssetProfileOk returns a tuple with the AssetProfile field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetAssetProfileOk() (*AssetProfile, bool) { - if o == nil { - return nil, false - } - return &o.AssetProfile, true -} - -// SetAssetProfile sets field value -func (o *ClientV1Request) SetAssetProfile(v AssetProfile) { - o.AssetProfile = v -} - -// GetPayloadProfile returns the PayloadProfile field value -func (o *ClientV1Request) GetPayloadProfile() PayloadProfile { - if o == nil { - var ret PayloadProfile - return ret - } - - return o.PayloadProfile -} - -// GetPayloadProfileOk returns a tuple with the PayloadProfile field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetPayloadProfileOk() (*PayloadProfile, bool) { - if o == nil { - return nil, false - } - return &o.PayloadProfile, true -} - -// SetPayloadProfile sets field value -func (o *ClientV1Request) SetPayloadProfile(v PayloadProfile) { - o.PayloadProfile = v -} - -// GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field value -func (o *ClientV1Request) GetSourceGatewayDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.SourceGatewayDltSystem -} - -// GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetSourceGatewayDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceGatewayDltSystem, true -} - -// SetSourceGatewayDltSystem sets field value -func (o *ClientV1Request) SetSourceGatewayDltSystem(v string) { - o.SourceGatewayDltSystem = v -} - -// GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field value -func (o *ClientV1Request) GetRecipientGatewayDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientGatewayDltSystem -} - -// GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetRecipientGatewayDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientGatewayDltSystem, true -} - -// SetRecipientGatewayDltSystem sets field value -func (o *ClientV1Request) SetRecipientGatewayDltSystem(v string) { - o.RecipientGatewayDltSystem = v -} - -// GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field value -func (o *ClientV1Request) GetRecipientGatewayPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientGatewayPubkey -} - -// GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetRecipientGatewayPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientGatewayPubkey, true -} - -// SetRecipientGatewayPubkey sets field value -func (o *ClientV1Request) SetRecipientGatewayPubkey(v string) { - o.RecipientGatewayPubkey = v -} - -// GetOriginatorPubkey returns the OriginatorPubkey field value -func (o *ClientV1Request) GetOriginatorPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.OriginatorPubkey -} - -// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetOriginatorPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.OriginatorPubkey, true -} - -// SetOriginatorPubkey sets field value -func (o *ClientV1Request) SetOriginatorPubkey(v string) { - o.OriginatorPubkey = v -} - -// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value -func (o *ClientV1Request) GetBeneficiaryPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.BeneficiaryPubkey -} - -// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetBeneficiaryPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BeneficiaryPubkey, true -} - -// SetBeneficiaryPubkey sets field value -func (o *ClientV1Request) SetBeneficiaryPubkey(v string) { - o.BeneficiaryPubkey = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *ClientV1Request) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *ClientV1Request) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *ClientV1Request) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *ClientV1Request) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetClientDltSystem returns the ClientDltSystem field value -func (o *ClientV1Request) GetClientDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.ClientDltSystem -} - -// GetClientDltSystemOk returns a tuple with the ClientDltSystem field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetClientDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientDltSystem, true -} - -// SetClientDltSystem sets field value -func (o *ClientV1Request) SetClientDltSystem(v string) { - o.ClientDltSystem = v -} - -// GetServerDltSystem returns the ServerDltSystem field value -func (o *ClientV1Request) GetServerDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.ServerDltSystem -} - -// GetServerDltSystemOk returns a tuple with the ServerDltSystem field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetServerDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerDltSystem, true -} - -// SetServerDltSystem sets field value -func (o *ClientV1Request) SetServerDltSystem(v string) { - o.ServerDltSystem = v -} - -// GetClientGatewayConfiguration returns the ClientGatewayConfiguration field value -func (o *ClientV1Request) GetClientGatewayConfiguration() ClientV1RequestClientGatewayConfiguration { - if o == nil { - var ret ClientV1RequestClientGatewayConfiguration - return ret - } - - return o.ClientGatewayConfiguration -} - -// GetClientGatewayConfigurationOk returns a tuple with the ClientGatewayConfiguration field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetClientGatewayConfigurationOk() (*ClientV1RequestClientGatewayConfiguration, bool) { - if o == nil { - return nil, false - } - return &o.ClientGatewayConfiguration, true -} - -// SetClientGatewayConfiguration sets field value -func (o *ClientV1Request) SetClientGatewayConfiguration(v ClientV1RequestClientGatewayConfiguration) { - o.ClientGatewayConfiguration = v -} - -// GetServerGatewayConfiguration returns the ServerGatewayConfiguration field value -func (o *ClientV1Request) GetServerGatewayConfiguration() ClientV1RequestClientGatewayConfiguration { - if o == nil { - var ret ClientV1RequestClientGatewayConfiguration - return ret - } - - return o.ServerGatewayConfiguration -} - -// GetServerGatewayConfigurationOk returns a tuple with the ServerGatewayConfiguration field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetServerGatewayConfigurationOk() (*ClientV1RequestClientGatewayConfiguration, bool) { - if o == nil { - return nil, false - } - return &o.ServerGatewayConfiguration, true -} - -// SetServerGatewayConfiguration sets field value -func (o *ClientV1Request) SetServerGatewayConfiguration(v ClientV1RequestClientGatewayConfiguration) { - o.ServerGatewayConfiguration = v -} - -// GetMaxRetries returns the MaxRetries field value -func (o *ClientV1Request) GetMaxRetries() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.MaxRetries -} - -// GetMaxRetriesOk returns a tuple with the MaxRetries field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetMaxRetriesOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.MaxRetries, true -} - -// SetMaxRetries sets field value -func (o *ClientV1Request) SetMaxRetries(v float32) { - o.MaxRetries = v -} - -// GetMaxTimeout returns the MaxTimeout field value -func (o *ClientV1Request) GetMaxTimeout() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.MaxTimeout -} - -// GetMaxTimeoutOk returns a tuple with the MaxTimeout field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetMaxTimeoutOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.MaxTimeout, true -} - -// SetMaxTimeout sets field value -func (o *ClientV1Request) SetMaxTimeout(v float32) { - o.MaxTimeout = v -} - -// GetSourceLedgerAssetID returns the SourceLedgerAssetID field value -func (o *ClientV1Request) GetSourceLedgerAssetID() string { - if o == nil { - var ret string - return ret - } - - return o.SourceLedgerAssetID -} - -// GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetSourceLedgerAssetIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceLedgerAssetID, true -} - -// SetSourceLedgerAssetID sets field value -func (o *ClientV1Request) SetSourceLedgerAssetID(v string) { - o.SourceLedgerAssetID = v -} - -// GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field value -func (o *ClientV1Request) GetRecipientLedgerAssetID() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientLedgerAssetID -} - -// GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field value -// and a boolean to check if the value has been set. -func (o *ClientV1Request) GetRecipientLedgerAssetIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientLedgerAssetID, true -} - -// SetRecipientLedgerAssetID sets field value -func (o *ClientV1Request) SetRecipientLedgerAssetID(v string) { - o.RecipientLedgerAssetID = v -} - -func (o ClientV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ClientV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["version"] = o.Version - toSerialize["loggingProfile"] = o.LoggingProfile - toSerialize["accessControlProfile"] = o.AccessControlProfile - toSerialize["assetControlProfile"] = o.AssetControlProfile - toSerialize["applicationProfile"] = o.ApplicationProfile - toSerialize["assetProfile"] = o.AssetProfile - toSerialize["payloadProfile"] = o.PayloadProfile - toSerialize["sourceGatewayDltSystem"] = o.SourceGatewayDltSystem - toSerialize["recipientGatewayDltSystem"] = o.RecipientGatewayDltSystem - toSerialize["recipientGatewayPubkey"] = o.RecipientGatewayPubkey - toSerialize["originatorPubkey"] = o.OriginatorPubkey - toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["clientDltSystem"] = o.ClientDltSystem - toSerialize["serverDltSystem"] = o.ServerDltSystem - toSerialize["clientGatewayConfiguration"] = o.ClientGatewayConfiguration - toSerialize["serverGatewayConfiguration"] = o.ServerGatewayConfiguration - toSerialize["maxRetries"] = o.MaxRetries - toSerialize["maxTimeout"] = o.MaxTimeout - toSerialize["sourceLedgerAssetID"] = o.SourceLedgerAssetID - toSerialize["recipientLedgerAssetID"] = o.RecipientLedgerAssetID - return toSerialize, nil -} - -type NullableClientV1Request struct { - value *ClientV1Request - isSet bool -} - -func (v NullableClientV1Request) Get() *ClientV1Request { - return v.value -} - -func (v *NullableClientV1Request) Set(val *ClientV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableClientV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableClientV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClientV1Request(val *ClientV1Request) *NullableClientV1Request { - return &NullableClientV1Request{value: val, isSet: true} -} - -func (v NullableClientV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableClientV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go deleted file mode 100644 index 6e20d281fb..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_client_v1_request_client_gateway_configuration.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the ClientV1RequestClientGatewayConfiguration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ClientV1RequestClientGatewayConfiguration{} - -// ClientV1RequestClientGatewayConfiguration struct for ClientV1RequestClientGatewayConfiguration -type ClientV1RequestClientGatewayConfiguration struct { - ApiHost string `json:"apiHost"` -} - -// NewClientV1RequestClientGatewayConfiguration instantiates a new ClientV1RequestClientGatewayConfiguration object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewClientV1RequestClientGatewayConfiguration(apiHost string) *ClientV1RequestClientGatewayConfiguration { - this := ClientV1RequestClientGatewayConfiguration{} - this.ApiHost = apiHost - return &this -} - -// NewClientV1RequestClientGatewayConfigurationWithDefaults instantiates a new ClientV1RequestClientGatewayConfiguration object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewClientV1RequestClientGatewayConfigurationWithDefaults() *ClientV1RequestClientGatewayConfiguration { - this := ClientV1RequestClientGatewayConfiguration{} - return &this -} - -// GetApiHost returns the ApiHost field value -func (o *ClientV1RequestClientGatewayConfiguration) GetApiHost() string { - if o == nil { - var ret string - return ret - } - - return o.ApiHost -} - -// GetApiHostOk returns a tuple with the ApiHost field value -// and a boolean to check if the value has been set. -func (o *ClientV1RequestClientGatewayConfiguration) GetApiHostOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiHost, true -} - -// SetApiHost sets field value -func (o *ClientV1RequestClientGatewayConfiguration) SetApiHost(v string) { - o.ApiHost = v -} - -func (o ClientV1RequestClientGatewayConfiguration) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ClientV1RequestClientGatewayConfiguration) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["apiHost"] = o.ApiHost - return toSerialize, nil -} - -type NullableClientV1RequestClientGatewayConfiguration struct { - value *ClientV1RequestClientGatewayConfiguration - isSet bool -} - -func (v NullableClientV1RequestClientGatewayConfiguration) Get() *ClientV1RequestClientGatewayConfiguration { - return v.value -} - -func (v *NullableClientV1RequestClientGatewayConfiguration) Set(val *ClientV1RequestClientGatewayConfiguration) { - v.value = val - v.isSet = true -} - -func (v NullableClientV1RequestClientGatewayConfiguration) IsSet() bool { - return v.isSet -} - -func (v *NullableClientV1RequestClientGatewayConfiguration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClientV1RequestClientGatewayConfiguration(val *ClientV1RequestClientGatewayConfiguration) *NullableClientV1RequestClientGatewayConfiguration { - return &NullableClientV1RequestClientGatewayConfiguration{value: val, isSet: true} -} - -func (v NullableClientV1RequestClientGatewayConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableClientV1RequestClientGatewayConfiguration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go deleted file mode 100644 index dd3dbfbcaf..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_request.go +++ /dev/null @@ -1,388 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the CommitFinalV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CommitFinalV1Request{} - -// CommitFinalV1Request struct for CommitFinalV1Request -type CommitFinalV1Request struct { - SessionID string `json:"sessionID"` - MessageType string `json:"messageType"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - CommitFinalClaim string `json:"commitFinalClaim"` - CommitFinalClaimFormat map[string]interface{} `json:"commitFinalClaimFormat,omitempty"` - HashCommitPrepareAck string `json:"hashCommitPrepareAck"` - ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` - Signature string `json:"signature"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewCommitFinalV1Request instantiates a new CommitFinalV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCommitFinalV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, commitFinalClaim string, hashCommitPrepareAck string, signature string, sequenceNumber float32) *CommitFinalV1Request { - this := CommitFinalV1Request{} - this.SessionID = sessionID - this.MessageType = messageType - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.CommitFinalClaim = commitFinalClaim - this.HashCommitPrepareAck = hashCommitPrepareAck - this.Signature = signature - this.SequenceNumber = sequenceNumber - return &this -} - -// NewCommitFinalV1RequestWithDefaults instantiates a new CommitFinalV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCommitFinalV1RequestWithDefaults() *CommitFinalV1Request { - this := CommitFinalV1Request{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *CommitFinalV1Request) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *CommitFinalV1Request) SetSessionID(v string) { - o.SessionID = v -} - -// GetMessageType returns the MessageType field value -func (o *CommitFinalV1Request) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *CommitFinalV1Request) SetMessageType(v string) { - o.MessageType = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *CommitFinalV1Request) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *CommitFinalV1Request) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *CommitFinalV1Request) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *CommitFinalV1Request) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetCommitFinalClaim returns the CommitFinalClaim field value -func (o *CommitFinalV1Request) GetCommitFinalClaim() string { - if o == nil { - var ret string - return ret - } - - return o.CommitFinalClaim -} - -// GetCommitFinalClaimOk returns a tuple with the CommitFinalClaim field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetCommitFinalClaimOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommitFinalClaim, true -} - -// SetCommitFinalClaim sets field value -func (o *CommitFinalV1Request) SetCommitFinalClaim(v string) { - o.CommitFinalClaim = v -} - -// GetCommitFinalClaimFormat returns the CommitFinalClaimFormat field value if set, zero value otherwise. -func (o *CommitFinalV1Request) GetCommitFinalClaimFormat() map[string]interface{} { - if o == nil || IsNil(o.CommitFinalClaimFormat) { - var ret map[string]interface{} - return ret - } - return o.CommitFinalClaimFormat -} - -// GetCommitFinalClaimFormatOk returns a tuple with the CommitFinalClaimFormat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetCommitFinalClaimFormatOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CommitFinalClaimFormat) { - return map[string]interface{}{}, false - } - return o.CommitFinalClaimFormat, true -} - -// HasCommitFinalClaimFormat returns a boolean if a field has been set. -func (o *CommitFinalV1Request) HasCommitFinalClaimFormat() bool { - if o != nil && !IsNil(o.CommitFinalClaimFormat) { - return true - } - - return false -} - -// SetCommitFinalClaimFormat gets a reference to the given map[string]interface{} and assigns it to the CommitFinalClaimFormat field. -func (o *CommitFinalV1Request) SetCommitFinalClaimFormat(v map[string]interface{}) { - o.CommitFinalClaimFormat = v -} - -// GetHashCommitPrepareAck returns the HashCommitPrepareAck field value -func (o *CommitFinalV1Request) GetHashCommitPrepareAck() string { - if o == nil { - var ret string - return ret - } - - return o.HashCommitPrepareAck -} - -// GetHashCommitPrepareAckOk returns a tuple with the HashCommitPrepareAck field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetHashCommitPrepareAckOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashCommitPrepareAck, true -} - -// SetHashCommitPrepareAck sets field value -func (o *CommitFinalV1Request) SetHashCommitPrepareAck(v string) { - o.HashCommitPrepareAck = v -} - -// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CommitFinalV1Request) GetClientTransferNumber() int32 { - if o == nil || IsNil(o.ClientTransferNumber.Get()) { - var ret int32 - return ret - } - return *o.ClientTransferNumber.Get() -} - -// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CommitFinalV1Request) GetClientTransferNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() -} - -// HasClientTransferNumber returns a boolean if a field has been set. -func (o *CommitFinalV1Request) HasClientTransferNumber() bool { - if o != nil && o.ClientTransferNumber.IsSet() { - return true - } - - return false -} - -// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. -func (o *CommitFinalV1Request) SetClientTransferNumber(v int32) { - o.ClientTransferNumber.Set(&v) -} -// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil -func (o *CommitFinalV1Request) SetClientTransferNumberNil() { - o.ClientTransferNumber.Set(nil) -} - -// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil -func (o *CommitFinalV1Request) UnsetClientTransferNumber() { - o.ClientTransferNumber.Unset() -} - -// GetSignature returns the Signature field value -func (o *CommitFinalV1Request) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *CommitFinalV1Request) SetSignature(v string) { - o.Signature = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *CommitFinalV1Request) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Request) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *CommitFinalV1Request) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o CommitFinalV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CommitFinalV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["messageType"] = o.MessageType - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["commitFinalClaim"] = o.CommitFinalClaim - if !IsNil(o.CommitFinalClaimFormat) { - toSerialize["commitFinalClaimFormat"] = o.CommitFinalClaimFormat - } - toSerialize["hashCommitPrepareAck"] = o.HashCommitPrepareAck - if o.ClientTransferNumber.IsSet() { - toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() - } - toSerialize["signature"] = o.Signature - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableCommitFinalV1Request struct { - value *CommitFinalV1Request - isSet bool -} - -func (v NullableCommitFinalV1Request) Get() *CommitFinalV1Request { - return v.value -} - -func (v *NullableCommitFinalV1Request) Set(val *CommitFinalV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableCommitFinalV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableCommitFinalV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCommitFinalV1Request(val *CommitFinalV1Request) *NullableCommitFinalV1Request { - return &NullableCommitFinalV1Request{value: val, isSet: true} -} - -func (v NullableCommitFinalV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCommitFinalV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go deleted file mode 100644 index 90dd9df510..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_final_v1_response.go +++ /dev/null @@ -1,378 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the CommitFinalV1Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CommitFinalV1Response{} - -// CommitFinalV1Response struct for CommitFinalV1Response -type CommitFinalV1Response struct { - SessionID string `json:"sessionID"` - MessageType string `json:"messageType"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - CommitAcknowledgementClaim string `json:"commitAcknowledgementClaim"` - CommitAcknowledgementClaimFormat map[string]interface{} `json:"commitAcknowledgementClaimFormat,omitempty"` - HashCommitFinal string `json:"hashCommitFinal"` - ServerTransferNumber *int32 `json:"serverTransferNumber,omitempty"` - Signature string `json:"signature"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewCommitFinalV1Response instantiates a new CommitFinalV1Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCommitFinalV1Response(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, commitAcknowledgementClaim string, hashCommitFinal string, signature string, sequenceNumber float32) *CommitFinalV1Response { - this := CommitFinalV1Response{} - this.SessionID = sessionID - this.MessageType = messageType - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.CommitAcknowledgementClaim = commitAcknowledgementClaim - this.HashCommitFinal = hashCommitFinal - this.Signature = signature - this.SequenceNumber = sequenceNumber - return &this -} - -// NewCommitFinalV1ResponseWithDefaults instantiates a new CommitFinalV1Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCommitFinalV1ResponseWithDefaults() *CommitFinalV1Response { - this := CommitFinalV1Response{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *CommitFinalV1Response) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *CommitFinalV1Response) SetSessionID(v string) { - o.SessionID = v -} - -// GetMessageType returns the MessageType field value -func (o *CommitFinalV1Response) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *CommitFinalV1Response) SetMessageType(v string) { - o.MessageType = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *CommitFinalV1Response) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *CommitFinalV1Response) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *CommitFinalV1Response) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *CommitFinalV1Response) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetCommitAcknowledgementClaim returns the CommitAcknowledgementClaim field value -func (o *CommitFinalV1Response) GetCommitAcknowledgementClaim() string { - if o == nil { - var ret string - return ret - } - - return o.CommitAcknowledgementClaim -} - -// GetCommitAcknowledgementClaimOk returns a tuple with the CommitAcknowledgementClaim field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommitAcknowledgementClaim, true -} - -// SetCommitAcknowledgementClaim sets field value -func (o *CommitFinalV1Response) SetCommitAcknowledgementClaim(v string) { - o.CommitAcknowledgementClaim = v -} - -// GetCommitAcknowledgementClaimFormat returns the CommitAcknowledgementClaimFormat field value if set, zero value otherwise. -func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimFormat() map[string]interface{} { - if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { - var ret map[string]interface{} - return ret - } - return o.CommitAcknowledgementClaimFormat -} - -// GetCommitAcknowledgementClaimFormatOk returns a tuple with the CommitAcknowledgementClaimFormat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetCommitAcknowledgementClaimFormatOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { - return map[string]interface{}{}, false - } - return o.CommitAcknowledgementClaimFormat, true -} - -// HasCommitAcknowledgementClaimFormat returns a boolean if a field has been set. -func (o *CommitFinalV1Response) HasCommitAcknowledgementClaimFormat() bool { - if o != nil && !IsNil(o.CommitAcknowledgementClaimFormat) { - return true - } - - return false -} - -// SetCommitAcknowledgementClaimFormat gets a reference to the given map[string]interface{} and assigns it to the CommitAcknowledgementClaimFormat field. -func (o *CommitFinalV1Response) SetCommitAcknowledgementClaimFormat(v map[string]interface{}) { - o.CommitAcknowledgementClaimFormat = v -} - -// GetHashCommitFinal returns the HashCommitFinal field value -func (o *CommitFinalV1Response) GetHashCommitFinal() string { - if o == nil { - var ret string - return ret - } - - return o.HashCommitFinal -} - -// GetHashCommitFinalOk returns a tuple with the HashCommitFinal field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetHashCommitFinalOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashCommitFinal, true -} - -// SetHashCommitFinal sets field value -func (o *CommitFinalV1Response) SetHashCommitFinal(v string) { - o.HashCommitFinal = v -} - -// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise. -func (o *CommitFinalV1Response) GetServerTransferNumber() int32 { - if o == nil || IsNil(o.ServerTransferNumber) { - var ret int32 - return ret - } - return *o.ServerTransferNumber -} - -// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetServerTransferNumberOk() (*int32, bool) { - if o == nil || IsNil(o.ServerTransferNumber) { - return nil, false - } - return o.ServerTransferNumber, true -} - -// HasServerTransferNumber returns a boolean if a field has been set. -func (o *CommitFinalV1Response) HasServerTransferNumber() bool { - if o != nil && !IsNil(o.ServerTransferNumber) { - return true - } - - return false -} - -// SetServerTransferNumber gets a reference to the given int32 and assigns it to the ServerTransferNumber field. -func (o *CommitFinalV1Response) SetServerTransferNumber(v int32) { - o.ServerTransferNumber = &v -} - -// GetSignature returns the Signature field value -func (o *CommitFinalV1Response) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *CommitFinalV1Response) SetSignature(v string) { - o.Signature = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *CommitFinalV1Response) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *CommitFinalV1Response) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *CommitFinalV1Response) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o CommitFinalV1Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CommitFinalV1Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["messageType"] = o.MessageType - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["commitAcknowledgementClaim"] = o.CommitAcknowledgementClaim - if !IsNil(o.CommitAcknowledgementClaimFormat) { - toSerialize["commitAcknowledgementClaimFormat"] = o.CommitAcknowledgementClaimFormat - } - toSerialize["hashCommitFinal"] = o.HashCommitFinal - if !IsNil(o.ServerTransferNumber) { - toSerialize["serverTransferNumber"] = o.ServerTransferNumber - } - toSerialize["signature"] = o.Signature - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableCommitFinalV1Response struct { - value *CommitFinalV1Response - isSet bool -} - -func (v NullableCommitFinalV1Response) Get() *CommitFinalV1Response { - return v.value -} - -func (v *NullableCommitFinalV1Response) Set(val *CommitFinalV1Response) { - v.value = val - v.isSet = true -} - -func (v NullableCommitFinalV1Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCommitFinalV1Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCommitFinalV1Response(val *CommitFinalV1Response) *NullableCommitFinalV1Response { - return &NullableCommitFinalV1Response{value: val, isSet: true} -} - -func (v NullableCommitFinalV1Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCommitFinalV1Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go deleted file mode 100644 index 9e8bbf5378..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_request.go +++ /dev/null @@ -1,315 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the CommitPreparationV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CommitPreparationV1Request{} - -// CommitPreparationV1Request struct for CommitPreparationV1Request -type CommitPreparationV1Request struct { - SessionID string `json:"sessionID"` - MessageType string `json:"messageType"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - HashLockEvidenceAck string `json:"hashLockEvidenceAck"` - ClientTransferNumber *int32 `json:"clientTransferNumber,omitempty"` - Signature string `json:"signature"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewCommitPreparationV1Request instantiates a new CommitPreparationV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCommitPreparationV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashLockEvidenceAck string, signature string, sequenceNumber float32) *CommitPreparationV1Request { - this := CommitPreparationV1Request{} - this.SessionID = sessionID - this.MessageType = messageType - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.HashLockEvidenceAck = hashLockEvidenceAck - this.Signature = signature - this.SequenceNumber = sequenceNumber - return &this -} - -// NewCommitPreparationV1RequestWithDefaults instantiates a new CommitPreparationV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCommitPreparationV1RequestWithDefaults() *CommitPreparationV1Request { - this := CommitPreparationV1Request{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *CommitPreparationV1Request) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *CommitPreparationV1Request) SetSessionID(v string) { - o.SessionID = v -} - -// GetMessageType returns the MessageType field value -func (o *CommitPreparationV1Request) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *CommitPreparationV1Request) SetMessageType(v string) { - o.MessageType = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *CommitPreparationV1Request) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *CommitPreparationV1Request) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *CommitPreparationV1Request) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *CommitPreparationV1Request) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetHashLockEvidenceAck returns the HashLockEvidenceAck field value -func (o *CommitPreparationV1Request) GetHashLockEvidenceAck() string { - if o == nil { - var ret string - return ret - } - - return o.HashLockEvidenceAck -} - -// GetHashLockEvidenceAckOk returns a tuple with the HashLockEvidenceAck field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetHashLockEvidenceAckOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashLockEvidenceAck, true -} - -// SetHashLockEvidenceAck sets field value -func (o *CommitPreparationV1Request) SetHashLockEvidenceAck(v string) { - o.HashLockEvidenceAck = v -} - -// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise. -func (o *CommitPreparationV1Request) GetClientTransferNumber() int32 { - if o == nil || IsNil(o.ClientTransferNumber) { - var ret int32 - return ret - } - return *o.ClientTransferNumber -} - -// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetClientTransferNumberOk() (*int32, bool) { - if o == nil || IsNil(o.ClientTransferNumber) { - return nil, false - } - return o.ClientTransferNumber, true -} - -// HasClientTransferNumber returns a boolean if a field has been set. -func (o *CommitPreparationV1Request) HasClientTransferNumber() bool { - if o != nil && !IsNil(o.ClientTransferNumber) { - return true - } - - return false -} - -// SetClientTransferNumber gets a reference to the given int32 and assigns it to the ClientTransferNumber field. -func (o *CommitPreparationV1Request) SetClientTransferNumber(v int32) { - o.ClientTransferNumber = &v -} - -// GetSignature returns the Signature field value -func (o *CommitPreparationV1Request) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *CommitPreparationV1Request) SetSignature(v string) { - o.Signature = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *CommitPreparationV1Request) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Request) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *CommitPreparationV1Request) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o CommitPreparationV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CommitPreparationV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["messageType"] = o.MessageType - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["hashLockEvidenceAck"] = o.HashLockEvidenceAck - if !IsNil(o.ClientTransferNumber) { - toSerialize["clientTransferNumber"] = o.ClientTransferNumber - } - toSerialize["signature"] = o.Signature - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableCommitPreparationV1Request struct { - value *CommitPreparationV1Request - isSet bool -} - -func (v NullableCommitPreparationV1Request) Get() *CommitPreparationV1Request { - return v.value -} - -func (v *NullableCommitPreparationV1Request) Set(val *CommitPreparationV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableCommitPreparationV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableCommitPreparationV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCommitPreparationV1Request(val *CommitPreparationV1Request) *NullableCommitPreparationV1Request { - return &NullableCommitPreparationV1Request{value: val, isSet: true} -} - -func (v NullableCommitPreparationV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCommitPreparationV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go deleted file mode 100644 index c9e2326822..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_commit_preparation_v1_response.go +++ /dev/null @@ -1,315 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the CommitPreparationV1Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CommitPreparationV1Response{} - -// CommitPreparationV1Response struct for CommitPreparationV1Response -type CommitPreparationV1Response struct { - SessionID string `json:"sessionID"` - MessageType string `json:"messageType"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - HashCommitPrep string `json:"hashCommitPrep"` - ServerTransferNumber *string `json:"serverTransferNumber,omitempty"` - Signature string `json:"signature"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewCommitPreparationV1Response instantiates a new CommitPreparationV1Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCommitPreparationV1Response(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommitPrep string, signature string, sequenceNumber float32) *CommitPreparationV1Response { - this := CommitPreparationV1Response{} - this.SessionID = sessionID - this.MessageType = messageType - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.HashCommitPrep = hashCommitPrep - this.Signature = signature - this.SequenceNumber = sequenceNumber - return &this -} - -// NewCommitPreparationV1ResponseWithDefaults instantiates a new CommitPreparationV1Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCommitPreparationV1ResponseWithDefaults() *CommitPreparationV1Response { - this := CommitPreparationV1Response{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *CommitPreparationV1Response) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *CommitPreparationV1Response) SetSessionID(v string) { - o.SessionID = v -} - -// GetMessageType returns the MessageType field value -func (o *CommitPreparationV1Response) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *CommitPreparationV1Response) SetMessageType(v string) { - o.MessageType = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *CommitPreparationV1Response) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *CommitPreparationV1Response) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *CommitPreparationV1Response) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *CommitPreparationV1Response) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetHashCommitPrep returns the HashCommitPrep field value -func (o *CommitPreparationV1Response) GetHashCommitPrep() string { - if o == nil { - var ret string - return ret - } - - return o.HashCommitPrep -} - -// GetHashCommitPrepOk returns a tuple with the HashCommitPrep field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetHashCommitPrepOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashCommitPrep, true -} - -// SetHashCommitPrep sets field value -func (o *CommitPreparationV1Response) SetHashCommitPrep(v string) { - o.HashCommitPrep = v -} - -// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise. -func (o *CommitPreparationV1Response) GetServerTransferNumber() string { - if o == nil || IsNil(o.ServerTransferNumber) { - var ret string - return ret - } - return *o.ServerTransferNumber -} - -// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetServerTransferNumberOk() (*string, bool) { - if o == nil || IsNil(o.ServerTransferNumber) { - return nil, false - } - return o.ServerTransferNumber, true -} - -// HasServerTransferNumber returns a boolean if a field has been set. -func (o *CommitPreparationV1Response) HasServerTransferNumber() bool { - if o != nil && !IsNil(o.ServerTransferNumber) { - return true - } - - return false -} - -// SetServerTransferNumber gets a reference to the given string and assigns it to the ServerTransferNumber field. -func (o *CommitPreparationV1Response) SetServerTransferNumber(v string) { - o.ServerTransferNumber = &v -} - -// GetSignature returns the Signature field value -func (o *CommitPreparationV1Response) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *CommitPreparationV1Response) SetSignature(v string) { - o.Signature = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *CommitPreparationV1Response) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *CommitPreparationV1Response) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *CommitPreparationV1Response) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o CommitPreparationV1Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CommitPreparationV1Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["messageType"] = o.MessageType - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["hashCommitPrep"] = o.HashCommitPrep - if !IsNil(o.ServerTransferNumber) { - toSerialize["serverTransferNumber"] = o.ServerTransferNumber - } - toSerialize["signature"] = o.Signature - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableCommitPreparationV1Response struct { - value *CommitPreparationV1Response - isSet bool -} - -func (v NullableCommitPreparationV1Response) Get() *CommitPreparationV1Response { - return v.value -} - -func (v *NullableCommitPreparationV1Response) Set(val *CommitPreparationV1Response) { - v.value = val - v.isSet = true -} - -func (v NullableCommitPreparationV1Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCommitPreparationV1Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCommitPreparationV1Response(val *CommitPreparationV1Response) *NullableCommitPreparationV1Response { - return &NullableCommitPreparationV1Response{value: val, isSet: true} -} - -func (v NullableCommitPreparationV1Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCommitPreparationV1Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go deleted file mode 100644 index b8ef8e66d7..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_credential_profile.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" - "fmt" -) - -// CredentialProfile the model 'CredentialProfile' -type CredentialProfile string - -// List of CredentialProfile -const ( - SAML CredentialProfile = "SAML" - OAUTH CredentialProfile = "OAUTH" - X509 CredentialProfile = "X509" -) - -// All allowed values of CredentialProfile enum -var AllowedCredentialProfileEnumValues = []CredentialProfile{ - "SAML", - "OAUTH", - "X509", -} - -func (v *CredentialProfile) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := CredentialProfile(value) - for _, existing := range AllowedCredentialProfileEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid CredentialProfile", value) -} - -// NewCredentialProfileFromValue returns a pointer to a valid CredentialProfile -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewCredentialProfileFromValue(v string) (*CredentialProfile, error) { - ev := CredentialProfile(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for CredentialProfile: valid values are %v", v, AllowedCredentialProfileEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v CredentialProfile) IsValid() bool { - for _, existing := range AllowedCredentialProfileEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to CredentialProfile value -func (v CredentialProfile) Ptr() *CredentialProfile { - return &v -} - -type NullableCredentialProfile struct { - value *CredentialProfile - isSet bool -} - -func (v NullableCredentialProfile) Get() *CredentialProfile { - return v.value -} - -func (v *NullableCredentialProfile) Set(val *CredentialProfile) { - v.value = val - v.isSet = true -} - -func (v NullableCredentialProfile) IsSet() bool { - return v.isSet -} - -func (v *NullableCredentialProfile) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCredentialProfile(val *CredentialProfile) *NullableCredentialProfile { - return &NullableCredentialProfile{value: val, isSet: true} -} - -func (v NullableCredentialProfile) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCredentialProfile) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_history.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_history.go deleted file mode 100644 index e53a3f0ff1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_history.go +++ /dev/null @@ -1,342 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the History type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &History{} - -// History struct for History -type History struct { - Transactions []map[string]interface{} `json:"Transactions,omitempty"` - Actions []map[string]interface{} `json:"Actions,omitempty"` - Origin *string `json:"Origin,omitempty"` - Destination *string `json:"Destination,omitempty"` - Balance *string `json:"Balance,omitempty"` - CurrentStatus map[string]interface{} `json:"CurrentStatus,omitempty"` - ApplicationSpecificParameters map[string]interface{} `json:"ApplicationSpecificParameters,omitempty"` -} - -// NewHistory instantiates a new History object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHistory() *History { - this := History{} - return &this -} - -// NewHistoryWithDefaults instantiates a new History object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHistoryWithDefaults() *History { - this := History{} - return &this -} - -// GetTransactions returns the Transactions field value if set, zero value otherwise. -func (o *History) GetTransactions() []map[string]interface{} { - if o == nil || IsNil(o.Transactions) { - var ret []map[string]interface{} - return ret - } - return o.Transactions -} - -// GetTransactionsOk returns a tuple with the Transactions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetTransactionsOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.Transactions) { - return nil, false - } - return o.Transactions, true -} - -// HasTransactions returns a boolean if a field has been set. -func (o *History) HasTransactions() bool { - if o != nil && !IsNil(o.Transactions) { - return true - } - - return false -} - -// SetTransactions gets a reference to the given []map[string]interface{} and assigns it to the Transactions field. -func (o *History) SetTransactions(v []map[string]interface{}) { - o.Transactions = v -} - -// GetActions returns the Actions field value if set, zero value otherwise. -func (o *History) GetActions() []map[string]interface{} { - if o == nil || IsNil(o.Actions) { - var ret []map[string]interface{} - return ret - } - return o.Actions -} - -// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetActionsOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.Actions) { - return nil, false - } - return o.Actions, true -} - -// HasActions returns a boolean if a field has been set. -func (o *History) HasActions() bool { - if o != nil && !IsNil(o.Actions) { - return true - } - - return false -} - -// SetActions gets a reference to the given []map[string]interface{} and assigns it to the Actions field. -func (o *History) SetActions(v []map[string]interface{}) { - o.Actions = v -} - -// GetOrigin returns the Origin field value if set, zero value otherwise. -func (o *History) GetOrigin() string { - if o == nil || IsNil(o.Origin) { - var ret string - return ret - } - return *o.Origin -} - -// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetOriginOk() (*string, bool) { - if o == nil || IsNil(o.Origin) { - return nil, false - } - return o.Origin, true -} - -// HasOrigin returns a boolean if a field has been set. -func (o *History) HasOrigin() bool { - if o != nil && !IsNil(o.Origin) { - return true - } - - return false -} - -// SetOrigin gets a reference to the given string and assigns it to the Origin field. -func (o *History) SetOrigin(v string) { - o.Origin = &v -} - -// GetDestination returns the Destination field value if set, zero value otherwise. -func (o *History) GetDestination() string { - if o == nil || IsNil(o.Destination) { - var ret string - return ret - } - return *o.Destination -} - -// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetDestinationOk() (*string, bool) { - if o == nil || IsNil(o.Destination) { - return nil, false - } - return o.Destination, true -} - -// HasDestination returns a boolean if a field has been set. -func (o *History) HasDestination() bool { - if o != nil && !IsNil(o.Destination) { - return true - } - - return false -} - -// SetDestination gets a reference to the given string and assigns it to the Destination field. -func (o *History) SetDestination(v string) { - o.Destination = &v -} - -// GetBalance returns the Balance field value if set, zero value otherwise. -func (o *History) GetBalance() string { - if o == nil || IsNil(o.Balance) { - var ret string - return ret - } - return *o.Balance -} - -// GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetBalanceOk() (*string, bool) { - if o == nil || IsNil(o.Balance) { - return nil, false - } - return o.Balance, true -} - -// HasBalance returns a boolean if a field has been set. -func (o *History) HasBalance() bool { - if o != nil && !IsNil(o.Balance) { - return true - } - - return false -} - -// SetBalance gets a reference to the given string and assigns it to the Balance field. -func (o *History) SetBalance(v string) { - o.Balance = &v -} - -// GetCurrentStatus returns the CurrentStatus field value if set, zero value otherwise. -func (o *History) GetCurrentStatus() map[string]interface{} { - if o == nil || IsNil(o.CurrentStatus) { - var ret map[string]interface{} - return ret - } - return o.CurrentStatus -} - -// GetCurrentStatusOk returns a tuple with the CurrentStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetCurrentStatusOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CurrentStatus) { - return map[string]interface{}{}, false - } - return o.CurrentStatus, true -} - -// HasCurrentStatus returns a boolean if a field has been set. -func (o *History) HasCurrentStatus() bool { - if o != nil && !IsNil(o.CurrentStatus) { - return true - } - - return false -} - -// SetCurrentStatus gets a reference to the given map[string]interface{} and assigns it to the CurrentStatus field. -func (o *History) SetCurrentStatus(v map[string]interface{}) { - o.CurrentStatus = v -} - -// GetApplicationSpecificParameters returns the ApplicationSpecificParameters field value if set, zero value otherwise. -func (o *History) GetApplicationSpecificParameters() map[string]interface{} { - if o == nil || IsNil(o.ApplicationSpecificParameters) { - var ret map[string]interface{} - return ret - } - return o.ApplicationSpecificParameters -} - -// GetApplicationSpecificParametersOk returns a tuple with the ApplicationSpecificParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *History) GetApplicationSpecificParametersOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ApplicationSpecificParameters) { - return map[string]interface{}{}, false - } - return o.ApplicationSpecificParameters, true -} - -// HasApplicationSpecificParameters returns a boolean if a field has been set. -func (o *History) HasApplicationSpecificParameters() bool { - if o != nil && !IsNil(o.ApplicationSpecificParameters) { - return true - } - - return false -} - -// SetApplicationSpecificParameters gets a reference to the given map[string]interface{} and assigns it to the ApplicationSpecificParameters field. -func (o *History) SetApplicationSpecificParameters(v map[string]interface{}) { - o.ApplicationSpecificParameters = v -} - -func (o History) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o History) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Transactions) { - toSerialize["Transactions"] = o.Transactions - } - if !IsNil(o.Actions) { - toSerialize["Actions"] = o.Actions - } - if !IsNil(o.Origin) { - toSerialize["Origin"] = o.Origin - } - if !IsNil(o.Destination) { - toSerialize["Destination"] = o.Destination - } - if !IsNil(o.Balance) { - toSerialize["Balance"] = o.Balance - } - if !IsNil(o.CurrentStatus) { - toSerialize["CurrentStatus"] = o.CurrentStatus - } - if !IsNil(o.ApplicationSpecificParameters) { - toSerialize["ApplicationSpecificParameters"] = o.ApplicationSpecificParameters - } - return toSerialize, nil -} - -type NullableHistory struct { - value *History - isSet bool -} - -func (v NullableHistory) Get() *History { - return v.value -} - -func (v *NullableHistory) Set(val *History) { - v.value = val - v.isSet = true -} - -func (v NullableHistory) IsSet() bool { - return v.isSet -} - -func (v *NullableHistory) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHistory(val *History) *NullableHistory { - return &NullableHistory{value: val, isSet: true} -} - -func (v NullableHistory) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHistory) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_local_log.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_local_log.go deleted file mode 100644 index 01942f8df6..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_local_log.go +++ /dev/null @@ -1,279 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the LocalLog type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LocalLog{} - -// LocalLog struct for LocalLog -type LocalLog struct { - Key *string `json:"key,omitempty"` - SessionID string `json:"sessionID"` - Data *string `json:"data,omitempty"` - Type string `json:"type"` - Operation string `json:"operation"` - Timestamp *string `json:"timestamp,omitempty"` -} - -// NewLocalLog instantiates a new LocalLog object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLocalLog(sessionID string, type_ string, operation string) *LocalLog { - this := LocalLog{} - this.SessionID = sessionID - this.Type = type_ - this.Operation = operation - return &this -} - -// NewLocalLogWithDefaults instantiates a new LocalLog object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLocalLogWithDefaults() *LocalLog { - this := LocalLog{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *LocalLog) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocalLog) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *LocalLog) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *LocalLog) SetKey(v string) { - o.Key = &v -} - -// GetSessionID returns the SessionID field value -func (o *LocalLog) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *LocalLog) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *LocalLog) SetSessionID(v string) { - o.SessionID = v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *LocalLog) GetData() string { - if o == nil || IsNil(o.Data) { - var ret string - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocalLog) GetDataOk() (*string, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *LocalLog) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given string and assigns it to the Data field. -func (o *LocalLog) SetData(v string) { - o.Data = &v -} - -// GetType returns the Type field value -func (o *LocalLog) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *LocalLog) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *LocalLog) SetType(v string) { - o.Type = v -} - -// GetOperation returns the Operation field value -func (o *LocalLog) GetOperation() string { - if o == nil { - var ret string - return ret - } - - return o.Operation -} - -// GetOperationOk returns a tuple with the Operation field value -// and a boolean to check if the value has been set. -func (o *LocalLog) GetOperationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Operation, true -} - -// SetOperation sets field value -func (o *LocalLog) SetOperation(v string) { - o.Operation = v -} - -// GetTimestamp returns the Timestamp field value if set, zero value otherwise. -func (o *LocalLog) GetTimestamp() string { - if o == nil || IsNil(o.Timestamp) { - var ret string - return ret - } - return *o.Timestamp -} - -// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocalLog) GetTimestampOk() (*string, bool) { - if o == nil || IsNil(o.Timestamp) { - return nil, false - } - return o.Timestamp, true -} - -// HasTimestamp returns a boolean if a field has been set. -func (o *LocalLog) HasTimestamp() bool { - if o != nil && !IsNil(o.Timestamp) { - return true - } - - return false -} - -// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field. -func (o *LocalLog) SetTimestamp(v string) { - o.Timestamp = &v -} - -func (o LocalLog) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LocalLog) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - toSerialize["sessionID"] = o.SessionID - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - toSerialize["type"] = o.Type - toSerialize["operation"] = o.Operation - if !IsNil(o.Timestamp) { - toSerialize["timestamp"] = o.Timestamp - } - return toSerialize, nil -} - -type NullableLocalLog struct { - value *LocalLog - isSet bool -} - -func (v NullableLocalLog) Get() *LocalLog { - return v.value -} - -func (v *NullableLocalLog) Set(val *LocalLog) { - v.value = val - v.isSet = true -} - -func (v NullableLocalLog) IsSet() bool { - return v.isSet -} - -func (v *NullableLocalLog) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLocalLog(val *LocalLog) *NullableLocalLog { - return &NullableLocalLog{value: val, isSet: true} -} - -func (v NullableLocalLog) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLocalLog) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go deleted file mode 100644 index 2991758b3e..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_request.go +++ /dev/null @@ -1,451 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the LockEvidenceV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LockEvidenceV1Request{} - -// LockEvidenceV1Request struct for LockEvidenceV1Request -type LockEvidenceV1Request struct { - SessionID string `json:"sessionID"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - LockEvidenceClaim string `json:"lockEvidenceClaim"` - LockEvidenceFormat map[string]interface{} `json:"lockEvidenceFormat,omitempty"` - LockEvidenceExpiration string `json:"lockEvidenceExpiration"` - HashCommenceAckRequest string `json:"hashCommenceAckRequest"` - ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` - Signature string `json:"signature"` - MessageType string `json:"messageType"` - MessageHash *string `json:"messageHash,omitempty"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewLockEvidenceV1Request instantiates a new LockEvidenceV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLockEvidenceV1Request(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, lockEvidenceClaim string, lockEvidenceExpiration string, hashCommenceAckRequest string, signature string, messageType string, sequenceNumber float32) *LockEvidenceV1Request { - this := LockEvidenceV1Request{} - this.SessionID = sessionID - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.LockEvidenceClaim = lockEvidenceClaim - this.LockEvidenceExpiration = lockEvidenceExpiration - this.HashCommenceAckRequest = hashCommenceAckRequest - this.Signature = signature - this.MessageType = messageType - this.SequenceNumber = sequenceNumber - return &this -} - -// NewLockEvidenceV1RequestWithDefaults instantiates a new LockEvidenceV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLockEvidenceV1RequestWithDefaults() *LockEvidenceV1Request { - this := LockEvidenceV1Request{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *LockEvidenceV1Request) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *LockEvidenceV1Request) SetSessionID(v string) { - o.SessionID = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *LockEvidenceV1Request) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *LockEvidenceV1Request) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *LockEvidenceV1Request) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *LockEvidenceV1Request) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetLockEvidenceClaim returns the LockEvidenceClaim field value -func (o *LockEvidenceV1Request) GetLockEvidenceClaim() string { - if o == nil { - var ret string - return ret - } - - return o.LockEvidenceClaim -} - -// GetLockEvidenceClaimOk returns a tuple with the LockEvidenceClaim field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetLockEvidenceClaimOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LockEvidenceClaim, true -} - -// SetLockEvidenceClaim sets field value -func (o *LockEvidenceV1Request) SetLockEvidenceClaim(v string) { - o.LockEvidenceClaim = v -} - -// GetLockEvidenceFormat returns the LockEvidenceFormat field value if set, zero value otherwise. -func (o *LockEvidenceV1Request) GetLockEvidenceFormat() map[string]interface{} { - if o == nil || IsNil(o.LockEvidenceFormat) { - var ret map[string]interface{} - return ret - } - return o.LockEvidenceFormat -} - -// GetLockEvidenceFormatOk returns a tuple with the LockEvidenceFormat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetLockEvidenceFormatOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.LockEvidenceFormat) { - return map[string]interface{}{}, false - } - return o.LockEvidenceFormat, true -} - -// HasLockEvidenceFormat returns a boolean if a field has been set. -func (o *LockEvidenceV1Request) HasLockEvidenceFormat() bool { - if o != nil && !IsNil(o.LockEvidenceFormat) { - return true - } - - return false -} - -// SetLockEvidenceFormat gets a reference to the given map[string]interface{} and assigns it to the LockEvidenceFormat field. -func (o *LockEvidenceV1Request) SetLockEvidenceFormat(v map[string]interface{}) { - o.LockEvidenceFormat = v -} - -// GetLockEvidenceExpiration returns the LockEvidenceExpiration field value -func (o *LockEvidenceV1Request) GetLockEvidenceExpiration() string { - if o == nil { - var ret string - return ret - } - - return o.LockEvidenceExpiration -} - -// GetLockEvidenceExpirationOk returns a tuple with the LockEvidenceExpiration field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetLockEvidenceExpirationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LockEvidenceExpiration, true -} - -// SetLockEvidenceExpiration sets field value -func (o *LockEvidenceV1Request) SetLockEvidenceExpiration(v string) { - o.LockEvidenceExpiration = v -} - -// GetHashCommenceAckRequest returns the HashCommenceAckRequest field value -func (o *LockEvidenceV1Request) GetHashCommenceAckRequest() string { - if o == nil { - var ret string - return ret - } - - return o.HashCommenceAckRequest -} - -// GetHashCommenceAckRequestOk returns a tuple with the HashCommenceAckRequest field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetHashCommenceAckRequestOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashCommenceAckRequest, true -} - -// SetHashCommenceAckRequest sets field value -func (o *LockEvidenceV1Request) SetHashCommenceAckRequest(v string) { - o.HashCommenceAckRequest = v -} - -// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LockEvidenceV1Request) GetClientTransferNumber() int32 { - if o == nil || IsNil(o.ClientTransferNumber.Get()) { - var ret int32 - return ret - } - return *o.ClientTransferNumber.Get() -} - -// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LockEvidenceV1Request) GetClientTransferNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() -} - -// HasClientTransferNumber returns a boolean if a field has been set. -func (o *LockEvidenceV1Request) HasClientTransferNumber() bool { - if o != nil && o.ClientTransferNumber.IsSet() { - return true - } - - return false -} - -// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. -func (o *LockEvidenceV1Request) SetClientTransferNumber(v int32) { - o.ClientTransferNumber.Set(&v) -} -// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil -func (o *LockEvidenceV1Request) SetClientTransferNumberNil() { - o.ClientTransferNumber.Set(nil) -} - -// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil -func (o *LockEvidenceV1Request) UnsetClientTransferNumber() { - o.ClientTransferNumber.Unset() -} - -// GetSignature returns the Signature field value -func (o *LockEvidenceV1Request) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *LockEvidenceV1Request) SetSignature(v string) { - o.Signature = v -} - -// GetMessageType returns the MessageType field value -func (o *LockEvidenceV1Request) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *LockEvidenceV1Request) SetMessageType(v string) { - o.MessageType = v -} - -// GetMessageHash returns the MessageHash field value if set, zero value otherwise. -func (o *LockEvidenceV1Request) GetMessageHash() string { - if o == nil || IsNil(o.MessageHash) { - var ret string - return ret - } - return *o.MessageHash -} - -// GetMessageHashOk returns a tuple with the MessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.MessageHash) { - return nil, false - } - return o.MessageHash, true -} - -// HasMessageHash returns a boolean if a field has been set. -func (o *LockEvidenceV1Request) HasMessageHash() bool { - if o != nil && !IsNil(o.MessageHash) { - return true - } - - return false -} - -// SetMessageHash gets a reference to the given string and assigns it to the MessageHash field. -func (o *LockEvidenceV1Request) SetMessageHash(v string) { - o.MessageHash = &v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *LockEvidenceV1Request) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Request) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *LockEvidenceV1Request) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o LockEvidenceV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LockEvidenceV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["lockEvidenceClaim"] = o.LockEvidenceClaim - if !IsNil(o.LockEvidenceFormat) { - toSerialize["lockEvidenceFormat"] = o.LockEvidenceFormat - } - toSerialize["lockEvidenceExpiration"] = o.LockEvidenceExpiration - toSerialize["hashCommenceAckRequest"] = o.HashCommenceAckRequest - if o.ClientTransferNumber.IsSet() { - toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() - } - toSerialize["signature"] = o.Signature - toSerialize["messageType"] = o.MessageType - if !IsNil(o.MessageHash) { - toSerialize["messageHash"] = o.MessageHash - } - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableLockEvidenceV1Request struct { - value *LockEvidenceV1Request - isSet bool -} - -func (v NullableLockEvidenceV1Request) Get() *LockEvidenceV1Request { - return v.value -} - -func (v *NullableLockEvidenceV1Request) Set(val *LockEvidenceV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableLockEvidenceV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableLockEvidenceV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLockEvidenceV1Request(val *LockEvidenceV1Request) *NullableLockEvidenceV1Request { - return &NullableLockEvidenceV1Request{value: val, isSet: true} -} - -func (v NullableLockEvidenceV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLockEvidenceV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go deleted file mode 100644 index 352ba1be74..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_lock_evidence_v1_response.go +++ /dev/null @@ -1,325 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the LockEvidenceV1Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LockEvidenceV1Response{} - -// LockEvidenceV1Response struct for LockEvidenceV1Response -type LockEvidenceV1Response struct { - SessionID string `json:"sessionID"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - HashLockEvidenceRequest string `json:"hashLockEvidenceRequest"` - ServerTransferNumber NullableInt32 `json:"serverTransferNumber,omitempty"` - Signature string `json:"signature"` - MessageType string `json:"messageType"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewLockEvidenceV1Response instantiates a new LockEvidenceV1Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLockEvidenceV1Response(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, hashLockEvidenceRequest string, signature string, messageType string, sequenceNumber float32) *LockEvidenceV1Response { - this := LockEvidenceV1Response{} - this.SessionID = sessionID - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.HashLockEvidenceRequest = hashLockEvidenceRequest - this.Signature = signature - this.MessageType = messageType - this.SequenceNumber = sequenceNumber - return &this -} - -// NewLockEvidenceV1ResponseWithDefaults instantiates a new LockEvidenceV1Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLockEvidenceV1ResponseWithDefaults() *LockEvidenceV1Response { - this := LockEvidenceV1Response{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *LockEvidenceV1Response) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *LockEvidenceV1Response) SetSessionID(v string) { - o.SessionID = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *LockEvidenceV1Response) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *LockEvidenceV1Response) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *LockEvidenceV1Response) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *LockEvidenceV1Response) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetHashLockEvidenceRequest returns the HashLockEvidenceRequest field value -func (o *LockEvidenceV1Response) GetHashLockEvidenceRequest() string { - if o == nil { - var ret string - return ret - } - - return o.HashLockEvidenceRequest -} - -// GetHashLockEvidenceRequestOk returns a tuple with the HashLockEvidenceRequest field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetHashLockEvidenceRequestOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashLockEvidenceRequest, true -} - -// SetHashLockEvidenceRequest sets field value -func (o *LockEvidenceV1Response) SetHashLockEvidenceRequest(v string) { - o.HashLockEvidenceRequest = v -} - -// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LockEvidenceV1Response) GetServerTransferNumber() int32 { - if o == nil || IsNil(o.ServerTransferNumber.Get()) { - var ret int32 - return ret - } - return *o.ServerTransferNumber.Get() -} - -// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LockEvidenceV1Response) GetServerTransferNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ServerTransferNumber.Get(), o.ServerTransferNumber.IsSet() -} - -// HasServerTransferNumber returns a boolean if a field has been set. -func (o *LockEvidenceV1Response) HasServerTransferNumber() bool { - if o != nil && o.ServerTransferNumber.IsSet() { - return true - } - - return false -} - -// SetServerTransferNumber gets a reference to the given NullableInt32 and assigns it to the ServerTransferNumber field. -func (o *LockEvidenceV1Response) SetServerTransferNumber(v int32) { - o.ServerTransferNumber.Set(&v) -} -// SetServerTransferNumberNil sets the value for ServerTransferNumber to be an explicit nil -func (o *LockEvidenceV1Response) SetServerTransferNumberNil() { - o.ServerTransferNumber.Set(nil) -} - -// UnsetServerTransferNumber ensures that no value is present for ServerTransferNumber, not even an explicit nil -func (o *LockEvidenceV1Response) UnsetServerTransferNumber() { - o.ServerTransferNumber.Unset() -} - -// GetSignature returns the Signature field value -func (o *LockEvidenceV1Response) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *LockEvidenceV1Response) SetSignature(v string) { - o.Signature = v -} - -// GetMessageType returns the MessageType field value -func (o *LockEvidenceV1Response) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *LockEvidenceV1Response) SetMessageType(v string) { - o.MessageType = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *LockEvidenceV1Response) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *LockEvidenceV1Response) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *LockEvidenceV1Response) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o LockEvidenceV1Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LockEvidenceV1Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["hashLockEvidenceRequest"] = o.HashLockEvidenceRequest - if o.ServerTransferNumber.IsSet() { - toSerialize["serverTransferNumber"] = o.ServerTransferNumber.Get() - } - toSerialize["signature"] = o.Signature - toSerialize["messageType"] = o.MessageType - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableLockEvidenceV1Response struct { - value *LockEvidenceV1Response - isSet bool -} - -func (v NullableLockEvidenceV1Response) Get() *LockEvidenceV1Response { - return v.value -} - -func (v *NullableLockEvidenceV1Response) Set(val *LockEvidenceV1Response) { - v.value = val - v.isSet = true -} - -func (v NullableLockEvidenceV1Response) IsSet() bool { - return v.isSet -} - -func (v *NullableLockEvidenceV1Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLockEvidenceV1Response(val *LockEvidenceV1Response) *NullableLockEvidenceV1Response { - return &NullableLockEvidenceV1Response{value: val, isSet: true} -} - -func (v NullableLockEvidenceV1Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLockEvidenceV1Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go deleted file mode 100644 index 229c325ca1..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_payload_profile.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the PayloadProfile type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PayloadProfile{} - -// PayloadProfile struct for PayloadProfile -type PayloadProfile struct { - AssetProfile AssetProfile `json:"assetProfile"` - Capabilities *string `json:"capabilities,omitempty"` -} - -// NewPayloadProfile instantiates a new PayloadProfile object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPayloadProfile(assetProfile AssetProfile) *PayloadProfile { - this := PayloadProfile{} - this.AssetProfile = assetProfile - return &this -} - -// NewPayloadProfileWithDefaults instantiates a new PayloadProfile object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPayloadProfileWithDefaults() *PayloadProfile { - this := PayloadProfile{} - return &this -} - -// GetAssetProfile returns the AssetProfile field value -func (o *PayloadProfile) GetAssetProfile() AssetProfile { - if o == nil { - var ret AssetProfile - return ret - } - - return o.AssetProfile -} - -// GetAssetProfileOk returns a tuple with the AssetProfile field value -// and a boolean to check if the value has been set. -func (o *PayloadProfile) GetAssetProfileOk() (*AssetProfile, bool) { - if o == nil { - return nil, false - } - return &o.AssetProfile, true -} - -// SetAssetProfile sets field value -func (o *PayloadProfile) SetAssetProfile(v AssetProfile) { - o.AssetProfile = v -} - -// GetCapabilities returns the Capabilities field value if set, zero value otherwise. -func (o *PayloadProfile) GetCapabilities() string { - if o == nil || IsNil(o.Capabilities) { - var ret string - return ret - } - return *o.Capabilities -} - -// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PayloadProfile) GetCapabilitiesOk() (*string, bool) { - if o == nil || IsNil(o.Capabilities) { - return nil, false - } - return o.Capabilities, true -} - -// HasCapabilities returns a boolean if a field has been set. -func (o *PayloadProfile) HasCapabilities() bool { - if o != nil && !IsNil(o.Capabilities) { - return true - } - - return false -} - -// SetCapabilities gets a reference to the given string and assigns it to the Capabilities field. -func (o *PayloadProfile) SetCapabilities(v string) { - o.Capabilities = &v -} - -func (o PayloadProfile) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PayloadProfile) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["assetProfile"] = o.AssetProfile - if !IsNil(o.Capabilities) { - toSerialize["capabilities"] = o.Capabilities - } - return toSerialize, nil -} - -type NullablePayloadProfile struct { - value *PayloadProfile - isSet bool -} - -func (v NullablePayloadProfile) Get() *PayloadProfile { - return v.value -} - -func (v *NullablePayloadProfile) Set(val *PayloadProfile) { - v.value = val - v.isSet = true -} - -func (v NullablePayloadProfile) IsSet() bool { - return v.isSet -} - -func (v *NullablePayloadProfile) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePayloadProfile(val *PayloadProfile) *NullablePayloadProfile { - return &NullablePayloadProfile{value: val, isSet: true} -} - -func (v NullablePayloadProfile) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePayloadProfile) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go deleted file mode 100644 index 6c9f1900c8..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_success_v1_message.go +++ /dev/null @@ -1,171 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the RecoverSuccessV1Message type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RecoverSuccessV1Message{} - -// RecoverSuccessV1Message struct for RecoverSuccessV1Message -type RecoverSuccessV1Message struct { - SessionID string `json:"sessionID"` - Success bool `json:"success"` - Signature string `json:"signature"` -} - -// NewRecoverSuccessV1Message instantiates a new RecoverSuccessV1Message object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRecoverSuccessV1Message(sessionID string, success bool, signature string) *RecoverSuccessV1Message { - this := RecoverSuccessV1Message{} - this.SessionID = sessionID - this.Success = success - this.Signature = signature - return &this -} - -// NewRecoverSuccessV1MessageWithDefaults instantiates a new RecoverSuccessV1Message object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRecoverSuccessV1MessageWithDefaults() *RecoverSuccessV1Message { - this := RecoverSuccessV1Message{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *RecoverSuccessV1Message) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *RecoverSuccessV1Message) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *RecoverSuccessV1Message) SetSessionID(v string) { - o.SessionID = v -} - -// GetSuccess returns the Success field value -func (o *RecoverSuccessV1Message) GetSuccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.Success -} - -// GetSuccessOk returns a tuple with the Success field value -// and a boolean to check if the value has been set. -func (o *RecoverSuccessV1Message) GetSuccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Success, true -} - -// SetSuccess sets field value -func (o *RecoverSuccessV1Message) SetSuccess(v bool) { - o.Success = v -} - -// GetSignature returns the Signature field value -func (o *RecoverSuccessV1Message) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *RecoverSuccessV1Message) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *RecoverSuccessV1Message) SetSignature(v string) { - o.Signature = v -} - -func (o RecoverSuccessV1Message) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RecoverSuccessV1Message) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["success"] = o.Success - toSerialize["signature"] = o.Signature - return toSerialize, nil -} - -type NullableRecoverSuccessV1Message struct { - value *RecoverSuccessV1Message - isSet bool -} - -func (v NullableRecoverSuccessV1Message) Get() *RecoverSuccessV1Message { - return v.value -} - -func (v *NullableRecoverSuccessV1Message) Set(val *RecoverSuccessV1Message) { - v.value = val - v.isSet = true -} - -func (v NullableRecoverSuccessV1Message) IsSet() bool { - return v.isSet -} - -func (v *NullableRecoverSuccessV1Message) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecoverSuccessV1Message(val *RecoverSuccessV1Message) *NullableRecoverSuccessV1Message { - return &NullableRecoverSuccessV1Message{value: val, isSet: true} -} - -func (v NullableRecoverSuccessV1Message) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRecoverSuccessV1Message) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go deleted file mode 100644 index db52fe6adc..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_ack_v1_message.go +++ /dev/null @@ -1,198 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the RecoverUpdateAckV1Message type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RecoverUpdateAckV1Message{} - -// RecoverUpdateAckV1Message struct for RecoverUpdateAckV1Message -type RecoverUpdateAckV1Message struct { - SessionID string `json:"sessionID"` - Success bool `json:"success"` - ChangedEntriesHash []string `json:"changedEntriesHash"` - Signature string `json:"signature"` -} - -// NewRecoverUpdateAckV1Message instantiates a new RecoverUpdateAckV1Message object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRecoverUpdateAckV1Message(sessionID string, success bool, changedEntriesHash []string, signature string) *RecoverUpdateAckV1Message { - this := RecoverUpdateAckV1Message{} - this.SessionID = sessionID - this.Success = success - this.ChangedEntriesHash = changedEntriesHash - this.Signature = signature - return &this -} - -// NewRecoverUpdateAckV1MessageWithDefaults instantiates a new RecoverUpdateAckV1Message object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRecoverUpdateAckV1MessageWithDefaults() *RecoverUpdateAckV1Message { - this := RecoverUpdateAckV1Message{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *RecoverUpdateAckV1Message) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateAckV1Message) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *RecoverUpdateAckV1Message) SetSessionID(v string) { - o.SessionID = v -} - -// GetSuccess returns the Success field value -func (o *RecoverUpdateAckV1Message) GetSuccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.Success -} - -// GetSuccessOk returns a tuple with the Success field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateAckV1Message) GetSuccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Success, true -} - -// SetSuccess sets field value -func (o *RecoverUpdateAckV1Message) SetSuccess(v bool) { - o.Success = v -} - -// GetChangedEntriesHash returns the ChangedEntriesHash field value -func (o *RecoverUpdateAckV1Message) GetChangedEntriesHash() []string { - if o == nil { - var ret []string - return ret - } - - return o.ChangedEntriesHash -} - -// GetChangedEntriesHashOk returns a tuple with the ChangedEntriesHash field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateAckV1Message) GetChangedEntriesHashOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.ChangedEntriesHash, true -} - -// SetChangedEntriesHash sets field value -func (o *RecoverUpdateAckV1Message) SetChangedEntriesHash(v []string) { - o.ChangedEntriesHash = v -} - -// GetSignature returns the Signature field value -func (o *RecoverUpdateAckV1Message) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateAckV1Message) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *RecoverUpdateAckV1Message) SetSignature(v string) { - o.Signature = v -} - -func (o RecoverUpdateAckV1Message) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RecoverUpdateAckV1Message) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["success"] = o.Success - toSerialize["changedEntriesHash"] = o.ChangedEntriesHash - toSerialize["signature"] = o.Signature - return toSerialize, nil -} - -type NullableRecoverUpdateAckV1Message struct { - value *RecoverUpdateAckV1Message - isSet bool -} - -func (v NullableRecoverUpdateAckV1Message) Get() *RecoverUpdateAckV1Message { - return v.value -} - -func (v *NullableRecoverUpdateAckV1Message) Set(val *RecoverUpdateAckV1Message) { - v.value = val - v.isSet = true -} - -func (v NullableRecoverUpdateAckV1Message) IsSet() bool { - return v.isSet -} - -func (v *NullableRecoverUpdateAckV1Message) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecoverUpdateAckV1Message(val *RecoverUpdateAckV1Message) *NullableRecoverUpdateAckV1Message { - return &NullableRecoverUpdateAckV1Message{value: val, isSet: true} -} - -func (v NullableRecoverUpdateAckV1Message) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRecoverUpdateAckV1Message) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go deleted file mode 100644 index 5566cf59c6..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_update_v1_message.go +++ /dev/null @@ -1,171 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the RecoverUpdateV1Message type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RecoverUpdateV1Message{} - -// RecoverUpdateV1Message struct for RecoverUpdateV1Message -type RecoverUpdateV1Message struct { - SessionID string `json:"sessionID"` - RecoveredLogs []LocalLog `json:"recoveredLogs"` - Signature string `json:"signature"` -} - -// NewRecoverUpdateV1Message instantiates a new RecoverUpdateV1Message object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRecoverUpdateV1Message(sessionID string, recoveredLogs []LocalLog, signature string) *RecoverUpdateV1Message { - this := RecoverUpdateV1Message{} - this.SessionID = sessionID - this.RecoveredLogs = recoveredLogs - this.Signature = signature - return &this -} - -// NewRecoverUpdateV1MessageWithDefaults instantiates a new RecoverUpdateV1Message object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRecoverUpdateV1MessageWithDefaults() *RecoverUpdateV1Message { - this := RecoverUpdateV1Message{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *RecoverUpdateV1Message) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateV1Message) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *RecoverUpdateV1Message) SetSessionID(v string) { - o.SessionID = v -} - -// GetRecoveredLogs returns the RecoveredLogs field value -func (o *RecoverUpdateV1Message) GetRecoveredLogs() []LocalLog { - if o == nil { - var ret []LocalLog - return ret - } - - return o.RecoveredLogs -} - -// GetRecoveredLogsOk returns a tuple with the RecoveredLogs field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateV1Message) GetRecoveredLogsOk() ([]LocalLog, bool) { - if o == nil { - return nil, false - } - return o.RecoveredLogs, true -} - -// SetRecoveredLogs sets field value -func (o *RecoverUpdateV1Message) SetRecoveredLogs(v []LocalLog) { - o.RecoveredLogs = v -} - -// GetSignature returns the Signature field value -func (o *RecoverUpdateV1Message) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *RecoverUpdateV1Message) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *RecoverUpdateV1Message) SetSignature(v string) { - o.Signature = v -} - -func (o RecoverUpdateV1Message) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RecoverUpdateV1Message) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["recoveredLogs"] = o.RecoveredLogs - toSerialize["signature"] = o.Signature - return toSerialize, nil -} - -type NullableRecoverUpdateV1Message struct { - value *RecoverUpdateV1Message - isSet bool -} - -func (v NullableRecoverUpdateV1Message) Get() *RecoverUpdateV1Message { - return v.value -} - -func (v *NullableRecoverUpdateV1Message) Set(val *RecoverUpdateV1Message) { - v.value = val - v.isSet = true -} - -func (v NullableRecoverUpdateV1Message) IsSet() bool { - return v.isSet -} - -func (v *NullableRecoverUpdateV1Message) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecoverUpdateV1Message(val *RecoverUpdateV1Message) *NullableRecoverUpdateV1Message { - return &NullableRecoverUpdateV1Message{value: val, isSet: true} -} - -func (v NullableRecoverUpdateV1Message) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRecoverUpdateV1Message) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go deleted file mode 100644 index f1768938da..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_recover_v1_message.go +++ /dev/null @@ -1,315 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the RecoverV1Message type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RecoverV1Message{} - -// RecoverV1Message struct for RecoverV1Message -type RecoverV1Message struct { - SessionID string `json:"sessionID"` - OdapPhase string `json:"odapPhase"` - SequenceNumber float32 `json:"sequenceNumber"` - LastLogEntryTimestamp string `json:"lastLogEntryTimestamp"` - IsBackup bool `json:"isBackup"` - NewBasePath string `json:"newBasePath"` - NewGatewayPubKey *string `json:"newGatewayPubKey,omitempty"` - Signature string `json:"signature"` -} - -// NewRecoverV1Message instantiates a new RecoverV1Message object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRecoverV1Message(sessionID string, odapPhase string, sequenceNumber float32, lastLogEntryTimestamp string, isBackup bool, newBasePath string, signature string) *RecoverV1Message { - this := RecoverV1Message{} - this.SessionID = sessionID - this.OdapPhase = odapPhase - this.SequenceNumber = sequenceNumber - this.LastLogEntryTimestamp = lastLogEntryTimestamp - this.IsBackup = isBackup - this.NewBasePath = newBasePath - this.Signature = signature - return &this -} - -// NewRecoverV1MessageWithDefaults instantiates a new RecoverV1Message object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRecoverV1MessageWithDefaults() *RecoverV1Message { - this := RecoverV1Message{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *RecoverV1Message) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *RecoverV1Message) SetSessionID(v string) { - o.SessionID = v -} - -// GetOdapPhase returns the OdapPhase field value -func (o *RecoverV1Message) GetOdapPhase() string { - if o == nil { - var ret string - return ret - } - - return o.OdapPhase -} - -// GetOdapPhaseOk returns a tuple with the OdapPhase field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetOdapPhaseOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.OdapPhase, true -} - -// SetOdapPhase sets field value -func (o *RecoverV1Message) SetOdapPhase(v string) { - o.OdapPhase = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *RecoverV1Message) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *RecoverV1Message) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -// GetLastLogEntryTimestamp returns the LastLogEntryTimestamp field value -func (o *RecoverV1Message) GetLastLogEntryTimestamp() string { - if o == nil { - var ret string - return ret - } - - return o.LastLogEntryTimestamp -} - -// GetLastLogEntryTimestampOk returns a tuple with the LastLogEntryTimestamp field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetLastLogEntryTimestampOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LastLogEntryTimestamp, true -} - -// SetLastLogEntryTimestamp sets field value -func (o *RecoverV1Message) SetLastLogEntryTimestamp(v string) { - o.LastLogEntryTimestamp = v -} - -// GetIsBackup returns the IsBackup field value -func (o *RecoverV1Message) GetIsBackup() bool { - if o == nil { - var ret bool - return ret - } - - return o.IsBackup -} - -// GetIsBackupOk returns a tuple with the IsBackup field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetIsBackupOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.IsBackup, true -} - -// SetIsBackup sets field value -func (o *RecoverV1Message) SetIsBackup(v bool) { - o.IsBackup = v -} - -// GetNewBasePath returns the NewBasePath field value -func (o *RecoverV1Message) GetNewBasePath() string { - if o == nil { - var ret string - return ret - } - - return o.NewBasePath -} - -// GetNewBasePathOk returns a tuple with the NewBasePath field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetNewBasePathOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.NewBasePath, true -} - -// SetNewBasePath sets field value -func (o *RecoverV1Message) SetNewBasePath(v string) { - o.NewBasePath = v -} - -// GetNewGatewayPubKey returns the NewGatewayPubKey field value if set, zero value otherwise. -func (o *RecoverV1Message) GetNewGatewayPubKey() string { - if o == nil || IsNil(o.NewGatewayPubKey) { - var ret string - return ret - } - return *o.NewGatewayPubKey -} - -// GetNewGatewayPubKeyOk returns a tuple with the NewGatewayPubKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetNewGatewayPubKeyOk() (*string, bool) { - if o == nil || IsNil(o.NewGatewayPubKey) { - return nil, false - } - return o.NewGatewayPubKey, true -} - -// HasNewGatewayPubKey returns a boolean if a field has been set. -func (o *RecoverV1Message) HasNewGatewayPubKey() bool { - if o != nil && !IsNil(o.NewGatewayPubKey) { - return true - } - - return false -} - -// SetNewGatewayPubKey gets a reference to the given string and assigns it to the NewGatewayPubKey field. -func (o *RecoverV1Message) SetNewGatewayPubKey(v string) { - o.NewGatewayPubKey = &v -} - -// GetSignature returns the Signature field value -func (o *RecoverV1Message) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *RecoverV1Message) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *RecoverV1Message) SetSignature(v string) { - o.Signature = v -} - -func (o RecoverV1Message) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RecoverV1Message) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["odapPhase"] = o.OdapPhase - toSerialize["sequenceNumber"] = o.SequenceNumber - toSerialize["lastLogEntryTimestamp"] = o.LastLogEntryTimestamp - toSerialize["isBackup"] = o.IsBackup - toSerialize["newBasePath"] = o.NewBasePath - if !IsNil(o.NewGatewayPubKey) { - toSerialize["newGatewayPubKey"] = o.NewGatewayPubKey - } - toSerialize["signature"] = o.Signature - return toSerialize, nil -} - -type NullableRecoverV1Message struct { - value *RecoverV1Message - isSet bool -} - -func (v NullableRecoverV1Message) Get() *RecoverV1Message { - return v.value -} - -func (v *NullableRecoverV1Message) Set(val *RecoverV1Message) { - v.value = val - v.isSet = true -} - -func (v NullableRecoverV1Message) IsSet() bool { - return v.isSet -} - -func (v *NullableRecoverV1Message) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecoverV1Message(val *RecoverV1Message) *NullableRecoverV1Message { - return &NullableRecoverV1Message{value: val, isSet: true} -} - -func (v NullableRecoverV1Message) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRecoverV1Message) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go deleted file mode 100644 index 4eb3db632d..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_ack_v1_message.go +++ /dev/null @@ -1,171 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the RollbackAckV1Message type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RollbackAckV1Message{} - -// RollbackAckV1Message struct for RollbackAckV1Message -type RollbackAckV1Message struct { - SessionID string `json:"sessionID"` - Success bool `json:"success"` - Signature string `json:"signature"` -} - -// NewRollbackAckV1Message instantiates a new RollbackAckV1Message object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRollbackAckV1Message(sessionID string, success bool, signature string) *RollbackAckV1Message { - this := RollbackAckV1Message{} - this.SessionID = sessionID - this.Success = success - this.Signature = signature - return &this -} - -// NewRollbackAckV1MessageWithDefaults instantiates a new RollbackAckV1Message object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRollbackAckV1MessageWithDefaults() *RollbackAckV1Message { - this := RollbackAckV1Message{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *RollbackAckV1Message) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *RollbackAckV1Message) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *RollbackAckV1Message) SetSessionID(v string) { - o.SessionID = v -} - -// GetSuccess returns the Success field value -func (o *RollbackAckV1Message) GetSuccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.Success -} - -// GetSuccessOk returns a tuple with the Success field value -// and a boolean to check if the value has been set. -func (o *RollbackAckV1Message) GetSuccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Success, true -} - -// SetSuccess sets field value -func (o *RollbackAckV1Message) SetSuccess(v bool) { - o.Success = v -} - -// GetSignature returns the Signature field value -func (o *RollbackAckV1Message) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *RollbackAckV1Message) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *RollbackAckV1Message) SetSignature(v string) { - o.Signature = v -} - -func (o RollbackAckV1Message) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RollbackAckV1Message) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["success"] = o.Success - toSerialize["signature"] = o.Signature - return toSerialize, nil -} - -type NullableRollbackAckV1Message struct { - value *RollbackAckV1Message - isSet bool -} - -func (v NullableRollbackAckV1Message) Get() *RollbackAckV1Message { - return v.value -} - -func (v *NullableRollbackAckV1Message) Set(val *RollbackAckV1Message) { - v.value = val - v.isSet = true -} - -func (v NullableRollbackAckV1Message) IsSet() bool { - return v.isSet -} - -func (v *NullableRollbackAckV1Message) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRollbackAckV1Message(val *RollbackAckV1Message) *NullableRollbackAckV1Message { - return &NullableRollbackAckV1Message{value: val, isSet: true} -} - -func (v NullableRollbackAckV1Message) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRollbackAckV1Message) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go deleted file mode 100644 index 1a6c024e98..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_rollback_v1_message.go +++ /dev/null @@ -1,225 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the RollbackV1Message type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RollbackV1Message{} - -// RollbackV1Message struct for RollbackV1Message -type RollbackV1Message struct { - SessionID string `json:"sessionID"` - Success bool `json:"success"` - ActionPerformed []string `json:"actionPerformed"` - Proofs []string `json:"proofs"` - Signature string `json:"signature"` -} - -// NewRollbackV1Message instantiates a new RollbackV1Message object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRollbackV1Message(sessionID string, success bool, actionPerformed []string, proofs []string, signature string) *RollbackV1Message { - this := RollbackV1Message{} - this.SessionID = sessionID - this.Success = success - this.ActionPerformed = actionPerformed - this.Proofs = proofs - this.Signature = signature - return &this -} - -// NewRollbackV1MessageWithDefaults instantiates a new RollbackV1Message object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRollbackV1MessageWithDefaults() *RollbackV1Message { - this := RollbackV1Message{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *RollbackV1Message) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *RollbackV1Message) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *RollbackV1Message) SetSessionID(v string) { - o.SessionID = v -} - -// GetSuccess returns the Success field value -func (o *RollbackV1Message) GetSuccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.Success -} - -// GetSuccessOk returns a tuple with the Success field value -// and a boolean to check if the value has been set. -func (o *RollbackV1Message) GetSuccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Success, true -} - -// SetSuccess sets field value -func (o *RollbackV1Message) SetSuccess(v bool) { - o.Success = v -} - -// GetActionPerformed returns the ActionPerformed field value -func (o *RollbackV1Message) GetActionPerformed() []string { - if o == nil { - var ret []string - return ret - } - - return o.ActionPerformed -} - -// GetActionPerformedOk returns a tuple with the ActionPerformed field value -// and a boolean to check if the value has been set. -func (o *RollbackV1Message) GetActionPerformedOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.ActionPerformed, true -} - -// SetActionPerformed sets field value -func (o *RollbackV1Message) SetActionPerformed(v []string) { - o.ActionPerformed = v -} - -// GetProofs returns the Proofs field value -func (o *RollbackV1Message) GetProofs() []string { - if o == nil { - var ret []string - return ret - } - - return o.Proofs -} - -// GetProofsOk returns a tuple with the Proofs field value -// and a boolean to check if the value has been set. -func (o *RollbackV1Message) GetProofsOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.Proofs, true -} - -// SetProofs sets field value -func (o *RollbackV1Message) SetProofs(v []string) { - o.Proofs = v -} - -// GetSignature returns the Signature field value -func (o *RollbackV1Message) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *RollbackV1Message) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *RollbackV1Message) SetSignature(v string) { - o.Signature = v -} - -func (o RollbackV1Message) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RollbackV1Message) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["success"] = o.Success - toSerialize["actionPerformed"] = o.ActionPerformed - toSerialize["proofs"] = o.Proofs - toSerialize["signature"] = o.Signature - return toSerialize, nil -} - -type NullableRollbackV1Message struct { - value *RollbackV1Message - isSet bool -} - -func (v NullableRollbackV1Message) Get() *RollbackV1Message { - return v.value -} - -func (v *NullableRollbackV1Message) Set(val *RollbackV1Message) { - v.value = val - v.isSet = true -} - -func (v NullableRollbackV1Message) IsSet() bool { - return v.isSet -} - -func (v *NullableRollbackV1Message) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRollbackV1Message(val *RollbackV1Message) *NullableRollbackV1Message { - return &NullableRollbackV1Message{value: val, isSet: true} -} - -func (v NullableRollbackV1Message) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRollbackV1Message) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message.go deleted file mode 100644 index a4f8c83507..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message.go +++ /dev/null @@ -1,522 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the SatpMessage type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SatpMessage{} - -// SatpMessage struct for SatpMessage -type SatpMessage struct { - SequenceNumber *float32 `json:"SequenceNumber,omitempty"` - Phase *string `json:"Phase,omitempty"` - ResourceURL *string `json:"ResourceURL,omitempty"` - DeveloperURN *string `json:"DeveloperURN,omitempty"` - ActionResponse *SatpMessageActionResponse `json:"ActionResponse,omitempty"` - CredentialProfile *string `json:"CredentialProfile,omitempty"` - CredentialBlock []interface{} `json:"CredentialBlock,omitempty"` - CredentialsProfile *PayloadProfile `json:"CredentialsProfile,omitempty"` - ApplicationProfile map[string]interface{} `json:"ApplicationProfile,omitempty"` - Payload map[string]interface{} `json:"Payload,omitempty"` - PayloadHash *string `json:"PayloadHash,omitempty"` - MessageSignature *string `json:"MessageSignature,omitempty"` -} - -// NewSatpMessage instantiates a new SatpMessage object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSatpMessage() *SatpMessage { - this := SatpMessage{} - return &this -} - -// NewSatpMessageWithDefaults instantiates a new SatpMessage object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSatpMessageWithDefaults() *SatpMessage { - this := SatpMessage{} - return &this -} - -// GetSequenceNumber returns the SequenceNumber field value if set, zero value otherwise. -func (o *SatpMessage) GetSequenceNumber() float32 { - if o == nil || IsNil(o.SequenceNumber) { - var ret float32 - return ret - } - return *o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetSequenceNumberOk() (*float32, bool) { - if o == nil || IsNil(o.SequenceNumber) { - return nil, false - } - return o.SequenceNumber, true -} - -// HasSequenceNumber returns a boolean if a field has been set. -func (o *SatpMessage) HasSequenceNumber() bool { - if o != nil && !IsNil(o.SequenceNumber) { - return true - } - - return false -} - -// SetSequenceNumber gets a reference to the given float32 and assigns it to the SequenceNumber field. -func (o *SatpMessage) SetSequenceNumber(v float32) { - o.SequenceNumber = &v -} - -// GetPhase returns the Phase field value if set, zero value otherwise. -func (o *SatpMessage) GetPhase() string { - if o == nil || IsNil(o.Phase) { - var ret string - return ret - } - return *o.Phase -} - -// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetPhaseOk() (*string, bool) { - if o == nil || IsNil(o.Phase) { - return nil, false - } - return o.Phase, true -} - -// HasPhase returns a boolean if a field has been set. -func (o *SatpMessage) HasPhase() bool { - if o != nil && !IsNil(o.Phase) { - return true - } - - return false -} - -// SetPhase gets a reference to the given string and assigns it to the Phase field. -func (o *SatpMessage) SetPhase(v string) { - o.Phase = &v -} - -// GetResourceURL returns the ResourceURL field value if set, zero value otherwise. -func (o *SatpMessage) GetResourceURL() string { - if o == nil || IsNil(o.ResourceURL) { - var ret string - return ret - } - return *o.ResourceURL -} - -// GetResourceURLOk returns a tuple with the ResourceURL field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetResourceURLOk() (*string, bool) { - if o == nil || IsNil(o.ResourceURL) { - return nil, false - } - return o.ResourceURL, true -} - -// HasResourceURL returns a boolean if a field has been set. -func (o *SatpMessage) HasResourceURL() bool { - if o != nil && !IsNil(o.ResourceURL) { - return true - } - - return false -} - -// SetResourceURL gets a reference to the given string and assigns it to the ResourceURL field. -func (o *SatpMessage) SetResourceURL(v string) { - o.ResourceURL = &v -} - -// GetDeveloperURN returns the DeveloperURN field value if set, zero value otherwise. -func (o *SatpMessage) GetDeveloperURN() string { - if o == nil || IsNil(o.DeveloperURN) { - var ret string - return ret - } - return *o.DeveloperURN -} - -// GetDeveloperURNOk returns a tuple with the DeveloperURN field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetDeveloperURNOk() (*string, bool) { - if o == nil || IsNil(o.DeveloperURN) { - return nil, false - } - return o.DeveloperURN, true -} - -// HasDeveloperURN returns a boolean if a field has been set. -func (o *SatpMessage) HasDeveloperURN() bool { - if o != nil && !IsNil(o.DeveloperURN) { - return true - } - - return false -} - -// SetDeveloperURN gets a reference to the given string and assigns it to the DeveloperURN field. -func (o *SatpMessage) SetDeveloperURN(v string) { - o.DeveloperURN = &v -} - -// GetActionResponse returns the ActionResponse field value if set, zero value otherwise. -func (o *SatpMessage) GetActionResponse() SatpMessageActionResponse { - if o == nil || IsNil(o.ActionResponse) { - var ret SatpMessageActionResponse - return ret - } - return *o.ActionResponse -} - -// GetActionResponseOk returns a tuple with the ActionResponse field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetActionResponseOk() (*SatpMessageActionResponse, bool) { - if o == nil || IsNil(o.ActionResponse) { - return nil, false - } - return o.ActionResponse, true -} - -// HasActionResponse returns a boolean if a field has been set. -func (o *SatpMessage) HasActionResponse() bool { - if o != nil && !IsNil(o.ActionResponse) { - return true - } - - return false -} - -// SetActionResponse gets a reference to the given SatpMessageActionResponse and assigns it to the ActionResponse field. -func (o *SatpMessage) SetActionResponse(v SatpMessageActionResponse) { - o.ActionResponse = &v -} - -// GetCredentialProfile returns the CredentialProfile field value if set, zero value otherwise. -func (o *SatpMessage) GetCredentialProfile() string { - if o == nil || IsNil(o.CredentialProfile) { - var ret string - return ret - } - return *o.CredentialProfile -} - -// GetCredentialProfileOk returns a tuple with the CredentialProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetCredentialProfileOk() (*string, bool) { - if o == nil || IsNil(o.CredentialProfile) { - return nil, false - } - return o.CredentialProfile, true -} - -// HasCredentialProfile returns a boolean if a field has been set. -func (o *SatpMessage) HasCredentialProfile() bool { - if o != nil && !IsNil(o.CredentialProfile) { - return true - } - - return false -} - -// SetCredentialProfile gets a reference to the given string and assigns it to the CredentialProfile field. -func (o *SatpMessage) SetCredentialProfile(v string) { - o.CredentialProfile = &v -} - -// GetCredentialBlock returns the CredentialBlock field value if set, zero value otherwise. -func (o *SatpMessage) GetCredentialBlock() []interface{} { - if o == nil || IsNil(o.CredentialBlock) { - var ret []interface{} - return ret - } - return o.CredentialBlock -} - -// GetCredentialBlockOk returns a tuple with the CredentialBlock field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetCredentialBlockOk() ([]interface{}, bool) { - if o == nil || IsNil(o.CredentialBlock) { - return nil, false - } - return o.CredentialBlock, true -} - -// HasCredentialBlock returns a boolean if a field has been set. -func (o *SatpMessage) HasCredentialBlock() bool { - if o != nil && !IsNil(o.CredentialBlock) { - return true - } - - return false -} - -// SetCredentialBlock gets a reference to the given []interface{} and assigns it to the CredentialBlock field. -func (o *SatpMessage) SetCredentialBlock(v []interface{}) { - o.CredentialBlock = v -} - -// GetCredentialsProfile returns the CredentialsProfile field value if set, zero value otherwise. -func (o *SatpMessage) GetCredentialsProfile() PayloadProfile { - if o == nil || IsNil(o.CredentialsProfile) { - var ret PayloadProfile - return ret - } - return *o.CredentialsProfile -} - -// GetCredentialsProfileOk returns a tuple with the CredentialsProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetCredentialsProfileOk() (*PayloadProfile, bool) { - if o == nil || IsNil(o.CredentialsProfile) { - return nil, false - } - return o.CredentialsProfile, true -} - -// HasCredentialsProfile returns a boolean if a field has been set. -func (o *SatpMessage) HasCredentialsProfile() bool { - if o != nil && !IsNil(o.CredentialsProfile) { - return true - } - - return false -} - -// SetCredentialsProfile gets a reference to the given PayloadProfile and assigns it to the CredentialsProfile field. -func (o *SatpMessage) SetCredentialsProfile(v PayloadProfile) { - o.CredentialsProfile = &v -} - -// GetApplicationProfile returns the ApplicationProfile field value if set, zero value otherwise. -func (o *SatpMessage) GetApplicationProfile() map[string]interface{} { - if o == nil || IsNil(o.ApplicationProfile) { - var ret map[string]interface{} - return ret - } - return o.ApplicationProfile -} - -// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetApplicationProfileOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ApplicationProfile) { - return map[string]interface{}{}, false - } - return o.ApplicationProfile, true -} - -// HasApplicationProfile returns a boolean if a field has been set. -func (o *SatpMessage) HasApplicationProfile() bool { - if o != nil && !IsNil(o.ApplicationProfile) { - return true - } - - return false -} - -// SetApplicationProfile gets a reference to the given map[string]interface{} and assigns it to the ApplicationProfile field. -func (o *SatpMessage) SetApplicationProfile(v map[string]interface{}) { - o.ApplicationProfile = v -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *SatpMessage) GetPayload() map[string]interface{} { - if o == nil || IsNil(o.Payload) { - var ret map[string]interface{} - return ret - } - return o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetPayloadOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Payload) { - return map[string]interface{}{}, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *SatpMessage) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given map[string]interface{} and assigns it to the Payload field. -func (o *SatpMessage) SetPayload(v map[string]interface{}) { - o.Payload = v -} - -// GetPayloadHash returns the PayloadHash field value if set, zero value otherwise. -func (o *SatpMessage) GetPayloadHash() string { - if o == nil || IsNil(o.PayloadHash) { - var ret string - return ret - } - return *o.PayloadHash -} - -// GetPayloadHashOk returns a tuple with the PayloadHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetPayloadHashOk() (*string, bool) { - if o == nil || IsNil(o.PayloadHash) { - return nil, false - } - return o.PayloadHash, true -} - -// HasPayloadHash returns a boolean if a field has been set. -func (o *SatpMessage) HasPayloadHash() bool { - if o != nil && !IsNil(o.PayloadHash) { - return true - } - - return false -} - -// SetPayloadHash gets a reference to the given string and assigns it to the PayloadHash field. -func (o *SatpMessage) SetPayloadHash(v string) { - o.PayloadHash = &v -} - -// GetMessageSignature returns the MessageSignature field value if set, zero value otherwise. -func (o *SatpMessage) GetMessageSignature() string { - if o == nil || IsNil(o.MessageSignature) { - var ret string - return ret - } - return *o.MessageSignature -} - -// GetMessageSignatureOk returns a tuple with the MessageSignature field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessage) GetMessageSignatureOk() (*string, bool) { - if o == nil || IsNil(o.MessageSignature) { - return nil, false - } - return o.MessageSignature, true -} - -// HasMessageSignature returns a boolean if a field has been set. -func (o *SatpMessage) HasMessageSignature() bool { - if o != nil && !IsNil(o.MessageSignature) { - return true - } - - return false -} - -// SetMessageSignature gets a reference to the given string and assigns it to the MessageSignature field. -func (o *SatpMessage) SetMessageSignature(v string) { - o.MessageSignature = &v -} - -func (o SatpMessage) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SatpMessage) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.SequenceNumber) { - toSerialize["SequenceNumber"] = o.SequenceNumber - } - if !IsNil(o.Phase) { - toSerialize["Phase"] = o.Phase - } - if !IsNil(o.ResourceURL) { - toSerialize["ResourceURL"] = o.ResourceURL - } - if !IsNil(o.DeveloperURN) { - toSerialize["DeveloperURN"] = o.DeveloperURN - } - if !IsNil(o.ActionResponse) { - toSerialize["ActionResponse"] = o.ActionResponse - } - if !IsNil(o.CredentialProfile) { - toSerialize["CredentialProfile"] = o.CredentialProfile - } - if !IsNil(o.CredentialBlock) { - toSerialize["CredentialBlock"] = o.CredentialBlock - } - if !IsNil(o.CredentialsProfile) { - toSerialize["CredentialsProfile"] = o.CredentialsProfile - } - if !IsNil(o.ApplicationProfile) { - toSerialize["ApplicationProfile"] = o.ApplicationProfile - } - if !IsNil(o.Payload) { - toSerialize["Payload"] = o.Payload - } - if !IsNil(o.PayloadHash) { - toSerialize["PayloadHash"] = o.PayloadHash - } - if !IsNil(o.MessageSignature) { - toSerialize["MessageSignature"] = o.MessageSignature - } - return toSerialize, nil -} - -type NullableSatpMessage struct { - value *SatpMessage - isSet bool -} - -func (v NullableSatpMessage) Get() *SatpMessage { - return v.value -} - -func (v *NullableSatpMessage) Set(val *SatpMessage) { - v.value = val - v.isSet = true -} - -func (v NullableSatpMessage) IsSet() bool { - return v.isSet -} - -func (v *NullableSatpMessage) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSatpMessage(val *SatpMessage) *NullableSatpMessage { - return &NullableSatpMessage{value: val, isSet: true} -} - -func (v NullableSatpMessage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSatpMessage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message_action_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message_action_response.go deleted file mode 100644 index 19bdbdc7ea..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_satp_message_action_response.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the SatpMessageActionResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SatpMessageActionResponse{} - -// SatpMessageActionResponse struct for SatpMessageActionResponse -type SatpMessageActionResponse struct { - ResponseCode *string `json:"ResponseCode,omitempty"` - Arguments []interface{} `json:"Arguments,omitempty"` -} - -// NewSatpMessageActionResponse instantiates a new SatpMessageActionResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSatpMessageActionResponse() *SatpMessageActionResponse { - this := SatpMessageActionResponse{} - return &this -} - -// NewSatpMessageActionResponseWithDefaults instantiates a new SatpMessageActionResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSatpMessageActionResponseWithDefaults() *SatpMessageActionResponse { - this := SatpMessageActionResponse{} - return &this -} - -// GetResponseCode returns the ResponseCode field value if set, zero value otherwise. -func (o *SatpMessageActionResponse) GetResponseCode() string { - if o == nil || IsNil(o.ResponseCode) { - var ret string - return ret - } - return *o.ResponseCode -} - -// GetResponseCodeOk returns a tuple with the ResponseCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessageActionResponse) GetResponseCodeOk() (*string, bool) { - if o == nil || IsNil(o.ResponseCode) { - return nil, false - } - return o.ResponseCode, true -} - -// HasResponseCode returns a boolean if a field has been set. -func (o *SatpMessageActionResponse) HasResponseCode() bool { - if o != nil && !IsNil(o.ResponseCode) { - return true - } - - return false -} - -// SetResponseCode gets a reference to the given string and assigns it to the ResponseCode field. -func (o *SatpMessageActionResponse) SetResponseCode(v string) { - o.ResponseCode = &v -} - -// GetArguments returns the Arguments field value if set, zero value otherwise. -func (o *SatpMessageActionResponse) GetArguments() []interface{} { - if o == nil || IsNil(o.Arguments) { - var ret []interface{} - return ret - } - return o.Arguments -} - -// GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SatpMessageActionResponse) GetArgumentsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.Arguments) { - return nil, false - } - return o.Arguments, true -} - -// HasArguments returns a boolean if a field has been set. -func (o *SatpMessageActionResponse) HasArguments() bool { - if o != nil && !IsNil(o.Arguments) { - return true - } - - return false -} - -// SetArguments gets a reference to the given []interface{} and assigns it to the Arguments field. -func (o *SatpMessageActionResponse) SetArguments(v []interface{}) { - o.Arguments = v -} - -func (o SatpMessageActionResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SatpMessageActionResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ResponseCode) { - toSerialize["ResponseCode"] = o.ResponseCode - } - if !IsNil(o.Arguments) { - toSerialize["Arguments"] = o.Arguments - } - return toSerialize, nil -} - -type NullableSatpMessageActionResponse struct { - value *SatpMessageActionResponse - isSet bool -} - -func (v NullableSatpMessageActionResponse) Get() *SatpMessageActionResponse { - return v.value -} - -func (v *NullableSatpMessageActionResponse) Set(val *SatpMessageActionResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSatpMessageActionResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSatpMessageActionResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSatpMessageActionResponse(val *SatpMessageActionResponse) *NullableSatpMessageActionResponse { - return &NullableSatpMessageActionResponse{value: val, isSet: true} -} - -func (v NullableSatpMessageActionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSatpMessageActionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_session_data.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_session_data.go deleted file mode 100644 index d7a8369920..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_session_data.go +++ /dev/null @@ -1,2286 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the SessionData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SessionData{} - -// SessionData struct for SessionData -type SessionData struct { - Id *string `json:"id,omitempty"` - Step *float32 `json:"step,omitempty"` - Version *string `json:"version,omitempty"` - LastSequenceNumber *float32 `json:"lastSequenceNumber,omitempty"` - LoggingProfile *string `json:"loggingProfile,omitempty"` - AccessControlProfile *string `json:"accessControlProfile,omitempty"` - ApplicationProfile *string `json:"applicationProfile,omitempty"` - PayloadProfile *PayloadProfile `json:"payloadProfile,omitempty"` - AssetProfile *AssetProfile `json:"assetProfile,omitempty"` - AllowedSourceBackupGateways []string `json:"allowedSourceBackupGateways,omitempty"` - AllowedRecipientBackupGateways []string `json:"allowedRecipientBackupGateways,omitempty"` - SourceBasePath *string `json:"sourceBasePath,omitempty"` - RecipientBasePath *string `json:"recipientBasePath,omitempty"` - OriginatorPubkey *string `json:"originatorPubkey,omitempty"` - BeneficiaryPubkey *string `json:"beneficiaryPubkey,omitempty"` - SourceGatewayPubkey *string `json:"sourceGatewayPubkey,omitempty"` - SourceGatewayDltSystem *string `json:"sourceGatewayDltSystem,omitempty"` - RecipientGatewayPubkey *string `json:"recipientGatewayPubkey,omitempty"` - RecipientGatewayDltSystem *string `json:"recipientGatewayDltSystem,omitempty"` - InitializationRequestMessageHash *string `json:"initializationRequestMessageHash,omitempty"` - InitializationResponseMessageHash *string `json:"initializationResponseMessageHash,omitempty"` - InitializationRequestMessageRcvTimeStamp *string `json:"initializationRequestMessageRcvTimeStamp,omitempty"` - InitializationRequestMessageProcessedTimeStamp *string `json:"initializationRequestMessageProcessedTimeStamp,omitempty"` - ClientSignatureInitializationRequestMessage *string `json:"clientSignatureInitializationRequestMessage,omitempty"` - ServerSignatureInitializationResponseMessage *string `json:"serverSignatureInitializationResponseMessage,omitempty"` - TransferCommenceMessageRequestHash *string `json:"transferCommenceMessageRequestHash,omitempty"` - TransferCommenceMessageResponseHash *string `json:"transferCommenceMessageResponseHash,omitempty"` - ClientSignatureTransferCommenceRequestMessage *string `json:"clientSignatureTransferCommenceRequestMessage,omitempty"` - ServerSignatureTransferCommenceResponseMessage *string `json:"serverSignatureTransferCommenceResponseMessage,omitempty"` - LockEvidenceRequestMessageHash *string `json:"lockEvidenceRequestMessageHash,omitempty"` - LockEvidenceResponseMessageHash *string `json:"lockEvidenceResponseMessageHash,omitempty"` - ClientSignatureLockEvidenceRequestMessage *string `json:"clientSignatureLockEvidenceRequestMessage,omitempty"` - ServerSignatureLockEvidenceResponseMessage *string `json:"serverSignatureLockEvidenceResponseMessage,omitempty"` - LockEvidenceClaim *string `json:"lockEvidenceClaim,omitempty"` - CommitPrepareRequestMessageHash *string `json:"commitPrepareRequestMessageHash,omitempty"` - CommitPrepareResponseMessageHash *string `json:"commitPrepareResponseMessageHash,omitempty"` - ClientSignatureCommitPreparationRequestMessage *string `json:"clientSignatureCommitPreparationRequestMessage,omitempty"` - ServerSignatureCommitPreparationResponseMessage *string `json:"serverSignatureCommitPreparationResponseMessage,omitempty"` - CommitFinalRequestMessageHash *string `json:"commitFinalRequestMessageHash,omitempty"` - CommitFinalResponseMessageHash *string `json:"commitFinalResponseMessageHash,omitempty"` - CommitFinalClaim *string `json:"commitFinalClaim,omitempty"` - CommitFinalClaimFormat *string `json:"commitFinalClaimFormat,omitempty"` - CommitAcknowledgementClaim *string `json:"commitAcknowledgementClaim,omitempty"` - CommitAcknowledgementClaimFormat *string `json:"commitAcknowledgementClaimFormat,omitempty"` - ClientSignatureCommitFinalRequestMessage *string `json:"clientSignatureCommitFinalRequestMessage,omitempty"` - ServerSignatureCommitFinalResponseMessage *string `json:"serverSignatureCommitFinalResponseMessage,omitempty"` - TransferCompleteMessageHash *string `json:"transferCompleteMessageHash,omitempty"` - ClientSignatureTransferCompleteMessage *string `json:"clientSignatureTransferCompleteMessage,omitempty"` - MaxRetries *float32 `json:"maxRetries,omitempty"` - RecipientLedgerAssetID *string `json:"recipientLedgerAssetID,omitempty"` - SourceLedgerAssetID *string `json:"sourceLedgerAssetID,omitempty"` - MaxTimeout *float32 `json:"maxTimeout,omitempty"` - LastLogEntryTimestamp *string `json:"lastLogEntryTimestamp,omitempty"` - UnlockAssetClaim *string `json:"unlockAssetClaim,omitempty"` - RecreateAssetClaim *string `json:"recreateAssetClaim,omitempty"` - DeleteAssetClaim *string `json:"deleteAssetClaim,omitempty"` - LastMessageReceivedTimestamp *string `json:"lastMessageReceivedTimestamp,omitempty"` - Rollback *bool `json:"rollback,omitempty"` - RollbackMessageHash *string `json:"rollbackMessageHash,omitempty"` - RollbackProofs []string `json:"rollbackProofs,omitempty"` - RollbackActionsPerformed []string `json:"rollbackActionsPerformed,omitempty"` -} - -// NewSessionData instantiates a new SessionData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSessionData() *SessionData { - this := SessionData{} - return &this -} - -// NewSessionDataWithDefaults instantiates a new SessionData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSessionDataWithDefaults() *SessionData { - this := SessionData{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SessionData) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SessionData) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SessionData) SetId(v string) { - o.Id = &v -} - -// GetStep returns the Step field value if set, zero value otherwise. -func (o *SessionData) GetStep() float32 { - if o == nil || IsNil(o.Step) { - var ret float32 - return ret - } - return *o.Step -} - -// GetStepOk returns a tuple with the Step field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetStepOk() (*float32, bool) { - if o == nil || IsNil(o.Step) { - return nil, false - } - return o.Step, true -} - -// HasStep returns a boolean if a field has been set. -func (o *SessionData) HasStep() bool { - if o != nil && !IsNil(o.Step) { - return true - } - - return false -} - -// SetStep gets a reference to the given float32 and assigns it to the Step field. -func (o *SessionData) SetStep(v float32) { - o.Step = &v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *SessionData) GetVersion() string { - if o == nil || IsNil(o.Version) { - var ret string - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetVersionOk() (*string, bool) { - if o == nil || IsNil(o.Version) { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *SessionData) HasVersion() bool { - if o != nil && !IsNil(o.Version) { - return true - } - - return false -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *SessionData) SetVersion(v string) { - o.Version = &v -} - -// GetLastSequenceNumber returns the LastSequenceNumber field value if set, zero value otherwise. -func (o *SessionData) GetLastSequenceNumber() float32 { - if o == nil || IsNil(o.LastSequenceNumber) { - var ret float32 - return ret - } - return *o.LastSequenceNumber -} - -// GetLastSequenceNumberOk returns a tuple with the LastSequenceNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLastSequenceNumberOk() (*float32, bool) { - if o == nil || IsNil(o.LastSequenceNumber) { - return nil, false - } - return o.LastSequenceNumber, true -} - -// HasLastSequenceNumber returns a boolean if a field has been set. -func (o *SessionData) HasLastSequenceNumber() bool { - if o != nil && !IsNil(o.LastSequenceNumber) { - return true - } - - return false -} - -// SetLastSequenceNumber gets a reference to the given float32 and assigns it to the LastSequenceNumber field. -func (o *SessionData) SetLastSequenceNumber(v float32) { - o.LastSequenceNumber = &v -} - -// GetLoggingProfile returns the LoggingProfile field value if set, zero value otherwise. -func (o *SessionData) GetLoggingProfile() string { - if o == nil || IsNil(o.LoggingProfile) { - var ret string - return ret - } - return *o.LoggingProfile -} - -// GetLoggingProfileOk returns a tuple with the LoggingProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLoggingProfileOk() (*string, bool) { - if o == nil || IsNil(o.LoggingProfile) { - return nil, false - } - return o.LoggingProfile, true -} - -// HasLoggingProfile returns a boolean if a field has been set. -func (o *SessionData) HasLoggingProfile() bool { - if o != nil && !IsNil(o.LoggingProfile) { - return true - } - - return false -} - -// SetLoggingProfile gets a reference to the given string and assigns it to the LoggingProfile field. -func (o *SessionData) SetLoggingProfile(v string) { - o.LoggingProfile = &v -} - -// GetAccessControlProfile returns the AccessControlProfile field value if set, zero value otherwise. -func (o *SessionData) GetAccessControlProfile() string { - if o == nil || IsNil(o.AccessControlProfile) { - var ret string - return ret - } - return *o.AccessControlProfile -} - -// GetAccessControlProfileOk returns a tuple with the AccessControlProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetAccessControlProfileOk() (*string, bool) { - if o == nil || IsNil(o.AccessControlProfile) { - return nil, false - } - return o.AccessControlProfile, true -} - -// HasAccessControlProfile returns a boolean if a field has been set. -func (o *SessionData) HasAccessControlProfile() bool { - if o != nil && !IsNil(o.AccessControlProfile) { - return true - } - - return false -} - -// SetAccessControlProfile gets a reference to the given string and assigns it to the AccessControlProfile field. -func (o *SessionData) SetAccessControlProfile(v string) { - o.AccessControlProfile = &v -} - -// GetApplicationProfile returns the ApplicationProfile field value if set, zero value otherwise. -func (o *SessionData) GetApplicationProfile() string { - if o == nil || IsNil(o.ApplicationProfile) { - var ret string - return ret - } - return *o.ApplicationProfile -} - -// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetApplicationProfileOk() (*string, bool) { - if o == nil || IsNil(o.ApplicationProfile) { - return nil, false - } - return o.ApplicationProfile, true -} - -// HasApplicationProfile returns a boolean if a field has been set. -func (o *SessionData) HasApplicationProfile() bool { - if o != nil && !IsNil(o.ApplicationProfile) { - return true - } - - return false -} - -// SetApplicationProfile gets a reference to the given string and assigns it to the ApplicationProfile field. -func (o *SessionData) SetApplicationProfile(v string) { - o.ApplicationProfile = &v -} - -// GetPayloadProfile returns the PayloadProfile field value if set, zero value otherwise. -func (o *SessionData) GetPayloadProfile() PayloadProfile { - if o == nil || IsNil(o.PayloadProfile) { - var ret PayloadProfile - return ret - } - return *o.PayloadProfile -} - -// GetPayloadProfileOk returns a tuple with the PayloadProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetPayloadProfileOk() (*PayloadProfile, bool) { - if o == nil || IsNil(o.PayloadProfile) { - return nil, false - } - return o.PayloadProfile, true -} - -// HasPayloadProfile returns a boolean if a field has been set. -func (o *SessionData) HasPayloadProfile() bool { - if o != nil && !IsNil(o.PayloadProfile) { - return true - } - - return false -} - -// SetPayloadProfile gets a reference to the given PayloadProfile and assigns it to the PayloadProfile field. -func (o *SessionData) SetPayloadProfile(v PayloadProfile) { - o.PayloadProfile = &v -} - -// GetAssetProfile returns the AssetProfile field value if set, zero value otherwise. -func (o *SessionData) GetAssetProfile() AssetProfile { - if o == nil || IsNil(o.AssetProfile) { - var ret AssetProfile - return ret - } - return *o.AssetProfile -} - -// GetAssetProfileOk returns a tuple with the AssetProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetAssetProfileOk() (*AssetProfile, bool) { - if o == nil || IsNil(o.AssetProfile) { - return nil, false - } - return o.AssetProfile, true -} - -// HasAssetProfile returns a boolean if a field has been set. -func (o *SessionData) HasAssetProfile() bool { - if o != nil && !IsNil(o.AssetProfile) { - return true - } - - return false -} - -// SetAssetProfile gets a reference to the given AssetProfile and assigns it to the AssetProfile field. -func (o *SessionData) SetAssetProfile(v AssetProfile) { - o.AssetProfile = &v -} - -// GetAllowedSourceBackupGateways returns the AllowedSourceBackupGateways field value if set, zero value otherwise. -func (o *SessionData) GetAllowedSourceBackupGateways() []string { - if o == nil || IsNil(o.AllowedSourceBackupGateways) { - var ret []string - return ret - } - return o.AllowedSourceBackupGateways -} - -// GetAllowedSourceBackupGatewaysOk returns a tuple with the AllowedSourceBackupGateways field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetAllowedSourceBackupGatewaysOk() ([]string, bool) { - if o == nil || IsNil(o.AllowedSourceBackupGateways) { - return nil, false - } - return o.AllowedSourceBackupGateways, true -} - -// HasAllowedSourceBackupGateways returns a boolean if a field has been set. -func (o *SessionData) HasAllowedSourceBackupGateways() bool { - if o != nil && !IsNil(o.AllowedSourceBackupGateways) { - return true - } - - return false -} - -// SetAllowedSourceBackupGateways gets a reference to the given []string and assigns it to the AllowedSourceBackupGateways field. -func (o *SessionData) SetAllowedSourceBackupGateways(v []string) { - o.AllowedSourceBackupGateways = v -} - -// GetAllowedRecipientBackupGateways returns the AllowedRecipientBackupGateways field value if set, zero value otherwise. -func (o *SessionData) GetAllowedRecipientBackupGateways() []string { - if o == nil || IsNil(o.AllowedRecipientBackupGateways) { - var ret []string - return ret - } - return o.AllowedRecipientBackupGateways -} - -// GetAllowedRecipientBackupGatewaysOk returns a tuple with the AllowedRecipientBackupGateways field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetAllowedRecipientBackupGatewaysOk() ([]string, bool) { - if o == nil || IsNil(o.AllowedRecipientBackupGateways) { - return nil, false - } - return o.AllowedRecipientBackupGateways, true -} - -// HasAllowedRecipientBackupGateways returns a boolean if a field has been set. -func (o *SessionData) HasAllowedRecipientBackupGateways() bool { - if o != nil && !IsNil(o.AllowedRecipientBackupGateways) { - return true - } - - return false -} - -// SetAllowedRecipientBackupGateways gets a reference to the given []string and assigns it to the AllowedRecipientBackupGateways field. -func (o *SessionData) SetAllowedRecipientBackupGateways(v []string) { - o.AllowedRecipientBackupGateways = v -} - -// GetSourceBasePath returns the SourceBasePath field value if set, zero value otherwise. -func (o *SessionData) GetSourceBasePath() string { - if o == nil || IsNil(o.SourceBasePath) { - var ret string - return ret - } - return *o.SourceBasePath -} - -// GetSourceBasePathOk returns a tuple with the SourceBasePath field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetSourceBasePathOk() (*string, bool) { - if o == nil || IsNil(o.SourceBasePath) { - return nil, false - } - return o.SourceBasePath, true -} - -// HasSourceBasePath returns a boolean if a field has been set. -func (o *SessionData) HasSourceBasePath() bool { - if o != nil && !IsNil(o.SourceBasePath) { - return true - } - - return false -} - -// SetSourceBasePath gets a reference to the given string and assigns it to the SourceBasePath field. -func (o *SessionData) SetSourceBasePath(v string) { - o.SourceBasePath = &v -} - -// GetRecipientBasePath returns the RecipientBasePath field value if set, zero value otherwise. -func (o *SessionData) GetRecipientBasePath() string { - if o == nil || IsNil(o.RecipientBasePath) { - var ret string - return ret - } - return *o.RecipientBasePath -} - -// GetRecipientBasePathOk returns a tuple with the RecipientBasePath field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRecipientBasePathOk() (*string, bool) { - if o == nil || IsNil(o.RecipientBasePath) { - return nil, false - } - return o.RecipientBasePath, true -} - -// HasRecipientBasePath returns a boolean if a field has been set. -func (o *SessionData) HasRecipientBasePath() bool { - if o != nil && !IsNil(o.RecipientBasePath) { - return true - } - - return false -} - -// SetRecipientBasePath gets a reference to the given string and assigns it to the RecipientBasePath field. -func (o *SessionData) SetRecipientBasePath(v string) { - o.RecipientBasePath = &v -} - -// GetOriginatorPubkey returns the OriginatorPubkey field value if set, zero value otherwise. -func (o *SessionData) GetOriginatorPubkey() string { - if o == nil || IsNil(o.OriginatorPubkey) { - var ret string - return ret - } - return *o.OriginatorPubkey -} - -// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetOriginatorPubkeyOk() (*string, bool) { - if o == nil || IsNil(o.OriginatorPubkey) { - return nil, false - } - return o.OriginatorPubkey, true -} - -// HasOriginatorPubkey returns a boolean if a field has been set. -func (o *SessionData) HasOriginatorPubkey() bool { - if o != nil && !IsNil(o.OriginatorPubkey) { - return true - } - - return false -} - -// SetOriginatorPubkey gets a reference to the given string and assigns it to the OriginatorPubkey field. -func (o *SessionData) SetOriginatorPubkey(v string) { - o.OriginatorPubkey = &v -} - -// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value if set, zero value otherwise. -func (o *SessionData) GetBeneficiaryPubkey() string { - if o == nil || IsNil(o.BeneficiaryPubkey) { - var ret string - return ret - } - return *o.BeneficiaryPubkey -} - -// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetBeneficiaryPubkeyOk() (*string, bool) { - if o == nil || IsNil(o.BeneficiaryPubkey) { - return nil, false - } - return o.BeneficiaryPubkey, true -} - -// HasBeneficiaryPubkey returns a boolean if a field has been set. -func (o *SessionData) HasBeneficiaryPubkey() bool { - if o != nil && !IsNil(o.BeneficiaryPubkey) { - return true - } - - return false -} - -// SetBeneficiaryPubkey gets a reference to the given string and assigns it to the BeneficiaryPubkey field. -func (o *SessionData) SetBeneficiaryPubkey(v string) { - o.BeneficiaryPubkey = &v -} - -// GetSourceGatewayPubkey returns the SourceGatewayPubkey field value if set, zero value otherwise. -func (o *SessionData) GetSourceGatewayPubkey() string { - if o == nil || IsNil(o.SourceGatewayPubkey) { - var ret string - return ret - } - return *o.SourceGatewayPubkey -} - -// GetSourceGatewayPubkeyOk returns a tuple with the SourceGatewayPubkey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetSourceGatewayPubkeyOk() (*string, bool) { - if o == nil || IsNil(o.SourceGatewayPubkey) { - return nil, false - } - return o.SourceGatewayPubkey, true -} - -// HasSourceGatewayPubkey returns a boolean if a field has been set. -func (o *SessionData) HasSourceGatewayPubkey() bool { - if o != nil && !IsNil(o.SourceGatewayPubkey) { - return true - } - - return false -} - -// SetSourceGatewayPubkey gets a reference to the given string and assigns it to the SourceGatewayPubkey field. -func (o *SessionData) SetSourceGatewayPubkey(v string) { - o.SourceGatewayPubkey = &v -} - -// GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field value if set, zero value otherwise. -func (o *SessionData) GetSourceGatewayDltSystem() string { - if o == nil || IsNil(o.SourceGatewayDltSystem) { - var ret string - return ret - } - return *o.SourceGatewayDltSystem -} - -// GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetSourceGatewayDltSystemOk() (*string, bool) { - if o == nil || IsNil(o.SourceGatewayDltSystem) { - return nil, false - } - return o.SourceGatewayDltSystem, true -} - -// HasSourceGatewayDltSystem returns a boolean if a field has been set. -func (o *SessionData) HasSourceGatewayDltSystem() bool { - if o != nil && !IsNil(o.SourceGatewayDltSystem) { - return true - } - - return false -} - -// SetSourceGatewayDltSystem gets a reference to the given string and assigns it to the SourceGatewayDltSystem field. -func (o *SessionData) SetSourceGatewayDltSystem(v string) { - o.SourceGatewayDltSystem = &v -} - -// GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field value if set, zero value otherwise. -func (o *SessionData) GetRecipientGatewayPubkey() string { - if o == nil || IsNil(o.RecipientGatewayPubkey) { - var ret string - return ret - } - return *o.RecipientGatewayPubkey -} - -// GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRecipientGatewayPubkeyOk() (*string, bool) { - if o == nil || IsNil(o.RecipientGatewayPubkey) { - return nil, false - } - return o.RecipientGatewayPubkey, true -} - -// HasRecipientGatewayPubkey returns a boolean if a field has been set. -func (o *SessionData) HasRecipientGatewayPubkey() bool { - if o != nil && !IsNil(o.RecipientGatewayPubkey) { - return true - } - - return false -} - -// SetRecipientGatewayPubkey gets a reference to the given string and assigns it to the RecipientGatewayPubkey field. -func (o *SessionData) SetRecipientGatewayPubkey(v string) { - o.RecipientGatewayPubkey = &v -} - -// GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field value if set, zero value otherwise. -func (o *SessionData) GetRecipientGatewayDltSystem() string { - if o == nil || IsNil(o.RecipientGatewayDltSystem) { - var ret string - return ret - } - return *o.RecipientGatewayDltSystem -} - -// GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRecipientGatewayDltSystemOk() (*string, bool) { - if o == nil || IsNil(o.RecipientGatewayDltSystem) { - return nil, false - } - return o.RecipientGatewayDltSystem, true -} - -// HasRecipientGatewayDltSystem returns a boolean if a field has been set. -func (o *SessionData) HasRecipientGatewayDltSystem() bool { - if o != nil && !IsNil(o.RecipientGatewayDltSystem) { - return true - } - - return false -} - -// SetRecipientGatewayDltSystem gets a reference to the given string and assigns it to the RecipientGatewayDltSystem field. -func (o *SessionData) SetRecipientGatewayDltSystem(v string) { - o.RecipientGatewayDltSystem = &v -} - -// GetInitializationRequestMessageHash returns the InitializationRequestMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetInitializationRequestMessageHash() string { - if o == nil || IsNil(o.InitializationRequestMessageHash) { - var ret string - return ret - } - return *o.InitializationRequestMessageHash -} - -// GetInitializationRequestMessageHashOk returns a tuple with the InitializationRequestMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetInitializationRequestMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.InitializationRequestMessageHash) { - return nil, false - } - return o.InitializationRequestMessageHash, true -} - -// HasInitializationRequestMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasInitializationRequestMessageHash() bool { - if o != nil && !IsNil(o.InitializationRequestMessageHash) { - return true - } - - return false -} - -// SetInitializationRequestMessageHash gets a reference to the given string and assigns it to the InitializationRequestMessageHash field. -func (o *SessionData) SetInitializationRequestMessageHash(v string) { - o.InitializationRequestMessageHash = &v -} - -// GetInitializationResponseMessageHash returns the InitializationResponseMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetInitializationResponseMessageHash() string { - if o == nil || IsNil(o.InitializationResponseMessageHash) { - var ret string - return ret - } - return *o.InitializationResponseMessageHash -} - -// GetInitializationResponseMessageHashOk returns a tuple with the InitializationResponseMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetInitializationResponseMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.InitializationResponseMessageHash) { - return nil, false - } - return o.InitializationResponseMessageHash, true -} - -// HasInitializationResponseMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasInitializationResponseMessageHash() bool { - if o != nil && !IsNil(o.InitializationResponseMessageHash) { - return true - } - - return false -} - -// SetInitializationResponseMessageHash gets a reference to the given string and assigns it to the InitializationResponseMessageHash field. -func (o *SessionData) SetInitializationResponseMessageHash(v string) { - o.InitializationResponseMessageHash = &v -} - -// GetInitializationRequestMessageRcvTimeStamp returns the InitializationRequestMessageRcvTimeStamp field value if set, zero value otherwise. -func (o *SessionData) GetInitializationRequestMessageRcvTimeStamp() string { - if o == nil || IsNil(o.InitializationRequestMessageRcvTimeStamp) { - var ret string - return ret - } - return *o.InitializationRequestMessageRcvTimeStamp -} - -// GetInitializationRequestMessageRcvTimeStampOk returns a tuple with the InitializationRequestMessageRcvTimeStamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetInitializationRequestMessageRcvTimeStampOk() (*string, bool) { - if o == nil || IsNil(o.InitializationRequestMessageRcvTimeStamp) { - return nil, false - } - return o.InitializationRequestMessageRcvTimeStamp, true -} - -// HasInitializationRequestMessageRcvTimeStamp returns a boolean if a field has been set. -func (o *SessionData) HasInitializationRequestMessageRcvTimeStamp() bool { - if o != nil && !IsNil(o.InitializationRequestMessageRcvTimeStamp) { - return true - } - - return false -} - -// SetInitializationRequestMessageRcvTimeStamp gets a reference to the given string and assigns it to the InitializationRequestMessageRcvTimeStamp field. -func (o *SessionData) SetInitializationRequestMessageRcvTimeStamp(v string) { - o.InitializationRequestMessageRcvTimeStamp = &v -} - -// GetInitializationRequestMessageProcessedTimeStamp returns the InitializationRequestMessageProcessedTimeStamp field value if set, zero value otherwise. -func (o *SessionData) GetInitializationRequestMessageProcessedTimeStamp() string { - if o == nil || IsNil(o.InitializationRequestMessageProcessedTimeStamp) { - var ret string - return ret - } - return *o.InitializationRequestMessageProcessedTimeStamp -} - -// GetInitializationRequestMessageProcessedTimeStampOk returns a tuple with the InitializationRequestMessageProcessedTimeStamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetInitializationRequestMessageProcessedTimeStampOk() (*string, bool) { - if o == nil || IsNil(o.InitializationRequestMessageProcessedTimeStamp) { - return nil, false - } - return o.InitializationRequestMessageProcessedTimeStamp, true -} - -// HasInitializationRequestMessageProcessedTimeStamp returns a boolean if a field has been set. -func (o *SessionData) HasInitializationRequestMessageProcessedTimeStamp() bool { - if o != nil && !IsNil(o.InitializationRequestMessageProcessedTimeStamp) { - return true - } - - return false -} - -// SetInitializationRequestMessageProcessedTimeStamp gets a reference to the given string and assigns it to the InitializationRequestMessageProcessedTimeStamp field. -func (o *SessionData) SetInitializationRequestMessageProcessedTimeStamp(v string) { - o.InitializationRequestMessageProcessedTimeStamp = &v -} - -// GetClientSignatureInitializationRequestMessage returns the ClientSignatureInitializationRequestMessage field value if set, zero value otherwise. -func (o *SessionData) GetClientSignatureInitializationRequestMessage() string { - if o == nil || IsNil(o.ClientSignatureInitializationRequestMessage) { - var ret string - return ret - } - return *o.ClientSignatureInitializationRequestMessage -} - -// GetClientSignatureInitializationRequestMessageOk returns a tuple with the ClientSignatureInitializationRequestMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetClientSignatureInitializationRequestMessageOk() (*string, bool) { - if o == nil || IsNil(o.ClientSignatureInitializationRequestMessage) { - return nil, false - } - return o.ClientSignatureInitializationRequestMessage, true -} - -// HasClientSignatureInitializationRequestMessage returns a boolean if a field has been set. -func (o *SessionData) HasClientSignatureInitializationRequestMessage() bool { - if o != nil && !IsNil(o.ClientSignatureInitializationRequestMessage) { - return true - } - - return false -} - -// SetClientSignatureInitializationRequestMessage gets a reference to the given string and assigns it to the ClientSignatureInitializationRequestMessage field. -func (o *SessionData) SetClientSignatureInitializationRequestMessage(v string) { - o.ClientSignatureInitializationRequestMessage = &v -} - -// GetServerSignatureInitializationResponseMessage returns the ServerSignatureInitializationResponseMessage field value if set, zero value otherwise. -func (o *SessionData) GetServerSignatureInitializationResponseMessage() string { - if o == nil || IsNil(o.ServerSignatureInitializationResponseMessage) { - var ret string - return ret - } - return *o.ServerSignatureInitializationResponseMessage -} - -// GetServerSignatureInitializationResponseMessageOk returns a tuple with the ServerSignatureInitializationResponseMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetServerSignatureInitializationResponseMessageOk() (*string, bool) { - if o == nil || IsNil(o.ServerSignatureInitializationResponseMessage) { - return nil, false - } - return o.ServerSignatureInitializationResponseMessage, true -} - -// HasServerSignatureInitializationResponseMessage returns a boolean if a field has been set. -func (o *SessionData) HasServerSignatureInitializationResponseMessage() bool { - if o != nil && !IsNil(o.ServerSignatureInitializationResponseMessage) { - return true - } - - return false -} - -// SetServerSignatureInitializationResponseMessage gets a reference to the given string and assigns it to the ServerSignatureInitializationResponseMessage field. -func (o *SessionData) SetServerSignatureInitializationResponseMessage(v string) { - o.ServerSignatureInitializationResponseMessage = &v -} - -// GetTransferCommenceMessageRequestHash returns the TransferCommenceMessageRequestHash field value if set, zero value otherwise. -func (o *SessionData) GetTransferCommenceMessageRequestHash() string { - if o == nil || IsNil(o.TransferCommenceMessageRequestHash) { - var ret string - return ret - } - return *o.TransferCommenceMessageRequestHash -} - -// GetTransferCommenceMessageRequestHashOk returns a tuple with the TransferCommenceMessageRequestHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetTransferCommenceMessageRequestHashOk() (*string, bool) { - if o == nil || IsNil(o.TransferCommenceMessageRequestHash) { - return nil, false - } - return o.TransferCommenceMessageRequestHash, true -} - -// HasTransferCommenceMessageRequestHash returns a boolean if a field has been set. -func (o *SessionData) HasTransferCommenceMessageRequestHash() bool { - if o != nil && !IsNil(o.TransferCommenceMessageRequestHash) { - return true - } - - return false -} - -// SetTransferCommenceMessageRequestHash gets a reference to the given string and assigns it to the TransferCommenceMessageRequestHash field. -func (o *SessionData) SetTransferCommenceMessageRequestHash(v string) { - o.TransferCommenceMessageRequestHash = &v -} - -// GetTransferCommenceMessageResponseHash returns the TransferCommenceMessageResponseHash field value if set, zero value otherwise. -func (o *SessionData) GetTransferCommenceMessageResponseHash() string { - if o == nil || IsNil(o.TransferCommenceMessageResponseHash) { - var ret string - return ret - } - return *o.TransferCommenceMessageResponseHash -} - -// GetTransferCommenceMessageResponseHashOk returns a tuple with the TransferCommenceMessageResponseHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetTransferCommenceMessageResponseHashOk() (*string, bool) { - if o == nil || IsNil(o.TransferCommenceMessageResponseHash) { - return nil, false - } - return o.TransferCommenceMessageResponseHash, true -} - -// HasTransferCommenceMessageResponseHash returns a boolean if a field has been set. -func (o *SessionData) HasTransferCommenceMessageResponseHash() bool { - if o != nil && !IsNil(o.TransferCommenceMessageResponseHash) { - return true - } - - return false -} - -// SetTransferCommenceMessageResponseHash gets a reference to the given string and assigns it to the TransferCommenceMessageResponseHash field. -func (o *SessionData) SetTransferCommenceMessageResponseHash(v string) { - o.TransferCommenceMessageResponseHash = &v -} - -// GetClientSignatureTransferCommenceRequestMessage returns the ClientSignatureTransferCommenceRequestMessage field value if set, zero value otherwise. -func (o *SessionData) GetClientSignatureTransferCommenceRequestMessage() string { - if o == nil || IsNil(o.ClientSignatureTransferCommenceRequestMessage) { - var ret string - return ret - } - return *o.ClientSignatureTransferCommenceRequestMessage -} - -// GetClientSignatureTransferCommenceRequestMessageOk returns a tuple with the ClientSignatureTransferCommenceRequestMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetClientSignatureTransferCommenceRequestMessageOk() (*string, bool) { - if o == nil || IsNil(o.ClientSignatureTransferCommenceRequestMessage) { - return nil, false - } - return o.ClientSignatureTransferCommenceRequestMessage, true -} - -// HasClientSignatureTransferCommenceRequestMessage returns a boolean if a field has been set. -func (o *SessionData) HasClientSignatureTransferCommenceRequestMessage() bool { - if o != nil && !IsNil(o.ClientSignatureTransferCommenceRequestMessage) { - return true - } - - return false -} - -// SetClientSignatureTransferCommenceRequestMessage gets a reference to the given string and assigns it to the ClientSignatureTransferCommenceRequestMessage field. -func (o *SessionData) SetClientSignatureTransferCommenceRequestMessage(v string) { - o.ClientSignatureTransferCommenceRequestMessage = &v -} - -// GetServerSignatureTransferCommenceResponseMessage returns the ServerSignatureTransferCommenceResponseMessage field value if set, zero value otherwise. -func (o *SessionData) GetServerSignatureTransferCommenceResponseMessage() string { - if o == nil || IsNil(o.ServerSignatureTransferCommenceResponseMessage) { - var ret string - return ret - } - return *o.ServerSignatureTransferCommenceResponseMessage -} - -// GetServerSignatureTransferCommenceResponseMessageOk returns a tuple with the ServerSignatureTransferCommenceResponseMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetServerSignatureTransferCommenceResponseMessageOk() (*string, bool) { - if o == nil || IsNil(o.ServerSignatureTransferCommenceResponseMessage) { - return nil, false - } - return o.ServerSignatureTransferCommenceResponseMessage, true -} - -// HasServerSignatureTransferCommenceResponseMessage returns a boolean if a field has been set. -func (o *SessionData) HasServerSignatureTransferCommenceResponseMessage() bool { - if o != nil && !IsNil(o.ServerSignatureTransferCommenceResponseMessage) { - return true - } - - return false -} - -// SetServerSignatureTransferCommenceResponseMessage gets a reference to the given string and assigns it to the ServerSignatureTransferCommenceResponseMessage field. -func (o *SessionData) SetServerSignatureTransferCommenceResponseMessage(v string) { - o.ServerSignatureTransferCommenceResponseMessage = &v -} - -// GetLockEvidenceRequestMessageHash returns the LockEvidenceRequestMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetLockEvidenceRequestMessageHash() string { - if o == nil || IsNil(o.LockEvidenceRequestMessageHash) { - var ret string - return ret - } - return *o.LockEvidenceRequestMessageHash -} - -// GetLockEvidenceRequestMessageHashOk returns a tuple with the LockEvidenceRequestMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLockEvidenceRequestMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.LockEvidenceRequestMessageHash) { - return nil, false - } - return o.LockEvidenceRequestMessageHash, true -} - -// HasLockEvidenceRequestMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasLockEvidenceRequestMessageHash() bool { - if o != nil && !IsNil(o.LockEvidenceRequestMessageHash) { - return true - } - - return false -} - -// SetLockEvidenceRequestMessageHash gets a reference to the given string and assigns it to the LockEvidenceRequestMessageHash field. -func (o *SessionData) SetLockEvidenceRequestMessageHash(v string) { - o.LockEvidenceRequestMessageHash = &v -} - -// GetLockEvidenceResponseMessageHash returns the LockEvidenceResponseMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetLockEvidenceResponseMessageHash() string { - if o == nil || IsNil(o.LockEvidenceResponseMessageHash) { - var ret string - return ret - } - return *o.LockEvidenceResponseMessageHash -} - -// GetLockEvidenceResponseMessageHashOk returns a tuple with the LockEvidenceResponseMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLockEvidenceResponseMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.LockEvidenceResponseMessageHash) { - return nil, false - } - return o.LockEvidenceResponseMessageHash, true -} - -// HasLockEvidenceResponseMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasLockEvidenceResponseMessageHash() bool { - if o != nil && !IsNil(o.LockEvidenceResponseMessageHash) { - return true - } - - return false -} - -// SetLockEvidenceResponseMessageHash gets a reference to the given string and assigns it to the LockEvidenceResponseMessageHash field. -func (o *SessionData) SetLockEvidenceResponseMessageHash(v string) { - o.LockEvidenceResponseMessageHash = &v -} - -// GetClientSignatureLockEvidenceRequestMessage returns the ClientSignatureLockEvidenceRequestMessage field value if set, zero value otherwise. -func (o *SessionData) GetClientSignatureLockEvidenceRequestMessage() string { - if o == nil || IsNil(o.ClientSignatureLockEvidenceRequestMessage) { - var ret string - return ret - } - return *o.ClientSignatureLockEvidenceRequestMessage -} - -// GetClientSignatureLockEvidenceRequestMessageOk returns a tuple with the ClientSignatureLockEvidenceRequestMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetClientSignatureLockEvidenceRequestMessageOk() (*string, bool) { - if o == nil || IsNil(o.ClientSignatureLockEvidenceRequestMessage) { - return nil, false - } - return o.ClientSignatureLockEvidenceRequestMessage, true -} - -// HasClientSignatureLockEvidenceRequestMessage returns a boolean if a field has been set. -func (o *SessionData) HasClientSignatureLockEvidenceRequestMessage() bool { - if o != nil && !IsNil(o.ClientSignatureLockEvidenceRequestMessage) { - return true - } - - return false -} - -// SetClientSignatureLockEvidenceRequestMessage gets a reference to the given string and assigns it to the ClientSignatureLockEvidenceRequestMessage field. -func (o *SessionData) SetClientSignatureLockEvidenceRequestMessage(v string) { - o.ClientSignatureLockEvidenceRequestMessage = &v -} - -// GetServerSignatureLockEvidenceResponseMessage returns the ServerSignatureLockEvidenceResponseMessage field value if set, zero value otherwise. -func (o *SessionData) GetServerSignatureLockEvidenceResponseMessage() string { - if o == nil || IsNil(o.ServerSignatureLockEvidenceResponseMessage) { - var ret string - return ret - } - return *o.ServerSignatureLockEvidenceResponseMessage -} - -// GetServerSignatureLockEvidenceResponseMessageOk returns a tuple with the ServerSignatureLockEvidenceResponseMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetServerSignatureLockEvidenceResponseMessageOk() (*string, bool) { - if o == nil || IsNil(o.ServerSignatureLockEvidenceResponseMessage) { - return nil, false - } - return o.ServerSignatureLockEvidenceResponseMessage, true -} - -// HasServerSignatureLockEvidenceResponseMessage returns a boolean if a field has been set. -func (o *SessionData) HasServerSignatureLockEvidenceResponseMessage() bool { - if o != nil && !IsNil(o.ServerSignatureLockEvidenceResponseMessage) { - return true - } - - return false -} - -// SetServerSignatureLockEvidenceResponseMessage gets a reference to the given string and assigns it to the ServerSignatureLockEvidenceResponseMessage field. -func (o *SessionData) SetServerSignatureLockEvidenceResponseMessage(v string) { - o.ServerSignatureLockEvidenceResponseMessage = &v -} - -// GetLockEvidenceClaim returns the LockEvidenceClaim field value if set, zero value otherwise. -func (o *SessionData) GetLockEvidenceClaim() string { - if o == nil || IsNil(o.LockEvidenceClaim) { - var ret string - return ret - } - return *o.LockEvidenceClaim -} - -// GetLockEvidenceClaimOk returns a tuple with the LockEvidenceClaim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLockEvidenceClaimOk() (*string, bool) { - if o == nil || IsNil(o.LockEvidenceClaim) { - return nil, false - } - return o.LockEvidenceClaim, true -} - -// HasLockEvidenceClaim returns a boolean if a field has been set. -func (o *SessionData) HasLockEvidenceClaim() bool { - if o != nil && !IsNil(o.LockEvidenceClaim) { - return true - } - - return false -} - -// SetLockEvidenceClaim gets a reference to the given string and assigns it to the LockEvidenceClaim field. -func (o *SessionData) SetLockEvidenceClaim(v string) { - o.LockEvidenceClaim = &v -} - -// GetCommitPrepareRequestMessageHash returns the CommitPrepareRequestMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetCommitPrepareRequestMessageHash() string { - if o == nil || IsNil(o.CommitPrepareRequestMessageHash) { - var ret string - return ret - } - return *o.CommitPrepareRequestMessageHash -} - -// GetCommitPrepareRequestMessageHashOk returns a tuple with the CommitPrepareRequestMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitPrepareRequestMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.CommitPrepareRequestMessageHash) { - return nil, false - } - return o.CommitPrepareRequestMessageHash, true -} - -// HasCommitPrepareRequestMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasCommitPrepareRequestMessageHash() bool { - if o != nil && !IsNil(o.CommitPrepareRequestMessageHash) { - return true - } - - return false -} - -// SetCommitPrepareRequestMessageHash gets a reference to the given string and assigns it to the CommitPrepareRequestMessageHash field. -func (o *SessionData) SetCommitPrepareRequestMessageHash(v string) { - o.CommitPrepareRequestMessageHash = &v -} - -// GetCommitPrepareResponseMessageHash returns the CommitPrepareResponseMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetCommitPrepareResponseMessageHash() string { - if o == nil || IsNil(o.CommitPrepareResponseMessageHash) { - var ret string - return ret - } - return *o.CommitPrepareResponseMessageHash -} - -// GetCommitPrepareResponseMessageHashOk returns a tuple with the CommitPrepareResponseMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitPrepareResponseMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.CommitPrepareResponseMessageHash) { - return nil, false - } - return o.CommitPrepareResponseMessageHash, true -} - -// HasCommitPrepareResponseMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasCommitPrepareResponseMessageHash() bool { - if o != nil && !IsNil(o.CommitPrepareResponseMessageHash) { - return true - } - - return false -} - -// SetCommitPrepareResponseMessageHash gets a reference to the given string and assigns it to the CommitPrepareResponseMessageHash field. -func (o *SessionData) SetCommitPrepareResponseMessageHash(v string) { - o.CommitPrepareResponseMessageHash = &v -} - -// GetClientSignatureCommitPreparationRequestMessage returns the ClientSignatureCommitPreparationRequestMessage field value if set, zero value otherwise. -func (o *SessionData) GetClientSignatureCommitPreparationRequestMessage() string { - if o == nil || IsNil(o.ClientSignatureCommitPreparationRequestMessage) { - var ret string - return ret - } - return *o.ClientSignatureCommitPreparationRequestMessage -} - -// GetClientSignatureCommitPreparationRequestMessageOk returns a tuple with the ClientSignatureCommitPreparationRequestMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetClientSignatureCommitPreparationRequestMessageOk() (*string, bool) { - if o == nil || IsNil(o.ClientSignatureCommitPreparationRequestMessage) { - return nil, false - } - return o.ClientSignatureCommitPreparationRequestMessage, true -} - -// HasClientSignatureCommitPreparationRequestMessage returns a boolean if a field has been set. -func (o *SessionData) HasClientSignatureCommitPreparationRequestMessage() bool { - if o != nil && !IsNil(o.ClientSignatureCommitPreparationRequestMessage) { - return true - } - - return false -} - -// SetClientSignatureCommitPreparationRequestMessage gets a reference to the given string and assigns it to the ClientSignatureCommitPreparationRequestMessage field. -func (o *SessionData) SetClientSignatureCommitPreparationRequestMessage(v string) { - o.ClientSignatureCommitPreparationRequestMessage = &v -} - -// GetServerSignatureCommitPreparationResponseMessage returns the ServerSignatureCommitPreparationResponseMessage field value if set, zero value otherwise. -func (o *SessionData) GetServerSignatureCommitPreparationResponseMessage() string { - if o == nil || IsNil(o.ServerSignatureCommitPreparationResponseMessage) { - var ret string - return ret - } - return *o.ServerSignatureCommitPreparationResponseMessage -} - -// GetServerSignatureCommitPreparationResponseMessageOk returns a tuple with the ServerSignatureCommitPreparationResponseMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetServerSignatureCommitPreparationResponseMessageOk() (*string, bool) { - if o == nil || IsNil(o.ServerSignatureCommitPreparationResponseMessage) { - return nil, false - } - return o.ServerSignatureCommitPreparationResponseMessage, true -} - -// HasServerSignatureCommitPreparationResponseMessage returns a boolean if a field has been set. -func (o *SessionData) HasServerSignatureCommitPreparationResponseMessage() bool { - if o != nil && !IsNil(o.ServerSignatureCommitPreparationResponseMessage) { - return true - } - - return false -} - -// SetServerSignatureCommitPreparationResponseMessage gets a reference to the given string and assigns it to the ServerSignatureCommitPreparationResponseMessage field. -func (o *SessionData) SetServerSignatureCommitPreparationResponseMessage(v string) { - o.ServerSignatureCommitPreparationResponseMessage = &v -} - -// GetCommitFinalRequestMessageHash returns the CommitFinalRequestMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetCommitFinalRequestMessageHash() string { - if o == nil || IsNil(o.CommitFinalRequestMessageHash) { - var ret string - return ret - } - return *o.CommitFinalRequestMessageHash -} - -// GetCommitFinalRequestMessageHashOk returns a tuple with the CommitFinalRequestMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitFinalRequestMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.CommitFinalRequestMessageHash) { - return nil, false - } - return o.CommitFinalRequestMessageHash, true -} - -// HasCommitFinalRequestMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasCommitFinalRequestMessageHash() bool { - if o != nil && !IsNil(o.CommitFinalRequestMessageHash) { - return true - } - - return false -} - -// SetCommitFinalRequestMessageHash gets a reference to the given string and assigns it to the CommitFinalRequestMessageHash field. -func (o *SessionData) SetCommitFinalRequestMessageHash(v string) { - o.CommitFinalRequestMessageHash = &v -} - -// GetCommitFinalResponseMessageHash returns the CommitFinalResponseMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetCommitFinalResponseMessageHash() string { - if o == nil || IsNil(o.CommitFinalResponseMessageHash) { - var ret string - return ret - } - return *o.CommitFinalResponseMessageHash -} - -// GetCommitFinalResponseMessageHashOk returns a tuple with the CommitFinalResponseMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitFinalResponseMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.CommitFinalResponseMessageHash) { - return nil, false - } - return o.CommitFinalResponseMessageHash, true -} - -// HasCommitFinalResponseMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasCommitFinalResponseMessageHash() bool { - if o != nil && !IsNil(o.CommitFinalResponseMessageHash) { - return true - } - - return false -} - -// SetCommitFinalResponseMessageHash gets a reference to the given string and assigns it to the CommitFinalResponseMessageHash field. -func (o *SessionData) SetCommitFinalResponseMessageHash(v string) { - o.CommitFinalResponseMessageHash = &v -} - -// GetCommitFinalClaim returns the CommitFinalClaim field value if set, zero value otherwise. -func (o *SessionData) GetCommitFinalClaim() string { - if o == nil || IsNil(o.CommitFinalClaim) { - var ret string - return ret - } - return *o.CommitFinalClaim -} - -// GetCommitFinalClaimOk returns a tuple with the CommitFinalClaim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitFinalClaimOk() (*string, bool) { - if o == nil || IsNil(o.CommitFinalClaim) { - return nil, false - } - return o.CommitFinalClaim, true -} - -// HasCommitFinalClaim returns a boolean if a field has been set. -func (o *SessionData) HasCommitFinalClaim() bool { - if o != nil && !IsNil(o.CommitFinalClaim) { - return true - } - - return false -} - -// SetCommitFinalClaim gets a reference to the given string and assigns it to the CommitFinalClaim field. -func (o *SessionData) SetCommitFinalClaim(v string) { - o.CommitFinalClaim = &v -} - -// GetCommitFinalClaimFormat returns the CommitFinalClaimFormat field value if set, zero value otherwise. -func (o *SessionData) GetCommitFinalClaimFormat() string { - if o == nil || IsNil(o.CommitFinalClaimFormat) { - var ret string - return ret - } - return *o.CommitFinalClaimFormat -} - -// GetCommitFinalClaimFormatOk returns a tuple with the CommitFinalClaimFormat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitFinalClaimFormatOk() (*string, bool) { - if o == nil || IsNil(o.CommitFinalClaimFormat) { - return nil, false - } - return o.CommitFinalClaimFormat, true -} - -// HasCommitFinalClaimFormat returns a boolean if a field has been set. -func (o *SessionData) HasCommitFinalClaimFormat() bool { - if o != nil && !IsNil(o.CommitFinalClaimFormat) { - return true - } - - return false -} - -// SetCommitFinalClaimFormat gets a reference to the given string and assigns it to the CommitFinalClaimFormat field. -func (o *SessionData) SetCommitFinalClaimFormat(v string) { - o.CommitFinalClaimFormat = &v -} - -// GetCommitAcknowledgementClaim returns the CommitAcknowledgementClaim field value if set, zero value otherwise. -func (o *SessionData) GetCommitAcknowledgementClaim() string { - if o == nil || IsNil(o.CommitAcknowledgementClaim) { - var ret string - return ret - } - return *o.CommitAcknowledgementClaim -} - -// GetCommitAcknowledgementClaimOk returns a tuple with the CommitAcknowledgementClaim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitAcknowledgementClaimOk() (*string, bool) { - if o == nil || IsNil(o.CommitAcknowledgementClaim) { - return nil, false - } - return o.CommitAcknowledgementClaim, true -} - -// HasCommitAcknowledgementClaim returns a boolean if a field has been set. -func (o *SessionData) HasCommitAcknowledgementClaim() bool { - if o != nil && !IsNil(o.CommitAcknowledgementClaim) { - return true - } - - return false -} - -// SetCommitAcknowledgementClaim gets a reference to the given string and assigns it to the CommitAcknowledgementClaim field. -func (o *SessionData) SetCommitAcknowledgementClaim(v string) { - o.CommitAcknowledgementClaim = &v -} - -// GetCommitAcknowledgementClaimFormat returns the CommitAcknowledgementClaimFormat field value if set, zero value otherwise. -func (o *SessionData) GetCommitAcknowledgementClaimFormat() string { - if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { - var ret string - return ret - } - return *o.CommitAcknowledgementClaimFormat -} - -// GetCommitAcknowledgementClaimFormatOk returns a tuple with the CommitAcknowledgementClaimFormat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetCommitAcknowledgementClaimFormatOk() (*string, bool) { - if o == nil || IsNil(o.CommitAcknowledgementClaimFormat) { - return nil, false - } - return o.CommitAcknowledgementClaimFormat, true -} - -// HasCommitAcknowledgementClaimFormat returns a boolean if a field has been set. -func (o *SessionData) HasCommitAcknowledgementClaimFormat() bool { - if o != nil && !IsNil(o.CommitAcknowledgementClaimFormat) { - return true - } - - return false -} - -// SetCommitAcknowledgementClaimFormat gets a reference to the given string and assigns it to the CommitAcknowledgementClaimFormat field. -func (o *SessionData) SetCommitAcknowledgementClaimFormat(v string) { - o.CommitAcknowledgementClaimFormat = &v -} - -// GetClientSignatureCommitFinalRequestMessage returns the ClientSignatureCommitFinalRequestMessage field value if set, zero value otherwise. -func (o *SessionData) GetClientSignatureCommitFinalRequestMessage() string { - if o == nil || IsNil(o.ClientSignatureCommitFinalRequestMessage) { - var ret string - return ret - } - return *o.ClientSignatureCommitFinalRequestMessage -} - -// GetClientSignatureCommitFinalRequestMessageOk returns a tuple with the ClientSignatureCommitFinalRequestMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetClientSignatureCommitFinalRequestMessageOk() (*string, bool) { - if o == nil || IsNil(o.ClientSignatureCommitFinalRequestMessage) { - return nil, false - } - return o.ClientSignatureCommitFinalRequestMessage, true -} - -// HasClientSignatureCommitFinalRequestMessage returns a boolean if a field has been set. -func (o *SessionData) HasClientSignatureCommitFinalRequestMessage() bool { - if o != nil && !IsNil(o.ClientSignatureCommitFinalRequestMessage) { - return true - } - - return false -} - -// SetClientSignatureCommitFinalRequestMessage gets a reference to the given string and assigns it to the ClientSignatureCommitFinalRequestMessage field. -func (o *SessionData) SetClientSignatureCommitFinalRequestMessage(v string) { - o.ClientSignatureCommitFinalRequestMessage = &v -} - -// GetServerSignatureCommitFinalResponseMessage returns the ServerSignatureCommitFinalResponseMessage field value if set, zero value otherwise. -func (o *SessionData) GetServerSignatureCommitFinalResponseMessage() string { - if o == nil || IsNil(o.ServerSignatureCommitFinalResponseMessage) { - var ret string - return ret - } - return *o.ServerSignatureCommitFinalResponseMessage -} - -// GetServerSignatureCommitFinalResponseMessageOk returns a tuple with the ServerSignatureCommitFinalResponseMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetServerSignatureCommitFinalResponseMessageOk() (*string, bool) { - if o == nil || IsNil(o.ServerSignatureCommitFinalResponseMessage) { - return nil, false - } - return o.ServerSignatureCommitFinalResponseMessage, true -} - -// HasServerSignatureCommitFinalResponseMessage returns a boolean if a field has been set. -func (o *SessionData) HasServerSignatureCommitFinalResponseMessage() bool { - if o != nil && !IsNil(o.ServerSignatureCommitFinalResponseMessage) { - return true - } - - return false -} - -// SetServerSignatureCommitFinalResponseMessage gets a reference to the given string and assigns it to the ServerSignatureCommitFinalResponseMessage field. -func (o *SessionData) SetServerSignatureCommitFinalResponseMessage(v string) { - o.ServerSignatureCommitFinalResponseMessage = &v -} - -// GetTransferCompleteMessageHash returns the TransferCompleteMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetTransferCompleteMessageHash() string { - if o == nil || IsNil(o.TransferCompleteMessageHash) { - var ret string - return ret - } - return *o.TransferCompleteMessageHash -} - -// GetTransferCompleteMessageHashOk returns a tuple with the TransferCompleteMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetTransferCompleteMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.TransferCompleteMessageHash) { - return nil, false - } - return o.TransferCompleteMessageHash, true -} - -// HasTransferCompleteMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasTransferCompleteMessageHash() bool { - if o != nil && !IsNil(o.TransferCompleteMessageHash) { - return true - } - - return false -} - -// SetTransferCompleteMessageHash gets a reference to the given string and assigns it to the TransferCompleteMessageHash field. -func (o *SessionData) SetTransferCompleteMessageHash(v string) { - o.TransferCompleteMessageHash = &v -} - -// GetClientSignatureTransferCompleteMessage returns the ClientSignatureTransferCompleteMessage field value if set, zero value otherwise. -func (o *SessionData) GetClientSignatureTransferCompleteMessage() string { - if o == nil || IsNil(o.ClientSignatureTransferCompleteMessage) { - var ret string - return ret - } - return *o.ClientSignatureTransferCompleteMessage -} - -// GetClientSignatureTransferCompleteMessageOk returns a tuple with the ClientSignatureTransferCompleteMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetClientSignatureTransferCompleteMessageOk() (*string, bool) { - if o == nil || IsNil(o.ClientSignatureTransferCompleteMessage) { - return nil, false - } - return o.ClientSignatureTransferCompleteMessage, true -} - -// HasClientSignatureTransferCompleteMessage returns a boolean if a field has been set. -func (o *SessionData) HasClientSignatureTransferCompleteMessage() bool { - if o != nil && !IsNil(o.ClientSignatureTransferCompleteMessage) { - return true - } - - return false -} - -// SetClientSignatureTransferCompleteMessage gets a reference to the given string and assigns it to the ClientSignatureTransferCompleteMessage field. -func (o *SessionData) SetClientSignatureTransferCompleteMessage(v string) { - o.ClientSignatureTransferCompleteMessage = &v -} - -// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise. -func (o *SessionData) GetMaxRetries() float32 { - if o == nil || IsNil(o.MaxRetries) { - var ret float32 - return ret - } - return *o.MaxRetries -} - -// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetMaxRetriesOk() (*float32, bool) { - if o == nil || IsNil(o.MaxRetries) { - return nil, false - } - return o.MaxRetries, true -} - -// HasMaxRetries returns a boolean if a field has been set. -func (o *SessionData) HasMaxRetries() bool { - if o != nil && !IsNil(o.MaxRetries) { - return true - } - - return false -} - -// SetMaxRetries gets a reference to the given float32 and assigns it to the MaxRetries field. -func (o *SessionData) SetMaxRetries(v float32) { - o.MaxRetries = &v -} - -// GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field value if set, zero value otherwise. -func (o *SessionData) GetRecipientLedgerAssetID() string { - if o == nil || IsNil(o.RecipientLedgerAssetID) { - var ret string - return ret - } - return *o.RecipientLedgerAssetID -} - -// GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRecipientLedgerAssetIDOk() (*string, bool) { - if o == nil || IsNil(o.RecipientLedgerAssetID) { - return nil, false - } - return o.RecipientLedgerAssetID, true -} - -// HasRecipientLedgerAssetID returns a boolean if a field has been set. -func (o *SessionData) HasRecipientLedgerAssetID() bool { - if o != nil && !IsNil(o.RecipientLedgerAssetID) { - return true - } - - return false -} - -// SetRecipientLedgerAssetID gets a reference to the given string and assigns it to the RecipientLedgerAssetID field. -func (o *SessionData) SetRecipientLedgerAssetID(v string) { - o.RecipientLedgerAssetID = &v -} - -// GetSourceLedgerAssetID returns the SourceLedgerAssetID field value if set, zero value otherwise. -func (o *SessionData) GetSourceLedgerAssetID() string { - if o == nil || IsNil(o.SourceLedgerAssetID) { - var ret string - return ret - } - return *o.SourceLedgerAssetID -} - -// GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetSourceLedgerAssetIDOk() (*string, bool) { - if o == nil || IsNil(o.SourceLedgerAssetID) { - return nil, false - } - return o.SourceLedgerAssetID, true -} - -// HasSourceLedgerAssetID returns a boolean if a field has been set. -func (o *SessionData) HasSourceLedgerAssetID() bool { - if o != nil && !IsNil(o.SourceLedgerAssetID) { - return true - } - - return false -} - -// SetSourceLedgerAssetID gets a reference to the given string and assigns it to the SourceLedgerAssetID field. -func (o *SessionData) SetSourceLedgerAssetID(v string) { - o.SourceLedgerAssetID = &v -} - -// GetMaxTimeout returns the MaxTimeout field value if set, zero value otherwise. -func (o *SessionData) GetMaxTimeout() float32 { - if o == nil || IsNil(o.MaxTimeout) { - var ret float32 - return ret - } - return *o.MaxTimeout -} - -// GetMaxTimeoutOk returns a tuple with the MaxTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetMaxTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.MaxTimeout) { - return nil, false - } - return o.MaxTimeout, true -} - -// HasMaxTimeout returns a boolean if a field has been set. -func (o *SessionData) HasMaxTimeout() bool { - if o != nil && !IsNil(o.MaxTimeout) { - return true - } - - return false -} - -// SetMaxTimeout gets a reference to the given float32 and assigns it to the MaxTimeout field. -func (o *SessionData) SetMaxTimeout(v float32) { - o.MaxTimeout = &v -} - -// GetLastLogEntryTimestamp returns the LastLogEntryTimestamp field value if set, zero value otherwise. -func (o *SessionData) GetLastLogEntryTimestamp() string { - if o == nil || IsNil(o.LastLogEntryTimestamp) { - var ret string - return ret - } - return *o.LastLogEntryTimestamp -} - -// GetLastLogEntryTimestampOk returns a tuple with the LastLogEntryTimestamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLastLogEntryTimestampOk() (*string, bool) { - if o == nil || IsNil(o.LastLogEntryTimestamp) { - return nil, false - } - return o.LastLogEntryTimestamp, true -} - -// HasLastLogEntryTimestamp returns a boolean if a field has been set. -func (o *SessionData) HasLastLogEntryTimestamp() bool { - if o != nil && !IsNil(o.LastLogEntryTimestamp) { - return true - } - - return false -} - -// SetLastLogEntryTimestamp gets a reference to the given string and assigns it to the LastLogEntryTimestamp field. -func (o *SessionData) SetLastLogEntryTimestamp(v string) { - o.LastLogEntryTimestamp = &v -} - -// GetUnlockAssetClaim returns the UnlockAssetClaim field value if set, zero value otherwise. -func (o *SessionData) GetUnlockAssetClaim() string { - if o == nil || IsNil(o.UnlockAssetClaim) { - var ret string - return ret - } - return *o.UnlockAssetClaim -} - -// GetUnlockAssetClaimOk returns a tuple with the UnlockAssetClaim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetUnlockAssetClaimOk() (*string, bool) { - if o == nil || IsNil(o.UnlockAssetClaim) { - return nil, false - } - return o.UnlockAssetClaim, true -} - -// HasUnlockAssetClaim returns a boolean if a field has been set. -func (o *SessionData) HasUnlockAssetClaim() bool { - if o != nil && !IsNil(o.UnlockAssetClaim) { - return true - } - - return false -} - -// SetUnlockAssetClaim gets a reference to the given string and assigns it to the UnlockAssetClaim field. -func (o *SessionData) SetUnlockAssetClaim(v string) { - o.UnlockAssetClaim = &v -} - -// GetRecreateAssetClaim returns the RecreateAssetClaim field value if set, zero value otherwise. -func (o *SessionData) GetRecreateAssetClaim() string { - if o == nil || IsNil(o.RecreateAssetClaim) { - var ret string - return ret - } - return *o.RecreateAssetClaim -} - -// GetRecreateAssetClaimOk returns a tuple with the RecreateAssetClaim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRecreateAssetClaimOk() (*string, bool) { - if o == nil || IsNil(o.RecreateAssetClaim) { - return nil, false - } - return o.RecreateAssetClaim, true -} - -// HasRecreateAssetClaim returns a boolean if a field has been set. -func (o *SessionData) HasRecreateAssetClaim() bool { - if o != nil && !IsNil(o.RecreateAssetClaim) { - return true - } - - return false -} - -// SetRecreateAssetClaim gets a reference to the given string and assigns it to the RecreateAssetClaim field. -func (o *SessionData) SetRecreateAssetClaim(v string) { - o.RecreateAssetClaim = &v -} - -// GetDeleteAssetClaim returns the DeleteAssetClaim field value if set, zero value otherwise. -func (o *SessionData) GetDeleteAssetClaim() string { - if o == nil || IsNil(o.DeleteAssetClaim) { - var ret string - return ret - } - return *o.DeleteAssetClaim -} - -// GetDeleteAssetClaimOk returns a tuple with the DeleteAssetClaim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetDeleteAssetClaimOk() (*string, bool) { - if o == nil || IsNil(o.DeleteAssetClaim) { - return nil, false - } - return o.DeleteAssetClaim, true -} - -// HasDeleteAssetClaim returns a boolean if a field has been set. -func (o *SessionData) HasDeleteAssetClaim() bool { - if o != nil && !IsNil(o.DeleteAssetClaim) { - return true - } - - return false -} - -// SetDeleteAssetClaim gets a reference to the given string and assigns it to the DeleteAssetClaim field. -func (o *SessionData) SetDeleteAssetClaim(v string) { - o.DeleteAssetClaim = &v -} - -// GetLastMessageReceivedTimestamp returns the LastMessageReceivedTimestamp field value if set, zero value otherwise. -func (o *SessionData) GetLastMessageReceivedTimestamp() string { - if o == nil || IsNil(o.LastMessageReceivedTimestamp) { - var ret string - return ret - } - return *o.LastMessageReceivedTimestamp -} - -// GetLastMessageReceivedTimestampOk returns a tuple with the LastMessageReceivedTimestamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetLastMessageReceivedTimestampOk() (*string, bool) { - if o == nil || IsNil(o.LastMessageReceivedTimestamp) { - return nil, false - } - return o.LastMessageReceivedTimestamp, true -} - -// HasLastMessageReceivedTimestamp returns a boolean if a field has been set. -func (o *SessionData) HasLastMessageReceivedTimestamp() bool { - if o != nil && !IsNil(o.LastMessageReceivedTimestamp) { - return true - } - - return false -} - -// SetLastMessageReceivedTimestamp gets a reference to the given string and assigns it to the LastMessageReceivedTimestamp field. -func (o *SessionData) SetLastMessageReceivedTimestamp(v string) { - o.LastMessageReceivedTimestamp = &v -} - -// GetRollback returns the Rollback field value if set, zero value otherwise. -func (o *SessionData) GetRollback() bool { - if o == nil || IsNil(o.Rollback) { - var ret bool - return ret - } - return *o.Rollback -} - -// GetRollbackOk returns a tuple with the Rollback field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRollbackOk() (*bool, bool) { - if o == nil || IsNil(o.Rollback) { - return nil, false - } - return o.Rollback, true -} - -// HasRollback returns a boolean if a field has been set. -func (o *SessionData) HasRollback() bool { - if o != nil && !IsNil(o.Rollback) { - return true - } - - return false -} - -// SetRollback gets a reference to the given bool and assigns it to the Rollback field. -func (o *SessionData) SetRollback(v bool) { - o.Rollback = &v -} - -// GetRollbackMessageHash returns the RollbackMessageHash field value if set, zero value otherwise. -func (o *SessionData) GetRollbackMessageHash() string { - if o == nil || IsNil(o.RollbackMessageHash) { - var ret string - return ret - } - return *o.RollbackMessageHash -} - -// GetRollbackMessageHashOk returns a tuple with the RollbackMessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRollbackMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.RollbackMessageHash) { - return nil, false - } - return o.RollbackMessageHash, true -} - -// HasRollbackMessageHash returns a boolean if a field has been set. -func (o *SessionData) HasRollbackMessageHash() bool { - if o != nil && !IsNil(o.RollbackMessageHash) { - return true - } - - return false -} - -// SetRollbackMessageHash gets a reference to the given string and assigns it to the RollbackMessageHash field. -func (o *SessionData) SetRollbackMessageHash(v string) { - o.RollbackMessageHash = &v -} - -// GetRollbackProofs returns the RollbackProofs field value if set, zero value otherwise. -func (o *SessionData) GetRollbackProofs() []string { - if o == nil || IsNil(o.RollbackProofs) { - var ret []string - return ret - } - return o.RollbackProofs -} - -// GetRollbackProofsOk returns a tuple with the RollbackProofs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRollbackProofsOk() ([]string, bool) { - if o == nil || IsNil(o.RollbackProofs) { - return nil, false - } - return o.RollbackProofs, true -} - -// HasRollbackProofs returns a boolean if a field has been set. -func (o *SessionData) HasRollbackProofs() bool { - if o != nil && !IsNil(o.RollbackProofs) { - return true - } - - return false -} - -// SetRollbackProofs gets a reference to the given []string and assigns it to the RollbackProofs field. -func (o *SessionData) SetRollbackProofs(v []string) { - o.RollbackProofs = v -} - -// GetRollbackActionsPerformed returns the RollbackActionsPerformed field value if set, zero value otherwise. -func (o *SessionData) GetRollbackActionsPerformed() []string { - if o == nil || IsNil(o.RollbackActionsPerformed) { - var ret []string - return ret - } - return o.RollbackActionsPerformed -} - -// GetRollbackActionsPerformedOk returns a tuple with the RollbackActionsPerformed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SessionData) GetRollbackActionsPerformedOk() ([]string, bool) { - if o == nil || IsNil(o.RollbackActionsPerformed) { - return nil, false - } - return o.RollbackActionsPerformed, true -} - -// HasRollbackActionsPerformed returns a boolean if a field has been set. -func (o *SessionData) HasRollbackActionsPerformed() bool { - if o != nil && !IsNil(o.RollbackActionsPerformed) { - return true - } - - return false -} - -// SetRollbackActionsPerformed gets a reference to the given []string and assigns it to the RollbackActionsPerformed field. -func (o *SessionData) SetRollbackActionsPerformed(v []string) { - o.RollbackActionsPerformed = v -} - -func (o SessionData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SessionData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Step) { - toSerialize["step"] = o.Step - } - if !IsNil(o.Version) { - toSerialize["version"] = o.Version - } - if !IsNil(o.LastSequenceNumber) { - toSerialize["lastSequenceNumber"] = o.LastSequenceNumber - } - if !IsNil(o.LoggingProfile) { - toSerialize["loggingProfile"] = o.LoggingProfile - } - if !IsNil(o.AccessControlProfile) { - toSerialize["accessControlProfile"] = o.AccessControlProfile - } - if !IsNil(o.ApplicationProfile) { - toSerialize["applicationProfile"] = o.ApplicationProfile - } - if !IsNil(o.PayloadProfile) { - toSerialize["payloadProfile"] = o.PayloadProfile - } - if !IsNil(o.AssetProfile) { - toSerialize["assetProfile"] = o.AssetProfile - } - if !IsNil(o.AllowedSourceBackupGateways) { - toSerialize["allowedSourceBackupGateways"] = o.AllowedSourceBackupGateways - } - if !IsNil(o.AllowedRecipientBackupGateways) { - toSerialize["allowedRecipientBackupGateways"] = o.AllowedRecipientBackupGateways - } - if !IsNil(o.SourceBasePath) { - toSerialize["sourceBasePath"] = o.SourceBasePath - } - if !IsNil(o.RecipientBasePath) { - toSerialize["recipientBasePath"] = o.RecipientBasePath - } - if !IsNil(o.OriginatorPubkey) { - toSerialize["originatorPubkey"] = o.OriginatorPubkey - } - if !IsNil(o.BeneficiaryPubkey) { - toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey - } - if !IsNil(o.SourceGatewayPubkey) { - toSerialize["sourceGatewayPubkey"] = o.SourceGatewayPubkey - } - if !IsNil(o.SourceGatewayDltSystem) { - toSerialize["sourceGatewayDltSystem"] = o.SourceGatewayDltSystem - } - if !IsNil(o.RecipientGatewayPubkey) { - toSerialize["recipientGatewayPubkey"] = o.RecipientGatewayPubkey - } - if !IsNil(o.RecipientGatewayDltSystem) { - toSerialize["recipientGatewayDltSystem"] = o.RecipientGatewayDltSystem - } - if !IsNil(o.InitializationRequestMessageHash) { - toSerialize["initializationRequestMessageHash"] = o.InitializationRequestMessageHash - } - if !IsNil(o.InitializationResponseMessageHash) { - toSerialize["initializationResponseMessageHash"] = o.InitializationResponseMessageHash - } - if !IsNil(o.InitializationRequestMessageRcvTimeStamp) { - toSerialize["initializationRequestMessageRcvTimeStamp"] = o.InitializationRequestMessageRcvTimeStamp - } - if !IsNil(o.InitializationRequestMessageProcessedTimeStamp) { - toSerialize["initializationRequestMessageProcessedTimeStamp"] = o.InitializationRequestMessageProcessedTimeStamp - } - if !IsNil(o.ClientSignatureInitializationRequestMessage) { - toSerialize["clientSignatureInitializationRequestMessage"] = o.ClientSignatureInitializationRequestMessage - } - if !IsNil(o.ServerSignatureInitializationResponseMessage) { - toSerialize["serverSignatureInitializationResponseMessage"] = o.ServerSignatureInitializationResponseMessage - } - if !IsNil(o.TransferCommenceMessageRequestHash) { - toSerialize["transferCommenceMessageRequestHash"] = o.TransferCommenceMessageRequestHash - } - if !IsNil(o.TransferCommenceMessageResponseHash) { - toSerialize["transferCommenceMessageResponseHash"] = o.TransferCommenceMessageResponseHash - } - if !IsNil(o.ClientSignatureTransferCommenceRequestMessage) { - toSerialize["clientSignatureTransferCommenceRequestMessage"] = o.ClientSignatureTransferCommenceRequestMessage - } - if !IsNil(o.ServerSignatureTransferCommenceResponseMessage) { - toSerialize["serverSignatureTransferCommenceResponseMessage"] = o.ServerSignatureTransferCommenceResponseMessage - } - if !IsNil(o.LockEvidenceRequestMessageHash) { - toSerialize["lockEvidenceRequestMessageHash"] = o.LockEvidenceRequestMessageHash - } - if !IsNil(o.LockEvidenceResponseMessageHash) { - toSerialize["lockEvidenceResponseMessageHash"] = o.LockEvidenceResponseMessageHash - } - if !IsNil(o.ClientSignatureLockEvidenceRequestMessage) { - toSerialize["clientSignatureLockEvidenceRequestMessage"] = o.ClientSignatureLockEvidenceRequestMessage - } - if !IsNil(o.ServerSignatureLockEvidenceResponseMessage) { - toSerialize["serverSignatureLockEvidenceResponseMessage"] = o.ServerSignatureLockEvidenceResponseMessage - } - if !IsNil(o.LockEvidenceClaim) { - toSerialize["lockEvidenceClaim"] = o.LockEvidenceClaim - } - if !IsNil(o.CommitPrepareRequestMessageHash) { - toSerialize["commitPrepareRequestMessageHash"] = o.CommitPrepareRequestMessageHash - } - if !IsNil(o.CommitPrepareResponseMessageHash) { - toSerialize["commitPrepareResponseMessageHash"] = o.CommitPrepareResponseMessageHash - } - if !IsNil(o.ClientSignatureCommitPreparationRequestMessage) { - toSerialize["clientSignatureCommitPreparationRequestMessage"] = o.ClientSignatureCommitPreparationRequestMessage - } - if !IsNil(o.ServerSignatureCommitPreparationResponseMessage) { - toSerialize["serverSignatureCommitPreparationResponseMessage"] = o.ServerSignatureCommitPreparationResponseMessage - } - if !IsNil(o.CommitFinalRequestMessageHash) { - toSerialize["commitFinalRequestMessageHash"] = o.CommitFinalRequestMessageHash - } - if !IsNil(o.CommitFinalResponseMessageHash) { - toSerialize["commitFinalResponseMessageHash"] = o.CommitFinalResponseMessageHash - } - if !IsNil(o.CommitFinalClaim) { - toSerialize["commitFinalClaim"] = o.CommitFinalClaim - } - if !IsNil(o.CommitFinalClaimFormat) { - toSerialize["commitFinalClaimFormat"] = o.CommitFinalClaimFormat - } - if !IsNil(o.CommitAcknowledgementClaim) { - toSerialize["commitAcknowledgementClaim"] = o.CommitAcknowledgementClaim - } - if !IsNil(o.CommitAcknowledgementClaimFormat) { - toSerialize["commitAcknowledgementClaimFormat"] = o.CommitAcknowledgementClaimFormat - } - if !IsNil(o.ClientSignatureCommitFinalRequestMessage) { - toSerialize["clientSignatureCommitFinalRequestMessage"] = o.ClientSignatureCommitFinalRequestMessage - } - if !IsNil(o.ServerSignatureCommitFinalResponseMessage) { - toSerialize["serverSignatureCommitFinalResponseMessage"] = o.ServerSignatureCommitFinalResponseMessage - } - if !IsNil(o.TransferCompleteMessageHash) { - toSerialize["transferCompleteMessageHash"] = o.TransferCompleteMessageHash - } - if !IsNil(o.ClientSignatureTransferCompleteMessage) { - toSerialize["clientSignatureTransferCompleteMessage"] = o.ClientSignatureTransferCompleteMessage - } - if !IsNil(o.MaxRetries) { - toSerialize["maxRetries"] = o.MaxRetries - } - if !IsNil(o.RecipientLedgerAssetID) { - toSerialize["recipientLedgerAssetID"] = o.RecipientLedgerAssetID - } - if !IsNil(o.SourceLedgerAssetID) { - toSerialize["sourceLedgerAssetID"] = o.SourceLedgerAssetID - } - if !IsNil(o.MaxTimeout) { - toSerialize["maxTimeout"] = o.MaxTimeout - } - if !IsNil(o.LastLogEntryTimestamp) { - toSerialize["lastLogEntryTimestamp"] = o.LastLogEntryTimestamp - } - if !IsNil(o.UnlockAssetClaim) { - toSerialize["unlockAssetClaim"] = o.UnlockAssetClaim - } - if !IsNil(o.RecreateAssetClaim) { - toSerialize["recreateAssetClaim"] = o.RecreateAssetClaim - } - if !IsNil(o.DeleteAssetClaim) { - toSerialize["deleteAssetClaim"] = o.DeleteAssetClaim - } - if !IsNil(o.LastMessageReceivedTimestamp) { - toSerialize["lastMessageReceivedTimestamp"] = o.LastMessageReceivedTimestamp - } - if !IsNil(o.Rollback) { - toSerialize["rollback"] = o.Rollback - } - if !IsNil(o.RollbackMessageHash) { - toSerialize["rollbackMessageHash"] = o.RollbackMessageHash - } - if !IsNil(o.RollbackProofs) { - toSerialize["rollbackProofs"] = o.RollbackProofs - } - if !IsNil(o.RollbackActionsPerformed) { - toSerialize["rollbackActionsPerformed"] = o.RollbackActionsPerformed - } - return toSerialize, nil -} - -type NullableSessionData struct { - value *SessionData - isSet bool -} - -func (v NullableSessionData) Get() *SessionData { - return v.value -} - -func (v *NullableSessionData) Set(val *SessionData) { - v.value = val - v.isSet = true -} - -func (v NullableSessionData) IsSet() bool { - return v.isSet -} - -func (v *NullableSessionData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSessionData(val *SessionData) *NullableSessionData { - return &NullableSessionData{value: val, isSet: true} -} - -func (v NullableSessionData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSessionData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go deleted file mode 100644 index af71912e2b..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_request.go +++ /dev/null @@ -1,496 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the TransferCommenceV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransferCommenceV1Request{} - -// TransferCommenceV1Request struct for TransferCommenceV1Request -type TransferCommenceV1Request struct { - SessionID string `json:"sessionID"` - MessageType string `json:"messageType"` - OriginatorPubkey string `json:"originatorPubkey"` - BeneficiaryPubkey string `json:"beneficiaryPubkey"` - SenderDltSystem string `json:"senderDltSystem"` - RecipientDltSystem string `json:"recipientDltSystem"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - HashAssetProfile string `json:"hashAssetProfile"` - AssetUnit *int32 `json:"assetUnit,omitempty"` - HashPrevMessage string `json:"hashPrevMessage"` - ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` - Signature string `json:"signature"` - SequenceNumber int32 `json:"sequenceNumber"` -} - -// NewTransferCommenceV1Request instantiates a new TransferCommenceV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransferCommenceV1Request(sessionID string, messageType string, originatorPubkey string, beneficiaryPubkey string, senderDltSystem string, recipientDltSystem string, clientIdentityPubkey string, serverIdentityPubkey string, hashAssetProfile string, hashPrevMessage string, signature string, sequenceNumber int32) *TransferCommenceV1Request { - this := TransferCommenceV1Request{} - this.SessionID = sessionID - this.MessageType = messageType - this.OriginatorPubkey = originatorPubkey - this.BeneficiaryPubkey = beneficiaryPubkey - this.SenderDltSystem = senderDltSystem - this.RecipientDltSystem = recipientDltSystem - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.HashAssetProfile = hashAssetProfile - this.HashPrevMessage = hashPrevMessage - this.Signature = signature - this.SequenceNumber = sequenceNumber - return &this -} - -// NewTransferCommenceV1RequestWithDefaults instantiates a new TransferCommenceV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransferCommenceV1RequestWithDefaults() *TransferCommenceV1Request { - this := TransferCommenceV1Request{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *TransferCommenceV1Request) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *TransferCommenceV1Request) SetSessionID(v string) { - o.SessionID = v -} - -// GetMessageType returns the MessageType field value -func (o *TransferCommenceV1Request) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *TransferCommenceV1Request) SetMessageType(v string) { - o.MessageType = v -} - -// GetOriginatorPubkey returns the OriginatorPubkey field value -func (o *TransferCommenceV1Request) GetOriginatorPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.OriginatorPubkey -} - -// GetOriginatorPubkeyOk returns a tuple with the OriginatorPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetOriginatorPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.OriginatorPubkey, true -} - -// SetOriginatorPubkey sets field value -func (o *TransferCommenceV1Request) SetOriginatorPubkey(v string) { - o.OriginatorPubkey = v -} - -// GetBeneficiaryPubkey returns the BeneficiaryPubkey field value -func (o *TransferCommenceV1Request) GetBeneficiaryPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.BeneficiaryPubkey -} - -// GetBeneficiaryPubkeyOk returns a tuple with the BeneficiaryPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetBeneficiaryPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BeneficiaryPubkey, true -} - -// SetBeneficiaryPubkey sets field value -func (o *TransferCommenceV1Request) SetBeneficiaryPubkey(v string) { - o.BeneficiaryPubkey = v -} - -// GetSenderDltSystem returns the SenderDltSystem field value -func (o *TransferCommenceV1Request) GetSenderDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.SenderDltSystem -} - -// GetSenderDltSystemOk returns a tuple with the SenderDltSystem field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetSenderDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SenderDltSystem, true -} - -// SetSenderDltSystem sets field value -func (o *TransferCommenceV1Request) SetSenderDltSystem(v string) { - o.SenderDltSystem = v -} - -// GetRecipientDltSystem returns the RecipientDltSystem field value -func (o *TransferCommenceV1Request) GetRecipientDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientDltSystem -} - -// GetRecipientDltSystemOk returns a tuple with the RecipientDltSystem field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetRecipientDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientDltSystem, true -} - -// SetRecipientDltSystem sets field value -func (o *TransferCommenceV1Request) SetRecipientDltSystem(v string) { - o.RecipientDltSystem = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *TransferCommenceV1Request) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *TransferCommenceV1Request) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *TransferCommenceV1Request) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *TransferCommenceV1Request) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetHashAssetProfile returns the HashAssetProfile field value -func (o *TransferCommenceV1Request) GetHashAssetProfile() string { - if o == nil { - var ret string - return ret - } - - return o.HashAssetProfile -} - -// GetHashAssetProfileOk returns a tuple with the HashAssetProfile field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetHashAssetProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashAssetProfile, true -} - -// SetHashAssetProfile sets field value -func (o *TransferCommenceV1Request) SetHashAssetProfile(v string) { - o.HashAssetProfile = v -} - -// GetAssetUnit returns the AssetUnit field value if set, zero value otherwise. -func (o *TransferCommenceV1Request) GetAssetUnit() int32 { - if o == nil || IsNil(o.AssetUnit) { - var ret int32 - return ret - } - return *o.AssetUnit -} - -// GetAssetUnitOk returns a tuple with the AssetUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetAssetUnitOk() (*int32, bool) { - if o == nil || IsNil(o.AssetUnit) { - return nil, false - } - return o.AssetUnit, true -} - -// HasAssetUnit returns a boolean if a field has been set. -func (o *TransferCommenceV1Request) HasAssetUnit() bool { - if o != nil && !IsNil(o.AssetUnit) { - return true - } - - return false -} - -// SetAssetUnit gets a reference to the given int32 and assigns it to the AssetUnit field. -func (o *TransferCommenceV1Request) SetAssetUnit(v int32) { - o.AssetUnit = &v -} - -// GetHashPrevMessage returns the HashPrevMessage field value -func (o *TransferCommenceV1Request) GetHashPrevMessage() string { - if o == nil { - var ret string - return ret - } - - return o.HashPrevMessage -} - -// GetHashPrevMessageOk returns a tuple with the HashPrevMessage field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetHashPrevMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashPrevMessage, true -} - -// SetHashPrevMessage sets field value -func (o *TransferCommenceV1Request) SetHashPrevMessage(v string) { - o.HashPrevMessage = v -} - -// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TransferCommenceV1Request) GetClientTransferNumber() int32 { - if o == nil || IsNil(o.ClientTransferNumber.Get()) { - var ret int32 - return ret - } - return *o.ClientTransferNumber.Get() -} - -// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransferCommenceV1Request) GetClientTransferNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() -} - -// HasClientTransferNumber returns a boolean if a field has been set. -func (o *TransferCommenceV1Request) HasClientTransferNumber() bool { - if o != nil && o.ClientTransferNumber.IsSet() { - return true - } - - return false -} - -// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. -func (o *TransferCommenceV1Request) SetClientTransferNumber(v int32) { - o.ClientTransferNumber.Set(&v) -} -// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil -func (o *TransferCommenceV1Request) SetClientTransferNumberNil() { - o.ClientTransferNumber.Set(nil) -} - -// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil -func (o *TransferCommenceV1Request) UnsetClientTransferNumber() { - o.ClientTransferNumber.Unset() -} - -// GetSignature returns the Signature field value -func (o *TransferCommenceV1Request) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *TransferCommenceV1Request) SetSignature(v string) { - o.Signature = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *TransferCommenceV1Request) GetSequenceNumber() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Request) GetSequenceNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *TransferCommenceV1Request) SetSequenceNumber(v int32) { - o.SequenceNumber = v -} - -func (o TransferCommenceV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransferCommenceV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["messageType"] = o.MessageType - toSerialize["originatorPubkey"] = o.OriginatorPubkey - toSerialize["beneficiaryPubkey"] = o.BeneficiaryPubkey - toSerialize["senderDltSystem"] = o.SenderDltSystem - toSerialize["recipientDltSystem"] = o.RecipientDltSystem - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["hashAssetProfile"] = o.HashAssetProfile - if !IsNil(o.AssetUnit) { - toSerialize["assetUnit"] = o.AssetUnit - } - toSerialize["hashPrevMessage"] = o.HashPrevMessage - if o.ClientTransferNumber.IsSet() { - toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() - } - toSerialize["signature"] = o.Signature - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableTransferCommenceV1Request struct { - value *TransferCommenceV1Request - isSet bool -} - -func (v NullableTransferCommenceV1Request) Get() *TransferCommenceV1Request { - return v.value -} - -func (v *NullableTransferCommenceV1Request) Set(val *TransferCommenceV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableTransferCommenceV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableTransferCommenceV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransferCommenceV1Request(val *TransferCommenceV1Request) *NullableTransferCommenceV1Request { - return &NullableTransferCommenceV1Request{value: val, isSet: true} -} - -func (v NullableTransferCommenceV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransferCommenceV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go deleted file mode 100644 index 9de70949a3..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_commence_v1_response.go +++ /dev/null @@ -1,361 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the TransferCommenceV1Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransferCommenceV1Response{} - -// TransferCommenceV1Response struct for TransferCommenceV1Response -type TransferCommenceV1Response struct { - SessionID string `json:"sessionID"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - HashCommenceRequest string `json:"hashCommenceRequest"` - ServerTransferNumber NullableInt32 `json:"serverTransferNumber,omitempty"` - Signature string `json:"signature"` - MessageType string `json:"messageType"` - MessageHash *string `json:"messageHash,omitempty"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewTransferCommenceV1Response instantiates a new TransferCommenceV1Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransferCommenceV1Response(sessionID string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommenceRequest string, signature string, messageType string, sequenceNumber float32) *TransferCommenceV1Response { - this := TransferCommenceV1Response{} - this.SessionID = sessionID - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.HashCommenceRequest = hashCommenceRequest - this.Signature = signature - this.MessageType = messageType - this.SequenceNumber = sequenceNumber - return &this -} - -// NewTransferCommenceV1ResponseWithDefaults instantiates a new TransferCommenceV1Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransferCommenceV1ResponseWithDefaults() *TransferCommenceV1Response { - this := TransferCommenceV1Response{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *TransferCommenceV1Response) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *TransferCommenceV1Response) SetSessionID(v string) { - o.SessionID = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *TransferCommenceV1Response) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *TransferCommenceV1Response) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *TransferCommenceV1Response) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *TransferCommenceV1Response) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetHashCommenceRequest returns the HashCommenceRequest field value -func (o *TransferCommenceV1Response) GetHashCommenceRequest() string { - if o == nil { - var ret string - return ret - } - - return o.HashCommenceRequest -} - -// GetHashCommenceRequestOk returns a tuple with the HashCommenceRequest field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetHashCommenceRequestOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashCommenceRequest, true -} - -// SetHashCommenceRequest sets field value -func (o *TransferCommenceV1Response) SetHashCommenceRequest(v string) { - o.HashCommenceRequest = v -} - -// GetServerTransferNumber returns the ServerTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TransferCommenceV1Response) GetServerTransferNumber() int32 { - if o == nil || IsNil(o.ServerTransferNumber.Get()) { - var ret int32 - return ret - } - return *o.ServerTransferNumber.Get() -} - -// GetServerTransferNumberOk returns a tuple with the ServerTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransferCommenceV1Response) GetServerTransferNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ServerTransferNumber.Get(), o.ServerTransferNumber.IsSet() -} - -// HasServerTransferNumber returns a boolean if a field has been set. -func (o *TransferCommenceV1Response) HasServerTransferNumber() bool { - if o != nil && o.ServerTransferNumber.IsSet() { - return true - } - - return false -} - -// SetServerTransferNumber gets a reference to the given NullableInt32 and assigns it to the ServerTransferNumber field. -func (o *TransferCommenceV1Response) SetServerTransferNumber(v int32) { - o.ServerTransferNumber.Set(&v) -} -// SetServerTransferNumberNil sets the value for ServerTransferNumber to be an explicit nil -func (o *TransferCommenceV1Response) SetServerTransferNumberNil() { - o.ServerTransferNumber.Set(nil) -} - -// UnsetServerTransferNumber ensures that no value is present for ServerTransferNumber, not even an explicit nil -func (o *TransferCommenceV1Response) UnsetServerTransferNumber() { - o.ServerTransferNumber.Unset() -} - -// GetSignature returns the Signature field value -func (o *TransferCommenceV1Response) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *TransferCommenceV1Response) SetSignature(v string) { - o.Signature = v -} - -// GetMessageType returns the MessageType field value -func (o *TransferCommenceV1Response) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *TransferCommenceV1Response) SetMessageType(v string) { - o.MessageType = v -} - -// GetMessageHash returns the MessageHash field value if set, zero value otherwise. -func (o *TransferCommenceV1Response) GetMessageHash() string { - if o == nil || IsNil(o.MessageHash) { - var ret string - return ret - } - return *o.MessageHash -} - -// GetMessageHashOk returns a tuple with the MessageHash field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetMessageHashOk() (*string, bool) { - if o == nil || IsNil(o.MessageHash) { - return nil, false - } - return o.MessageHash, true -} - -// HasMessageHash returns a boolean if a field has been set. -func (o *TransferCommenceV1Response) HasMessageHash() bool { - if o != nil && !IsNil(o.MessageHash) { - return true - } - - return false -} - -// SetMessageHash gets a reference to the given string and assigns it to the MessageHash field. -func (o *TransferCommenceV1Response) SetMessageHash(v string) { - o.MessageHash = &v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *TransferCommenceV1Response) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *TransferCommenceV1Response) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *TransferCommenceV1Response) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o TransferCommenceV1Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransferCommenceV1Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["hashCommenceRequest"] = o.HashCommenceRequest - if o.ServerTransferNumber.IsSet() { - toSerialize["serverTransferNumber"] = o.ServerTransferNumber.Get() - } - toSerialize["signature"] = o.Signature - toSerialize["messageType"] = o.MessageType - if !IsNil(o.MessageHash) { - toSerialize["messageHash"] = o.MessageHash - } - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableTransferCommenceV1Response struct { - value *TransferCommenceV1Response - isSet bool -} - -func (v NullableTransferCommenceV1Response) Get() *TransferCommenceV1Response { - return v.value -} - -func (v *NullableTransferCommenceV1Response) Set(val *TransferCommenceV1Response) { - v.value = val - v.isSet = true -} - -func (v NullableTransferCommenceV1Response) IsSet() bool { - return v.isSet -} - -func (v *NullableTransferCommenceV1Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransferCommenceV1Response(val *TransferCommenceV1Response) *NullableTransferCommenceV1Response { - return &NullableTransferCommenceV1Response{value: val, isSet: true} -} - -func (v NullableTransferCommenceV1Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransferCommenceV1Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go deleted file mode 100644 index acd744c626..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_complete_v1_request.go +++ /dev/null @@ -1,352 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the TransferCompleteV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransferCompleteV1Request{} - -// TransferCompleteV1Request struct for TransferCompleteV1Request -type TransferCompleteV1Request struct { - SessionID string `json:"sessionID"` - MessageType string `json:"messageType"` - ClientIdentityPubkey string `json:"clientIdentityPubkey"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - HashCommitFinalAck string `json:"hashCommitFinalAck"` - ClientTransferNumber NullableInt32 `json:"clientTransferNumber,omitempty"` - Signature string `json:"signature"` - HashTransferCommence string `json:"hashTransferCommence"` - SequenceNumber float32 `json:"sequenceNumber"` -} - -// NewTransferCompleteV1Request instantiates a new TransferCompleteV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransferCompleteV1Request(sessionID string, messageType string, clientIdentityPubkey string, serverIdentityPubkey string, hashCommitFinalAck string, signature string, hashTransferCommence string, sequenceNumber float32) *TransferCompleteV1Request { - this := TransferCompleteV1Request{} - this.SessionID = sessionID - this.MessageType = messageType - this.ClientIdentityPubkey = clientIdentityPubkey - this.ServerIdentityPubkey = serverIdentityPubkey - this.HashCommitFinalAck = hashCommitFinalAck - this.Signature = signature - this.HashTransferCommence = hashTransferCommence - this.SequenceNumber = sequenceNumber - return &this -} - -// NewTransferCompleteV1RequestWithDefaults instantiates a new TransferCompleteV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransferCompleteV1RequestWithDefaults() *TransferCompleteV1Request { - this := TransferCompleteV1Request{} - return &this -} - -// GetSessionID returns the SessionID field value -func (o *TransferCompleteV1Request) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *TransferCompleteV1Request) SetSessionID(v string) { - o.SessionID = v -} - -// GetMessageType returns the MessageType field value -func (o *TransferCompleteV1Request) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *TransferCompleteV1Request) SetMessageType(v string) { - o.MessageType = v -} - -// GetClientIdentityPubkey returns the ClientIdentityPubkey field value -func (o *TransferCompleteV1Request) GetClientIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ClientIdentityPubkey -} - -// GetClientIdentityPubkeyOk returns a tuple with the ClientIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetClientIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientIdentityPubkey, true -} - -// SetClientIdentityPubkey sets field value -func (o *TransferCompleteV1Request) SetClientIdentityPubkey(v string) { - o.ClientIdentityPubkey = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *TransferCompleteV1Request) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *TransferCompleteV1Request) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetHashCommitFinalAck returns the HashCommitFinalAck field value -func (o *TransferCompleteV1Request) GetHashCommitFinalAck() string { - if o == nil { - var ret string - return ret - } - - return o.HashCommitFinalAck -} - -// GetHashCommitFinalAckOk returns a tuple with the HashCommitFinalAck field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetHashCommitFinalAckOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashCommitFinalAck, true -} - -// SetHashCommitFinalAck sets field value -func (o *TransferCompleteV1Request) SetHashCommitFinalAck(v string) { - o.HashCommitFinalAck = v -} - -// GetClientTransferNumber returns the ClientTransferNumber field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TransferCompleteV1Request) GetClientTransferNumber() int32 { - if o == nil || IsNil(o.ClientTransferNumber.Get()) { - var ret int32 - return ret - } - return *o.ClientTransferNumber.Get() -} - -// GetClientTransferNumberOk returns a tuple with the ClientTransferNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransferCompleteV1Request) GetClientTransferNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ClientTransferNumber.Get(), o.ClientTransferNumber.IsSet() -} - -// HasClientTransferNumber returns a boolean if a field has been set. -func (o *TransferCompleteV1Request) HasClientTransferNumber() bool { - if o != nil && o.ClientTransferNumber.IsSet() { - return true - } - - return false -} - -// SetClientTransferNumber gets a reference to the given NullableInt32 and assigns it to the ClientTransferNumber field. -func (o *TransferCompleteV1Request) SetClientTransferNumber(v int32) { - o.ClientTransferNumber.Set(&v) -} -// SetClientTransferNumberNil sets the value for ClientTransferNumber to be an explicit nil -func (o *TransferCompleteV1Request) SetClientTransferNumberNil() { - o.ClientTransferNumber.Set(nil) -} - -// UnsetClientTransferNumber ensures that no value is present for ClientTransferNumber, not even an explicit nil -func (o *TransferCompleteV1Request) UnsetClientTransferNumber() { - o.ClientTransferNumber.Unset() -} - -// GetSignature returns the Signature field value -func (o *TransferCompleteV1Request) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *TransferCompleteV1Request) SetSignature(v string) { - o.Signature = v -} - -// GetHashTransferCommence returns the HashTransferCommence field value -func (o *TransferCompleteV1Request) GetHashTransferCommence() string { - if o == nil { - var ret string - return ret - } - - return o.HashTransferCommence -} - -// GetHashTransferCommenceOk returns a tuple with the HashTransferCommence field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetHashTransferCommenceOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.HashTransferCommence, true -} - -// SetHashTransferCommence sets field value -func (o *TransferCompleteV1Request) SetHashTransferCommence(v string) { - o.HashTransferCommence = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *TransferCompleteV1Request) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *TransferCompleteV1Request) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *TransferCompleteV1Request) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -func (o TransferCompleteV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransferCompleteV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sessionID"] = o.SessionID - toSerialize["messageType"] = o.MessageType - toSerialize["clientIdentityPubkey"] = o.ClientIdentityPubkey - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["hashCommitFinalAck"] = o.HashCommitFinalAck - if o.ClientTransferNumber.IsSet() { - toSerialize["clientTransferNumber"] = o.ClientTransferNumber.Get() - } - toSerialize["signature"] = o.Signature - toSerialize["hashTransferCommence"] = o.HashTransferCommence - toSerialize["sequenceNumber"] = o.SequenceNumber - return toSerialize, nil -} - -type NullableTransferCompleteV1Request struct { - value *TransferCompleteV1Request - isSet bool -} - -func (v NullableTransferCompleteV1Request) Get() *TransferCompleteV1Request { - return v.value -} - -func (v *NullableTransferCompleteV1Request) Set(val *TransferCompleteV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableTransferCompleteV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableTransferCompleteV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransferCompleteV1Request(val *TransferCompleteV1Request) *NullableTransferCompleteV1Request { - return &NullableTransferCompleteV1Request{value: val, isSet: true} -} - -func (v NullableTransferCompleteV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransferCompleteV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go deleted file mode 100644 index ce073fb242..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_request.go +++ /dev/null @@ -1,1035 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the TransferInitializationV1Request type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransferInitializationV1Request{} - -// TransferInitializationV1Request struct for TransferInitializationV1Request -type TransferInitializationV1Request struct { - MessageType string `json:"messageType"` - SessionID string `json:"sessionID"` - Version *string `json:"version,omitempty"` - DeveloperURN *string `json:"developerURN,omitempty"` - CredentialProfile *CredentialProfile `json:"credentialProfile,omitempty"` - PayloadProfile PayloadProfile `json:"payloadProfile"` - ApplicationProfile string `json:"applicationProfile"` - LoggingProfile string `json:"loggingProfile"` - AccessControlProfile string `json:"accessControlProfile"` - Signature string `json:"signature"` - SourceGatewayPubkey string `json:"sourceGatewayPubkey"` - SourceGatewayDltSystem string `json:"sourceGatewayDltSystem"` - RecipientGatewayPubkey string `json:"recipientGatewayPubkey"` - RecipientGatewayDltSystem string `json:"recipientGatewayDltSystem"` - EscrowType *string `json:"escrowType,omitempty"` - ExpiryTime *string `json:"expiryTime,omitempty"` - MultipleClaimsAllowed *bool `json:"multipleClaimsAllowed,omitempty"` - MultipleCancelsAllowed *bool `json:"multipleCancelsAllowed,omitempty"` - Permissions map[string]interface{} `json:"permissions,omitempty"` - Origin *string `json:"origin,omitempty"` - Destination *string `json:"destination,omitempty"` - SubsequentCalls map[string]interface{} `json:"subsequentCalls,omitempty"` - Histories []History `json:"histories,omitempty"` - SequenceNumber int32 `json:"sequenceNumber"` - SourceBasePath string `json:"sourceBasePath"` - RecipientBasePath string `json:"recipientBasePath"` - MaxRetries float32 `json:"maxRetries"` - MaxTimeout float32 `json:"maxTimeout"` - BackupGatewaysAllowed []string `json:"backupGatewaysAllowed"` - RecipientLedgerAssetID string `json:"recipientLedgerAssetID"` - SourceLedgerAssetID string `json:"sourceLedgerAssetID"` -} - -// NewTransferInitializationV1Request instantiates a new TransferInitializationV1Request object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransferInitializationV1Request(messageType string, sessionID string, payloadProfile PayloadProfile, applicationProfile string, loggingProfile string, accessControlProfile string, signature string, sourceGatewayPubkey string, sourceGatewayDltSystem string, recipientGatewayPubkey string, recipientGatewayDltSystem string, sequenceNumber int32, sourceBasePath string, recipientBasePath string, maxRetries float32, maxTimeout float32, backupGatewaysAllowed []string, recipientLedgerAssetID string, sourceLedgerAssetID string) *TransferInitializationV1Request { - this := TransferInitializationV1Request{} - this.MessageType = messageType - this.SessionID = sessionID - this.PayloadProfile = payloadProfile - this.ApplicationProfile = applicationProfile - this.LoggingProfile = loggingProfile - this.AccessControlProfile = accessControlProfile - this.Signature = signature - this.SourceGatewayPubkey = sourceGatewayPubkey - this.SourceGatewayDltSystem = sourceGatewayDltSystem - this.RecipientGatewayPubkey = recipientGatewayPubkey - this.RecipientGatewayDltSystem = recipientGatewayDltSystem - this.SequenceNumber = sequenceNumber - this.SourceBasePath = sourceBasePath - this.RecipientBasePath = recipientBasePath - this.MaxRetries = maxRetries - this.MaxTimeout = maxTimeout - this.BackupGatewaysAllowed = backupGatewaysAllowed - this.RecipientLedgerAssetID = recipientLedgerAssetID - this.SourceLedgerAssetID = sourceLedgerAssetID - return &this -} - -// NewTransferInitializationV1RequestWithDefaults instantiates a new TransferInitializationV1Request object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransferInitializationV1RequestWithDefaults() *TransferInitializationV1Request { - this := TransferInitializationV1Request{} - return &this -} - -// GetMessageType returns the MessageType field value -func (o *TransferInitializationV1Request) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *TransferInitializationV1Request) SetMessageType(v string) { - o.MessageType = v -} - -// GetSessionID returns the SessionID field value -func (o *TransferInitializationV1Request) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *TransferInitializationV1Request) SetSessionID(v string) { - o.SessionID = v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetVersion() string { - if o == nil || IsNil(o.Version) { - var ret string - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetVersionOk() (*string, bool) { - if o == nil || IsNil(o.Version) { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasVersion() bool { - if o != nil && !IsNil(o.Version) { - return true - } - - return false -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *TransferInitializationV1Request) SetVersion(v string) { - o.Version = &v -} - -// GetDeveloperURN returns the DeveloperURN field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetDeveloperURN() string { - if o == nil || IsNil(o.DeveloperURN) { - var ret string - return ret - } - return *o.DeveloperURN -} - -// GetDeveloperURNOk returns a tuple with the DeveloperURN field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetDeveloperURNOk() (*string, bool) { - if o == nil || IsNil(o.DeveloperURN) { - return nil, false - } - return o.DeveloperURN, true -} - -// HasDeveloperURN returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasDeveloperURN() bool { - if o != nil && !IsNil(o.DeveloperURN) { - return true - } - - return false -} - -// SetDeveloperURN gets a reference to the given string and assigns it to the DeveloperURN field. -func (o *TransferInitializationV1Request) SetDeveloperURN(v string) { - o.DeveloperURN = &v -} - -// GetCredentialProfile returns the CredentialProfile field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetCredentialProfile() CredentialProfile { - if o == nil || IsNil(o.CredentialProfile) { - var ret CredentialProfile - return ret - } - return *o.CredentialProfile -} - -// GetCredentialProfileOk returns a tuple with the CredentialProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetCredentialProfileOk() (*CredentialProfile, bool) { - if o == nil || IsNil(o.CredentialProfile) { - return nil, false - } - return o.CredentialProfile, true -} - -// HasCredentialProfile returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasCredentialProfile() bool { - if o != nil && !IsNil(o.CredentialProfile) { - return true - } - - return false -} - -// SetCredentialProfile gets a reference to the given CredentialProfile and assigns it to the CredentialProfile field. -func (o *TransferInitializationV1Request) SetCredentialProfile(v CredentialProfile) { - o.CredentialProfile = &v -} - -// GetPayloadProfile returns the PayloadProfile field value -func (o *TransferInitializationV1Request) GetPayloadProfile() PayloadProfile { - if o == nil { - var ret PayloadProfile - return ret - } - - return o.PayloadProfile -} - -// GetPayloadProfileOk returns a tuple with the PayloadProfile field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetPayloadProfileOk() (*PayloadProfile, bool) { - if o == nil { - return nil, false - } - return &o.PayloadProfile, true -} - -// SetPayloadProfile sets field value -func (o *TransferInitializationV1Request) SetPayloadProfile(v PayloadProfile) { - o.PayloadProfile = v -} - -// GetApplicationProfile returns the ApplicationProfile field value -func (o *TransferInitializationV1Request) GetApplicationProfile() string { - if o == nil { - var ret string - return ret - } - - return o.ApplicationProfile -} - -// GetApplicationProfileOk returns a tuple with the ApplicationProfile field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetApplicationProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApplicationProfile, true -} - -// SetApplicationProfile sets field value -func (o *TransferInitializationV1Request) SetApplicationProfile(v string) { - o.ApplicationProfile = v -} - -// GetLoggingProfile returns the LoggingProfile field value -func (o *TransferInitializationV1Request) GetLoggingProfile() string { - if o == nil { - var ret string - return ret - } - - return o.LoggingProfile -} - -// GetLoggingProfileOk returns a tuple with the LoggingProfile field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetLoggingProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoggingProfile, true -} - -// SetLoggingProfile sets field value -func (o *TransferInitializationV1Request) SetLoggingProfile(v string) { - o.LoggingProfile = v -} - -// GetAccessControlProfile returns the AccessControlProfile field value -func (o *TransferInitializationV1Request) GetAccessControlProfile() string { - if o == nil { - var ret string - return ret - } - - return o.AccessControlProfile -} - -// GetAccessControlProfileOk returns a tuple with the AccessControlProfile field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetAccessControlProfileOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AccessControlProfile, true -} - -// SetAccessControlProfile sets field value -func (o *TransferInitializationV1Request) SetAccessControlProfile(v string) { - o.AccessControlProfile = v -} - -// GetSignature returns the Signature field value -func (o *TransferInitializationV1Request) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *TransferInitializationV1Request) SetSignature(v string) { - o.Signature = v -} - -// GetSourceGatewayPubkey returns the SourceGatewayPubkey field value -func (o *TransferInitializationV1Request) GetSourceGatewayPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.SourceGatewayPubkey -} - -// GetSourceGatewayPubkeyOk returns a tuple with the SourceGatewayPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSourceGatewayPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceGatewayPubkey, true -} - -// SetSourceGatewayPubkey sets field value -func (o *TransferInitializationV1Request) SetSourceGatewayPubkey(v string) { - o.SourceGatewayPubkey = v -} - -// GetSourceGatewayDltSystem returns the SourceGatewayDltSystem field value -func (o *TransferInitializationV1Request) GetSourceGatewayDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.SourceGatewayDltSystem -} - -// GetSourceGatewayDltSystemOk returns a tuple with the SourceGatewayDltSystem field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSourceGatewayDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceGatewayDltSystem, true -} - -// SetSourceGatewayDltSystem sets field value -func (o *TransferInitializationV1Request) SetSourceGatewayDltSystem(v string) { - o.SourceGatewayDltSystem = v -} - -// GetRecipientGatewayPubkey returns the RecipientGatewayPubkey field value -func (o *TransferInitializationV1Request) GetRecipientGatewayPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientGatewayPubkey -} - -// GetRecipientGatewayPubkeyOk returns a tuple with the RecipientGatewayPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetRecipientGatewayPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientGatewayPubkey, true -} - -// SetRecipientGatewayPubkey sets field value -func (o *TransferInitializationV1Request) SetRecipientGatewayPubkey(v string) { - o.RecipientGatewayPubkey = v -} - -// GetRecipientGatewayDltSystem returns the RecipientGatewayDltSystem field value -func (o *TransferInitializationV1Request) GetRecipientGatewayDltSystem() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientGatewayDltSystem -} - -// GetRecipientGatewayDltSystemOk returns a tuple with the RecipientGatewayDltSystem field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetRecipientGatewayDltSystemOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientGatewayDltSystem, true -} - -// SetRecipientGatewayDltSystem sets field value -func (o *TransferInitializationV1Request) SetRecipientGatewayDltSystem(v string) { - o.RecipientGatewayDltSystem = v -} - -// GetEscrowType returns the EscrowType field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetEscrowType() string { - if o == nil || IsNil(o.EscrowType) { - var ret string - return ret - } - return *o.EscrowType -} - -// GetEscrowTypeOk returns a tuple with the EscrowType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetEscrowTypeOk() (*string, bool) { - if o == nil || IsNil(o.EscrowType) { - return nil, false - } - return o.EscrowType, true -} - -// HasEscrowType returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasEscrowType() bool { - if o != nil && !IsNil(o.EscrowType) { - return true - } - - return false -} - -// SetEscrowType gets a reference to the given string and assigns it to the EscrowType field. -func (o *TransferInitializationV1Request) SetEscrowType(v string) { - o.EscrowType = &v -} - -// GetExpiryTime returns the ExpiryTime field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetExpiryTime() string { - if o == nil || IsNil(o.ExpiryTime) { - var ret string - return ret - } - return *o.ExpiryTime -} - -// GetExpiryTimeOk returns a tuple with the ExpiryTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetExpiryTimeOk() (*string, bool) { - if o == nil || IsNil(o.ExpiryTime) { - return nil, false - } - return o.ExpiryTime, true -} - -// HasExpiryTime returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasExpiryTime() bool { - if o != nil && !IsNil(o.ExpiryTime) { - return true - } - - return false -} - -// SetExpiryTime gets a reference to the given string and assigns it to the ExpiryTime field. -func (o *TransferInitializationV1Request) SetExpiryTime(v string) { - o.ExpiryTime = &v -} - -// GetMultipleClaimsAllowed returns the MultipleClaimsAllowed field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetMultipleClaimsAllowed() bool { - if o == nil || IsNil(o.MultipleClaimsAllowed) { - var ret bool - return ret - } - return *o.MultipleClaimsAllowed -} - -// GetMultipleClaimsAllowedOk returns a tuple with the MultipleClaimsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetMultipleClaimsAllowedOk() (*bool, bool) { - if o == nil || IsNil(o.MultipleClaimsAllowed) { - return nil, false - } - return o.MultipleClaimsAllowed, true -} - -// HasMultipleClaimsAllowed returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasMultipleClaimsAllowed() bool { - if o != nil && !IsNil(o.MultipleClaimsAllowed) { - return true - } - - return false -} - -// SetMultipleClaimsAllowed gets a reference to the given bool and assigns it to the MultipleClaimsAllowed field. -func (o *TransferInitializationV1Request) SetMultipleClaimsAllowed(v bool) { - o.MultipleClaimsAllowed = &v -} - -// GetMultipleCancelsAllowed returns the MultipleCancelsAllowed field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetMultipleCancelsAllowed() bool { - if o == nil || IsNil(o.MultipleCancelsAllowed) { - var ret bool - return ret - } - return *o.MultipleCancelsAllowed -} - -// GetMultipleCancelsAllowedOk returns a tuple with the MultipleCancelsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetMultipleCancelsAllowedOk() (*bool, bool) { - if o == nil || IsNil(o.MultipleCancelsAllowed) { - return nil, false - } - return o.MultipleCancelsAllowed, true -} - -// HasMultipleCancelsAllowed returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasMultipleCancelsAllowed() bool { - if o != nil && !IsNil(o.MultipleCancelsAllowed) { - return true - } - - return false -} - -// SetMultipleCancelsAllowed gets a reference to the given bool and assigns it to the MultipleCancelsAllowed field. -func (o *TransferInitializationV1Request) SetMultipleCancelsAllowed(v bool) { - o.MultipleCancelsAllowed = &v -} - -// GetPermissions returns the Permissions field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetPermissions() map[string]interface{} { - if o == nil || IsNil(o.Permissions) { - var ret map[string]interface{} - return ret - } - return o.Permissions -} - -// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetPermissionsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Permissions) { - return map[string]interface{}{}, false - } - return o.Permissions, true -} - -// HasPermissions returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasPermissions() bool { - if o != nil && !IsNil(o.Permissions) { - return true - } - - return false -} - -// SetPermissions gets a reference to the given map[string]interface{} and assigns it to the Permissions field. -func (o *TransferInitializationV1Request) SetPermissions(v map[string]interface{}) { - o.Permissions = v -} - -// GetOrigin returns the Origin field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetOrigin() string { - if o == nil || IsNil(o.Origin) { - var ret string - return ret - } - return *o.Origin -} - -// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetOriginOk() (*string, bool) { - if o == nil || IsNil(o.Origin) { - return nil, false - } - return o.Origin, true -} - -// HasOrigin returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasOrigin() bool { - if o != nil && !IsNil(o.Origin) { - return true - } - - return false -} - -// SetOrigin gets a reference to the given string and assigns it to the Origin field. -func (o *TransferInitializationV1Request) SetOrigin(v string) { - o.Origin = &v -} - -// GetDestination returns the Destination field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetDestination() string { - if o == nil || IsNil(o.Destination) { - var ret string - return ret - } - return *o.Destination -} - -// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetDestinationOk() (*string, bool) { - if o == nil || IsNil(o.Destination) { - return nil, false - } - return o.Destination, true -} - -// HasDestination returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasDestination() bool { - if o != nil && !IsNil(o.Destination) { - return true - } - - return false -} - -// SetDestination gets a reference to the given string and assigns it to the Destination field. -func (o *TransferInitializationV1Request) SetDestination(v string) { - o.Destination = &v -} - -// GetSubsequentCalls returns the SubsequentCalls field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetSubsequentCalls() map[string]interface{} { - if o == nil || IsNil(o.SubsequentCalls) { - var ret map[string]interface{} - return ret - } - return o.SubsequentCalls -} - -// GetSubsequentCallsOk returns a tuple with the SubsequentCalls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSubsequentCallsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.SubsequentCalls) { - return map[string]interface{}{}, false - } - return o.SubsequentCalls, true -} - -// HasSubsequentCalls returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasSubsequentCalls() bool { - if o != nil && !IsNil(o.SubsequentCalls) { - return true - } - - return false -} - -// SetSubsequentCalls gets a reference to the given map[string]interface{} and assigns it to the SubsequentCalls field. -func (o *TransferInitializationV1Request) SetSubsequentCalls(v map[string]interface{}) { - o.SubsequentCalls = v -} - -// GetHistories returns the Histories field value if set, zero value otherwise. -func (o *TransferInitializationV1Request) GetHistories() []History { - if o == nil || IsNil(o.Histories) { - var ret []History - return ret - } - return o.Histories -} - -// GetHistoriesOk returns a tuple with the Histories field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetHistoriesOk() ([]History, bool) { - if o == nil || IsNil(o.Histories) { - return nil, false - } - return o.Histories, true -} - -// HasHistories returns a boolean if a field has been set. -func (o *TransferInitializationV1Request) HasHistories() bool { - if o != nil && !IsNil(o.Histories) { - return true - } - - return false -} - -// SetHistories gets a reference to the given []History and assigns it to the Histories field. -func (o *TransferInitializationV1Request) SetHistories(v []History) { - o.Histories = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *TransferInitializationV1Request) GetSequenceNumber() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSequenceNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *TransferInitializationV1Request) SetSequenceNumber(v int32) { - o.SequenceNumber = v -} - -// GetSourceBasePath returns the SourceBasePath field value -func (o *TransferInitializationV1Request) GetSourceBasePath() string { - if o == nil { - var ret string - return ret - } - - return o.SourceBasePath -} - -// GetSourceBasePathOk returns a tuple with the SourceBasePath field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSourceBasePathOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceBasePath, true -} - -// SetSourceBasePath sets field value -func (o *TransferInitializationV1Request) SetSourceBasePath(v string) { - o.SourceBasePath = v -} - -// GetRecipientBasePath returns the RecipientBasePath field value -func (o *TransferInitializationV1Request) GetRecipientBasePath() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientBasePath -} - -// GetRecipientBasePathOk returns a tuple with the RecipientBasePath field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetRecipientBasePathOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientBasePath, true -} - -// SetRecipientBasePath sets field value -func (o *TransferInitializationV1Request) SetRecipientBasePath(v string) { - o.RecipientBasePath = v -} - -// GetMaxRetries returns the MaxRetries field value -func (o *TransferInitializationV1Request) GetMaxRetries() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.MaxRetries -} - -// GetMaxRetriesOk returns a tuple with the MaxRetries field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetMaxRetriesOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.MaxRetries, true -} - -// SetMaxRetries sets field value -func (o *TransferInitializationV1Request) SetMaxRetries(v float32) { - o.MaxRetries = v -} - -// GetMaxTimeout returns the MaxTimeout field value -func (o *TransferInitializationV1Request) GetMaxTimeout() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.MaxTimeout -} - -// GetMaxTimeoutOk returns a tuple with the MaxTimeout field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetMaxTimeoutOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.MaxTimeout, true -} - -// SetMaxTimeout sets field value -func (o *TransferInitializationV1Request) SetMaxTimeout(v float32) { - o.MaxTimeout = v -} - -// GetBackupGatewaysAllowed returns the BackupGatewaysAllowed field value -func (o *TransferInitializationV1Request) GetBackupGatewaysAllowed() []string { - if o == nil { - var ret []string - return ret - } - - return o.BackupGatewaysAllowed -} - -// GetBackupGatewaysAllowedOk returns a tuple with the BackupGatewaysAllowed field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetBackupGatewaysAllowedOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.BackupGatewaysAllowed, true -} - -// SetBackupGatewaysAllowed sets field value -func (o *TransferInitializationV1Request) SetBackupGatewaysAllowed(v []string) { - o.BackupGatewaysAllowed = v -} - -// GetRecipientLedgerAssetID returns the RecipientLedgerAssetID field value -func (o *TransferInitializationV1Request) GetRecipientLedgerAssetID() string { - if o == nil { - var ret string - return ret - } - - return o.RecipientLedgerAssetID -} - -// GetRecipientLedgerAssetIDOk returns a tuple with the RecipientLedgerAssetID field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetRecipientLedgerAssetIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RecipientLedgerAssetID, true -} - -// SetRecipientLedgerAssetID sets field value -func (o *TransferInitializationV1Request) SetRecipientLedgerAssetID(v string) { - o.RecipientLedgerAssetID = v -} - -// GetSourceLedgerAssetID returns the SourceLedgerAssetID field value -func (o *TransferInitializationV1Request) GetSourceLedgerAssetID() string { - if o == nil { - var ret string - return ret - } - - return o.SourceLedgerAssetID -} - -// GetSourceLedgerAssetIDOk returns a tuple with the SourceLedgerAssetID field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Request) GetSourceLedgerAssetIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceLedgerAssetID, true -} - -// SetSourceLedgerAssetID sets field value -func (o *TransferInitializationV1Request) SetSourceLedgerAssetID(v string) { - o.SourceLedgerAssetID = v -} - -func (o TransferInitializationV1Request) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransferInitializationV1Request) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["messageType"] = o.MessageType - toSerialize["sessionID"] = o.SessionID - if !IsNil(o.Version) { - toSerialize["version"] = o.Version - } - if !IsNil(o.DeveloperURN) { - toSerialize["developerURN"] = o.DeveloperURN - } - if !IsNil(o.CredentialProfile) { - toSerialize["credentialProfile"] = o.CredentialProfile - } - toSerialize["payloadProfile"] = o.PayloadProfile - toSerialize["applicationProfile"] = o.ApplicationProfile - toSerialize["loggingProfile"] = o.LoggingProfile - toSerialize["accessControlProfile"] = o.AccessControlProfile - toSerialize["signature"] = o.Signature - toSerialize["sourceGatewayPubkey"] = o.SourceGatewayPubkey - toSerialize["sourceGatewayDltSystem"] = o.SourceGatewayDltSystem - toSerialize["recipientGatewayPubkey"] = o.RecipientGatewayPubkey - toSerialize["recipientGatewayDltSystem"] = o.RecipientGatewayDltSystem - if !IsNil(o.EscrowType) { - toSerialize["escrowType"] = o.EscrowType - } - if !IsNil(o.ExpiryTime) { - toSerialize["expiryTime"] = o.ExpiryTime - } - if !IsNil(o.MultipleClaimsAllowed) { - toSerialize["multipleClaimsAllowed"] = o.MultipleClaimsAllowed - } - if !IsNil(o.MultipleCancelsAllowed) { - toSerialize["multipleCancelsAllowed"] = o.MultipleCancelsAllowed - } - if !IsNil(o.Permissions) { - toSerialize["permissions"] = o.Permissions - } - if !IsNil(o.Origin) { - toSerialize["origin"] = o.Origin - } - if !IsNil(o.Destination) { - toSerialize["destination"] = o.Destination - } - if !IsNil(o.SubsequentCalls) { - toSerialize["subsequentCalls"] = o.SubsequentCalls - } - if !IsNil(o.Histories) { - toSerialize["histories"] = o.Histories - } - toSerialize["sequenceNumber"] = o.SequenceNumber - toSerialize["sourceBasePath"] = o.SourceBasePath - toSerialize["recipientBasePath"] = o.RecipientBasePath - toSerialize["maxRetries"] = o.MaxRetries - toSerialize["maxTimeout"] = o.MaxTimeout - toSerialize["backupGatewaysAllowed"] = o.BackupGatewaysAllowed - toSerialize["recipientLedgerAssetID"] = o.RecipientLedgerAssetID - toSerialize["sourceLedgerAssetID"] = o.SourceLedgerAssetID - return toSerialize, nil -} - -type NullableTransferInitializationV1Request struct { - value *TransferInitializationV1Request - isSet bool -} - -func (v NullableTransferInitializationV1Request) Get() *TransferInitializationV1Request { - return v.value -} - -func (v *NullableTransferInitializationV1Request) Set(val *TransferInitializationV1Request) { - v.value = val - v.isSet = true -} - -func (v NullableTransferInitializationV1Request) IsSet() bool { - return v.isSet -} - -func (v *NullableTransferInitializationV1Request) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransferInitializationV1Request(val *TransferInitializationV1Request) *NullableTransferInitializationV1Request { - return &NullableTransferInitializationV1Request{value: val, isSet: true} -} - -func (v NullableTransferInitializationV1Request) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransferInitializationV1Request) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go deleted file mode 100644 index d5440bf655..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/model_transfer_initialization_v1_response.go +++ /dev/null @@ -1,405 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Implementation for Odap and Hermes - -API version: 2.0.0-rc.7 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cactus-plugin-satp-hermes - -import ( - "encoding/json" -) - -// checks if the TransferInitializationV1Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransferInitializationV1Response{} - -// TransferInitializationV1Response struct for TransferInitializationV1Response -type TransferInitializationV1Response struct { - MessageType string `json:"messageType"` - SessionID string `json:"sessionID"` - SequenceNumber float32 `json:"sequenceNumber"` - OdapPhase *string `json:"odapPhase,omitempty"` - InitialRequestMessageHash string `json:"initialRequestMessageHash"` - Destination *string `json:"destination,omitempty"` - TimeStamp string `json:"timeStamp"` - ProcessedTimeStamp string `json:"processedTimeStamp"` - ServerIdentityPubkey string `json:"serverIdentityPubkey"` - Signature string `json:"signature"` - BackupGatewaysAllowed []string `json:"backupGatewaysAllowed"` -} - -// NewTransferInitializationV1Response instantiates a new TransferInitializationV1Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransferInitializationV1Response(messageType string, sessionID string, sequenceNumber float32, initialRequestMessageHash string, timeStamp string, processedTimeStamp string, serverIdentityPubkey string, signature string, backupGatewaysAllowed []string) *TransferInitializationV1Response { - this := TransferInitializationV1Response{} - this.MessageType = messageType - this.SessionID = sessionID - this.SequenceNumber = sequenceNumber - this.InitialRequestMessageHash = initialRequestMessageHash - this.TimeStamp = timeStamp - this.ProcessedTimeStamp = processedTimeStamp - this.ServerIdentityPubkey = serverIdentityPubkey - this.Signature = signature - this.BackupGatewaysAllowed = backupGatewaysAllowed - return &this -} - -// NewTransferInitializationV1ResponseWithDefaults instantiates a new TransferInitializationV1Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransferInitializationV1ResponseWithDefaults() *TransferInitializationV1Response { - this := TransferInitializationV1Response{} - return &this -} - -// GetMessageType returns the MessageType field value -func (o *TransferInitializationV1Response) GetMessageType() string { - if o == nil { - var ret string - return ret - } - - return o.MessageType -} - -// GetMessageTypeOk returns a tuple with the MessageType field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetMessageTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MessageType, true -} - -// SetMessageType sets field value -func (o *TransferInitializationV1Response) SetMessageType(v string) { - o.MessageType = v -} - -// GetSessionID returns the SessionID field value -func (o *TransferInitializationV1Response) GetSessionID() string { - if o == nil { - var ret string - return ret - } - - return o.SessionID -} - -// GetSessionIDOk returns a tuple with the SessionID field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetSessionIDOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SessionID, true -} - -// SetSessionID sets field value -func (o *TransferInitializationV1Response) SetSessionID(v string) { - o.SessionID = v -} - -// GetSequenceNumber returns the SequenceNumber field value -func (o *TransferInitializationV1Response) GetSequenceNumber() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.SequenceNumber -} - -// GetSequenceNumberOk returns a tuple with the SequenceNumber field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetSequenceNumberOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.SequenceNumber, true -} - -// SetSequenceNumber sets field value -func (o *TransferInitializationV1Response) SetSequenceNumber(v float32) { - o.SequenceNumber = v -} - -// GetOdapPhase returns the OdapPhase field value if set, zero value otherwise. -func (o *TransferInitializationV1Response) GetOdapPhase() string { - if o == nil || IsNil(o.OdapPhase) { - var ret string - return ret - } - return *o.OdapPhase -} - -// GetOdapPhaseOk returns a tuple with the OdapPhase field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetOdapPhaseOk() (*string, bool) { - if o == nil || IsNil(o.OdapPhase) { - return nil, false - } - return o.OdapPhase, true -} - -// HasOdapPhase returns a boolean if a field has been set. -func (o *TransferInitializationV1Response) HasOdapPhase() bool { - if o != nil && !IsNil(o.OdapPhase) { - return true - } - - return false -} - -// SetOdapPhase gets a reference to the given string and assigns it to the OdapPhase field. -func (o *TransferInitializationV1Response) SetOdapPhase(v string) { - o.OdapPhase = &v -} - -// GetInitialRequestMessageHash returns the InitialRequestMessageHash field value -func (o *TransferInitializationV1Response) GetInitialRequestMessageHash() string { - if o == nil { - var ret string - return ret - } - - return o.InitialRequestMessageHash -} - -// GetInitialRequestMessageHashOk returns a tuple with the InitialRequestMessageHash field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetInitialRequestMessageHashOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.InitialRequestMessageHash, true -} - -// SetInitialRequestMessageHash sets field value -func (o *TransferInitializationV1Response) SetInitialRequestMessageHash(v string) { - o.InitialRequestMessageHash = v -} - -// GetDestination returns the Destination field value if set, zero value otherwise. -func (o *TransferInitializationV1Response) GetDestination() string { - if o == nil || IsNil(o.Destination) { - var ret string - return ret - } - return *o.Destination -} - -// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetDestinationOk() (*string, bool) { - if o == nil || IsNil(o.Destination) { - return nil, false - } - return o.Destination, true -} - -// HasDestination returns a boolean if a field has been set. -func (o *TransferInitializationV1Response) HasDestination() bool { - if o != nil && !IsNil(o.Destination) { - return true - } - - return false -} - -// SetDestination gets a reference to the given string and assigns it to the Destination field. -func (o *TransferInitializationV1Response) SetDestination(v string) { - o.Destination = &v -} - -// GetTimeStamp returns the TimeStamp field value -func (o *TransferInitializationV1Response) GetTimeStamp() string { - if o == nil { - var ret string - return ret - } - - return o.TimeStamp -} - -// GetTimeStampOk returns a tuple with the TimeStamp field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetTimeStampOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TimeStamp, true -} - -// SetTimeStamp sets field value -func (o *TransferInitializationV1Response) SetTimeStamp(v string) { - o.TimeStamp = v -} - -// GetProcessedTimeStamp returns the ProcessedTimeStamp field value -func (o *TransferInitializationV1Response) GetProcessedTimeStamp() string { - if o == nil { - var ret string - return ret - } - - return o.ProcessedTimeStamp -} - -// GetProcessedTimeStampOk returns a tuple with the ProcessedTimeStamp field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetProcessedTimeStampOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ProcessedTimeStamp, true -} - -// SetProcessedTimeStamp sets field value -func (o *TransferInitializationV1Response) SetProcessedTimeStamp(v string) { - o.ProcessedTimeStamp = v -} - -// GetServerIdentityPubkey returns the ServerIdentityPubkey field value -func (o *TransferInitializationV1Response) GetServerIdentityPubkey() string { - if o == nil { - var ret string - return ret - } - - return o.ServerIdentityPubkey -} - -// GetServerIdentityPubkeyOk returns a tuple with the ServerIdentityPubkey field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetServerIdentityPubkeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ServerIdentityPubkey, true -} - -// SetServerIdentityPubkey sets field value -func (o *TransferInitializationV1Response) SetServerIdentityPubkey(v string) { - o.ServerIdentityPubkey = v -} - -// GetSignature returns the Signature field value -func (o *TransferInitializationV1Response) GetSignature() string { - if o == nil { - var ret string - return ret - } - - return o.Signature -} - -// GetSignatureOk returns a tuple with the Signature field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetSignatureOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Signature, true -} - -// SetSignature sets field value -func (o *TransferInitializationV1Response) SetSignature(v string) { - o.Signature = v -} - -// GetBackupGatewaysAllowed returns the BackupGatewaysAllowed field value -func (o *TransferInitializationV1Response) GetBackupGatewaysAllowed() []string { - if o == nil { - var ret []string - return ret - } - - return o.BackupGatewaysAllowed -} - -// GetBackupGatewaysAllowedOk returns a tuple with the BackupGatewaysAllowed field value -// and a boolean to check if the value has been set. -func (o *TransferInitializationV1Response) GetBackupGatewaysAllowedOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.BackupGatewaysAllowed, true -} - -// SetBackupGatewaysAllowed sets field value -func (o *TransferInitializationV1Response) SetBackupGatewaysAllowed(v []string) { - o.BackupGatewaysAllowed = v -} - -func (o TransferInitializationV1Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransferInitializationV1Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["messageType"] = o.MessageType - toSerialize["sessionID"] = o.SessionID - toSerialize["sequenceNumber"] = o.SequenceNumber - if !IsNil(o.OdapPhase) { - toSerialize["odapPhase"] = o.OdapPhase - } - toSerialize["initialRequestMessageHash"] = o.InitialRequestMessageHash - if !IsNil(o.Destination) { - toSerialize["destination"] = o.Destination - } - toSerialize["timeStamp"] = o.TimeStamp - toSerialize["processedTimeStamp"] = o.ProcessedTimeStamp - toSerialize["serverIdentityPubkey"] = o.ServerIdentityPubkey - toSerialize["signature"] = o.Signature - toSerialize["backupGatewaysAllowed"] = o.BackupGatewaysAllowed - return toSerialize, nil -} - -type NullableTransferInitializationV1Response struct { - value *TransferInitializationV1Response - isSet bool -} - -func (v NullableTransferInitializationV1Response) Get() *TransferInitializationV1Response { - return v.value -} - -func (v *NullableTransferInitializationV1Response) Set(val *TransferInitializationV1Response) { - v.value = val - v.isSet = true -} - -func (v NullableTransferInitializationV1Response) IsSet() bool { - return v.isSet -} - -func (v *NullableTransferInitializationV1Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransferInitializationV1Response(val *TransferInitializationV1Response) *NullableTransferInitializationV1Response { - return &NullableTransferInitializationV1Response{value: val, isSet: true} -} - -func (v NullableTransferInitializationV1Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransferInitializationV1Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go b/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go deleted file mode 100644 index 72e567c5bc..0000000000 --- a/packages/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client/test/api_default_test.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Hyperledger Cactus Plugin - Odap Hermes - -Testing DefaultApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package cactus-plugin-satp-hermes - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/hyperledger/cactus-plugin-satp-hermes/src/main/go/generated/openapi/go-client" -) - -func Test_cactus-plugin-satp-hermes_DefaultApiService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test DefaultApiService ClientRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DefaultApi.ClientRequestV1(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase1TransferInitiationRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase1TransferInitiationRequestV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase1TransferInitiationResponseV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase1TransferInitiationResponseV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase2LockEvidenceRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase2LockEvidenceRequestV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase2LockEvidenceResponseV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase2LockEvidenceResponseV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase2TransferCommenceRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase2TransferCommenceRequestV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase2TransferCommenceResponseV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase2TransferCommenceResponseV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase3CommitFinalRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase3CommitFinalRequestV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase3CommitFinalResponseV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase3CommitFinalResponseV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase3CommitPreparationRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase3CommitPreparationRequestV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase3CommitPreparationResponseV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase3CommitPreparationResponseV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService Phase3TransferCompleteRequestV1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.Phase3TransferCompleteRequestV1(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService RecoverUpdateAckV1Message", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.RecoverUpdateAckV1Message(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService RecoverUpdateV1Message", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.RecoverUpdateV1Message(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService RecoverV1Message", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.RecoverV1Message(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService RecoverV1Success", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.RecoverV1Success(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService RollbackAckV1Message", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.RollbackAckV1Message(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DefaultApiService RollbackV1Message", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.DefaultApi.RollbackV1Message(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/packages/cactus-plugin-satp-hermes/src/main/json/openapi-blo-bundled.json b/packages/cactus-plugin-satp-hermes/src/main/json/openapi-blo-bundled.json index 19cd7659b8..1907e160d7 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/json/openapi-blo-bundled.json +++ b/packages/cactus-plugin-satp-hermes/src/main/json/openapi-blo-bundled.json @@ -72,7 +72,7 @@ "beneficiaryPubkey", "originatorPubkey", "sourceAsset", - "destinyAsset" + "receiverAsset" ], "properties": { "contextID": { @@ -135,7 +135,7 @@ } } }, - "destinyAsset": { + "receiverAsset": { "description": "An asset", "type": "object", "required": [ @@ -2825,7 +2825,7 @@ "beneficiaryPubkey", "originatorPubkey", "sourceAsset", - "destinyAsset" + "receiverAsset" ], "properties": { "contextID": { @@ -2888,7 +2888,7 @@ } } }, - "destinyAsset": { + "receiverAsset": { "description": "An asset", "type": "object", "required": [ diff --git a/packages/cactus-plugin-satp-hermes/src/main/typescript/blo/transaction/transact-handler-service.ts b/packages/cactus-plugin-satp-hermes/src/main/typescript/blo/transaction/transact-handler-service.ts index 0751b14bbc..ec580687c1 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/typescript/blo/transaction/transact-handler-service.ts +++ b/packages/cactus-plugin-satp-hermes/src/main/typescript/blo/transaction/transact-handler-service.ts @@ -49,7 +49,7 @@ export async function ExecuteTransact( session, SATP_VERSION, req.sourceAsset.contractAddress, - req.destinyAsset.contractAddress, + req.receiverAsset.contractAddress, req.originatorPubkey, req.beneficiaryPubkey, req.fromDLTNetworkID, @@ -65,17 +65,17 @@ export async function ExecuteTransact( loggingProfile ? loggingProfile : "", accessControlProfile, req.sourceAsset.ontology, - req.destinyAsset.ontology, + req.receiverAsset.ontology, req.fromAmount, req.toAmount, req.sourceAsset.mspId ? req.sourceAsset.mspId : "", req.sourceAsset.channelName ? req.sourceAsset.channelName : "", - req.destinyAsset.mspId ? req.destinyAsset.mspId : "", - req.destinyAsset.channelName ? req.destinyAsset.channelName : "", + req.receiverAsset.mspId ? req.receiverAsset.mspId : "", + req.receiverAsset.channelName ? req.receiverAsset.channelName : "", req.sourceAsset.contractName, - req.destinyAsset.contractName, + req.receiverAsset.contractName, req.sourceAsset.owner, - req.destinyAsset.owner, + req.receiverAsset.owner, ); await manager.initiateTransfer(session); diff --git a/packages/cactus-plugin-satp-hermes/src/main/typescript/core/session-utils.ts b/packages/cactus-plugin-satp-hermes/src/main/typescript/core/session-utils.ts index a799f9e730..eb3e8e62f2 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/typescript/core/session-utils.ts +++ b/packages/cactus-plugin-satp-hermes/src/main/typescript/core/session-utils.ts @@ -26,7 +26,7 @@ export function populateClientSessionData( session: SATPSession, version: string, sourceContractAddress: string | undefined, - destinyContractAddress: string | undefined, + receiverContractAddress: string | undefined, originatorPubkey: string, beneficiaryPubkey: string, senderGatewayNetworkId: string, @@ -47,12 +47,12 @@ export function populateClientSessionData( toAmount: string, sourceMspId: string, sourceChannelName: string, - destinyMspId: string, - destinyChannelName: string, + receiverMspId: string, + receiverChannelName: string, sourceContractName: string, - destinyContractName: string, + receiverContractName: string, sourceOwner: string, - destinyOwner: string, + receiverOwner: string, ): SATPSession { const fn = "session_utils#populateClientSessionData"; const sessionData = session.getClientSessionData(); @@ -91,14 +91,14 @@ export function populateClientSessionData( const receiverAsset: Asset = new Asset(); receiverAsset.tokenId = ""; - receiverAsset.owner = destinyOwner; + receiverAsset.owner = receiverOwner; receiverAsset.ontology = receiverContractOntology; - receiverAsset.contractName = destinyContractName; - receiverAsset.contractAddress = destinyContractAddress || ""; + receiverAsset.contractName = receiverContractName; + receiverAsset.contractAddress = receiverContractAddress || ""; receiverAsset.amount = BigInt(toAmount); - receiverAsset.mspId = destinyMspId; - receiverAsset.channelName = destinyChannelName; + receiverAsset.mspId = receiverMspId; + receiverAsset.channelName = receiverChannelName; sessionData.receiverAsset = receiverAsset; //todo check THis diff --git a/packages/cactus-plugin-satp-hermes/src/main/typescript/core/stage-services/server/stage1-server-service.ts b/packages/cactus-plugin-satp-hermes/src/main/typescript/core/stage-services/server/stage1-server-service.ts index fdf658d724..0f2fc4e9a9 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/typescript/core/stage-services/server/stage1-server-service.ts +++ b/packages/cactus-plugin-satp-hermes/src/main/typescript/core/stage-services/server/stage1-server-service.ts @@ -12,9 +12,7 @@ import { LockType, } from "../../../generated/proto/cacti/satp/v02/common/message_pb"; // eslint-disable-next-line prettier/prettier -import { - ACCEPTANCE, -} from "../../../generated/proto/cacti/satp/v02/common/session_pb"; +import { ACCEPTANCE } from "../../../generated/proto/cacti/satp/v02/common/session_pb"; import { bufArray2HexStr, getHash, sign } from "../../../gateway-utils"; import { TransferClaims } from "../../../generated/proto/cacti/satp/v02/common/message_pb"; import { diff --git a/packages/cactus-plugin-satp-hermes/src/main/typescript/generated/gateway-client/typescript-axios/api.ts b/packages/cactus-plugin-satp-hermes/src/main/typescript/generated/gateway-client/typescript-axios/api.ts index bedfb7cf0c..9308e482e4 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/typescript/generated/gateway-client/typescript-axios/api.ts +++ b/packages/cactus-plugin-satp-hermes/src/main/typescript/generated/gateway-client/typescript-axios/api.ts @@ -1935,7 +1935,7 @@ export interface TransactRequest { * @type {TransactRequestSourceAsset} * @memberof TransactRequest */ - 'destinyAsset': TransactRequestSourceAsset; + 'receiverAsset': TransactRequestSourceAsset; } /** * An asset diff --git a/packages/cactus-plugin-satp-hermes/src/main/yml/bol/openapi-blo-bundled.yml b/packages/cactus-plugin-satp-hermes/src/main/yml/bol/openapi-blo-bundled.yml index dbd5785fd9..6104a604e9 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/yml/bol/openapi-blo-bundled.yml +++ b/packages/cactus-plugin-satp-hermes/src/main/yml/bol/openapi-blo-bundled.yml @@ -65,7 +65,7 @@ paths: - beneficiaryPubkey - originatorPubkey - sourceAsset - - destinyAsset + - receiverAsset properties: contextID: type: string @@ -110,7 +110,7 @@ paths: type: string channelName: type: string - destinyAsset: + receiverAsset: description: An asset type: object required: @@ -2155,7 +2155,7 @@ components: - beneficiaryPubkey - originatorPubkey - sourceAsset - - destinyAsset + - receiverAsset properties: contextID: type: string @@ -2200,7 +2200,7 @@ components: type: string channelName: type: string - destinyAsset: + receiverAsset: description: An asset type: object required: diff --git a/packages/cactus-plugin-satp-hermes/src/main/yml/bol/schemas.yml b/packages/cactus-plugin-satp-hermes/src/main/yml/bol/schemas.yml index 1bcfbec878..e77af7f9b5 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/yml/bol/schemas.yml +++ b/packages/cactus-plugin-satp-hermes/src/main/yml/bol/schemas.yml @@ -235,7 +235,7 @@ TransactRequest: - beneficiaryPubkey - originatorPubkey - sourceAsset - - destinyAsset + - receiverAsset properties: contextID: type: string @@ -262,7 +262,7 @@ TransactRequest: type: string sourceAsset: $ref: ./schemas.yml#/Asset - destinyAsset: + receiverAsset: $ref: ./schemas.yml#/Asset diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-1-gateway.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-1-gateway.test.ts index d2ab23eb83..1f3e1c71ef 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-1-gateway.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-1-gateway.test.ts @@ -989,7 +989,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { contractName: erc20TokenContract, contractAddress: assetContractAddress, }; - const destinyAsset: Asset = { + const receiverAsset: Asset = { owner: clientId, ontology: JSON.stringify(FabricSATPInteraction), contractName: satpContractName, @@ -1005,7 +1005,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { originatorPubkey: assigneeEthAccount.address, beneficiaryPubkey: fabricUser.credentials.certificate, sourceAsset, - destinyAsset, + receiverAsset, }; const res = await dispatcher?.Transact(req); diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways-openapi.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways-openapi.test.ts index 123267d79b..45c3f2debb 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways-openapi.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways-openapi.test.ts @@ -1068,7 +1068,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric using openApi to req contractName: erc20TokenContract, contractAddress: assetContractAddress, }; - const destinyAsset: Asset = { + const receiverAsset: Asset = { owner: clientId, ontology: JSON.stringify(FabricSATPInteraction), contractName: satpContractName, @@ -1084,7 +1084,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric using openApi to req originatorPubkey: assigneeEthAccount.address, beneficiaryPubkey: fabricUser.credentials.certificate, sourceAsset, - destinyAsset, + receiverAsset, }; const address = options1.gid!.address!; diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways.test.ts index e9ade116f2..b9f492cacf 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-end-to-end-transfer-2-gateways.test.ts @@ -1065,7 +1065,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric", () => { contractName: erc20TokenContract, contractAddress: assetContractAddress, }; - const destinyAsset: Asset = { + const receiverAsset: Asset = { owner: clientId, ontology: JSON.stringify(FabricSATPInteraction), contractName: satpContractName, @@ -1081,7 +1081,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric", () => { originatorPubkey: assigneeEthAccount.address, beneficiaryPubkey: fabricUser.credentials.certificate, sourceAsset, - destinyAsset, + receiverAsset, }; const res = await dispatcher?.Transact(req); diff --git a/yarn.lock b/yarn.lock index 9ccd378e2a..dad4a52586 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5507,21 +5507,21 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.23.4": - version: 7.23.5 - resolution: "@babel/runtime@npm:7.23.5" +"@babel/runtime@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/runtime@npm:7.23.9" dependencies: regenerator-runtime: "npm:^0.14.0" - checksum: 10/0f1669f639af30a0a2948ffcefa2c61935f337b0777bd94f8d7bc66bba8e7d4499e725caeb0449540d9c6d67399b733c4e719babb43ce9a0f33095aa01b42b37 + checksum: 10/9a520fe1bf72249f7dd60ff726434251858de15cccfca7aa831bd19d0d3fb17702e116ead82724659b8da3844977e5e13de2bae01eb8a798f2823a669f122be6 languageName: node linkType: hard -"@babel/runtime@npm:^7.23.9": - version: 7.23.9 - resolution: "@babel/runtime@npm:7.23.9" +"@babel/runtime@npm:^7.25.6": + version: 7.25.6 + resolution: "@babel/runtime@npm:7.25.6" dependencies: regenerator-runtime: "npm:^0.14.0" - checksum: 10/9a520fe1bf72249f7dd60ff726434251858de15cccfca7aa831bd19d0d3fb17702e116ead82724659b8da3844977e5e13de2bae01eb8a798f2823a669f122be6 + checksum: 10/0c4134734deb20e1005ffb9165bf342e1074576621b246d8e5e41cc7cb315a885b7d98950fbf5c63619a2990a56ae82f444d35fe8c4691a0b70c2fe5673667dc languageName: node linkType: hard @@ -7117,6 +7117,19 @@ __metadata: languageName: node linkType: hard +"@emotion/cache@npm:^11.13.1": + version: 11.13.1 + resolution: "@emotion/cache@npm:11.13.1" + dependencies: + "@emotion/memoize": "npm:^0.9.0" + "@emotion/sheet": "npm:^1.4.0" + "@emotion/utils": "npm:^1.4.0" + "@emotion/weak-memoize": "npm:^0.4.0" + stylis: "npm:4.2.0" + checksum: 10/090c8ad2e5b23f1b3a95e94f1f0554a40ed1dcd844c9d31629a68ff824eff40f32d1362f67aefa440ee0aabd5a8cabcc76870fd6d77144d3ff251bdcdf1420b9 + languageName: node + linkType: hard + "@emotion/hash@npm:^0.9.1": version: 0.9.1 resolution: "@emotion/hash@npm:0.9.1" @@ -7149,6 +7162,13 @@ __metadata: languageName: node linkType: hard +"@emotion/memoize@npm:^0.9.0": + version: 0.9.0 + resolution: "@emotion/memoize@npm:0.9.0" + checksum: 10/038132359397348e378c593a773b1148cd0cf0a2285ffd067a0f63447b945f5278860d9de718f906a74c7c940ba1783ac2ca18f1c06a307b01cc0e3944e783b1 + languageName: node + linkType: hard + "@emotion/react@npm:11.11.1": version: 11.11.1 resolution: "@emotion/react@npm:11.11.1" @@ -7237,6 +7257,13 @@ __metadata: languageName: node linkType: hard +"@emotion/sheet@npm:^1.4.0": + version: 1.4.0 + resolution: "@emotion/sheet@npm:1.4.0" + checksum: 10/8ac6e9bf6b373a648f26ae7f1c24041038524f4c72f436f4f8c4761c665e58880c3229d8d89b1f7a4815dd8e5b49634d03e60187cb6f93097d7f7c1859e869d5 + languageName: node + linkType: hard + "@emotion/styled@npm:11.11.0": version: 11.11.0 resolution: "@emotion/styled@npm:11.11.0" @@ -7300,6 +7327,13 @@ __metadata: languageName: node linkType: hard +"@emotion/utils@npm:^1.4.0": + version: 1.4.1 + resolution: "@emotion/utils@npm:1.4.1" + checksum: 10/95e56fc0c9e05cf01a96268f0486ce813f1109a8653d2f575c67df9e8765d9c1b2daf09ad1ada67d933efbb08ca7990228e14b210c713daf90156b4869abe6a7 + languageName: node + linkType: hard + "@emotion/weak-memoize@npm:^0.3.1": version: 0.3.1 resolution: "@emotion/weak-memoize@npm:0.3.1" @@ -7307,6 +7341,13 @@ __metadata: languageName: node linkType: hard +"@emotion/weak-memoize@npm:^0.4.0": + version: 0.4.0 + resolution: "@emotion/weak-memoize@npm:0.4.0" + checksum: 10/db5da0e89bd752c78b6bd65a1e56231f0abebe2f71c0bd8fc47dff96408f7065b02e214080f99924f6a3bfe7ee15afc48dad999d76df86b39b16e513f7a94f52 + languageName: node + linkType: hard + "@ensdomains/address-encoder@npm:^0.1.7": version: 0.1.9 resolution: "@ensdomains/address-encoder@npm:0.1.9" @@ -8728,25 +8769,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/core@npm:^1.4.1": - version: 1.4.1 - resolution: "@floating-ui/core@npm:1.4.1" - dependencies: - "@floating-ui/utils": "npm:^0.1.1" - checksum: 10/2a2dd8a2ae443e63cb9c822785891b1194ad3a402b8252054a3c238763eab86a2f09ab89096fa7d1667e3cb7d2ff2f28b7ab07d5e5ee56544e825e5bd4665570 - languageName: node - linkType: hard - -"@floating-ui/dom@npm:^1.5.1": - version: 1.5.1 - resolution: "@floating-ui/dom@npm:1.5.1" - dependencies: - "@floating-ui/core": "npm:^1.4.1" - "@floating-ui/utils": "npm:^0.1.1" - checksum: 10/3af542d549e394feb0c74f39ef01d87debb5295b49b8852ad481a055503e5dc61768880710c83de6e49a2c100cad8671298d3c73293cb63a13e23068f0612224 - languageName: node - linkType: hard - "@floating-ui/dom@npm:^1.6.1": version: 1.6.3 resolution: "@floating-ui/dom@npm:1.6.3" @@ -8757,18 +8779,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react-dom@npm:^2.0.4": - version: 2.0.4 - resolution: "@floating-ui/react-dom@npm:2.0.4" - dependencies: - "@floating-ui/dom": "npm:^1.5.1" - peerDependencies: - react: ">=16.8.0" - react-dom: ">=16.8.0" - checksum: 10/4240a718502c797fd2e174cd06dcd7321a6eda9c8966dbaf61864b9e16445e95649a59bfe7c19ee13f68c11f3693724d7970c7e618089a3d3915bd343639cfae - languageName: node - linkType: hard - "@floating-ui/react-dom@npm:^2.0.8": version: 2.0.8 resolution: "@floating-ui/react-dom@npm:2.0.8" @@ -8781,13 +8791,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/utils@npm:^0.1.1": - version: 0.1.1 - resolution: "@floating-ui/utils@npm:0.1.1" - checksum: 10/ba1a6d073f8af4290f9d0ecf2ca73f97a742ed9bae060bf4aec604db5642a6cc7aa38041c2c1a1ffb0dd1c99549bbfde3dc61202ad7cb91a963d2b2eea747719 - languageName: node - linkType: hard - "@floating-ui/utils@npm:^0.2.0, @floating-ui/utils@npm:^0.2.1": version: 0.2.1 resolution: "@floating-ui/utils@npm:0.2.1" @@ -9191,24 +9194,37 @@ __metadata: dependencies: "@emotion/react": "npm:11.11.1" "@emotion/styled": "npm:11.11.0" - "@mui/icons-material": "npm:5.14.19" - "@mui/material": "npm:5.14.19" + "@hyperledger/cactus-example-cbdc-bridging-backend": "npm:2.0.0-rc.7" + "@mui/icons-material": "npm:6.1.1" + "@mui/material": "npm:6.1.1" "@testing-library/jest-dom": "npm:5.17.0" "@testing-library/react": "npm:13.4.0" "@testing-library/user-event": "npm:13.5.0" + "@types/copy-webpack-plugin": "npm:^10.1.0" + "@types/customize-cra": "npm:^1" "@types/jest": "npm:27.5.2" - "@types/node": "npm:18.11.9" - "@types/react": "npm:18.2.39" - "@types/react-dom": "npm:18.2.17" + "@types/node": "npm:^22.6.0" + "@types/react": "npm:18.3.8" + "@types/react-dom": "npm:18.3.0" "@types/uuid": "npm:10.0.0" axios: "npm:1.7.7" - react: "npm:18.2.0" - react-dom: "npm:18.2.0" + copy-webpack-plugin: "npm:^12.0.2" + css-loader: "npm:^7.1.2" + customize-cra: "npm:^1.0.0" + html-webpack-plugin: "npm:^5.6.0" + react: "npm:18.3.1" + react-app-rewired: "npm:^2.2.1" + react-dom: "npm:18.3.1" react-router-dom: "npm:6.2.1" react-scripts: "npm:5.0.1" - typescript: "npm:5.5.2" + style-loader: "npm:^4.0.0" + ts-loader: "npm:^9.5.1" + ts-node: "npm:^10.9.2" + typescript: "npm:^5.6.2" uuid: "npm:10.0.0" - web-vitals: "npm:2.1.4" + webpack: "npm:^5.94.0" + webpack-cli: "npm:5.1.4" + webpack-dev-server: "npm:^5.1.0" languageName: unknown linkType: soft @@ -9843,10 +9859,11 @@ __metadata: languageName: unknown linkType: soft -"@hyperledger/cactus-example-cbdc-bridging-backend@workspace:examples/cactus-example-cbdc-bridging-backend": +"@hyperledger/cactus-example-cbdc-bridging-backend@npm:2.0.0-rc.7, @hyperledger/cactus-example-cbdc-bridging-backend@workspace:examples/cactus-example-cbdc-bridging-backend": version: 0.0.0-use.local resolution: "@hyperledger/cactus-example-cbdc-bridging-backend@workspace:examples/cactus-example-cbdc-bridging-backend" dependencies: + "@apidevtools/swagger-cli": "npm:4.0.4" "@foundry-rs/hardhat-forge": "npm:0.1.17" "@hyperledger/cactus-api-client": "npm:2.0.0-rc.7" "@hyperledger/cactus-cmd-api-server": "npm:2.0.0-rc.7" @@ -9868,6 +9885,7 @@ __metadata: "@types/express-jwt": "npm:6.0.2" "@types/fs-extra": "npm:9.0.13" "@types/node": "npm:18.11.9" + "@types/swagger-ui-express": "npm:4.1.6" "@types/uuid": "npm:9.0.8" async-exit-hook: "npm:2.0.1" axios: "npm:1.7.7" @@ -9885,16 +9903,19 @@ __metadata: jose: "npm:4.15.5" knex: "npm:2.5.1" kubo-rpc-client: "npm:3.0.1" + npm-run-all: "npm:4.1.5" nyc: "npm:13.1.0" openapi-types: "npm:12.1.3" remix-tests: "npm:0.1.34" socket.io: "npm:4.6.2" sqlite3: "npm:5.1.5" - ts-node: "npm:7.0.1" + swagger-cli: "npm:4.0.4" + ts-node: "npm:10.9.2" typescript-optional: "npm:2.0.1" uuid: "npm:9.0.1" web3-core: "npm:1.10.1" web3-utils: "npm:1.10.1" + webpack: "npm:^5.94.0" languageName: unknown linkType: soft @@ -12894,28 +12915,6 @@ __metadata: languageName: node linkType: hard -"@mui/base@npm:5.0.0-beta.25": - version: 5.0.0-beta.25 - resolution: "@mui/base@npm:5.0.0-beta.25" - dependencies: - "@babel/runtime": "npm:^7.23.4" - "@floating-ui/react-dom": "npm:^2.0.4" - "@mui/types": "npm:^7.2.10" - "@mui/utils": "npm:^5.14.19" - "@popperjs/core": "npm:^2.11.8" - clsx: "npm:^2.0.0" - prop-types: "npm:^15.8.1" - peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10/93cecb438ec9d5bac2440a65c295fbd2cde6aa7f1264005b0c9ef76c1332b77111f7b688209364b97344642bee0e71f2bd3b3b14039921f68a8b7111d3a513e4 - languageName: node - linkType: hard - "@mui/base@npm:5.0.0-beta.40": version: 5.0.0-beta.40 resolution: "@mui/base@npm:5.0.0-beta.40" @@ -12938,13 +12937,6 @@ __metadata: languageName: node linkType: hard -"@mui/core-downloads-tracker@npm:^5.14.19": - version: 5.14.19 - resolution: "@mui/core-downloads-tracker@npm:5.14.19" - checksum: 10/e71c886f12bbd83791638545017c0b8439c3c6b51125979fea105f938f2f5b109629d4deddd38448c05b8be10b3249334324f1505c1306c52a2b8d315a1005c3 - languageName: node - linkType: hard - "@mui/core-downloads-tracker@npm:^5.15.15": version: 5.15.15 resolution: "@mui/core-downloads-tracker@npm:5.15.15" @@ -12952,19 +12944,10 @@ __metadata: languageName: node linkType: hard -"@mui/icons-material@npm:5.14.19": - version: 5.14.19 - resolution: "@mui/icons-material@npm:5.14.19" - dependencies: - "@babel/runtime": "npm:^7.23.4" - peerDependencies: - "@mui/material": ^5.0.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10/648a44af9a18a39062126d80268d0d4816d408d253d46f097cf8ad525e37dad8301a7727942f4908a15c432de361dabe29de0595f3771cf8acf7da311374441e +"@mui/core-downloads-tracker@npm:^6.1.1": + version: 6.1.3 + resolution: "@mui/core-downloads-tracker@npm:6.1.3" + checksum: 10/e8b3bc8cce8dd3497c2d27a2e15ab989489011a1c85aedb634f4a20b71412d01f12d15a59a9824861022f12625b208e7da17a1e5d9a7e57b458ed4c82a8032eb languageName: node linkType: hard @@ -12974,9 +12957,9 @@ __metadata: dependencies: "@babel/runtime": "npm:^7.23.9" peerDependencies: - "@mui/material": ^5.0.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + "@mui/material": ^6.1.1 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@types/react": optional: true @@ -12984,6 +12967,22 @@ __metadata: languageName: node linkType: hard +"@mui/icons-material@npm:6.1.1": + version: 6.1.1 + resolution: "@mui/icons-material@npm:6.1.1" + dependencies: + "@babel/runtime": "npm:^7.25.6" + peerDependencies: + "@mui/material": ^6.1.1 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10/65a298ef3cc369b62dec32612bb53bc958c9ac66dba94fdc404e7717f290db798e16bab0b2c5ce67efade6ab957a9bda5a18612cb4db7b5b612bfc618ae794ec + languageName: node + linkType: hard + "@mui/lab@npm:5.0.0-alpha.170": version: 5.0.0-alpha.170 resolution: "@mui/lab@npm:5.0.0-alpha.170" @@ -13013,39 +13012,6 @@ __metadata: languageName: node linkType: hard -"@mui/material@npm:5.14.19": - version: 5.14.19 - resolution: "@mui/material@npm:5.14.19" - dependencies: - "@babel/runtime": "npm:^7.23.4" - "@mui/base": "npm:5.0.0-beta.25" - "@mui/core-downloads-tracker": "npm:^5.14.19" - "@mui/system": "npm:^5.14.19" - "@mui/types": "npm:^7.2.10" - "@mui/utils": "npm:^5.14.19" - "@types/react-transition-group": "npm:^4.4.9" - clsx: "npm:^2.0.0" - csstype: "npm:^3.1.2" - prop-types: "npm:^15.8.1" - react-is: "npm:^18.2.0" - react-transition-group: "npm:^4.4.5" - peerDependencies: - "@emotion/react": ^11.5.0 - "@emotion/styled": ^11.3.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@emotion/react": - optional: true - "@emotion/styled": - optional: true - "@types/react": - optional: true - checksum: 10/9b89bf20e5086801d8737d906d4c84023e04883a67186c4f523748740a90bee495a8c93ba7bc1272fdc0f9ee9951e2ebff149ecd63697abfba06dbfe9787f5fa - languageName: node - linkType: hard - "@mui/material@npm:5.15.15": version: 5.15.15 resolution: "@mui/material@npm:5.15.15" @@ -13060,39 +13026,59 @@ __metadata: clsx: "npm:^2.1.0" csstype: "npm:^3.1.3" prop-types: "npm:^15.8.1" - react-is: "npm:^18.2.0" + react-is: "npm:^18.3.1" react-transition-group: "npm:^4.4.5" peerDependencies: "@emotion/react": ^11.5.0 "@emotion/styled": ^11.3.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 + "@mui/material-pigment-css": ^6.1.1 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@emotion/react": optional: true "@emotion/styled": optional: true - "@types/react": + "@mui/material-pigment-css": optional: true checksum: 10/e2803d078243ee5489bf693f7e9d421061dfda79b6ce74762f3a81e3c519cf69c18af179e4267fc9d0ce799898e6b3d7eac029e7dcfbea12dab5e867d641984b languageName: node linkType: hard -"@mui/private-theming@npm:^5.14.19": - version: 5.14.19 - resolution: "@mui/private-theming@npm:5.14.19" +"@mui/material@npm:6.1.1": + version: 6.1.1 + resolution: "@mui/material@npm:6.1.1" dependencies: - "@babel/runtime": "npm:^7.23.4" - "@mui/utils": "npm:^5.14.19" + "@babel/runtime": "npm:^7.25.6" + "@mui/core-downloads-tracker": "npm:^6.1.1" + "@mui/system": "npm:^6.1.1" + "@mui/types": "npm:^7.2.17" + "@mui/utils": "npm:^6.1.1" + "@popperjs/core": "npm:^2.11.8" + "@types/react-transition-group": "npm:^4.4.11" + clsx: "npm:^2.1.1" + csstype: "npm:^3.1.3" prop-types: "npm:^15.8.1" + react-is: "npm:^18.3.1" + react-transition-group: "npm:^4.4.5" peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + "@emotion/react": ^11.5.0 + "@emotion/styled": ^11.3.0 + "@mui/material-pigment-css": ^6.1.1 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: + "@emotion/react": + optional: true + "@emotion/styled": + optional: true + "@mui/material-pigment-css": + optional: true "@types/react": optional: true - checksum: 10/248687351477c7794a002dd0c4ae68216b5794591407e0b4751eede8fe35db94c163642365578938dc66fbeb7a6c771c811ab2f7fa4b2bc60f663dc826084ca0 + checksum: 10/090a2ed0e95d01e52f630787f6606589f50f4b5616ec35aadb2da79233331c5531a779c369d9501efe7110420b67e81b6630f050533e4b7170783606487b300a languageName: node linkType: hard @@ -13113,24 +13099,20 @@ __metadata: languageName: node linkType: hard -"@mui/styled-engine@npm:^5.14.19": - version: 5.14.19 - resolution: "@mui/styled-engine@npm:5.14.19" +"@mui/private-theming@npm:^6.1.1": + version: 6.1.1 + resolution: "@mui/private-theming@npm:6.1.1" dependencies: - "@babel/runtime": "npm:^7.23.4" - "@emotion/cache": "npm:^11.11.0" - csstype: "npm:^3.1.2" + "@babel/runtime": "npm:^7.25.6" + "@mui/utils": "npm:^6.1.1" prop-types: "npm:^15.8.1" peerDependencies: - "@emotion/react": ^11.4.1 - "@emotion/styled": ^11.3.0 - react: ^17.0.0 || ^18.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: - "@emotion/react": - optional: true - "@emotion/styled": + "@types/react": optional: true - checksum: 10/210da24bcb47c8b911b0f4174ecd77ced2aa5eba442861b474fe575384d736edc9553b707be35a086ae514503c26dbfa5541a352db65fa7de970c6251365214b + checksum: 10/93b9c2bc5602124ae207bc9d0a305efceabfec2d4227db243a9fa25f9bb693a13caf9181293372279682715dcf5fcb04ea56f4b3c4905c96dd3c691a8394bb13 languageName: node linkType: hard @@ -13155,31 +13137,25 @@ __metadata: languageName: node linkType: hard -"@mui/system@npm:^5.14.19": - version: 5.14.19 - resolution: "@mui/system@npm:5.14.19" +"@mui/styled-engine@npm:^6.1.1": + version: 6.1.1 + resolution: "@mui/styled-engine@npm:6.1.1" dependencies: - "@babel/runtime": "npm:^7.23.4" - "@mui/private-theming": "npm:^5.14.19" - "@mui/styled-engine": "npm:^5.14.19" - "@mui/types": "npm:^7.2.10" - "@mui/utils": "npm:^5.14.19" - clsx: "npm:^2.0.0" - csstype: "npm:^3.1.2" + "@babel/runtime": "npm:^7.25.6" + "@emotion/cache": "npm:^11.13.1" + "@emotion/sheet": "npm:^1.4.0" + csstype: "npm:^3.1.3" prop-types: "npm:^15.8.1" peerDependencies: - "@emotion/react": ^11.5.0 + "@emotion/react": ^11.4.1 "@emotion/styled": ^11.3.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@emotion/react": optional: true "@emotion/styled": optional: true - "@types/react": - optional: true - checksum: 10/68fddc614aae5dba86db134ae1b2ab7540d61e4008068ccd3c1cfa20d9f54508b9cf3ce68d2d1a4c7de237c9314206da291e987d323fa1425a12e5b36f2bc488 + checksum: 10/1520c4762539468edb1669ca84c965741dc403a93aec12cdb70b5d5a9dbcc2f4531306de344bb56ad9c68c7be4acdfe9d3372f4021203007dcc6a503f3fbc6e3 languageName: node linkType: hard @@ -13211,15 +13187,31 @@ __metadata: languageName: node linkType: hard -"@mui/types@npm:^7.2.10": - version: 7.2.10 - resolution: "@mui/types@npm:7.2.10" +"@mui/system@npm:^6.1.1": + version: 6.1.1 + resolution: "@mui/system@npm:6.1.1" + dependencies: + "@babel/runtime": "npm:^7.25.6" + "@mui/private-theming": "npm:^6.1.1" + "@mui/styled-engine": "npm:^6.1.1" + "@mui/types": "npm:^7.2.17" + "@mui/utils": "npm:^6.1.1" + clsx: "npm:^2.1.1" + csstype: "npm:^3.1.3" + prop-types: "npm:^15.8.1" peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 + "@emotion/react": ^11.5.0 + "@emotion/styled": ^11.3.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: + "@emotion/react": + optional: true + "@emotion/styled": + optional: true "@types/react": optional: true - checksum: 10/83067cd1da9c79f7ee82f171ba718435d8aa12c6e72c4d5d24bee9e310416ccb91cb86cb0502f463e683e9707d90befc5112509fe7af54cacd39f8556b150f9b + checksum: 10/64f61f9f91b6af3bc923fcfa806dc94b3909f92d56e373d0e8724614a9980a0bbab9bc843214e33a3465fa6efbb05f63c18bf74b32a71e86930464cfecbe856e languageName: node linkType: hard @@ -13235,21 +13227,15 @@ __metadata: languageName: node linkType: hard -"@mui/utils@npm:^5.14.19": - version: 5.14.19 - resolution: "@mui/utils@npm:5.14.19" - dependencies: - "@babel/runtime": "npm:^7.23.4" - "@types/prop-types": "npm:^15.7.11" - prop-types: "npm:^15.8.1" - react-is: "npm:^18.2.0" +"@mui/types@npm:^7.2.17": + version: 7.2.17 + resolution: "@mui/types@npm:7.2.17" peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@types/react": optional: true - checksum: 10/1abbcfef21fc71805af1a4d653d9adeec252ebe4892715a0c6c49246c6cfa84f46c82e033679ab50eb2cf3ef391d9eb622c48aa78f152032aa99a996eac98806 + checksum: 10/de21ecd69e4fe22738f1437d7084747c07a1e88f6fbdea5a2927594c587aaf8cac7bd67118b8749a8c7a6f45875b937d4a20b43f531773cdfd870445a4237893 languageName: node linkType: hard @@ -13271,6 +13257,26 @@ __metadata: languageName: node linkType: hard +"@mui/utils@npm:^6.1.1": + version: 6.1.1 + resolution: "@mui/utils@npm:6.1.1" + dependencies: + "@babel/runtime": "npm:^7.25.6" + "@mui/types": "npm:^7.2.17" + "@types/prop-types": "npm:^15.7.12" + clsx: "npm:^2.1.1" + prop-types: "npm:^15.8.1" + react-is: "npm:^18.3.1" + peerDependencies: + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10/11555b8595ba8f215d3e90c36ea992c17f7901465f10a992b7c7d90596bac25f0ea4f07c9a9d9cd64015828cc6b9c3dedaf5d39a039e75ab252a3d097022bbcb + languageName: node + linkType: hard + "@multiformats/base-x@npm:^4.0.1": version: 4.0.1 resolution: "@multiformats/base-x@npm:4.0.1" @@ -16781,6 +16787,19 @@ __metadata: languageName: node linkType: hard +"@types/babel__core@npm:*, @types/babel__core@npm:^7.20.5": + version: 7.20.5 + resolution: "@types/babel__core@npm:7.20.5" + dependencies: + "@babel/parser": "npm:^7.20.7" + "@babel/types": "npm:^7.20.7" + "@types/babel__generator": "npm:*" + "@types/babel__template": "npm:*" + "@types/babel__traverse": "npm:*" + checksum: 10/c32838d280b5ab59d62557f9e331d3831f8e547ee10b4f85cb78753d97d521270cebfc73ce501e9fb27fe71884d1ba75e18658692c2f4117543f0fc4e3e118b3 + languageName: node + linkType: hard + "@types/babel__core@npm:^7.0.0": version: 7.20.2 resolution: "@types/babel__core@npm:7.20.2" @@ -16807,19 +16826,6 @@ __metadata: languageName: node linkType: hard -"@types/babel__core@npm:^7.20.5": - version: 7.20.5 - resolution: "@types/babel__core@npm:7.20.5" - dependencies: - "@babel/parser": "npm:^7.20.7" - "@babel/types": "npm:^7.20.7" - "@types/babel__generator": "npm:*" - "@types/babel__template": "npm:*" - "@types/babel__traverse": "npm:*" - checksum: 10/c32838d280b5ab59d62557f9e331d3831f8e547ee10b4f85cb78753d97d521270cebfc73ce501e9fb27fe71884d1ba75e18658692c2f4117543f0fc4e3e118b3 - languageName: node - linkType: hard - "@types/babel__generator@npm:*": version: 7.6.4 resolution: "@types/babel__generator@npm:7.6.4" @@ -16930,6 +16936,15 @@ __metadata: languageName: node linkType: hard +"@types/bonjour@npm:^3.5.13": + version: 3.5.13 + resolution: "@types/bonjour@npm:3.5.13" + dependencies: + "@types/node": "npm:*" + checksum: 10/e827570e097bd7d625a673c9c208af2d1a22fa3885c0a1646533cf24394c839c3e5f60ac1bc60c0ddcc69c0615078c9fb2c01b42596c7c582d895d974f2409ee + languageName: node + linkType: hard + "@types/bonjour@npm:^3.5.9": version: 3.5.10 resolution: "@types/bonjour@npm:3.5.10" @@ -16991,6 +17006,16 @@ __metadata: languageName: node linkType: hard +"@types/connect-history-api-fallback@npm:^1.5.4": + version: 1.5.4 + resolution: "@types/connect-history-api-fallback@npm:1.5.4" + dependencies: + "@types/express-serve-static-core": "npm:*" + "@types/node": "npm:*" + checksum: 10/e1dee43b8570ffac02d2d47a2b4ba80d3ca0dd1840632dafb221da199e59dbe3778d3d7303c9e23c6b401f37c076935a5bc2aeae1c4e5feaefe1c371fe2073fd + languageName: node + linkType: hard + "@types/connect@npm:*": version: 3.4.35 resolution: "@types/connect@npm:3.4.35" @@ -17032,6 +17057,15 @@ __metadata: languageName: node linkType: hard +"@types/copy-webpack-plugin@npm:^10.1.0": + version: 10.1.0 + resolution: "@types/copy-webpack-plugin@npm:10.1.0" + dependencies: + copy-webpack-plugin: "npm:*" + checksum: 10/c5012e9725beb34bc07ca47f5861ee0770f0c76fe04e8878142ba5d12aa91c6d330ec777378eb65ff5fbb5f05863a2b1b935318db0f3f2e754c126b181645adf + languageName: node + linkType: hard + "@types/cordova@npm:latest": version: 0.0.34 resolution: "@types/cordova@npm:0.0.34" @@ -17067,6 +17101,18 @@ __metadata: languageName: node linkType: hard +"@types/customize-cra@npm:^1": + version: 1.0.8 + resolution: "@types/customize-cra@npm:1.0.8" + dependencies: + "@types/babel__core": "npm:*" + "@types/webpack": "npm:^4" + "@types/webpack-bundle-analyzer": "npm:^3" + "@types/workbox-webpack-plugin": "npm:^5.1.8" + checksum: 10/16191bb9edbd1d4786ec2ac5ac21b9f4ce656c9b99fc0b696fe3c3a35dc4d0818013ff4978805a173f848d1c1b11bd7ac2b8285f00a10d78926cd63e8ad46d05 + languageName: node + linkType: hard + "@types/debug@npm:4.1.12": version: 4.1.12 resolution: "@types/debug@npm:4.1.12" @@ -17339,7 +17385,7 @@ __metadata: languageName: node linkType: hard -"@types/express@npm:^4.17.18": +"@types/express@npm:^4.17.18, @types/express@npm:^4.17.21": version: 4.17.21 resolution: "@types/express@npm:4.17.21" dependencies: @@ -17854,6 +17900,15 @@ __metadata: languageName: node linkType: hard +"@types/node-forge@npm:^1.3.0": + version: 1.3.11 + resolution: "@types/node-forge@npm:1.3.11" + dependencies: + "@types/node": "npm:*" + checksum: 10/670c9b377c48189186ec415e3c8ed371f141ecc1a79ab71b213b20816adeffecba44dae4f8406cc0d09e6349a4db14eb8c5893f643d8e00fa19fc035cf49dee0 + languageName: node + linkType: hard + "@types/node-vault@npm:0.9.13": version: 0.9.13 resolution: "@types/node-vault@npm:0.9.13" @@ -17926,6 +17981,15 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^22.6.0": + version: 22.6.0 + resolution: "@types/node@npm:22.6.0" + dependencies: + undici-types: "npm:~6.19.2" + checksum: 10/91f5609de4c3ea5878b550ddcd623395fa16d504839dd9ebf625d2a786d1d157a69bd8fecb7cfc89317d9d1680cbb499d006122706fe7bbea328c583870a2458 + languageName: node + linkType: hard + "@types/normalize-package-data@npm:^2.4.0, @types/normalize-package-data@npm:^2.4.1": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -18044,6 +18108,13 @@ __metadata: languageName: node linkType: hard +"@types/prop-types@npm:^15.7.12": + version: 15.7.13 + resolution: "@types/prop-types@npm:15.7.13" + checksum: 10/8935cad87c683c665d09a055919d617fe951cb3b2d5c00544e3a913f861a2bd8d2145b51c9aa6d2457d19f3107ab40784c40205e757232f6a80cc8b1c815513c + languageName: node + linkType: hard + "@types/q@npm:^1.5.1": version: 1.5.5 resolution: "@types/q@npm:1.5.5" @@ -18081,6 +18152,15 @@ __metadata: languageName: node linkType: hard +"@types/react-dom@npm:18.3.0": + version: 18.3.0 + resolution: "@types/react-dom@npm:18.3.0" + dependencies: + "@types/react": "npm:*" + checksum: 10/6ff53f5a7b7fba952a68e114d3b542ebdc1e87a794234785ebab0bcd9bde7fb4885f21ebaf93d26dc0a1b5b93287f42cad68b78ae04dddf6b20da7aceff0beaf + languageName: node + linkType: hard + "@types/react-transition-group@npm:^4.4.10": version: 4.4.10 resolution: "@types/react-transition-group@npm:4.4.10" @@ -18090,12 +18170,12 @@ __metadata: languageName: node linkType: hard -"@types/react-transition-group@npm:^4.4.9": - version: 4.4.9 - resolution: "@types/react-transition-group@npm:4.4.9" +"@types/react-transition-group@npm:^4.4.11": + version: 4.4.11 + resolution: "@types/react-transition-group@npm:4.4.11" dependencies: "@types/react": "npm:*" - checksum: 10/74ed0985380544bd1d63d8865a452a859ed7122b35dd2cf919fa7d1f31936345671995d36c89263456f27dbb5940eac8d4607be969e27187102eecff1cc64ba3 + checksum: 10/a7f4de6e5f57d9fcdea027e22873c633f96a803c96d422db8b99a45c36a9cceb7882d152136bbc31c7158fc1827e37aea5070d369724bb71dd11b5687332bc4d languageName: node linkType: hard @@ -18110,25 +18190,24 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:18.2.39": - version: 18.2.39 - resolution: "@types/react@npm:18.2.39" +"@types/react@npm:18.2.43": + version: 18.2.43 + resolution: "@types/react@npm:18.2.43" dependencies: "@types/prop-types": "npm:*" "@types/scheduler": "npm:*" csstype: "npm:^3.0.2" - checksum: 10/870f7774c676ae0f3ab6339a62b3315f5a296e89412358b15a5249a61e781a8807a2253ef7ad2ec98e7a5bea1e8c3ddd95b02226d6b8ac4a085da59b4a496564 + checksum: 10/a9d90a93380bb67623f27eba83e2d05b548109f7eb6fd591f5c4a3716bc257cc7cb078455db7ea4308d5f2ff6b4fe48d9a4a560145d9384069a2b5121bc93937 languageName: node linkType: hard -"@types/react@npm:18.2.43": - version: 18.2.43 - resolution: "@types/react@npm:18.2.43" +"@types/react@npm:18.3.8": + version: 18.3.8 + resolution: "@types/react@npm:18.3.8" dependencies: "@types/prop-types": "npm:*" - "@types/scheduler": "npm:*" csstype: "npm:^3.0.2" - checksum: 10/a9d90a93380bb67623f27eba83e2d05b548109f7eb6fd591f5c4a3716bc257cc7cb078455db7ea4308d5f2ff6b4fe48d9a4a560145d9384069a2b5121bc93937 + checksum: 10/75e64e7f481c28e6c8ce6dae12f49ccc3f36c7b10b82da3eb7728ad9c02bec58a2c967105603e38665902e8db9296962c7718bc2062e2cb64a16e92333bd1f4b languageName: node linkType: hard @@ -18212,6 +18291,13 @@ __metadata: languageName: node linkType: hard +"@types/retry@npm:0.12.2": + version: 0.12.2 + resolution: "@types/retry@npm:0.12.2" + checksum: 10/e5675035717b39ce4f42f339657cae9637cf0c0051cf54314a6a2c44d38d91f6544be9ddc0280587789b6afd056be5d99dbe3e9f4df68c286c36321579b1bf4a + languageName: node + linkType: hard + "@types/retry@npm:^0.12.0": version: 0.12.1 resolution: "@types/retry@npm:0.12.1" @@ -18293,6 +18379,15 @@ __metadata: languageName: node linkType: hard +"@types/serve-index@npm:^1.9.4": + version: 1.9.4 + resolution: "@types/serve-index@npm:1.9.4" + dependencies: + "@types/express": "npm:*" + checksum: 10/72727c88d54da5b13275ebfb75dcdc4aa12417bbe9da1939e017c4c5f0c906fae843aa4e0fbfe360e7ee9df2f3d388c21abfc488f77ce58693fb57809f8ded92 + languageName: node + linkType: hard + "@types/serve-static@npm:*": version: 1.13.10 resolution: "@types/serve-static@npm:1.13.10" @@ -18314,6 +18409,17 @@ __metadata: languageName: node linkType: hard +"@types/serve-static@npm:^1.15.5": + version: 1.15.7 + resolution: "@types/serve-static@npm:1.15.7" + dependencies: + "@types/http-errors": "npm:*" + "@types/node": "npm:*" + "@types/send": "npm:*" + checksum: 10/c5a7171d5647f9fbd096ed1a26105759f3153ccf683824d99fee4c7eb9cde2953509621c56a070dd9fb1159e799e86d300cbe4e42245ebc5b0c1767e8ca94a67 + languageName: node + linkType: hard + "@types/shelljs@npm:0.8.11": version: 0.8.11 resolution: "@types/shelljs@npm:0.8.11" @@ -18359,6 +18465,22 @@ __metadata: languageName: node linkType: hard +"@types/sockjs@npm:^0.3.36": + version: 0.3.36 + resolution: "@types/sockjs@npm:0.3.36" + dependencies: + "@types/node": "npm:*" + checksum: 10/b4b5381122465d80ea8b158537c00bc82317222d3fb31fd7229ff25b31fa89134abfbab969118da55622236bf3d8fee75759f3959908b5688991f492008f29bc + languageName: node + linkType: hard + +"@types/source-list-map@npm:*": + version: 0.1.6 + resolution: "@types/source-list-map@npm:0.1.6" + checksum: 10/9cd294c121f1562062de5d241fe4d10780b1131b01c57434845fe50968e9dcf67ede444591c2b1ad6d3f9b6bc646ac02cc8f51a3577c795f9c64cf4573dcc6b1 + languageName: node + linkType: hard + "@types/ssh2-streams@npm:*, @types/ssh2-streams@npm:0.1.9": version: 0.1.9 resolution: "@types/ssh2-streams@npm:0.1.9" @@ -18444,6 +18566,13 @@ __metadata: languageName: node linkType: hard +"@types/tapable@npm:^1": + version: 1.0.12 + resolution: "@types/tapable@npm:1.0.12" + checksum: 10/adfb978a3097154be92c4a92184bb17f86a84473bd871a9a862f81676532ebec86ea61acdce999186447832e32a4d45d591d64b64131dd977ca41508165011d7 + languageName: node + linkType: hard + "@types/tape-promise@npm:4.0.1": version: 4.0.1 resolution: "@types/tape-promise@npm:4.0.1" @@ -18538,6 +18667,15 @@ __metadata: languageName: node linkType: hard +"@types/uglify-js@npm:*": + version: 3.17.5 + resolution: "@types/uglify-js@npm:3.17.5" + dependencies: + source-map: "npm:^0.6.1" + checksum: 10/87368861a3f2df071905d698c9f7a4b825e2f69dd29530283594ccddd155d4a8ff7795021af28a97d938c9557a6ea23bc3d77e076a6cf3e02f6401849e067f61 + languageName: node + linkType: hard + "@types/underscore@npm:*": version: 1.11.15 resolution: "@types/underscore@npm:1.11.15" @@ -18583,6 +18721,47 @@ __metadata: languageName: node linkType: hard +"@types/webpack-bundle-analyzer@npm:^3": + version: 3.9.9 + resolution: "@types/webpack-bundle-analyzer@npm:3.9.9" + dependencies: + "@types/webpack": "npm:^4" + checksum: 10/e5e393c4d48d2a4fd4e68a8536efa7957dba27695ce978c7f2214890c26ecc6c5d806c91f83d16ad0c91a095abc8a57006c70f75cdbff7545de1e2da250a29ba + languageName: node + linkType: hard + +"@types/webpack-sources@npm:*": + version: 3.2.3 + resolution: "@types/webpack-sources@npm:3.2.3" + dependencies: + "@types/node": "npm:*" + "@types/source-list-map": "npm:*" + source-map: "npm:^0.7.3" + checksum: 10/7b557f242efaa10e4e3e18cc4171a0c98e22898570caefdd4f7b076fe8534b5abfac92c953c6604658dcb7218507f970230352511840fe9fdea31a9af3b9a906 + languageName: node + linkType: hard + +"@types/webpack@npm:^4": + version: 4.41.39 + resolution: "@types/webpack@npm:4.41.39" + dependencies: + "@types/node": "npm:*" + "@types/tapable": "npm:^1" + "@types/uglify-js": "npm:*" + "@types/webpack-sources": "npm:*" + anymatch: "npm:^3.0.0" + source-map: "npm:^0.6.0" + checksum: 10/95a4bb66ac5a11e90a515967a01e532efc13504837865824430c5a6fe9e854c0bf650e8c95ba54207bf79e115bbb996fb9f34e5dd99e02e42586d49c9f075b93 + languageName: node + linkType: hard + +"@types/workbox-webpack-plugin@npm:^5.1.8": + version: 5.1.8 + resolution: "@types/workbox-webpack-plugin@npm:5.1.8" + checksum: 10/e2c8b833fa002694dc6d614b58efd472705f90a2b836eab88a4cad26444773e7628ed4f4d1b45ff59f2a7b9336876e28076b36a8a7e33273452b91fb0878e2f1 + languageName: node + linkType: hard + "@types/ws@npm:8.5.3, @types/ws@npm:^8.2.2": version: 8.5.3 resolution: "@types/ws@npm:8.5.3" @@ -18592,6 +18771,15 @@ __metadata: languageName: node linkType: hard +"@types/ws@npm:^8.5.10": + version: 8.5.12 + resolution: "@types/ws@npm:8.5.12" + dependencies: + "@types/node": "npm:*" + checksum: 10/d8a3ddfb5ff8fea992a043113579d61ac1ea21e8464415af9e2b01b205ed19d817821ad64ca1b3a90062d1df1c23b0f586d8351d25ca6728844df99a74e8f76d + languageName: node + linkType: hard + "@types/ws@npm:^8.5.4": version: 8.5.8 resolution: "@types/ws@npm:8.5.8" @@ -19391,6 +19579,16 @@ __metadata: languageName: node linkType: hard +"@webpack-cli/configtest@npm:^2.1.1": + version: 2.1.1 + resolution: "@webpack-cli/configtest@npm:2.1.1" + peerDependencies: + webpack: 5.x.x + webpack-cli: 5.x.x + checksum: 10/9f9f9145c2d05471fc83d426db1df85cf49f329836b0c4b9f46b6948bed4b013464c00622b136d2a0a26993ce2306976682592245b08ee717500b1db45009a72 + languageName: node + linkType: hard + "@webpack-cli/info@npm:^1.5.0": version: 1.5.0 resolution: "@webpack-cli/info@npm:1.5.0" @@ -19402,6 +19600,16 @@ __metadata: languageName: node linkType: hard +"@webpack-cli/info@npm:^2.0.2": + version: 2.0.2 + resolution: "@webpack-cli/info@npm:2.0.2" + peerDependencies: + webpack: 5.x.x + webpack-cli: 5.x.x + checksum: 10/8f9a178afca5c82e113aed1efa552d64ee5ae4fdff63fe747c096a981ec74f18a5d07bd6e89bbe6715c3e57d96eea024a410e58977169489fe1df044c10dd94e + languageName: node + linkType: hard + "@webpack-cli/serve@npm:^1.7.0": version: 1.7.0 resolution: "@webpack-cli/serve@npm:1.7.0" @@ -19414,6 +19622,19 @@ __metadata: languageName: node linkType: hard +"@webpack-cli/serve@npm:^2.0.5": + version: 2.0.5 + resolution: "@webpack-cli/serve@npm:2.0.5" + peerDependencies: + webpack: 5.x.x + webpack-cli: 5.x.x + peerDependenciesMeta: + webpack-dev-server: + optional: true + checksum: 10/20424e5c1e664e4d7ab11facee7033bb729f6acd86493138069532934c1299c1426da72942822dedb00caca8fc60cc8aec1626e610ee0e8a9679e3614f555860 + languageName: node + linkType: hard + "@wessberg/ts-evaluator@npm:0.0.27": version: 0.0.27 resolution: "@wessberg/ts-evaluator@npm:0.0.27" @@ -19933,7 +20154,7 @@ __metadata: languageName: node linkType: hard -"ajv-keywords@npm:^5.0.0": +"ajv-keywords@npm:^5.0.0, ajv-keywords@npm:^5.1.0": version: 5.1.0 resolution: "ajv-keywords@npm:5.1.0" dependencies: @@ -19956,7 +20177,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:8.17.1, ajv@npm:^8.10.0, ajv@npm:^8.14.0": +"ajv@npm:8.17.1, ajv@npm:^8.10.0, ajv@npm:^8.14.0, ajv@npm:^8.9.0": version: 8.17.1 resolution: "ajv@npm:8.17.1" dependencies: @@ -20192,6 +20413,16 @@ __metadata: languageName: node linkType: hard +"anymatch@npm:^3.0.0": + version: 3.1.3 + resolution: "anymatch@npm:3.1.3" + dependencies: + normalize-path: "npm:^3.0.0" + picomatch: "npm:^2.0.4" + checksum: 10/3e044fd6d1d26545f235a9fe4d7a534e2029d8e59fa7fd9f2a6eb21230f6b5380ea1eaf55136e60cbf8e613544b3b766e7a6fa2102e2a3a117505466e3025dc2 + languageName: node + linkType: hard + "anymatch@npm:^3.0.3, anymatch@npm:~3.1.2": version: 3.1.2 resolution: "anymatch@npm:3.1.2" @@ -20818,7 +21049,7 @@ __metadata: languageName: node linkType: hard -"arrify@npm:^1.0.0, arrify@npm:^1.0.1": +"arrify@npm:^1.0.1": version: 1.0.1 resolution: "arrify@npm:1.0.1" checksum: 10/745075dd4a4624ff0225c331dacb99be501a515d39bcb7c84d24660314a6ec28e68131b137e6f7e16318170842ce97538cd298fc4cd6b2cc798e0b957f2747e7 @@ -21998,6 +22229,16 @@ __metadata: languageName: node linkType: hard +"bonjour-service@npm:^1.2.1": + version: 1.2.1 + resolution: "bonjour-service@npm:1.2.1" + dependencies: + fast-deep-equal: "npm:^3.1.3" + multicast-dns: "npm:^7.2.5" + checksum: 10/8350d135ab8dd998a829136984d7f74bfc0667b162ab99ac98bae54d72ff7a6003c6fb7911739dfba7c56a113bd6ab06a4d4fe6719b18e66592c345663e7d923 + languageName: node + linkType: hard + "boolbase@npm:^1.0.0": version: 1.0.0 resolution: "boolbase@npm:1.0.0" @@ -22383,7 +22624,7 @@ __metadata: languageName: node linkType: hard -"buffer-from@npm:1.1.2, buffer-from@npm:^1.0.0, buffer-from@npm:^1.1.0": +"buffer-from@npm:1.1.2, buffer-from@npm:^1.0.0": version: 1.1.2 resolution: "buffer-from@npm:1.1.2" checksum: 10/0448524a562b37d4d7ed9efd91685a5b77a50672c556ea254ac9a6d30e3403a517d8981f10e565db24e8339413b43c97ca2951f10e399c6125a0d8911f5679bb @@ -22515,6 +22756,15 @@ __metadata: languageName: node linkType: hard +"bundle-name@npm:^4.1.0": + version: 4.1.0 + resolution: "bundle-name@npm:4.1.0" + dependencies: + run-applescript: "npm:^7.0.0" + checksum: 10/1d966c8d2dbf4d9d394e53b724ac756c2414c45c01340b37743621f59cc565a435024b394ddcb62b9b335d1c9a31f4640eb648c3fec7f97ee74dc0694c9beb6c + languageName: node + linkType: hard + "busboy@npm:^1.0.0, busboy@npm:^1.6.0": version: 1.6.0 resolution: "busboy@npm:1.6.0" @@ -23316,6 +23566,25 @@ __metadata: languageName: node linkType: hard +"chokidar@npm:^3.6.0": + version: 3.6.0 + resolution: "chokidar@npm:3.6.0" + dependencies: + anymatch: "npm:~3.1.2" + braces: "npm:~3.0.2" + fsevents: "npm:~2.3.2" + glob-parent: "npm:~5.1.2" + is-binary-path: "npm:~2.1.0" + is-glob: "npm:~4.0.1" + normalize-path: "npm:~3.0.0" + readdirp: "npm:~3.6.0" + dependenciesMeta: + fsevents: + optional: true + checksum: 10/c327fb07704443f8d15f7b4a7ce93b2f0bc0e6cea07ec28a7570aa22cd51fcf0379df589403976ea956c369f25aa82d84561947e227cd925902e1751371658df + languageName: node + linkType: hard + "chownr@npm:^1.1.1, chownr@npm:^1.1.4": version: 1.1.4 resolution: "chownr@npm:1.1.4" @@ -23713,13 +23982,6 @@ __metadata: languageName: node linkType: hard -"clsx@npm:^2.0.0": - version: 2.0.0 - resolution: "clsx@npm:2.0.0" - checksum: 10/943766d1b02fee3538c871e56638d87f973fbc2d6291ce221215ea436fdecb9be97ad323f411839c2d52c45640c449b1a53fbfe7e8b3d529b4e263308b630c9a - languageName: node - linkType: hard - "clsx@npm:^2.1.0": version: 2.1.0 resolution: "clsx@npm:2.1.0" @@ -23727,6 +23989,13 @@ __metadata: languageName: node linkType: hard +"clsx@npm:^2.1.1": + version: 2.1.1 + resolution: "clsx@npm:2.1.1" + checksum: 10/cdfb57fa6c7649bbff98d9028c2f0de2f91c86f551179541cf784b1cfdc1562dcb951955f46d54d930a3879931a980e32a46b598acaea274728dbe068deca919 + languageName: node + linkType: hard + "cmd-shim@npm:^6.0.0": version: 6.0.1 resolution: "cmd-shim@npm:6.0.1" @@ -24540,6 +24809,22 @@ __metadata: languageName: node linkType: hard +"copy-webpack-plugin@npm:*, copy-webpack-plugin@npm:^12.0.2": + version: 12.0.2 + resolution: "copy-webpack-plugin@npm:12.0.2" + dependencies: + fast-glob: "npm:^3.3.2" + glob-parent: "npm:^6.0.1" + globby: "npm:^14.0.0" + normalize-path: "npm:^3.0.0" + schema-utils: "npm:^4.2.0" + serialize-javascript: "npm:^6.0.2" + peerDependencies: + webpack: ^5.1.0 + checksum: 10/674725d4d9556b7b9a32bb85393532ef2bb75ffce785d942681b3575a86d900751f67cebbb089ddd050757f58c84edc18732e17880f12c45c9775ca94328526c + languageName: node + linkType: hard + "copy-webpack-plugin@npm:11.0.0": version: 11.0.0 resolution: "copy-webpack-plugin@npm:11.0.0" @@ -25245,6 +25530,30 @@ __metadata: languageName: node linkType: hard +"css-loader@npm:^7.1.2": + version: 7.1.2 + resolution: "css-loader@npm:7.1.2" + dependencies: + icss-utils: "npm:^5.1.0" + postcss: "npm:^8.4.33" + postcss-modules-extract-imports: "npm:^3.1.0" + postcss-modules-local-by-default: "npm:^4.0.5" + postcss-modules-scope: "npm:^3.2.0" + postcss-modules-values: "npm:^4.0.0" + postcss-value-parser: "npm:^4.2.0" + semver: "npm:^7.5.4" + peerDependencies: + "@rspack/core": 0.x || 1.x + webpack: ^5.27.0 + peerDependenciesMeta: + "@rspack/core": + optional: true + webpack: + optional: true + checksum: 10/ddde22fb103888320f60a1414a6a04638d2e9760a532a52d03c45e6e2830b32dd76c734aeef426f78dd95b2d15f77eeec3854ac53061aff02569732dc6e6801c + languageName: node + linkType: hard + "css-minimizer-webpack-plugin@npm:^3.2.0": version: 3.4.1 resolution: "css-minimizer-webpack-plugin@npm:3.4.1" @@ -25490,13 +25799,6 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.1.2": - version: 3.1.2 - resolution: "csstype@npm:3.1.2" - checksum: 10/1f39c541e9acd9562996d88bc9fb62d1cb234786ef11ed275567d4b2bd82e1ceacde25debc8de3d3b4871ae02c2933fa02614004c97190711caebad6347debc2 - languageName: node - linkType: hard - "csstype@npm:^3.1.3": version: 3.1.3 resolution: "csstype@npm:3.1.3" @@ -25559,6 +25861,15 @@ __metadata: languageName: node linkType: hard +"customize-cra@npm:^1.0.0": + version: 1.0.0 + resolution: "customize-cra@npm:1.0.0" + dependencies: + lodash.flow: "npm:^3.5.0" + checksum: 10/978acd4fa5be592813dc1cba3bad25fd41bc09d12893639c20ac1b24e29ec1bd932223510dca4977cdedc85d84a7ab5762b66f887396ba60f77aa525225e23e0 + languageName: node + linkType: hard + "cycle@npm:1.0.x": version: 1.0.3 resolution: "cycle@npm:1.0.3" @@ -26037,6 +26348,23 @@ __metadata: languageName: node linkType: hard +"default-browser-id@npm:^5.0.0": + version: 5.0.0 + resolution: "default-browser-id@npm:5.0.0" + checksum: 10/185bfaecec2c75fa423544af722a3469b20704c8d1942794a86e4364fe7d9e8e9f63241a5b769d61c8151993bc65833a5b959026fa1ccea343b3db0a33aa6deb + languageName: node + linkType: hard + +"default-browser@npm:^5.2.1": + version: 5.2.1 + resolution: "default-browser@npm:5.2.1" + dependencies: + bundle-name: "npm:^4.1.0" + default-browser-id: "npm:^5.0.0" + checksum: 10/afab7eff7b7f5f7a94d9114d1ec67273d3fbc539edf8c0f80019879d53aa71e867303c6f6d7cffeb10a6f3cfb59d4f963dba3f9c96830b4540cc7339a1bf9840 + languageName: node + linkType: hard + "default-gateway@npm:^6.0.0, default-gateway@npm:^6.0.3": version: 6.0.3 resolution: "default-gateway@npm:6.0.3" @@ -26163,6 +26491,13 @@ __metadata: languageName: node linkType: hard +"define-lazy-prop@npm:^3.0.0": + version: 3.0.0 + resolution: "define-lazy-prop@npm:3.0.0" + checksum: 10/f28421cf9ee86eecaf5f3b8fe875f13d7009c2625e97645bfff7a2a49aca678270b86c39f9c32939e5ca7ab96b551377ed4139558c795e076774287ad3af1aa4 + languageName: node + linkType: hard + "define-properties@npm:^1.1.3": version: 1.1.3 resolution: "define-properties@npm:1.1.3" @@ -26564,7 +26899,7 @@ __metadata: languageName: node linkType: hard -"diff@npm:^3.0.0, diff@npm:^3.1.0, diff@npm:^3.5.0": +"diff@npm:^3.0.0, diff@npm:^3.5.0": version: 3.5.0 resolution: "diff@npm:3.5.0" checksum: 10/cfbc2df98d6f8eb82c0f7735c8468695f65189d31f95a708d4c97cd96a8083fdfd83d87a067a29924ae7d8ff64f578e7da78391af537815750268555fe0df9f0 @@ -29961,7 +30296,7 @@ __metadata: languageName: node linkType: hard -"express@npm:^4.16.3": +"express@npm:^4.16.3, express@npm:^4.19.2": version: 4.21.1 resolution: "express@npm:4.21.1" dependencies: @@ -32326,7 +32661,7 @@ __metadata: languageName: node linkType: hard -"globby@npm:^14.0.2": +"globby@npm:^14.0.0, globby@npm:^14.0.2": version: 14.0.2 resolution: "globby@npm:14.0.2" dependencies: @@ -33321,6 +33656,13 @@ __metadata: languageName: node linkType: hard +"html-entities@npm:^2.4.0": + version: 2.5.2 + resolution: "html-entities@npm:2.5.2" + checksum: 10/4ec12ebdf2d5ba8192c68e1aef3c1e4a4f36b29246a0a88464fe278a54517d0196d3489af46a3145c7ecacb4fc5fd50497be19eb713b810acab3f0efcf36fdc2 + languageName: node + linkType: hard + "html-escaper@npm:^2.0.0": version: 2.0.2 resolution: "html-escaper@npm:2.0.2" @@ -33360,6 +33702,27 @@ __metadata: languageName: node linkType: hard +"html-webpack-plugin@npm:^5.6.0": + version: 5.6.0 + resolution: "html-webpack-plugin@npm:5.6.0" + dependencies: + "@types/html-minifier-terser": "npm:^6.0.0" + html-minifier-terser: "npm:^6.0.2" + lodash: "npm:^4.17.21" + pretty-error: "npm:^4.0.0" + tapable: "npm:^2.0.0" + peerDependencies: + "@rspack/core": 0.x || 1.x + webpack: ^5.20.0 + peerDependenciesMeta: + "@rspack/core": + optional: true + webpack: + optional: true + checksum: 10/d651f3a88a7c932c72c6a30f0fdd610b49a864a69f1ddb34562c750f1602ea471e27fd8fc32c01adadd484b38fa6b74f055d1ccce26e5f8fcf814ee0d398a121 + languageName: node + linkType: hard + "htmlparser2@npm:^6.0.0, htmlparser2@npm:^6.1.0": version: 6.1.0 resolution: "htmlparser2@npm:6.1.0" @@ -34260,6 +34623,13 @@ __metadata: languageName: node linkType: hard +"interpret@npm:^3.1.1": + version: 3.1.1 + resolution: "interpret@npm:3.1.1" + checksum: 10/bc9e11126949c4e6ff49b0b819e923a9adc8e8bf3f9d4f2d782de6d5f592774f6fee4457c10bd08c6a2146b4baee460ccb242c99e5397defa9c846af0d00505a + languageName: node + linkType: hard + "into-stream@npm:^6.0.0": version: 6.0.0 resolution: "into-stream@npm:6.0.0" @@ -34364,6 +34734,13 @@ __metadata: languageName: node linkType: hard +"ipaddr.js@npm:^2.1.0": + version: 2.2.0 + resolution: "ipaddr.js@npm:2.2.0" + checksum: 10/9e1cdd9110b3bca5d910ab70d7fb1933e9c485d9b92cb14ef39f30c412ba3fe02a553921bf696efc7149cc653453c48ccf173adb996ec27d925f1f340f872986 + languageName: node + linkType: hard + "ipfs-core-types@npm:0.14.1, ipfs-core-types@npm:^0.14.1": version: 0.14.1 resolution: "ipfs-core-types@npm:0.14.1" @@ -34715,6 +35092,15 @@ __metadata: languageName: node linkType: hard +"is-docker@npm:^3.0.0": + version: 3.0.0 + resolution: "is-docker@npm:3.0.0" + bin: + is-docker: cli.js + checksum: 10/b698118f04feb7eaf3338922bd79cba064ea54a1c3db6ec8c0c8d8ee7613e7e5854d802d3ef646812a8a3ace81182a085dfa0a71cc68b06f3fa794b9783b3c90 + languageName: node + linkType: hard + "is-dotfile@npm:^1.0.0": version: 1.0.3 resolution: "is-dotfile@npm:1.0.3" @@ -34855,6 +35241,17 @@ __metadata: languageName: node linkType: hard +"is-inside-container@npm:^1.0.0": + version: 1.0.0 + resolution: "is-inside-container@npm:1.0.0" + dependencies: + is-docker: "npm:^3.0.0" + bin: + is-inside-container: cli.js + checksum: 10/c50b75a2ab66ab3e8b92b3bc534e1ea72ca25766832c0623ac22d134116a98bcf012197d1caabe1d1c4bd5f84363d4aa5c36bb4b585fbcaf57be172cd10a1a03 + languageName: node + linkType: hard + "is-installed-globally@npm:^0.4.0": version: 0.4.0 resolution: "is-installed-globally@npm:0.4.0" @@ -34962,6 +35359,13 @@ __metadata: languageName: node linkType: hard +"is-network-error@npm:^1.0.0": + version: 1.1.0 + resolution: "is-network-error@npm:1.1.0" + checksum: 10/b2fe6aac07f814a9de275efd05934c832c129e7ba292d27614e9e8eec9e043b7a0bbeaeca5d0916b0f462edbec2aa2eaee974ee0a12ac095040e9515c222c251 + languageName: node + linkType: hard + "is-npm@npm:^5.0.0": version: 5.0.0 resolution: "is-npm@npm:5.0.0" @@ -35407,6 +35811,15 @@ __metadata: languageName: node linkType: hard +"is-wsl@npm:^3.1.0": + version: 3.1.0 + resolution: "is-wsl@npm:3.1.0" + dependencies: + is-inside-container: "npm:^1.0.0" + checksum: 10/f9734c81f2f9cf9877c5db8356bfe1ff61680f1f4c1011e91278a9c0564b395ae796addb4bf33956871041476ec82c3e5260ed57b22ac91794d4ae70a1d2f0a9 + languageName: node + linkType: hard + "is-yarn-global@npm:^0.3.0": version: 0.3.0 resolution: "is-yarn-global@npm:0.3.0" @@ -37951,6 +38364,16 @@ __metadata: languageName: node linkType: hard +"launch-editor@npm:^2.6.1": + version: 2.9.1 + resolution: "launch-editor@npm:2.9.1" + dependencies: + picocolors: "npm:^1.0.0" + shell-quote: "npm:^1.8.1" + checksum: 10/69eb1e69db4f0fcd34a42bd47e9adbad27cb5413408fcc746eb7b016128ce19d71a30629534b17aa5886488936aaa959bf7dab17307ad5ed6c7247a0d145be18 + languageName: node + linkType: hard + "lcid@npm:^1.0.0": version: 1.0.0 resolution: "lcid@npm:1.0.0" @@ -38797,6 +39220,13 @@ __metadata: languageName: node linkType: hard +"lodash.flow@npm:^3.5.0": + version: 3.5.0 + resolution: "lodash.flow@npm:3.5.0" + checksum: 10/da39497f388971e1949607882e608d5b2306f025f0b5cc3953f2c25fca7db5a8dba23bd3ddeaed4b0dbd2d44c5aaa6f6f12016b5511b08a3d61de1e1c1f59eb7 + languageName: node + linkType: hard + "lodash.get@npm:^4.4.2": version: 4.4.2 resolution: "lodash.get@npm:4.4.2" @@ -42710,6 +43140,18 @@ __metadata: languageName: node linkType: hard +"open@npm:^10.0.3": + version: 10.1.0 + resolution: "open@npm:10.1.0" + dependencies: + default-browser: "npm:^5.2.1" + define-lazy-prop: "npm:^3.0.0" + is-inside-container: "npm:^1.0.0" + is-wsl: "npm:^3.1.0" + checksum: 10/a9c4105243a1b3c5312bf2aeb678f78d31f00618b5100088ee01eed2769963ea1f2dd464ac8d93cef51bba2d911e1a9c0c34a753ec7b91d6b22795903ea6647a + languageName: node + linkType: hard + "open@npm:^8.0.9": version: 8.4.0 resolution: "open@npm:8.4.0" @@ -43147,6 +43589,17 @@ __metadata: languageName: node linkType: hard +"p-retry@npm:^6.2.0": + version: 6.2.0 + resolution: "p-retry@npm:6.2.0" + dependencies: + "@types/retry": "npm:0.12.2" + is-network-error: "npm:^1.0.0" + retry: "npm:^0.13.1" + checksum: 10/1a5ac16828c96c03c354f78d643dfc7aa8f8b998e1b60e27533da2c75e5cabfb1c7f88ce312e813e09a80b056011fbb372d384132e9c92d27d052bd7c282a978 + languageName: node + linkType: hard + "p-timeout@npm:^1.1.1": version: 1.2.1 resolution: "p-timeout@npm:1.2.1" @@ -44796,6 +45249,15 @@ __metadata: languageName: node linkType: hard +"postcss-modules-extract-imports@npm:^3.1.0": + version: 3.1.0 + resolution: "postcss-modules-extract-imports@npm:3.1.0" + peerDependencies: + postcss: ^8.1.0 + checksum: 10/00bfd3aff045fc13ded8e3bbfd8dfc73eff9a9708db1b2a132266aef6544c8d2aee7a5d7e021885f6f9bbd5565a9a9ab52990316e21ad9468a2534f87df8e849 + languageName: node + linkType: hard + "postcss-modules-local-by-default@npm:^4.0.3": version: 4.0.3 resolution: "postcss-modules-local-by-default@npm:4.0.3" @@ -44809,7 +45271,7 @@ __metadata: languageName: node linkType: hard -"postcss-modules-local-by-default@npm:^4.0.4": +"postcss-modules-local-by-default@npm:^4.0.4, postcss-modules-local-by-default@npm:^4.0.5": version: 4.0.5 resolution: "postcss-modules-local-by-default@npm:4.0.5" dependencies: @@ -44833,7 +45295,7 @@ __metadata: languageName: node linkType: hard -"postcss-modules-scope@npm:^3.1.1": +"postcss-modules-scope@npm:^3.1.1, postcss-modules-scope@npm:^3.2.0": version: 3.2.0 resolution: "postcss-modules-scope@npm:3.2.0" dependencies: @@ -46290,6 +46752,19 @@ __metadata: languageName: node linkType: hard +"react-app-rewired@npm:^2.2.1": + version: 2.2.1 + resolution: "react-app-rewired@npm:2.2.1" + dependencies: + semver: "npm:^5.6.0" + peerDependencies: + react-scripts: ">=2.1.3" + bin: + react-app-rewired: bin/index.js + checksum: 10/4ce0b5ea9537b8d2e123146ac023295a68e3952bc63b90426a1f95fc777b0c15067ec5f382962d30bb957d30c5928ae90f3499d5911d03a2202253fd84e55fb2 + languageName: node + linkType: hard + "react-dev-utils@npm:^12.0.1": version: 12.0.1 resolution: "react-dev-utils@npm:12.0.1" @@ -46344,6 +46819,18 @@ __metadata: languageName: node linkType: hard +"react-dom@npm:18.3.1": + version: 18.3.1 + resolution: "react-dom@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + scheduler: "npm:^0.23.2" + peerDependencies: + react: ^18.3.1 + checksum: 10/3f4b73a3aa083091173b29812b10394dd06f4ac06aff410b74702cfb3aa29d7b0ced208aab92d5272919b612e5cda21aeb1d54191848cf6e46e9e354f3541f81 + languageName: node + linkType: hard + "react-error-overlay@npm:^6.0.11": version: 6.0.11 resolution: "react-error-overlay@npm:6.0.11" @@ -46379,6 +46866,13 @@ __metadata: languageName: node linkType: hard +"react-is@npm:^18.3.1": + version: 18.3.1 + resolution: "react-is@npm:18.3.1" + checksum: 10/d5f60c87d285af24b1e1e7eaeb123ec256c3c8bdea7061ab3932e3e14685708221bf234ec50b21e10dd07f008f1b966a2730a0ce4ff67905b3872ff2042aec22 + languageName: node + linkType: hard + "react-native-fetch-api@npm:^3.0.0": version: 3.0.0 resolution: "react-native-fetch-api@npm:3.0.0" @@ -46565,6 +47059,15 @@ __metadata: languageName: node linkType: hard +"react@npm:18.3.1": + version: 18.3.1 + resolution: "react@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 10/261137d3f3993eaa2368a83110466fc0e558bc2c7f7ae7ca52d94f03aac945f45146bd85e5f481044db1758a1dbb57879e2fcdd33924e2dde1bdc550ce73f7bf + languageName: node + linkType: hard + "react@npm:^17.0.2": version: 17.0.2 resolution: "react@npm:17.0.2" @@ -48154,6 +48657,13 @@ __metadata: languageName: node linkType: hard +"run-applescript@npm:^7.0.0": + version: 7.0.0 + resolution: "run-applescript@npm:7.0.0" + checksum: 10/b02462454d8b182ad4117e5d4626e9e6782eb2072925c9fac582170b0627ae3c1ea92ee9b2df7daf84b5e9ffe14eb1cf5fb70bc44b15c8a0bfcdb47987e2410c + languageName: node + linkType: hard + "run-async@npm:^0.1.0": version: 0.1.0 resolution: "run-async@npm:0.1.0" @@ -48596,6 +49106,15 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:^0.23.2": + version: 0.23.2 + resolution: "scheduler@npm:0.23.2" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 10/e8d68b89d18d5b028223edf090092846868a765a591944760942b77ea1f69b17235f7e956696efbb62c8130ab90af7e0949bfb8eba7896335507317236966bc9 + languageName: node + linkType: hard + "schema-utils@npm:2.7.0": version: 2.7.0 resolution: "schema-utils@npm:2.7.0" @@ -48652,6 +49171,18 @@ __metadata: languageName: node linkType: hard +"schema-utils@npm:^4.2.0": + version: 4.2.0 + resolution: "schema-utils@npm:4.2.0" + dependencies: + "@types/json-schema": "npm:^7.0.9" + ajv: "npm:^8.9.0" + ajv-formats: "npm:^2.1.1" + ajv-keywords: "npm:^5.1.0" + checksum: 10/808784735eeb153ab7f3f787f840aa3bc63f423d2a5a7e96c9e70a0e53d0bc62d7b37ea396fc598ce19196e4fb86a72f897154b7c6ce2358bbc426166f205e14 + languageName: node + linkType: hard + "scrypt-js@npm:2.0.4": version: 2.0.4 resolution: "scrypt-js@npm:2.0.4" @@ -48739,6 +49270,16 @@ __metadata: languageName: node linkType: hard +"selfsigned@npm:^2.4.1": + version: 2.4.1 + resolution: "selfsigned@npm:2.4.1" + dependencies: + "@types/node-forge": "npm:^1.3.0" + node-forge: "npm:^1" + checksum: 10/52536623f1cfdeb2f8b9198377f2ce7931c677ea69421238d1dc1ea2983bbe258e56c19e7d1af87035cad7270f19b7e996eaab1212e724d887722502f68e17f2 + languageName: node + linkType: hard + "semaphore@npm:>=1.0.1, semaphore@npm:^1.1.0": version: 1.1.0 resolution: "semaphore@npm:1.1.0" @@ -49128,7 +49669,7 @@ __metadata: languageName: node linkType: hard -"shell-quote@npm:^1.7.3": +"shell-quote@npm:^1.7.3, shell-quote@npm:^1.8.1": version: 1.8.1 resolution: "shell-quote@npm:1.8.1" checksum: 10/af19ab5a1ec30cb4b2f91fd6df49a7442d5c4825a2e269b3712eded10eedd7f9efeaab96d57829880733fc55bcdd8e9b1d8589b4befb06667c731d08145e274d @@ -49819,7 +50360,7 @@ __metadata: languageName: node linkType: hard -"source-map@npm:0.7.4, source-map@npm:^0.7.3": +"source-map@npm:0.7.4, source-map@npm:^0.7.3, source-map@npm:^0.7.4": version: 0.7.4 resolution: "source-map@npm:0.7.4" checksum: 10/a0f7c9b797eda93139842fd28648e868a9a03ea0ad0d9fa6602a0c1f17b7fb6a7dcca00c144476cccaeaae5042e99a285723b1a201e844ad67221bf5d428f1dc @@ -50913,6 +51454,15 @@ __metadata: languageName: node linkType: hard +"style-loader@npm:^4.0.0": + version: 4.0.0 + resolution: "style-loader@npm:4.0.0" + peerDependencies: + webpack: ^5.27.0 + checksum: 10/93f25b7e70cfca9d1d8427170384262b59a5b0e84e7191a5a26636a77799caeed46d9a3e45ee7b9afa0f69176e3b98d5a6c5e81593ff1fd0946f1c5682fd2a68 + languageName: node + linkType: hard + "stylehacks@npm:^5.1.1": version: 5.1.1 resolution: "stylehacks@npm:5.1.1" @@ -52352,6 +52902,22 @@ __metadata: languageName: node linkType: hard +"ts-loader@npm:^9.5.1": + version: 9.5.1 + resolution: "ts-loader@npm:9.5.1" + dependencies: + chalk: "npm:^4.1.0" + enhanced-resolve: "npm:^5.0.0" + micromatch: "npm:^4.0.0" + semver: "npm:^7.3.4" + source-map: "npm:^0.7.4" + peerDependencies: + typescript: "*" + webpack: ^5.0.0 + checksum: 10/a85d43bb6f72858d613290ac02d1d24e81c38ba2dcb98b90465dc97eb6c2036bf9a389542c1a7865548643e7ed39f063fdff2dbb3e5aafbc511de6a3eb275adf + languageName: node + linkType: hard + "ts-node@npm:10.9.1, ts-node@npm:^10.8.1": version: 10.9.1 resolution: "ts-node@npm:10.9.1" @@ -52390,21 +52956,41 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:7.0.1": - version: 7.0.1 - resolution: "ts-node@npm:7.0.1" +"ts-node@npm:10.9.2, ts-node@npm:^10.9.2": + version: 10.9.2 + resolution: "ts-node@npm:10.9.2" dependencies: - arrify: "npm:^1.0.0" - buffer-from: "npm:^1.1.0" - diff: "npm:^3.1.0" + "@cspotcode/source-map-support": "npm:^0.8.0" + "@tsconfig/node10": "npm:^1.0.7" + "@tsconfig/node12": "npm:^1.0.7" + "@tsconfig/node14": "npm:^1.0.0" + "@tsconfig/node16": "npm:^1.0.2" + acorn: "npm:^8.4.1" + acorn-walk: "npm:^8.1.1" + arg: "npm:^4.1.0" + create-require: "npm:^1.1.0" + diff: "npm:^4.0.1" make-error: "npm:^1.1.1" - minimist: "npm:^1.2.0" - mkdirp: "npm:^0.5.1" - source-map-support: "npm:^0.5.6" - yn: "npm:^2.0.0" + v8-compile-cache-lib: "npm:^3.0.1" + yn: "npm:3.1.1" + peerDependencies: + "@swc/core": ">=1.2.50" + "@swc/wasm": ">=1.2.50" + "@types/node": "*" + typescript: ">=2.7" + peerDependenciesMeta: + "@swc/core": + optional: true + "@swc/wasm": + optional: true bin: ts-node: dist/bin.js - checksum: 10/c1e0f1582867c34a03a25b1861e86922b9576931d473d48cd13275400832972350c4564e5f2c2df5817be6acbbb8e1dedf43bdd6f8c0f06b15d3530562a08a90 + ts-node-cwd: dist/bin-cwd.js + ts-node-esm: dist/bin-esm.js + ts-node-script: dist/bin-script.js + ts-node-transpile-only: dist/bin-transpile.js + ts-script: dist/bin-script-deprecated.js + checksum: 10/a91a15b3c9f76ac462f006fa88b6bfa528130dcfb849dd7ef7f9d640832ab681e235b8a2bc58ecde42f72851cc1d5d4e22c901b0c11aa51001ea1d395074b794 languageName: node linkType: hard @@ -53101,6 +53687,16 @@ __metadata: languageName: node linkType: hard +"typescript@npm:^5.6.2": + version: 5.6.2 + resolution: "typescript@npm:5.6.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10/f95365d4898f357823e93d334ecda9fcade54f009b397c7d05b7621cd9e865981033cf89ccde0f3e3a7b73b1fdbae18e92bc77db237b43e912f053fef0f9a53b + languageName: node + linkType: hard + "typescript@patch:typescript@npm%3A4.5.2#optional!builtin": version: 4.5.2 resolution: "typescript@patch:typescript@npm%3A4.5.2#optional!builtin::version=4.5.2&hash=f1b8ea" @@ -53141,6 +53737,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A^5.6.2#optional!builtin": + version: 5.6.2 + resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin::version=5.6.2&hash=379a07" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10/060a7349adf698477b411be4ace470aee6c2c1bd99917fdf5d33697c17ec55c64fe724eb10399387530b50e9913b41528dd8bfcca0a5fc8f8bac63fbb4580a2e + languageName: node + linkType: hard + "uc.micro@npm:^2.0.0, uc.micro@npm:^2.1.0": version: 2.1.0 resolution: "uc.micro@npm:2.1.0" @@ -53235,6 +53841,13 @@ __metadata: languageName: node linkType: hard +"undici-types@npm:~6.19.2": + version: 6.19.8 + resolution: "undici-types@npm:6.19.8" + checksum: 10/cf0b48ed4fc99baf56584afa91aaffa5010c268b8842f62e02f752df209e3dea138b372a60a963b3b2576ed932f32329ce7ddb9cb5f27a6c83040d8cd74b7a70 + languageName: node + linkType: hard + "undici@npm:6.11.1": version: 6.11.1 resolution: "undici@npm:6.11.1" @@ -54167,13 +54780,6 @@ __metadata: languageName: node linkType: hard -"web-vitals@npm:2.1.4": - version: 2.1.4 - resolution: "web-vitals@npm:2.1.4" - checksum: 10/8d6fae84d0e4f2ea1d6da40067d8e6fd560df2a06a9f9484dbbd7a25eb5c961b97f66f2043c941866753465e0f00748773f33d3c88d8fd191e901a7207711ff1 - languageName: node - linkType: hard - "web3-bzz@npm:1.10.0": version: 1.10.0 resolution: "web3-bzz@npm:1.10.0" @@ -56548,6 +57154,38 @@ __metadata: languageName: node linkType: hard +"webpack-cli@npm:5.1.4": + version: 5.1.4 + resolution: "webpack-cli@npm:5.1.4" + dependencies: + "@discoveryjs/json-ext": "npm:^0.5.0" + "@webpack-cli/configtest": "npm:^2.1.1" + "@webpack-cli/info": "npm:^2.0.2" + "@webpack-cli/serve": "npm:^2.0.5" + colorette: "npm:^2.0.14" + commander: "npm:^10.0.1" + cross-spawn: "npm:^7.0.3" + envinfo: "npm:^7.7.3" + fastest-levenshtein: "npm:^1.0.12" + import-local: "npm:^3.0.2" + interpret: "npm:^3.1.1" + rechoir: "npm:^0.8.0" + webpack-merge: "npm:^5.7.3" + peerDependencies: + webpack: 5.x.x + peerDependenciesMeta: + "@webpack-cli/generators": + optional: true + webpack-bundle-analyzer: + optional: true + webpack-dev-server: + optional: true + bin: + webpack-cli: bin/cli.js + checksum: 10/9ac3ae7c43b032051de2803d751bd3b44e1f226b931dcd56066a8e01b12734d49730903df9235e1eb1b67b2ee7451faf24a219c8f4a229c4f42c42e827eac44c + languageName: node + linkType: hard + "webpack-dev-middleware@npm:>=6.1.2": version: 7.2.1 resolution: "webpack-dev-middleware@npm:7.2.1" @@ -56614,6 +57252,51 @@ __metadata: languageName: node linkType: hard +"webpack-dev-server@npm:^5.1.0": + version: 5.1.0 + resolution: "webpack-dev-server@npm:5.1.0" + dependencies: + "@types/bonjour": "npm:^3.5.13" + "@types/connect-history-api-fallback": "npm:^1.5.4" + "@types/express": "npm:^4.17.21" + "@types/serve-index": "npm:^1.9.4" + "@types/serve-static": "npm:^1.15.5" + "@types/sockjs": "npm:^0.3.36" + "@types/ws": "npm:^8.5.10" + ansi-html-community: "npm:^0.0.8" + bonjour-service: "npm:^1.2.1" + chokidar: "npm:^3.6.0" + colorette: "npm:^2.0.10" + compression: "npm:^1.7.4" + connect-history-api-fallback: "npm:^2.0.0" + express: "npm:^4.19.2" + graceful-fs: "npm:^4.2.6" + html-entities: "npm:^2.4.0" + http-proxy-middleware: "npm:^2.0.3" + ipaddr.js: "npm:^2.1.0" + launch-editor: "npm:^2.6.1" + open: "npm:^10.0.3" + p-retry: "npm:^6.2.0" + schema-utils: "npm:^4.2.0" + selfsigned: "npm:^2.4.1" + serve-index: "npm:^1.9.1" + sockjs: "npm:^0.3.24" + spdy: "npm:^4.0.2" + webpack-dev-middleware: "npm:^7.4.2" + ws: "npm:^8.18.0" + peerDependencies: + webpack: ^5.0.0 + peerDependenciesMeta: + webpack: + optional: true + webpack-cli: + optional: true + bin: + webpack-dev-server: bin/webpack-dev-server.js + checksum: 10/f23255681cc5e2c2709b23ca7b2185aeed83b1c9912657d4512eda8685625a46d7a103a92446494a55fe2afdfab936f9bd4f037d20b52f7fdfff303e7e7199c7 + languageName: node + linkType: hard + "webpack-manifest-plugin@npm:^4.0.2": version: 4.1.1 resolution: "webpack-manifest-plugin@npm:4.1.1" @@ -56773,7 +57456,7 @@ __metadata: languageName: node linkType: hard -"webpack@npm:5.95.0": +"webpack@npm:5.95.0, webpack@npm:^5.94.0": version: 5.95.0 resolution: "webpack@npm:5.95.0" dependencies: @@ -58103,13 +58786,6 @@ __metadata: languageName: node linkType: hard -"yn@npm:^2.0.0": - version: 2.0.0 - resolution: "yn@npm:2.0.0" - checksum: 10/9d49527cb3e9a0948cc057223810bf30607bf04b9ff7666cc1681a6501d660b60d90000c16f9e29311b0f28d8a06222ada565ccdca5f1049cdfefb1908217572 - languageName: node - linkType: hard - "yn@npm:^4.0.0": version: 4.0.0 resolution: "yn@npm:4.0.0"