cybrid_api_bank_ruby 0.57.49 → 0.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +44 -33
- data/cybrid_api_bank_ruby.gemspec +2 -2
- data/docs/DepositAddressBankModel.md +36 -0
- data/docs/DepositAddressListBankModel.md +24 -0
- data/docs/DepositAddressesBankApi.md +236 -0
- data/docs/PostDepositAddressBankModel.md +18 -0
- data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/deposit_addresses_bank_api.rb +237 -0
- data/lib/cybrid_api_bank_ruby/api/external_bank_accounts_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/fee_configurations_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/identity_records_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/identity_verifications_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/rewards_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/transfers_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/verification_keys_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api/workflows_bank_api.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api_client.rb +2 -2
- data/lib/cybrid_api_bank_ruby/api_error.rb +2 -2
- data/lib/cybrid_api_bank_ruby/configuration.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/attestation_details_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/deposit_address_bank_model.rb +503 -0
- data/lib/cybrid_api_bank_ruby/models/deposit_address_list_bank_model.rb +328 -0
- data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/fee_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/fee_configuration_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/fee_configuration_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_record_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_record_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_verification_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_verification_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_all_of_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_deposit_address_bank_model.rb +253 -0
- data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_fee_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_fee_configuration_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_identity_record_attestation_details_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_identity_record_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_identity_verification_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_reward_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_transfer_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_verification_key_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_workflow_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/reward_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/reward_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/transfer_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/transfer_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/verification_key_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/verification_key_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/workflow_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/workflow_with_details_all_of_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/workflow_with_details_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/workflows_list_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/version.rb +3 -3
- data/lib/cybrid_api_bank_ruby.rb +6 -2
- data/spec/api/accounts_bank_api_spec.rb +2 -2
- data/spec/api/assets_bank_api_spec.rb +2 -2
- data/spec/api/banks_bank_api_spec.rb +2 -2
- data/spec/api/customers_bank_api_spec.rb +2 -2
- data/spec/api/deposit_addresses_bank_api_spec.rb +75 -0
- data/spec/api/external_bank_accounts_bank_api_spec.rb +2 -2
- data/spec/api/fee_configurations_bank_api_spec.rb +2 -2
- data/spec/api/identity_records_bank_api_spec.rb +2 -2
- data/spec/api/identity_verifications_bank_api_spec.rb +2 -2
- data/spec/api/prices_bank_api_spec.rb +2 -2
- data/spec/api/quotes_bank_api_spec.rb +2 -2
- data/spec/api/rewards_bank_api_spec.rb +2 -2
- data/spec/api/symbols_bank_api_spec.rb +2 -2
- data/spec/api/trades_bank_api_spec.rb +2 -2
- data/spec/api/transfers_bank_api_spec.rb +2 -2
- data/spec/api/verification_keys_bank_api_spec.rb +2 -2
- data/spec/api/workflows_bank_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/account_bank_model_spec.rb +2 -2
- data/spec/models/account_list_bank_model_spec.rb +2 -2
- data/spec/models/asset_bank_model_spec.rb +2 -2
- data/spec/models/asset_list_bank_model_spec.rb +2 -2
- data/spec/models/attestation_details_bank_model_spec.rb +2 -2
- data/spec/models/bank_bank_model_spec.rb +2 -2
- data/spec/models/bank_list_bank_model_spec.rb +2 -2
- data/spec/models/customer_bank_model_spec.rb +2 -2
- data/spec/models/customer_list_bank_model_spec.rb +2 -2
- data/spec/models/deposit_address_bank_model_spec.rb +96 -0
- data/spec/models/deposit_address_list_bank_model_spec.rb +52 -0
- data/spec/models/error_response_bank_model_spec.rb +2 -2
- data/spec/models/external_bank_account_bank_model_spec.rb +2 -2
- data/spec/models/external_bank_account_list_bank_model_spec.rb +2 -2
- data/spec/models/fee_bank_model_spec.rb +2 -2
- data/spec/models/fee_configuration_bank_model_spec.rb +2 -2
- data/spec/models/fee_configuration_list_bank_model_spec.rb +2 -2
- data/spec/models/identity_record_bank_model_spec.rb +2 -2
- data/spec/models/identity_record_list_bank_model_spec.rb +2 -2
- data/spec/models/identity_verification_bank_model_spec.rb +2 -2
- data/spec/models/identity_verification_list_bank_model_spec.rb +2 -2
- data/spec/models/identity_verification_with_details_all_of_bank_model_spec.rb +2 -2
- data/spec/models/identity_verification_with_details_bank_model_spec.rb +2 -2
- data/spec/models/patch_bank_bank_model_spec.rb +2 -2
- data/spec/models/post_account_bank_model_spec.rb +2 -2
- data/spec/models/post_bank_bank_model_spec.rb +2 -2
- data/spec/models/post_customer_bank_model_spec.rb +2 -2
- data/spec/models/post_deposit_address_bank_model_spec.rb +34 -0
- data/spec/models/post_external_bank_account_bank_model_spec.rb +2 -2
- data/spec/models/post_fee_bank_model_spec.rb +2 -2
- data/spec/models/post_fee_configuration_bank_model_spec.rb +2 -2
- data/spec/models/post_identity_record_attestation_details_bank_model_spec.rb +2 -2
- data/spec/models/post_identity_record_bank_model_spec.rb +2 -2
- data/spec/models/post_identity_verification_bank_model_spec.rb +2 -2
- data/spec/models/post_quote_bank_model_spec.rb +2 -2
- data/spec/models/post_reward_bank_model_spec.rb +2 -2
- data/spec/models/post_trade_bank_model_spec.rb +2 -2
- data/spec/models/post_transfer_bank_model_spec.rb +2 -2
- data/spec/models/post_verification_key_bank_model_spec.rb +2 -2
- data/spec/models/post_workflow_bank_model_spec.rb +2 -2
- data/spec/models/quote_bank_model_spec.rb +2 -2
- data/spec/models/quote_list_bank_model_spec.rb +2 -2
- data/spec/models/reward_bank_model_spec.rb +2 -2
- data/spec/models/reward_list_bank_model_spec.rb +2 -2
- data/spec/models/symbol_price_bank_model_spec.rb +2 -2
- data/spec/models/trade_bank_model_spec.rb +2 -2
- data/spec/models/trade_list_bank_model_spec.rb +2 -2
- data/spec/models/transfer_bank_model_spec.rb +2 -2
- data/spec/models/transfer_list_bank_model_spec.rb +2 -2
- data/spec/models/verification_key_bank_model_spec.rb +2 -2
- data/spec/models/verification_key_list_bank_model_spec.rb +2 -2
- data/spec/models/workflow_bank_model_spec.rb +2 -2
- data/spec/models/workflow_with_details_all_of_bank_model_spec.rb +2 -2
- data/spec/models/workflow_with_details_bank_model_spec.rb +2 -2
- data/spec/models/workflows_list_bank_model_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/vendor/bundle/ruby/3.1.0/cache/psych-5.0.2.gem +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/byebug-11.1.3/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/ffi-1.15.5/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/jaro_winkler-1.5.4/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-5.0.1 → psych-5.0.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-5.0.1 → psych-5.0.2}/gem_make.out +14 -14
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-5.0.1 → psych-5.0.2}/mkmf.log +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-5.0.1 → psych-5.0.2}/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/stringio-3.0.4/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/.gitignore +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/Gemfile +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/LICENSE +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/Mavenfile +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/README.md +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/Rakefile +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/bin/console +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/bin/setup +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/Makefile +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/extconf.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/class_loader.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/node.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/scalar_scanner.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/tree_builder.rb +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors/to_ruby.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors/yaml_tree.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-5.0.1 → psych-5.0.2}/psych.gemspec +2 -1
- data/vendor/bundle/ruby/3.1.0/specifications/{psych-5.0.1.gemspec → psych-5.0.2.gemspec} +4 -3
- metadata +91 -75
- data/vendor/bundle/ruby/3.1.0/cache/psych-5.0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40f0445eff30b91a494f56035941fe4970945384f33ace22e118871cd768921
|
4
|
+
data.tar.gz: 9e5c1a111ea04ff1bd94fe0109fac8b36eeeebc31df4ce5fe458f5e7ef7f14aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 460852e4df5516c9621c8c36d697da19dd275497183e0256d15a94a90fbe8f4795397a45bfc8987f51cb454ba2781d521fdcee9c72c7b14389def628778f24f8
|
7
|
+
data.tar.gz: 203d271010d20d8edb25040f13357be5e85c85ec57459a7933d07ea208c7d797afe04af09337c109733963498d56552060a5a7aa8646c2fcc02c85844f710574
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cybrid_api_bank_ruby (0.
|
4
|
+
cybrid_api_bank_ruby (0.58.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
pry-byebug (3.10.1)
|
26
26
|
byebug (~> 11.0)
|
27
27
|
pry (>= 0.13, < 0.15)
|
28
|
-
psych (5.0.
|
28
|
+
psych (5.0.2)
|
29
29
|
stringio
|
30
30
|
rainbow (3.1.1)
|
31
31
|
rake (13.0.6)
|
data/README.md
CHANGED
@@ -68,10 +68,10 @@ curl -X POST https://id.demo.cybrid.app/oauth/token -d '{
|
|
68
68
|
\"grant_type\": \"client_credentials\",
|
69
69
|
\"client_id\": \"<Your Client ID>\",
|
70
70
|
\"client_secret\": \"<Your Secret>\",
|
71
|
-
\"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read rewards:execute rewards:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute workflows:read workflows:execute\"
|
71
|
+
\"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read rewards:execute rewards:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute\"
|
72
72
|
}' -H \"Content-Type: application/json\"
|
73
73
|
|
74
|
-
# When using Organization credentials set `scope` to 'organizations:read organizations:write banks:read banks:write banks:execute customers:read accounts:read quotes:read trades:read transfers:read external_bank_accounts:read workflows:read'
|
74
|
+
# When using Organization credentials set `scope` to 'organizations:read organizations:write banks:read banks:write banks:execute customers:read accounts:read quotes:read trades:read transfers:read external_bank_accounts:read workflows:read deposit_addresses:read'
|
75
75
|
```
|
76
76
|
<font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font>
|
77
77
|
|
@@ -81,19 +81,20 @@ The Cybrid platform supports the use of scopes to control the level of access a
|
|
81
81
|
|
82
82
|
The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource.
|
83
83
|
|
84
|
-
| Resource
|
85
|
-
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
84
|
+
| Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) |
|
85
|
+
|-----------------------|------------------------------------------------------------|-----------------------------------------------|-------------------------------------------------|
|
86
|
+
| Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) |
|
87
|
+
| Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) |
|
88
|
+
| Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) |
|
89
|
+
| Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) |
|
90
|
+
| External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) |
|
91
|
+
| Organization | organizations:read (Organization) | organizations:write (Organization) | |
|
92
|
+
| Price | prices:read (Bank, Customer) | | |
|
93
|
+
| Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Bank, Customer) |
|
94
|
+
| Reward | rewards:read (Bank, Customer) | | rewards:execute (Bank) |
|
95
|
+
| Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Bank, Customer) |
|
96
|
+
| Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Bank, Customer) |
|
97
|
+
| Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) |
|
97
98
|
|
98
99
|
## Available Endpoints
|
99
100
|
|
@@ -102,24 +103,26 @@ The available APIs for the [Identity](https://id.demo.cybrid.app/api/schema/swag
|
|
102
103
|
| API Service | Model | API Endpoint Path | Description |
|
103
104
|
|--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------|
|
104
105
|
| Identity | Bank | /api/bank_applications | Create and list banks |
|
105
|
-
| Identity | Organization | /api/organization_applications | Create and list organizations |
|
106
106
|
| Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens |
|
107
|
+
| Identity | Organization | /api/organization_applications | Create and list organizations |
|
107
108
|
| Organization | Organization | /api/organizations | APIs to retrieve and update organization name |
|
109
|
+
| Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers |
|
108
110
|
| Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) |
|
109
|
-
| Bank |
|
110
|
-
| Bank |
|
111
|
+
| Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc |
|
112
|
+
| Bank | BankVerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities |
|
113
|
+
| Bank | Customer | /api/customers | Create and list customers |
|
114
|
+
| Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses |
|
115
|
+
| Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform |
|
111
116
|
| Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) |
|
112
|
-
| Bank | Customers | /api/customers | Create and list customers |
|
113
117
|
| Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC |
|
114
|
-
| Bank |
|
115
|
-
| Bank |
|
116
|
-
| Bank |
|
117
|
-
| Bank |
|
118
|
-
| Bank |
|
119
|
-
| Bank |
|
120
|
-
| Bank |
|
121
|
-
| Bank |
|
122
|
-
| Bank | Transfers | /api/transfers | Create, get and list transfers (e.g., funding, book) |
|
118
|
+
| Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC |
|
119
|
+
| Bank | Price | /api/prices | Get the current prices for assets on the platform |
|
120
|
+
| Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades |
|
121
|
+
| Bank | Reward | /api/rewards | Create a new reward (automates quote/trade for simplicity) |
|
122
|
+
| Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) |
|
123
|
+
| Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency |
|
124
|
+
| Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) |
|
125
|
+
| Bank | Workflow | /api/workflows | Create, get and list workflows |
|
123
126
|
|
124
127
|
## Understanding Object Models & Endpoints
|
125
128
|
|
@@ -146,8 +149,8 @@ An `Organization` can have multiple `banks`, in either `Sandbox` or `Production`
|
|
146
149
|
|
147
150
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
148
151
|
|
149
|
-
- API version: v0.
|
150
|
-
- Package version: 0.
|
152
|
+
- API version: v0.58.0
|
153
|
+
- Package version: 0.58.0
|
151
154
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
152
155
|
|
153
156
|
## Installation
|
@@ -163,16 +166,16 @@ gem build cybrid_api_bank_ruby.gemspec
|
|
163
166
|
Then either install the gem locally:
|
164
167
|
|
165
168
|
```shell
|
166
|
-
gem install ./cybrid_api_bank_ruby-0.
|
169
|
+
gem install ./cybrid_api_bank_ruby-0.58.0.gem
|
167
170
|
```
|
168
171
|
|
169
|
-
(for development, run `gem install --dev ./cybrid_api_bank_ruby-0.
|
172
|
+
(for development, run `gem install --dev ./cybrid_api_bank_ruby-0.58.0.gem` to install the development dependencies)
|
170
173
|
|
171
174
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
172
175
|
|
173
176
|
Finally add this to the Gemfile:
|
174
177
|
|
175
|
-
gem 'cybrid_api_bank_ruby', '~> 0.
|
178
|
+
gem 'cybrid_api_bank_ruby', '~> 0.58.0'
|
176
179
|
|
177
180
|
### Install from Git
|
178
181
|
|
@@ -235,6 +238,9 @@ Class | Method | HTTP request | Description
|
|
235
238
|
*CybridApiBank::CustomersBankApi* | [**create_customer**](docs/CustomersBankApi.md#create_customer) | **POST** /api/customers | Create Customer
|
236
239
|
*CybridApiBank::CustomersBankApi* | [**get_customer**](docs/CustomersBankApi.md#get_customer) | **GET** /api/customers/{customer_guid} | Get Customer
|
237
240
|
*CybridApiBank::CustomersBankApi* | [**list_customers**](docs/CustomersBankApi.md#list_customers) | **GET** /api/customers | Get customers list
|
241
|
+
*CybridApiBank::DepositAddressesBankApi* | [**create_deposit_address**](docs/DepositAddressesBankApi.md#create_deposit_address) | **POST** /api/deposit_addresses | Create Deposit Address
|
242
|
+
*CybridApiBank::DepositAddressesBankApi* | [**get_deposit_address**](docs/DepositAddressesBankApi.md#get_deposit_address) | **GET** /api/deposit_addresses/{deposit_address_guid} | Get Deposit Address
|
243
|
+
*CybridApiBank::DepositAddressesBankApi* | [**list_deposit_addresses**](docs/DepositAddressesBankApi.md#list_deposit_addresses) | **GET** /api/deposit_addresses | List Deposit Addresses
|
238
244
|
*CybridApiBank::ExternalBankAccountsBankApi* | [**create_external_bank_account**](docs/ExternalBankAccountsBankApi.md#create_external_bank_account) | **POST** /api/external_bank_accounts | Create ExternalBankAccount
|
239
245
|
*CybridApiBank::ExternalBankAccountsBankApi* | [**delete_external_bank_account**](docs/ExternalBankAccountsBankApi.md#delete_external_bank_account) | **DELETE** /api/external_bank_accounts/{external_bank_account_guid} | Delete External Bank Account
|
240
246
|
*CybridApiBank::ExternalBankAccountsBankApi* | [**get_external_bank_account**](docs/ExternalBankAccountsBankApi.md#get_external_bank_account) | **GET** /api/external_bank_accounts/{external_bank_account_guid} | Get External Bank Account
|
@@ -281,6 +287,8 @@ Class | Method | HTTP request | Description
|
|
281
287
|
- [CybridApiBank::BankListBankModel](docs/BankListBankModel.md)
|
282
288
|
- [CybridApiBank::CustomerBankModel](docs/CustomerBankModel.md)
|
283
289
|
- [CybridApiBank::CustomerListBankModel](docs/CustomerListBankModel.md)
|
290
|
+
- [CybridApiBank::DepositAddressBankModel](docs/DepositAddressBankModel.md)
|
291
|
+
- [CybridApiBank::DepositAddressListBankModel](docs/DepositAddressListBankModel.md)
|
284
292
|
- [CybridApiBank::ErrorResponseBankModel](docs/ErrorResponseBankModel.md)
|
285
293
|
- [CybridApiBank::ExternalBankAccountBankModel](docs/ExternalBankAccountBankModel.md)
|
286
294
|
- [CybridApiBank::ExternalBankAccountListBankModel](docs/ExternalBankAccountListBankModel.md)
|
@@ -297,6 +305,7 @@ Class | Method | HTTP request | Description
|
|
297
305
|
- [CybridApiBank::PostAccountBankModel](docs/PostAccountBankModel.md)
|
298
306
|
- [CybridApiBank::PostBankBankModel](docs/PostBankBankModel.md)
|
299
307
|
- [CybridApiBank::PostCustomerBankModel](docs/PostCustomerBankModel.md)
|
308
|
+
- [CybridApiBank::PostDepositAddressBankModel](docs/PostDepositAddressBankModel.md)
|
300
309
|
- [CybridApiBank::PostExternalBankAccountBankModel](docs/PostExternalBankAccountBankModel.md)
|
301
310
|
- [CybridApiBank::PostFeeBankModel](docs/PostFeeBankModel.md)
|
302
311
|
- [CybridApiBank::PostFeeConfigurationBankModel](docs/PostFeeConfigurationBankModel.md)
|
@@ -361,4 +370,6 @@ Class | Method | HTTP request | Description
|
|
361
370
|
- external_bank_accounts:execute: external_bank_accounts execute
|
362
371
|
- workflows:read: workflows read
|
363
372
|
- workflows:execute: workflows execute
|
373
|
+
- deposit_addresses:read: deposit_addresses read
|
374
|
+
- deposit_addresses:execute: deposit_addresses execute
|
364
375
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
=begin
|
4
4
|
#Cybrid Bank API
|
5
5
|
|
6
|
-
## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.demo.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read rewards:execute rewards:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute workflows:read workflows:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write banks:read banks:write banks:execute customers:read accounts:read quotes:read trades:read transfers:read external_bank_accounts:read workflows:read' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |------------------------|------------------------------------------------------------|-----------------------------------------------|-------------------------------------------------| | Organizations | organizations:read (Organization) | organizations:write (Organization) | | | Banks | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customers | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Accounts | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Prices | prices:read (Bank, Customer) | | | | Quotes | quotes:read (Organization, Bank, Customer) | | quotes:execute (Bank, Customer) | | Trades | trades:read (Organization, Bank, Customer) | | trades:execute (Bank, Customer) | | Rewards | rewards:read (Bank, Customer) | | rewards:execute (Bank) | | External bank accounts | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | Workflows | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Transfers | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | VerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Banks | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | Customers | /api/customers | Create and list customers | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | Accounts | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Symbols | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Prices | /api/prices | Get the current prices for assets on the platform | | Bank | Quotes | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Trades | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Rewards | /api/rewards | Create a new reward (automates quote/trade for simplicity) | | Bank | ExternalBankAccounts | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | Workflows | /api/workflows | Create, get and list workflows | | Bank | Transfers | /api/transfers | Create, get and list transfers (e.g., funding, book) | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
|
6
|
+
## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.demo.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read rewards:execute rewards:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write banks:read banks:write banks:execute customers:read accounts:read quotes:read trades:read transfers:read external_bank_accounts:read workflows:read deposit_addresses:read' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|-------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Bank, Customer) | | Reward | rewards:read (Bank, Customer) | | rewards:execute (Bank) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | BankVerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Customer | /api/customers | Create and list customers | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Reward | /api/rewards | Create a new reward (automates quote/trade for simplicity) | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v0.
|
8
|
+
The version of the OpenAPI document: v0.58.0
|
9
9
|
Contact: support@cybrid.app
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
OpenAPI Generator version: 6.0.0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# CybridApiBank::DepositAddressBankModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **guid** | **String** | Auto-generated unique identifier for the identity verification. | |
|
8
|
+
| **bank_guid** | **String** | The address' bank identifier. | |
|
9
|
+
| **customer_guid** | **String** | The address' customer identifier. | |
|
10
|
+
| **account_guid** | **String** | The address' account identifier. | |
|
11
|
+
| **created_at** | **Time** | ISO8601 datetime the address was created at. | |
|
12
|
+
| **asset** | **String** | The asset the transfer is related to, e.g., USD. | |
|
13
|
+
| **state** | **String** | The state of the address. | |
|
14
|
+
| **address** | **String** | The blockchain address. | [optional] |
|
15
|
+
| **format** | **String** | The blockchain address format. | [optional] |
|
16
|
+
| **tag** | **String** | The blockchain address tag. | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'cybrid_api_bank_ruby'
|
22
|
+
|
23
|
+
instance = CybridApiBank::DepositAddressBankModel.new(
|
24
|
+
guid: null,
|
25
|
+
bank_guid: null,
|
26
|
+
customer_guid: null,
|
27
|
+
account_guid: null,
|
28
|
+
created_at: null,
|
29
|
+
asset: null,
|
30
|
+
state: null,
|
31
|
+
address: null,
|
32
|
+
format: null,
|
33
|
+
tag: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# CybridApiBank::DepositAddressListBankModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **total** | **Integer** | The total number of records available. | |
|
8
|
+
| **page** | **Integer** | The page index to retrieve. | |
|
9
|
+
| **per_page** | **Integer** | The number of entities per page to return. | |
|
10
|
+
| **objects** | [**Array<DepositAddressBankModel>**](DepositAddressBankModel.md) | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'cybrid_api_bank_ruby'
|
16
|
+
|
17
|
+
instance = CybridApiBank::DepositAddressListBankModel.new(
|
18
|
+
total: null,
|
19
|
+
page: null,
|
20
|
+
per_page: null,
|
21
|
+
objects: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,236 @@
|
|
1
|
+
# CybridApiBank::DepositAddressesBankApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://bank.demo.cybrid.app*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_deposit_address**](DepositAddressesBankApi.md#create_deposit_address) | **POST** /api/deposit_addresses | Create Deposit Address |
|
8
|
+
| [**get_deposit_address**](DepositAddressesBankApi.md#get_deposit_address) | **GET** /api/deposit_addresses/{deposit_address_guid} | Get Deposit Address |
|
9
|
+
| [**list_deposit_addresses**](DepositAddressesBankApi.md#list_deposit_addresses) | **GET** /api/deposit_addresses | List Deposit Addresses |
|
10
|
+
|
11
|
+
|
12
|
+
## create_deposit_address
|
13
|
+
|
14
|
+
> <DepositAddressBankModel> create_deposit_address(post_deposit_address_bank_model)
|
15
|
+
|
16
|
+
Create Deposit Address
|
17
|
+
|
18
|
+
Create an Deposit Address. Required scope: **deposit_addresses:execute**
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'cybrid_api_bank_ruby'
|
25
|
+
# setup authorization
|
26
|
+
CybridApiBank.configure do |config|
|
27
|
+
# Configure Bearer authorization (JWT): BearerAuth
|
28
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
29
|
+
|
30
|
+
# Configure OAuth2 access token for authorization: oauth2
|
31
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = CybridApiBank::DepositAddressesBankApi.new
|
35
|
+
post_deposit_address_bank_model = CybridApiBank::PostDepositAddressBankModel.new({account_guid: 'account_guid_example'}) # PostDepositAddressBankModel |
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Create Deposit Address
|
39
|
+
result = api_instance.create_deposit_address(post_deposit_address_bank_model)
|
40
|
+
p result
|
41
|
+
rescue CybridApiBank::ApiError => e
|
42
|
+
puts "Error when calling DepositAddressesBankApi->create_deposit_address: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the create_deposit_address_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<DepositAddressBankModel>, Integer, Hash)> create_deposit_address_with_http_info(post_deposit_address_bank_model)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Create Deposit Address
|
55
|
+
data, status_code, headers = api_instance.create_deposit_address_with_http_info(post_deposit_address_bank_model)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <DepositAddressBankModel>
|
59
|
+
rescue CybridApiBank::ApiError => e
|
60
|
+
puts "Error when calling DepositAddressesBankApi->create_deposit_address_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **post_deposit_address_bank_model** | [**PostDepositAddressBankModel**](PostDepositAddressBankModel.md) | | |
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
[**DepositAddressBankModel**](DepositAddressBankModel.md)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: application/json
|
81
|
+
- **Accept**: application/json
|
82
|
+
|
83
|
+
|
84
|
+
## get_deposit_address
|
85
|
+
|
86
|
+
> <DepositAddressBankModel> get_deposit_address(deposit_address_guid)
|
87
|
+
|
88
|
+
Get Deposit Address
|
89
|
+
|
90
|
+
Retrieves a deposit address. Required scope: **deposit_addresses:read**
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'cybrid_api_bank_ruby'
|
97
|
+
# setup authorization
|
98
|
+
CybridApiBank.configure do |config|
|
99
|
+
# Configure Bearer authorization (JWT): BearerAuth
|
100
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
101
|
+
|
102
|
+
# Configure OAuth2 access token for authorization: oauth2
|
103
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
104
|
+
end
|
105
|
+
|
106
|
+
api_instance = CybridApiBank::DepositAddressesBankApi.new
|
107
|
+
deposit_address_guid = 'deposit_address_guid_example' # String | Identifier for the deposit address.
|
108
|
+
|
109
|
+
begin
|
110
|
+
# Get Deposit Address
|
111
|
+
result = api_instance.get_deposit_address(deposit_address_guid)
|
112
|
+
p result
|
113
|
+
rescue CybridApiBank::ApiError => e
|
114
|
+
puts "Error when calling DepositAddressesBankApi->get_deposit_address: #{e}"
|
115
|
+
end
|
116
|
+
```
|
117
|
+
|
118
|
+
#### Using the get_deposit_address_with_http_info variant
|
119
|
+
|
120
|
+
This returns an Array which contains the response data, status code and headers.
|
121
|
+
|
122
|
+
> <Array(<DepositAddressBankModel>, Integer, Hash)> get_deposit_address_with_http_info(deposit_address_guid)
|
123
|
+
|
124
|
+
```ruby
|
125
|
+
begin
|
126
|
+
# Get Deposit Address
|
127
|
+
data, status_code, headers = api_instance.get_deposit_address_with_http_info(deposit_address_guid)
|
128
|
+
p status_code # => 2xx
|
129
|
+
p headers # => { ... }
|
130
|
+
p data # => <DepositAddressBankModel>
|
131
|
+
rescue CybridApiBank::ApiError => e
|
132
|
+
puts "Error when calling DepositAddressesBankApi->get_deposit_address_with_http_info: #{e}"
|
133
|
+
end
|
134
|
+
```
|
135
|
+
|
136
|
+
### Parameters
|
137
|
+
|
138
|
+
| Name | Type | Description | Notes |
|
139
|
+
| ---- | ---- | ----------- | ----- |
|
140
|
+
| **deposit_address_guid** | **String** | Identifier for the deposit address. | |
|
141
|
+
|
142
|
+
### Return type
|
143
|
+
|
144
|
+
[**DepositAddressBankModel**](DepositAddressBankModel.md)
|
145
|
+
|
146
|
+
### Authorization
|
147
|
+
|
148
|
+
[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
|
149
|
+
|
150
|
+
### HTTP request headers
|
151
|
+
|
152
|
+
- **Content-Type**: Not defined
|
153
|
+
- **Accept**: application/json
|
154
|
+
|
155
|
+
|
156
|
+
## list_deposit_addresses
|
157
|
+
|
158
|
+
> <DepositAddressListBankModel> list_deposit_addresses(opts)
|
159
|
+
|
160
|
+
List Deposit Addresses
|
161
|
+
|
162
|
+
Retrieves a list of deposit addresses. Required scope: **deposit_addresses:read**
|
163
|
+
|
164
|
+
### Examples
|
165
|
+
|
166
|
+
```ruby
|
167
|
+
require 'time'
|
168
|
+
require 'cybrid_api_bank_ruby'
|
169
|
+
# setup authorization
|
170
|
+
CybridApiBank.configure do |config|
|
171
|
+
# Configure Bearer authorization (JWT): BearerAuth
|
172
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
173
|
+
|
174
|
+
# Configure OAuth2 access token for authorization: oauth2
|
175
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
176
|
+
end
|
177
|
+
|
178
|
+
api_instance = CybridApiBank::DepositAddressesBankApi.new
|
179
|
+
opts = {
|
180
|
+
page: 56, # Integer | The page index to retrieve.
|
181
|
+
per_page: 56, # Integer | The number of entities per page to return.
|
182
|
+
guid: 'guid_example', # String | Comma separated guids to list deposit addresses for.
|
183
|
+
bank_guid: 'bank_guid_example', # String | Comma separated bank_guids to list deposit addresses for.
|
184
|
+
customer_guid: 'customer_guid_example' # String | Comma separated customer_guids to list deposit addresses for.
|
185
|
+
}
|
186
|
+
|
187
|
+
begin
|
188
|
+
# List Deposit Addresses
|
189
|
+
result = api_instance.list_deposit_addresses(opts)
|
190
|
+
p result
|
191
|
+
rescue CybridApiBank::ApiError => e
|
192
|
+
puts "Error when calling DepositAddressesBankApi->list_deposit_addresses: #{e}"
|
193
|
+
end
|
194
|
+
```
|
195
|
+
|
196
|
+
#### Using the list_deposit_addresses_with_http_info variant
|
197
|
+
|
198
|
+
This returns an Array which contains the response data, status code and headers.
|
199
|
+
|
200
|
+
> <Array(<DepositAddressListBankModel>, Integer, Hash)> list_deposit_addresses_with_http_info(opts)
|
201
|
+
|
202
|
+
```ruby
|
203
|
+
begin
|
204
|
+
# List Deposit Addresses
|
205
|
+
data, status_code, headers = api_instance.list_deposit_addresses_with_http_info(opts)
|
206
|
+
p status_code # => 2xx
|
207
|
+
p headers # => { ... }
|
208
|
+
p data # => <DepositAddressListBankModel>
|
209
|
+
rescue CybridApiBank::ApiError => e
|
210
|
+
puts "Error when calling DepositAddressesBankApi->list_deposit_addresses_with_http_info: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
| Name | Type | Description | Notes |
|
217
|
+
| ---- | ---- | ----------- | ----- |
|
218
|
+
| **page** | **Integer** | The page index to retrieve. | [optional] |
|
219
|
+
| **per_page** | **Integer** | The number of entities per page to return. | [optional] |
|
220
|
+
| **guid** | **String** | Comma separated guids to list deposit addresses for. | [optional] |
|
221
|
+
| **bank_guid** | **String** | Comma separated bank_guids to list deposit addresses for. | [optional] |
|
222
|
+
| **customer_guid** | **String** | Comma separated customer_guids to list deposit addresses for. | [optional] |
|
223
|
+
|
224
|
+
### Return type
|
225
|
+
|
226
|
+
[**DepositAddressListBankModel**](DepositAddressListBankModel.md)
|
227
|
+
|
228
|
+
### Authorization
|
229
|
+
|
230
|
+
[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
|
231
|
+
|
232
|
+
### HTTP request headers
|
233
|
+
|
234
|
+
- **Content-Type**: Not defined
|
235
|
+
- **Accept**: application/json
|
236
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# CybridApiBank::PostDepositAddressBankModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_guid** | **String** | The trading account guid. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'cybrid_api_bank_ruby'
|
13
|
+
|
14
|
+
instance = CybridApiBank::PostDepositAddressBankModel.new(
|
15
|
+
account_guid: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|