cybrid_api_bank_ruby 0.121.10 → 0.121.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/cybrid_api_bank_ruby.gemspec +1 -1
- data/docs/BanksBankApi.md +1 -1
- data/docs/CounterpartiesBankApi.md +1 -1
- data/docs/CounterpartyAddressBankModel.md +1 -1
- data/docs/CustomerAddressBankModel.md +1 -1
- data/docs/DepositBankAccountCounterpartyAddressBankModel.md +1 -1
- data/docs/DepositBankAccountsBankApi.md +1 -1
- data/docs/ExternalBankAccountPiiInnerAddressesInnerBankModel.md +1 -1
- data/docs/ExternalBankAccountsBankApi.md +1 -1
- data/docs/IdentityVerificationWithDetailsPiiAddressBankModel.md +1 -1
- data/docs/IdentityVerificationsBankApi.md +1 -1
- data/docs/PatchBankBankModel.md +2 -2
- data/docs/PostAccountBankModel.md +1 -1
- data/docs/PostBankBankModel.md +9 -9
- data/docs/PostCounterpartyAliasesInnerBankModel.md +1 -1
- data/docs/PostCounterpartyBankModel.md +4 -4
- data/docs/PostCounterpartyNameBankModel.md +6 -6
- data/docs/PostCustomerAddressBankModel.md +6 -6
- data/docs/PostCustomerBankModel.md +5 -5
- data/docs/PostCustomerNameBankModel.md +3 -3
- data/docs/PostDepositBankAccountBankModel.md +3 -3
- data/docs/PostExternalBankAccountBankModel.md +11 -11
- data/docs/PostExternalBankAccountCounterpartyAddressBankModel.md +6 -6
- data/docs/PostExternalBankAccountCounterpartyBankAccountBankModel.md +3 -3
- data/docs/PostExternalBankAccountCounterpartyNameBankModel.md +4 -4
- data/docs/PostExternalWalletBankModel.md +1 -1
- data/docs/PostFeeBankModel.md +2 -2
- data/docs/PostIdentityVerificationAddressBankModel.md +6 -6
- data/docs/PostIdentityVerificationBankModel.md +13 -13
- data/docs/PostIdentityVerificationNameBankModel.md +4 -4
- data/docs/PostInvoiceBankModel.md +1 -1
- data/docs/PostQuoteBankModel.md +12 -12
- data/docs/PostTransferBankModel.md +24 -22
- data/docs/PostTransferParticipantBankModel.md +1 -1
- data/docs/PostWorkflowBankModel.md +7 -7
- data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/counterparties_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/deposit_addresses_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/deposit_bank_accounts_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/external_bank_accounts_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/external_wallets_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/identity_verifications_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/invoices_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/payment_instructions_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/transfers_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/workflows_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_bank_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/account_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/account_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/activity_limit_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/activity_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/asset_types_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/bank_feature_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/bank_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/compliance_check_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/compliance_check_outcome_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/compliance_check_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/compliance_decision_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/compliance_decision_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/compliance_decision_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/counterparty_address_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/counterparty_aliases_inner_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/counterparty_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/counterparty_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/counterparty_name_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/counterparty_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/counterparty_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_address_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/customer_aliases_inner_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_name_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_address_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_address_format_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_address_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_address_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_account_details_inner_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_counterparty_address_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_details_inner_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_number_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_balances_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_kind_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_addresses_inner_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_routing_details_inner_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_bank_account_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_wallet_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_wallet_environment_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_wallet_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/external_wallet_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identification_number_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_outcome_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_persona_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_address_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_name_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/invoice_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/invoice_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +21 -3
- data/lib/cybrid_api_bank_ruby/models/patch_customer_bank_model.rb +3 -1
- data/lib/cybrid_api_bank_ruby/models/patch_external_bank_account_bank_model.rb +2 -1
- data/lib/cybrid_api_bank_ruby/models/payment_instruction_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/payment_instruction_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +18 -2
- data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +88 -54
- data/lib/cybrid_api_bank_ruby/models/post_counterparty_address_bank_model.rb +2 -1
- data/lib/cybrid_api_bank_ruby/models/post_counterparty_aliases_inner_bank_model.rb +2 -2
- data/lib/cybrid_api_bank_ruby/models/post_counterparty_bank_model.rb +58 -14
- data/lib/cybrid_api_bank_ruby/models/post_counterparty_name_bank_model.rb +21 -20
- data/lib/cybrid_api_bank_ruby/models/post_customer_address_bank_model.rb +11 -22
- data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +46 -6
- data/lib/cybrid_api_bank_ruby/models/post_customer_name_bank_model.rb +5 -4
- data/lib/cybrid_api_bank_ruby/models/post_deposit_address_bank_model.rb +17 -1
- data/lib/cybrid_api_bank_ruby/models/post_deposit_bank_account_bank_model.rb +24 -3
- data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_bank_model.rb +25 -48
- data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_address_bank_model.rb +17 -33
- data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_bank_account_bank_model.rb +8 -20
- data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_name_bank_model.rb +9 -6
- data/lib/cybrid_api_bank_ruby/models/post_external_wallet_bank_model.rb +3 -2
- data/lib/cybrid_api_bank_ruby/models/post_fee_bank_model.rb +6 -3
- data/lib/cybrid_api_bank_ruby/models/post_identification_number_bank_model.rb +2 -1
- data/lib/cybrid_api_bank_ruby/models/post_identity_verification_address_bank_model.rb +11 -51
- data/lib/cybrid_api_bank_ruby/models/post_identity_verification_bank_model.rb +76 -130
- data/lib/cybrid_api_bank_ruby/models/post_identity_verification_name_bank_model.rb +6 -6
- data/lib/cybrid_api_bank_ruby/models/post_invoice_bank_model.rb +18 -2
- data/lib/cybrid_api_bank_ruby/models/post_payment_instruction_bank_model.rb +3 -10
- data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +103 -44
- data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +19 -1
- data/lib/cybrid_api_bank_ruby/models/post_transfer_bank_model.rb +193 -260
- data/lib/cybrid_api_bank_ruby/models/post_transfer_participant_bank_model.rb +3 -2
- data/lib/cybrid_api_bank_ruby/models/post_workflow_bank_model.rb +14 -53
- data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/quote_side_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/quote_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_failure_code_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_side_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_account_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_destination_account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_failure_code_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_participant_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_side_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_source_account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/transfer_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/workflow_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/workflow_state_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/workflow_type_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/workflow_with_details_all_of_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/workflow_with_details_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/workflows_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/version.rb +2 -2
- data/lib/cybrid_api_bank_ruby.rb +1 -1
- data/spec/api/accounts_bank_api_spec.rb +1 -1
- data/spec/api/assets_bank_api_spec.rb +1 -1
- data/spec/api/banks_bank_api_spec.rb +1 -1
- data/spec/api/counterparties_bank_api_spec.rb +1 -1
- data/spec/api/customers_bank_api_spec.rb +1 -1
- data/spec/api/deposit_addresses_bank_api_spec.rb +1 -1
- data/spec/api/deposit_bank_accounts_bank_api_spec.rb +1 -1
- data/spec/api/external_bank_accounts_bank_api_spec.rb +1 -1
- data/spec/api/external_wallets_bank_api_spec.rb +1 -1
- data/spec/api/identity_verifications_bank_api_spec.rb +1 -1
- data/spec/api/invoices_bank_api_spec.rb +1 -1
- data/spec/api/payment_instructions_bank_api_spec.rb +1 -1
- data/spec/api/prices_bank_api_spec.rb +1 -1
- data/spec/api/quotes_bank_api_spec.rb +1 -1
- data/spec/api/symbols_bank_api_spec.rb +1 -1
- data/spec/api/trades_bank_api_spec.rb +1 -1
- data/spec/api/transfers_bank_api_spec.rb +1 -1
- data/spec/api/workflows_bank_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_bank_model_spec.rb +1 -1
- data/spec/models/account_list_bank_model_spec.rb +1 -1
- data/spec/models/account_state_bank_model_spec.rb +1 -1
- data/spec/models/account_type_bank_model_spec.rb +1 -1
- data/spec/models/activity_limit_bank_model_spec.rb +1 -1
- data/spec/models/activity_type_bank_model_spec.rb +1 -1
- data/spec/models/asset_bank_model_spec.rb +1 -1
- data/spec/models/asset_list_bank_model_spec.rb +1 -1
- data/spec/models/asset_types_bank_model_spec.rb +1 -1
- data/spec/models/bank_bank_model_spec.rb +1 -1
- data/spec/models/bank_feature_bank_model_spec.rb +1 -1
- data/spec/models/bank_list_bank_model_spec.rb +1 -1
- data/spec/models/bank_type_bank_model_spec.rb +1 -1
- data/spec/models/compliance_check_bank_model_spec.rb +1 -1
- data/spec/models/compliance_check_outcome_bank_model_spec.rb +1 -1
- data/spec/models/compliance_check_type_bank_model_spec.rb +1 -1
- data/spec/models/compliance_decision_bank_model_spec.rb +1 -1
- data/spec/models/compliance_decision_state_bank_model_spec.rb +1 -1
- data/spec/models/compliance_decision_type_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_address_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_aliases_inner_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_list_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_name_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_state_bank_model_spec.rb +1 -1
- data/spec/models/counterparty_type_bank_model_spec.rb +1 -1
- data/spec/models/customer_address_bank_model_spec.rb +1 -1
- data/spec/models/customer_aliases_inner_bank_model_spec.rb +1 -1
- data/spec/models/customer_bank_model_spec.rb +1 -1
- data/spec/models/customer_list_bank_model_spec.rb +1 -1
- data/spec/models/customer_name_bank_model_spec.rb +1 -1
- data/spec/models/customer_state_bank_model_spec.rb +1 -1
- data/spec/models/customer_type_bank_model_spec.rb +1 -1
- data/spec/models/deposit_address_bank_model_spec.rb +1 -1
- data/spec/models/deposit_address_format_bank_model_spec.rb +1 -1
- data/spec/models/deposit_address_list_bank_model_spec.rb +1 -1
- data/spec/models/deposit_address_state_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_account_details_inner_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_counterparty_address_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_list_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_routing_details_inner_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_routing_number_type_bank_model_spec.rb +1 -1
- data/spec/models/deposit_bank_account_state_bank_model_spec.rb +1 -1
- data/spec/models/error_response_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_balances_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_kind_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_list_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_pii_inner_addresses_inner_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_pii_inner_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_pii_inner_routing_details_inner_bank_model_spec.rb +1 -1
- data/spec/models/external_bank_account_state_bank_model_spec.rb +1 -1
- data/spec/models/external_wallet_bank_model_spec.rb +1 -1
- data/spec/models/external_wallet_environment_bank_model_spec.rb +1 -1
- data/spec/models/external_wallet_list_bank_model_spec.rb +1 -1
- data/spec/models/external_wallet_state_bank_model_spec.rb +1 -1
- data/spec/models/identification_number_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_list_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_method_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_outcome_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_persona_state_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_state_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_type_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_with_details_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_with_details_pii_address_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_with_details_pii_bank_model_spec.rb +1 -1
- data/spec/models/identity_verification_with_details_pii_name_bank_model_spec.rb +1 -1
- data/spec/models/invoice_bank_model_spec.rb +1 -1
- data/spec/models/invoice_list_bank_model_spec.rb +1 -1
- data/spec/models/patch_bank_bank_model_spec.rb +1 -1
- data/spec/models/patch_customer_bank_model_spec.rb +1 -1
- data/spec/models/patch_external_bank_account_bank_model_spec.rb +1 -1
- data/spec/models/payment_instruction_bank_model_spec.rb +1 -1
- data/spec/models/payment_instruction_list_bank_model_spec.rb +1 -1
- data/spec/models/post_account_bank_model_spec.rb +1 -1
- data/spec/models/post_bank_bank_model_spec.rb +13 -13
- data/spec/models/post_counterparty_address_bank_model_spec.rb +1 -1
- data/spec/models/post_counterparty_aliases_inner_bank_model_spec.rb +1 -1
- data/spec/models/post_counterparty_bank_model_spec.rb +3 -3
- data/spec/models/post_counterparty_name_bank_model_spec.rb +5 -5
- data/spec/models/post_customer_address_bank_model_spec.rb +1 -1
- data/spec/models/post_customer_bank_model_spec.rb +1 -1
- data/spec/models/post_customer_name_bank_model_spec.rb +1 -1
- data/spec/models/post_deposit_address_bank_model_spec.rb +1 -1
- data/spec/models/post_deposit_bank_account_bank_model_spec.rb +1 -1
- data/spec/models/post_external_bank_account_bank_model_spec.rb +6 -6
- data/spec/models/post_external_bank_account_counterparty_address_bank_model_spec.rb +1 -1
- data/spec/models/post_external_bank_account_counterparty_bank_account_bank_model_spec.rb +1 -1
- data/spec/models/post_external_bank_account_counterparty_name_bank_model_spec.rb +1 -1
- data/spec/models/post_external_wallet_bank_model_spec.rb +1 -1
- data/spec/models/post_fee_bank_model_spec.rb +1 -1
- data/spec/models/post_identification_number_bank_model_spec.rb +1 -1
- data/spec/models/post_identity_verification_address_bank_model_spec.rb +1 -1
- data/spec/models/post_identity_verification_bank_model_spec.rb +19 -19
- data/spec/models/post_identity_verification_name_bank_model_spec.rb +1 -1
- data/spec/models/post_invoice_bank_model_spec.rb +1 -1
- data/spec/models/post_payment_instruction_bank_model_spec.rb +1 -1
- data/spec/models/post_quote_bank_model_spec.rb +12 -8
- data/spec/models/post_trade_bank_model_spec.rb +1 -1
- data/spec/models/post_transfer_bank_model_spec.rb +23 -13
- data/spec/models/post_transfer_participant_bank_model_spec.rb +1 -1
- data/spec/models/post_workflow_bank_model_spec.rb +1 -1
- data/spec/models/quote_bank_model_spec.rb +1 -1
- data/spec/models/quote_list_bank_model_spec.rb +1 -1
- data/spec/models/quote_side_bank_model_spec.rb +1 -1
- data/spec/models/quote_type_bank_model_spec.rb +1 -1
- data/spec/models/symbol_price_bank_model_spec.rb +1 -1
- data/spec/models/trade_bank_model_spec.rb +1 -1
- data/spec/models/trade_failure_code_bank_model_spec.rb +1 -1
- data/spec/models/trade_list_bank_model_spec.rb +1 -1
- data/spec/models/trade_side_bank_model_spec.rb +1 -1
- data/spec/models/trade_state_bank_model_spec.rb +1 -1
- data/spec/models/trade_type_bank_model_spec.rb +1 -1
- data/spec/models/transfer_account_type_bank_model_spec.rb +1 -1
- data/spec/models/transfer_bank_model_spec.rb +1 -1
- data/spec/models/transfer_destination_account_bank_model_spec.rb +1 -1
- data/spec/models/transfer_failure_code_bank_model_spec.rb +1 -1
- data/spec/models/transfer_list_bank_model_spec.rb +1 -1
- data/spec/models/transfer_participant_bank_model_spec.rb +1 -1
- data/spec/models/transfer_side_bank_model_spec.rb +1 -1
- data/spec/models/transfer_source_account_bank_model_spec.rb +1 -1
- data/spec/models/transfer_state_bank_model_spec.rb +1 -1
- data/spec/models/transfer_type_bank_model_spec.rb +1 -1
- data/spec/models/workflow_bank_model_spec.rb +1 -1
- data/spec/models/workflow_state_bank_model_spec.rb +1 -1
- data/spec/models/workflow_type_bank_model_spec.rb +1 -1
- data/spec/models/workflow_with_details_all_of_bank_model_spec.rb +1 -1
- data/spec/models/workflow_with_details_bank_model_spec.rb +1 -1
- data/spec/models/workflows_list_bank_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.1.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.1/gem_make.out +5 -5
- metadata +1 -1
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
## 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.production.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. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## 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.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.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.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.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.production.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.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications: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) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties: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) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.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 | | Identity | Organization | /api/users | Create and list organization users | | 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 | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | 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 | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | 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 | 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` typically 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 a passing `Identity Verification`. See the Identity Verifications 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.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.121.
|
6
|
+
The version of the OpenAPI document: v0.121.12
|
7
7
|
Contact: support@cybrid.app
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module CybridApiBank
|
17
|
+
# Request body for transfer creation.
|
17
18
|
class PostTransferBankModel
|
18
19
|
# The associated quote's identifier.
|
19
20
|
attr_accessor :quote_guid
|
@@ -21,47 +22,50 @@ module CybridApiBank
|
|
21
22
|
# The type of transfer.
|
22
23
|
attr_accessor :transfer_type
|
23
24
|
|
24
|
-
# The customer's identifier.
|
25
|
-
attr_accessor :
|
25
|
+
# The customer's 'plaid' or 'plaid_processor_token' external bank account's identifier. Required when transfer_type is funding or transfer_type is instant_funding.
|
26
|
+
attr_accessor :external_bank_account_guid
|
26
27
|
|
27
|
-
# The identifier for the fiat account to use for the transfer. Required if the customer or bank has multiple fiat accounts.
|
28
|
+
# The identifier for the fiat account to use for the transfer. Required if the customer or bank has multiple fiat accounts. Optional when transfer_type is funding.
|
28
29
|
attr_accessor :fiat_account_guid
|
29
30
|
|
30
|
-
# The identifier for
|
31
|
-
attr_accessor :
|
31
|
+
# The deposit bank account's identifier. Only valid for withdrawals. The deposit bank account must be owned by the customer or bank initiating the transfer. Optional when transfer_type is funding.
|
32
|
+
attr_accessor :send_as_deposit_bank_account_guid
|
32
33
|
|
33
|
-
# The
|
34
|
-
attr_accessor :
|
34
|
+
# The desired payment rail to initiate the transfer for. Optional when transfer_type is funding.
|
35
|
+
attr_accessor :payment_rail
|
35
36
|
|
36
|
-
# The
|
37
|
-
attr_accessor :
|
37
|
+
# The memo to send to the counterparty. Optional when transfer_type is funding.
|
38
|
+
attr_accessor :beneficiary_memo
|
38
39
|
|
39
|
-
# The source participants for the transfer.
|
40
|
+
# The source participants for the transfer. Optional when transfer_type is funding, transfer_type is instant_funding, transfer_type is book, transfer_type is crypto, or transfer_type is lightning.
|
40
41
|
attr_accessor :source_participants
|
41
42
|
|
42
|
-
# The destination
|
43
|
-
attr_accessor :destination_account_guid
|
44
|
-
|
45
|
-
# The destination participants for the transfer. Not supported for \"inter_account\" transfers.
|
43
|
+
# The destination participants for the transfer. Optional when transfer_type is funding, transfer_type is instant_funding, transfer_type is book, transfer_type is crypto, or transfer_type is lightning.
|
46
44
|
attr_accessor :destination_participants
|
47
45
|
|
48
|
-
# The
|
49
|
-
attr_accessor :
|
46
|
+
# The optional expected error to simulate transfer failure. Optional when transfer_type is funding, transfer_type is instant_funding, transfer_type is book, transfer_type is crypto, transfer_type is inter_account, or transfer_type is lightning.
|
47
|
+
attr_accessor :expected_error
|
50
48
|
|
51
|
-
# The
|
52
|
-
attr_accessor :
|
49
|
+
# The identifier for the fiat account to use for the transfer. Required if the bank has multiple fiat accounts. Optional when transfer_type is instant_funding or transfer_type is lightning.
|
50
|
+
attr_accessor :bank_fiat_account_guid
|
53
51
|
|
54
|
-
# The
|
55
|
-
attr_accessor :
|
52
|
+
# The identifier for the fiat account to use for the transfer. Required if the customer has multiple fiat accounts. Optional when transfer_type is instant_funding or transfer_type is lightning.
|
53
|
+
attr_accessor :customer_fiat_account_guid
|
56
54
|
|
57
|
-
# The
|
58
|
-
attr_accessor :
|
55
|
+
# The source account's identifier. Required when transfer_type is book or transfer_type is inter_account.
|
56
|
+
attr_accessor :source_account_guid
|
59
57
|
|
60
|
-
# The
|
61
|
-
attr_accessor :
|
58
|
+
# The destination account's identifier. Required when transfer_type is book or transfer_type is inter_account.
|
59
|
+
attr_accessor :destination_account_guid
|
62
60
|
|
63
|
-
# The
|
64
|
-
attr_accessor :
|
61
|
+
# The customer's external wallet's identifier. Required when transfer_type is crypto.
|
62
|
+
attr_accessor :external_wallet_guid
|
63
|
+
|
64
|
+
# The customer's identifier. Required when transfer_type is lightning.
|
65
|
+
attr_accessor :customer_guid
|
66
|
+
|
67
|
+
# The network fee account's identifier. Required for network fee transfers. Must be the identifier for the customer's or bank's fiat or trading account. For customer's to pay the network fees, include the customer's fiat or trading account guid. For bank's to pay the network fees, include the bank's fiat or trading account guid. Required when transfer_type is lightning.
|
68
|
+
attr_accessor :network_fee_account_guid
|
65
69
|
|
66
70
|
# The labels associated with the transfer.
|
67
71
|
attr_accessor :labels
|
@@ -93,20 +97,21 @@ module CybridApiBank
|
|
93
97
|
{
|
94
98
|
:'quote_guid' => :'quote_guid',
|
95
99
|
:'transfer_type' => :'transfer_type',
|
96
|
-
:'
|
100
|
+
:'external_bank_account_guid' => :'external_bank_account_guid',
|
97
101
|
:'fiat_account_guid' => :'fiat_account_guid',
|
98
|
-
:'
|
102
|
+
:'send_as_deposit_bank_account_guid' => :'send_as_deposit_bank_account_guid',
|
103
|
+
:'payment_rail' => :'payment_rail',
|
104
|
+
:'beneficiary_memo' => :'beneficiary_memo',
|
105
|
+
:'source_participants' => :'source_participants',
|
106
|
+
:'destination_participants' => :'destination_participants',
|
107
|
+
:'expected_error' => :'expected_error',
|
99
108
|
:'bank_fiat_account_guid' => :'bank_fiat_account_guid',
|
109
|
+
:'customer_fiat_account_guid' => :'customer_fiat_account_guid',
|
100
110
|
:'source_account_guid' => :'source_account_guid',
|
101
|
-
:'source_participants' => :'source_participants',
|
102
111
|
:'destination_account_guid' => :'destination_account_guid',
|
103
|
-
:'destination_participants' => :'destination_participants',
|
104
112
|
:'external_wallet_guid' => :'external_wallet_guid',
|
105
|
-
:'
|
113
|
+
:'customer_guid' => :'customer_guid',
|
106
114
|
:'network_fee_account_guid' => :'network_fee_account_guid',
|
107
|
-
:'payment_rail' => :'payment_rail',
|
108
|
-
:'beneficiary_memo' => :'beneficiary_memo',
|
109
|
-
:'send_as_deposit_bank_account_guid' => :'send_as_deposit_bank_account_guid',
|
110
115
|
:'labels' => :'labels'
|
111
116
|
}
|
112
117
|
end
|
@@ -121,20 +126,21 @@ module CybridApiBank
|
|
121
126
|
{
|
122
127
|
:'quote_guid' => :'String',
|
123
128
|
:'transfer_type' => :'String',
|
124
|
-
:'
|
129
|
+
:'external_bank_account_guid' => :'String',
|
125
130
|
:'fiat_account_guid' => :'String',
|
126
|
-
:'
|
131
|
+
:'send_as_deposit_bank_account_guid' => :'String',
|
132
|
+
:'payment_rail' => :'String',
|
133
|
+
:'beneficiary_memo' => :'String',
|
134
|
+
:'source_participants' => :'Array<PostTransferParticipantBankModel>',
|
135
|
+
:'destination_participants' => :'Array<PostTransferParticipantBankModel>',
|
136
|
+
:'expected_error' => :'String',
|
127
137
|
:'bank_fiat_account_guid' => :'String',
|
138
|
+
:'customer_fiat_account_guid' => :'String',
|
128
139
|
:'source_account_guid' => :'String',
|
129
|
-
:'source_participants' => :'Array<PostTransferParticipantBankModel>',
|
130
140
|
:'destination_account_guid' => :'String',
|
131
|
-
:'destination_participants' => :'Array<PostTransferParticipantBankModel>',
|
132
141
|
:'external_wallet_guid' => :'String',
|
133
|
-
:'
|
142
|
+
:'customer_guid' => :'String',
|
134
143
|
:'network_fee_account_guid' => :'String',
|
135
|
-
:'payment_rail' => :'String',
|
136
|
-
:'beneficiary_memo' => :'String',
|
137
|
-
:'send_as_deposit_bank_account_guid' => :'String',
|
138
144
|
:'labels' => :'Array<String>'
|
139
145
|
}
|
140
146
|
end
|
@@ -142,12 +148,21 @@ module CybridApiBank
|
|
142
148
|
# List of attributes with nullable: true
|
143
149
|
def self.openapi_nullable
|
144
150
|
Set.new([
|
151
|
+
:'external_bank_account_guid',
|
145
152
|
:'fiat_account_guid',
|
146
|
-
:'
|
147
|
-
:'
|
153
|
+
:'send_as_deposit_bank_account_guid',
|
154
|
+
:'payment_rail',
|
155
|
+
:'beneficiary_memo',
|
148
156
|
:'source_participants',
|
149
157
|
:'destination_participants',
|
150
|
-
:'
|
158
|
+
:'expected_error',
|
159
|
+
:'bank_fiat_account_guid',
|
160
|
+
:'customer_fiat_account_guid',
|
161
|
+
:'source_account_guid',
|
162
|
+
:'destination_account_guid',
|
163
|
+
:'external_wallet_guid',
|
164
|
+
:'customer_guid',
|
165
|
+
:'network_fee_account_guid',
|
151
166
|
:'labels'
|
152
167
|
])
|
153
168
|
end
|
@@ -175,24 +190,24 @@ module CybridApiBank
|
|
175
190
|
self.transfer_type = attributes[:'transfer_type']
|
176
191
|
end
|
177
192
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
193
|
+
if attributes.key?(:'external_bank_account_guid')
|
194
|
+
self.external_bank_account_guid = attributes[:'external_bank_account_guid']
|
180
195
|
end
|
181
196
|
|
182
197
|
if attributes.key?(:'fiat_account_guid')
|
183
198
|
self.fiat_account_guid = attributes[:'fiat_account_guid']
|
184
199
|
end
|
185
200
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
201
|
+
if attributes.key?(:'send_as_deposit_bank_account_guid')
|
202
|
+
self.send_as_deposit_bank_account_guid = attributes[:'send_as_deposit_bank_account_guid']
|
188
203
|
end
|
189
204
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
205
|
+
if attributes.key?(:'payment_rail')
|
206
|
+
self.payment_rail = attributes[:'payment_rail']
|
192
207
|
end
|
193
208
|
|
194
|
-
if attributes.key?(:'
|
195
|
-
self.
|
209
|
+
if attributes.key?(:'beneficiary_memo')
|
210
|
+
self.beneficiary_memo = attributes[:'beneficiary_memo']
|
196
211
|
end
|
197
212
|
|
198
213
|
if attributes.key?(:'source_participants')
|
@@ -201,38 +216,42 @@ module CybridApiBank
|
|
201
216
|
end
|
202
217
|
end
|
203
218
|
|
204
|
-
if attributes.key?(:'destination_account_guid')
|
205
|
-
self.destination_account_guid = attributes[:'destination_account_guid']
|
206
|
-
end
|
207
|
-
|
208
219
|
if attributes.key?(:'destination_participants')
|
209
220
|
if (value = attributes[:'destination_participants']).is_a?(Array)
|
210
221
|
self.destination_participants = value
|
211
222
|
end
|
212
223
|
end
|
213
224
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
self.
|
225
|
+
if attributes.key?(:'expected_error')
|
226
|
+
self.expected_error = attributes[:'expected_error']
|
216
227
|
end
|
217
228
|
|
218
|
-
if attributes.key?(:'
|
219
|
-
self.
|
229
|
+
if attributes.key?(:'bank_fiat_account_guid')
|
230
|
+
self.bank_fiat_account_guid = attributes[:'bank_fiat_account_guid']
|
220
231
|
end
|
221
232
|
|
222
|
-
if attributes.key?(:'
|
223
|
-
self.
|
233
|
+
if attributes.key?(:'customer_fiat_account_guid')
|
234
|
+
self.customer_fiat_account_guid = attributes[:'customer_fiat_account_guid']
|
224
235
|
end
|
225
236
|
|
226
|
-
if attributes.key?(:'
|
227
|
-
self.
|
237
|
+
if attributes.key?(:'source_account_guid')
|
238
|
+
self.source_account_guid = attributes[:'source_account_guid']
|
228
239
|
end
|
229
240
|
|
230
|
-
if attributes.key?(:'
|
231
|
-
self.
|
241
|
+
if attributes.key?(:'destination_account_guid')
|
242
|
+
self.destination_account_guid = attributes[:'destination_account_guid']
|
232
243
|
end
|
233
244
|
|
234
|
-
if attributes.key?(:'
|
235
|
-
self.
|
245
|
+
if attributes.key?(:'external_wallet_guid')
|
246
|
+
self.external_wallet_guid = attributes[:'external_wallet_guid']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.key?(:'customer_guid')
|
250
|
+
self.customer_guid = attributes[:'customer_guid']
|
251
|
+
end
|
252
|
+
|
253
|
+
if attributes.key?(:'network_fee_account_guid')
|
254
|
+
self.network_fee_account_guid = attributes[:'network_fee_account_guid']
|
236
255
|
end
|
237
256
|
|
238
257
|
if attributes.key?(:'labels')
|
@@ -262,44 +281,16 @@ module CybridApiBank
|
|
262
281
|
invalid_properties.push('invalid value for "transfer_type", transfer_type cannot be nil.')
|
263
282
|
end
|
264
283
|
|
265
|
-
if !@
|
266
|
-
invalid_properties.push('invalid value for "
|
267
|
-
end
|
268
|
-
|
269
|
-
if !@customer_guid.nil? && @customer_guid.to_s.length < 32
|
270
|
-
invalid_properties.push('invalid value for "customer_guid", the character length must be great than or equal to 32.')
|
284
|
+
if !@external_bank_account_guid.nil? && @external_bank_account_guid.to_s.length > 32
|
285
|
+
invalid_properties.push('invalid value for "external_bank_account_guid", the character length must be smaller than or equal to 32.')
|
271
286
|
end
|
272
287
|
|
273
288
|
if !@fiat_account_guid.nil? && @fiat_account_guid.to_s.length > 32
|
274
289
|
invalid_properties.push('invalid value for "fiat_account_guid", the character length must be smaller than or equal to 32.')
|
275
290
|
end
|
276
291
|
|
277
|
-
if !@
|
278
|
-
invalid_properties.push('invalid value for "
|
279
|
-
end
|
280
|
-
|
281
|
-
if !@customer_fiat_account_guid.nil? && @customer_fiat_account_guid.to_s.length > 32
|
282
|
-
invalid_properties.push('invalid value for "customer_fiat_account_guid", the character length must be smaller than or equal to 32.')
|
283
|
-
end
|
284
|
-
|
285
|
-
if !@customer_fiat_account_guid.nil? && @customer_fiat_account_guid.to_s.length < 32
|
286
|
-
invalid_properties.push('invalid value for "customer_fiat_account_guid", the character length must be great than or equal to 32.')
|
287
|
-
end
|
288
|
-
|
289
|
-
if !@bank_fiat_account_guid.nil? && @bank_fiat_account_guid.to_s.length > 32
|
290
|
-
invalid_properties.push('invalid value for "bank_fiat_account_guid", the character length must be smaller than or equal to 32.')
|
291
|
-
end
|
292
|
-
|
293
|
-
if !@bank_fiat_account_guid.nil? && @bank_fiat_account_guid.to_s.length < 32
|
294
|
-
invalid_properties.push('invalid value for "bank_fiat_account_guid", the character length must be great than or equal to 32.')
|
295
|
-
end
|
296
|
-
|
297
|
-
if !@source_account_guid.nil? && @source_account_guid.to_s.length > 32
|
298
|
-
invalid_properties.push('invalid value for "source_account_guid", the character length must be smaller than or equal to 32.')
|
299
|
-
end
|
300
|
-
|
301
|
-
if !@source_account_guid.nil? && @source_account_guid.to_s.length < 32
|
302
|
-
invalid_properties.push('invalid value for "source_account_guid", the character length must be great than or equal to 32.')
|
292
|
+
if !@send_as_deposit_bank_account_guid.nil? && @send_as_deposit_bank_account_guid.to_s.length > 32
|
293
|
+
invalid_properties.push('invalid value for "send_as_deposit_bank_account_guid", the character length must be smaller than or equal to 32.')
|
303
294
|
end
|
304
295
|
|
305
296
|
if !@source_participants.nil? && @source_participants.length > 50
|
@@ -310,14 +301,6 @@ module CybridApiBank
|
|
310
301
|
invalid_properties.push('invalid value for "source_participants", number of items must be greater than or equal to 0.')
|
311
302
|
end
|
312
303
|
|
313
|
-
if !@destination_account_guid.nil? && @destination_account_guid.to_s.length > 32
|
314
|
-
invalid_properties.push('invalid value for "destination_account_guid", the character length must be smaller than or equal to 32.')
|
315
|
-
end
|
316
|
-
|
317
|
-
if !@destination_account_guid.nil? && @destination_account_guid.to_s.length < 32
|
318
|
-
invalid_properties.push('invalid value for "destination_account_guid", the character length must be great than or equal to 32.')
|
319
|
-
end
|
320
|
-
|
321
304
|
if !@destination_participants.nil? && @destination_participants.length > 50
|
322
305
|
invalid_properties.push('invalid value for "destination_participants", number of items must be less than or equal to 50.')
|
323
306
|
end
|
@@ -326,44 +309,36 @@ module CybridApiBank
|
|
326
309
|
invalid_properties.push('invalid value for "destination_participants", number of items must be greater than or equal to 0.')
|
327
310
|
end
|
328
311
|
|
329
|
-
if !@
|
330
|
-
invalid_properties.push('invalid value for "
|
331
|
-
end
|
332
|
-
|
333
|
-
if !@external_wallet_guid.nil? && @external_wallet_guid.to_s.length < 32
|
334
|
-
invalid_properties.push('invalid value for "external_wallet_guid", the character length must be great than or equal to 32.')
|
335
|
-
end
|
336
|
-
|
337
|
-
if !@external_bank_account_guid.nil? && @external_bank_account_guid.to_s.length > 32
|
338
|
-
invalid_properties.push('invalid value for "external_bank_account_guid", the character length must be smaller than or equal to 32.')
|
312
|
+
if !@bank_fiat_account_guid.nil? && @bank_fiat_account_guid.to_s.length > 32
|
313
|
+
invalid_properties.push('invalid value for "bank_fiat_account_guid", the character length must be smaller than or equal to 32.')
|
339
314
|
end
|
340
315
|
|
341
|
-
if !@
|
342
|
-
invalid_properties.push('invalid value for "
|
316
|
+
if !@customer_fiat_account_guid.nil? && @customer_fiat_account_guid.to_s.length > 32
|
317
|
+
invalid_properties.push('invalid value for "customer_fiat_account_guid", the character length must be smaller than or equal to 32.')
|
343
318
|
end
|
344
319
|
|
345
|
-
if !@
|
346
|
-
invalid_properties.push('invalid value for "
|
320
|
+
if !@source_account_guid.nil? && @source_account_guid.to_s.length > 32
|
321
|
+
invalid_properties.push('invalid value for "source_account_guid", the character length must be smaller than or equal to 32.')
|
347
322
|
end
|
348
323
|
|
349
|
-
if !@
|
350
|
-
invalid_properties.push('invalid value for "
|
324
|
+
if !@destination_account_guid.nil? && @destination_account_guid.to_s.length > 32
|
325
|
+
invalid_properties.push('invalid value for "destination_account_guid", the character length must be smaller than or equal to 32.')
|
351
326
|
end
|
352
327
|
|
353
|
-
if !@
|
354
|
-
invalid_properties.push('invalid value for "
|
328
|
+
if !@external_wallet_guid.nil? && @external_wallet_guid.to_s.length > 32
|
329
|
+
invalid_properties.push('invalid value for "external_wallet_guid", the character length must be smaller than or equal to 32.')
|
355
330
|
end
|
356
331
|
|
357
|
-
if !@
|
358
|
-
invalid_properties.push('invalid value for "
|
332
|
+
if !@customer_guid.nil? && @customer_guid.to_s.length > 32
|
333
|
+
invalid_properties.push('invalid value for "customer_guid", the character length must be smaller than or equal to 32.')
|
359
334
|
end
|
360
335
|
|
361
|
-
if !@
|
362
|
-
invalid_properties.push('invalid value for "
|
336
|
+
if !@network_fee_account_guid.nil? && @network_fee_account_guid.to_s.length > 32
|
337
|
+
invalid_properties.push('invalid value for "network_fee_account_guid", the character length must be smaller than or equal to 32.')
|
363
338
|
end
|
364
339
|
|
365
|
-
if !@
|
366
|
-
invalid_properties.push('invalid value for "
|
340
|
+
if !@labels.nil? && @labels.length > 8
|
341
|
+
invalid_properties.push('invalid value for "labels", number of items must be less than or equal to 8.')
|
367
342
|
end
|
368
343
|
|
369
344
|
invalid_properties
|
@@ -378,32 +353,23 @@ module CybridApiBank
|
|
378
353
|
return false if @transfer_type.nil?
|
379
354
|
transfer_type_validator = EnumAttributeValidator.new('String', ["funding", "book", "crypto", "instant_funding", "inter_account", "lightning"])
|
380
355
|
return false unless transfer_type_validator.valid?(@transfer_type)
|
381
|
-
return false if !@
|
382
|
-
return false if !@customer_guid.nil? && @customer_guid.to_s.length < 32
|
356
|
+
return false if !@external_bank_account_guid.nil? && @external_bank_account_guid.to_s.length > 32
|
383
357
|
return false if !@fiat_account_guid.nil? && @fiat_account_guid.to_s.length > 32
|
384
|
-
return false if !@
|
385
|
-
|
386
|
-
return false
|
387
|
-
return false if !@bank_fiat_account_guid.nil? && @bank_fiat_account_guid.to_s.length > 32
|
388
|
-
return false if !@bank_fiat_account_guid.nil? && @bank_fiat_account_guid.to_s.length < 32
|
389
|
-
return false if !@source_account_guid.nil? && @source_account_guid.to_s.length > 32
|
390
|
-
return false if !@source_account_guid.nil? && @source_account_guid.to_s.length < 32
|
358
|
+
return false if !@send_as_deposit_bank_account_guid.nil? && @send_as_deposit_bank_account_guid.to_s.length > 32
|
359
|
+
payment_rail_validator = EnumAttributeValidator.new('String', ["ach", "eft", "wire"])
|
360
|
+
return false unless payment_rail_validator.valid?(@payment_rail)
|
391
361
|
return false if !@source_participants.nil? && @source_participants.length > 50
|
392
362
|
return false if !@source_participants.nil? && @source_participants.length < 0
|
393
|
-
return false if !@destination_account_guid.nil? && @destination_account_guid.to_s.length > 32
|
394
|
-
return false if !@destination_account_guid.nil? && @destination_account_guid.to_s.length < 32
|
395
363
|
return false if !@destination_participants.nil? && @destination_participants.length > 50
|
396
364
|
return false if !@destination_participants.nil? && @destination_participants.length < 0
|
365
|
+
return false if !@bank_fiat_account_guid.nil? && @bank_fiat_account_guid.to_s.length > 32
|
366
|
+
return false if !@customer_fiat_account_guid.nil? && @customer_fiat_account_guid.to_s.length > 32
|
367
|
+
return false if !@source_account_guid.nil? && @source_account_guid.to_s.length > 32
|
368
|
+
return false if !@destination_account_guid.nil? && @destination_account_guid.to_s.length > 32
|
397
369
|
return false if !@external_wallet_guid.nil? && @external_wallet_guid.to_s.length > 32
|
398
|
-
return false if !@
|
399
|
-
return false if !@external_bank_account_guid.nil? && @external_bank_account_guid.to_s.length > 32
|
400
|
-
return false if !@external_bank_account_guid.nil? && @external_bank_account_guid.to_s.length < 32
|
370
|
+
return false if !@customer_guid.nil? && @customer_guid.to_s.length > 32
|
401
371
|
return false if !@network_fee_account_guid.nil? && @network_fee_account_guid.to_s.length > 32
|
402
|
-
return false if !@
|
403
|
-
return false if !@beneficiary_memo.nil? && @beneficiary_memo.to_s.length > 128
|
404
|
-
return false if !@beneficiary_memo.nil? && @beneficiary_memo.to_s.length < 1
|
405
|
-
return false if !@send_as_deposit_bank_account_guid.nil? && @send_as_deposit_bank_account_guid.to_s.length > 32
|
406
|
-
return false if !@send_as_deposit_bank_account_guid.nil? && @send_as_deposit_bank_account_guid.to_s.length < 32
|
372
|
+
return false if !@labels.nil? && @labels.length > 8
|
407
373
|
true
|
408
374
|
end
|
409
375
|
|
@@ -436,17 +402,13 @@ module CybridApiBank
|
|
436
402
|
end
|
437
403
|
|
438
404
|
# Custom attribute writer method with validation
|
439
|
-
# @param [Object]
|
440
|
-
def
|
441
|
-
if !
|
442
|
-
fail ArgumentError, 'invalid value for "
|
443
|
-
end
|
444
|
-
|
445
|
-
if !customer_guid.nil? && customer_guid.to_s.length < 32
|
446
|
-
fail ArgumentError, 'invalid value for "customer_guid", the character length must be great than or equal to 32.'
|
405
|
+
# @param [Object] external_bank_account_guid Value to be assigned
|
406
|
+
def external_bank_account_guid=(external_bank_account_guid)
|
407
|
+
if !external_bank_account_guid.nil? && external_bank_account_guid.to_s.length > 32
|
408
|
+
fail ArgumentError, 'invalid value for "external_bank_account_guid", the character length must be smaller than or equal to 32.'
|
447
409
|
end
|
448
410
|
|
449
|
-
@
|
411
|
+
@external_bank_account_guid = external_bank_account_guid
|
450
412
|
end
|
451
413
|
|
452
414
|
# Custom attribute writer method with validation
|
@@ -456,25 +418,55 @@ module CybridApiBank
|
|
456
418
|
fail ArgumentError, 'invalid value for "fiat_account_guid", the character length must be smaller than or equal to 32.'
|
457
419
|
end
|
458
420
|
|
459
|
-
|
460
|
-
|
421
|
+
@fiat_account_guid = fiat_account_guid
|
422
|
+
end
|
423
|
+
|
424
|
+
# Custom attribute writer method with validation
|
425
|
+
# @param [Object] send_as_deposit_bank_account_guid Value to be assigned
|
426
|
+
def send_as_deposit_bank_account_guid=(send_as_deposit_bank_account_guid)
|
427
|
+
if !send_as_deposit_bank_account_guid.nil? && send_as_deposit_bank_account_guid.to_s.length > 32
|
428
|
+
fail ArgumentError, 'invalid value for "send_as_deposit_bank_account_guid", the character length must be smaller than or equal to 32.'
|
461
429
|
end
|
462
430
|
|
463
|
-
@
|
431
|
+
@send_as_deposit_bank_account_guid = send_as_deposit_bank_account_guid
|
432
|
+
end
|
433
|
+
|
434
|
+
# Custom attribute writer method checking allowed values (enum).
|
435
|
+
# @param [Object] payment_rail Object to be assigned
|
436
|
+
def payment_rail=(payment_rail)
|
437
|
+
validator = EnumAttributeValidator.new('String', ["ach", "eft", "wire"])
|
438
|
+
unless validator.valid?(payment_rail)
|
439
|
+
fail ArgumentError, "invalid value for \"payment_rail\", must be one of #{validator.allowable_values}."
|
440
|
+
end
|
441
|
+
@payment_rail = payment_rail
|
464
442
|
end
|
465
443
|
|
466
444
|
# Custom attribute writer method with validation
|
467
|
-
# @param [Object]
|
468
|
-
def
|
469
|
-
if !
|
470
|
-
fail ArgumentError, 'invalid value for "
|
445
|
+
# @param [Object] source_participants Value to be assigned
|
446
|
+
def source_participants=(source_participants)
|
447
|
+
if !source_participants.nil? && source_participants.length > 50
|
448
|
+
fail ArgumentError, 'invalid value for "source_participants", number of items must be less than or equal to 50.'
|
471
449
|
end
|
472
450
|
|
473
|
-
if !
|
474
|
-
fail ArgumentError, 'invalid value for "
|
451
|
+
if !source_participants.nil? && source_participants.length < 0
|
452
|
+
fail ArgumentError, 'invalid value for "source_participants", number of items must be greater than or equal to 0.'
|
475
453
|
end
|
476
454
|
|
477
|
-
@
|
455
|
+
@source_participants = source_participants
|
456
|
+
end
|
457
|
+
|
458
|
+
# Custom attribute writer method with validation
|
459
|
+
# @param [Object] destination_participants Value to be assigned
|
460
|
+
def destination_participants=(destination_participants)
|
461
|
+
if !destination_participants.nil? && destination_participants.length > 50
|
462
|
+
fail ArgumentError, 'invalid value for "destination_participants", number of items must be less than or equal to 50.'
|
463
|
+
end
|
464
|
+
|
465
|
+
if !destination_participants.nil? && destination_participants.length < 0
|
466
|
+
fail ArgumentError, 'invalid value for "destination_participants", number of items must be greater than or equal to 0.'
|
467
|
+
end
|
468
|
+
|
469
|
+
@destination_participants = destination_participants
|
478
470
|
end
|
479
471
|
|
480
472
|
# Custom attribute writer method with validation
|
@@ -484,11 +476,17 @@ module CybridApiBank
|
|
484
476
|
fail ArgumentError, 'invalid value for "bank_fiat_account_guid", the character length must be smaller than or equal to 32.'
|
485
477
|
end
|
486
478
|
|
487
|
-
|
488
|
-
|
479
|
+
@bank_fiat_account_guid = bank_fiat_account_guid
|
480
|
+
end
|
481
|
+
|
482
|
+
# Custom attribute writer method with validation
|
483
|
+
# @param [Object] customer_fiat_account_guid Value to be assigned
|
484
|
+
def customer_fiat_account_guid=(customer_fiat_account_guid)
|
485
|
+
if !customer_fiat_account_guid.nil? && customer_fiat_account_guid.to_s.length > 32
|
486
|
+
fail ArgumentError, 'invalid value for "customer_fiat_account_guid", the character length must be smaller than or equal to 32.'
|
489
487
|
end
|
490
488
|
|
491
|
-
@
|
489
|
+
@customer_fiat_account_guid = customer_fiat_account_guid
|
492
490
|
end
|
493
491
|
|
494
492
|
# Custom attribute writer method with validation
|
@@ -498,27 +496,9 @@ module CybridApiBank
|
|
498
496
|
fail ArgumentError, 'invalid value for "source_account_guid", the character length must be smaller than or equal to 32.'
|
499
497
|
end
|
500
498
|
|
501
|
-
if !source_account_guid.nil? && source_account_guid.to_s.length < 32
|
502
|
-
fail ArgumentError, 'invalid value for "source_account_guid", the character length must be great than or equal to 32.'
|
503
|
-
end
|
504
|
-
|
505
499
|
@source_account_guid = source_account_guid
|
506
500
|
end
|
507
501
|
|
508
|
-
# Custom attribute writer method with validation
|
509
|
-
# @param [Object] source_participants Value to be assigned
|
510
|
-
def source_participants=(source_participants)
|
511
|
-
if !source_participants.nil? && source_participants.length > 50
|
512
|
-
fail ArgumentError, 'invalid value for "source_participants", number of items must be less than or equal to 50.'
|
513
|
-
end
|
514
|
-
|
515
|
-
if !source_participants.nil? && source_participants.length < 0
|
516
|
-
fail ArgumentError, 'invalid value for "source_participants", number of items must be greater than or equal to 0.'
|
517
|
-
end
|
518
|
-
|
519
|
-
@source_participants = source_participants
|
520
|
-
end
|
521
|
-
|
522
502
|
# Custom attribute writer method with validation
|
523
503
|
# @param [Object] destination_account_guid Value to be assigned
|
524
504
|
def destination_account_guid=(destination_account_guid)
|
@@ -526,27 +506,9 @@ module CybridApiBank
|
|
526
506
|
fail ArgumentError, 'invalid value for "destination_account_guid", the character length must be smaller than or equal to 32.'
|
527
507
|
end
|
528
508
|
|
529
|
-
if !destination_account_guid.nil? && destination_account_guid.to_s.length < 32
|
530
|
-
fail ArgumentError, 'invalid value for "destination_account_guid", the character length must be great than or equal to 32.'
|
531
|
-
end
|
532
|
-
|
533
509
|
@destination_account_guid = destination_account_guid
|
534
510
|
end
|
535
511
|
|
536
|
-
# Custom attribute writer method with validation
|
537
|
-
# @param [Object] destination_participants Value to be assigned
|
538
|
-
def destination_participants=(destination_participants)
|
539
|
-
if !destination_participants.nil? && destination_participants.length > 50
|
540
|
-
fail ArgumentError, 'invalid value for "destination_participants", number of items must be less than or equal to 50.'
|
541
|
-
end
|
542
|
-
|
543
|
-
if !destination_participants.nil? && destination_participants.length < 0
|
544
|
-
fail ArgumentError, 'invalid value for "destination_participants", number of items must be greater than or equal to 0.'
|
545
|
-
end
|
546
|
-
|
547
|
-
@destination_participants = destination_participants
|
548
|
-
end
|
549
|
-
|
550
512
|
# Custom attribute writer method with validation
|
551
513
|
# @param [Object] external_wallet_guid Value to be assigned
|
552
514
|
def external_wallet_guid=(external_wallet_guid)
|
@@ -554,25 +516,17 @@ module CybridApiBank
|
|
554
516
|
fail ArgumentError, 'invalid value for "external_wallet_guid", the character length must be smaller than or equal to 32.'
|
555
517
|
end
|
556
518
|
|
557
|
-
if !external_wallet_guid.nil? && external_wallet_guid.to_s.length < 32
|
558
|
-
fail ArgumentError, 'invalid value for "external_wallet_guid", the character length must be great than or equal to 32.'
|
559
|
-
end
|
560
|
-
|
561
519
|
@external_wallet_guid = external_wallet_guid
|
562
520
|
end
|
563
521
|
|
564
522
|
# Custom attribute writer method with validation
|
565
|
-
# @param [Object]
|
566
|
-
def
|
567
|
-
if !
|
568
|
-
fail ArgumentError, 'invalid value for "
|
569
|
-
end
|
570
|
-
|
571
|
-
if !external_bank_account_guid.nil? && external_bank_account_guid.to_s.length < 32
|
572
|
-
fail ArgumentError, 'invalid value for "external_bank_account_guid", the character length must be great than or equal to 32.'
|
523
|
+
# @param [Object] customer_guid Value to be assigned
|
524
|
+
def customer_guid=(customer_guid)
|
525
|
+
if !customer_guid.nil? && customer_guid.to_s.length > 32
|
526
|
+
fail ArgumentError, 'invalid value for "customer_guid", the character length must be smaller than or equal to 32.'
|
573
527
|
end
|
574
528
|
|
575
|
-
@
|
529
|
+
@customer_guid = customer_guid
|
576
530
|
end
|
577
531
|
|
578
532
|
# Custom attribute writer method with validation
|
@@ -582,39 +536,17 @@ module CybridApiBank
|
|
582
536
|
fail ArgumentError, 'invalid value for "network_fee_account_guid", the character length must be smaller than or equal to 32.'
|
583
537
|
end
|
584
538
|
|
585
|
-
if !network_fee_account_guid.nil? && network_fee_account_guid.to_s.length < 32
|
586
|
-
fail ArgumentError, 'invalid value for "network_fee_account_guid", the character length must be great than or equal to 32.'
|
587
|
-
end
|
588
|
-
|
589
539
|
@network_fee_account_guid = network_fee_account_guid
|
590
540
|
end
|
591
541
|
|
592
542
|
# Custom attribute writer method with validation
|
593
|
-
# @param [Object]
|
594
|
-
def
|
595
|
-
if !
|
596
|
-
fail ArgumentError, 'invalid value for "
|
597
|
-
end
|
598
|
-
|
599
|
-
if !beneficiary_memo.nil? && beneficiary_memo.to_s.length < 1
|
600
|
-
fail ArgumentError, 'invalid value for "beneficiary_memo", the character length must be great than or equal to 1.'
|
601
|
-
end
|
602
|
-
|
603
|
-
@beneficiary_memo = beneficiary_memo
|
604
|
-
end
|
605
|
-
|
606
|
-
# Custom attribute writer method with validation
|
607
|
-
# @param [Object] send_as_deposit_bank_account_guid Value to be assigned
|
608
|
-
def send_as_deposit_bank_account_guid=(send_as_deposit_bank_account_guid)
|
609
|
-
if !send_as_deposit_bank_account_guid.nil? && send_as_deposit_bank_account_guid.to_s.length > 32
|
610
|
-
fail ArgumentError, 'invalid value for "send_as_deposit_bank_account_guid", the character length must be smaller than or equal to 32.'
|
611
|
-
end
|
612
|
-
|
613
|
-
if !send_as_deposit_bank_account_guid.nil? && send_as_deposit_bank_account_guid.to_s.length < 32
|
614
|
-
fail ArgumentError, 'invalid value for "send_as_deposit_bank_account_guid", the character length must be great than or equal to 32.'
|
543
|
+
# @param [Object] labels Value to be assigned
|
544
|
+
def labels=(labels)
|
545
|
+
if !labels.nil? && labels.length > 8
|
546
|
+
fail ArgumentError, 'invalid value for "labels", number of items must be less than or equal to 8.'
|
615
547
|
end
|
616
548
|
|
617
|
-
@
|
549
|
+
@labels = labels
|
618
550
|
end
|
619
551
|
|
620
552
|
# Checks equality by comparing each attribute.
|
@@ -624,20 +556,21 @@ module CybridApiBank
|
|
624
556
|
self.class == o.class &&
|
625
557
|
quote_guid == o.quote_guid &&
|
626
558
|
transfer_type == o.transfer_type &&
|
627
|
-
|
559
|
+
external_bank_account_guid == o.external_bank_account_guid &&
|
628
560
|
fiat_account_guid == o.fiat_account_guid &&
|
629
|
-
|
561
|
+
send_as_deposit_bank_account_guid == o.send_as_deposit_bank_account_guid &&
|
562
|
+
payment_rail == o.payment_rail &&
|
563
|
+
beneficiary_memo == o.beneficiary_memo &&
|
564
|
+
source_participants == o.source_participants &&
|
565
|
+
destination_participants == o.destination_participants &&
|
566
|
+
expected_error == o.expected_error &&
|
630
567
|
bank_fiat_account_guid == o.bank_fiat_account_guid &&
|
568
|
+
customer_fiat_account_guid == o.customer_fiat_account_guid &&
|
631
569
|
source_account_guid == o.source_account_guid &&
|
632
|
-
source_participants == o.source_participants &&
|
633
570
|
destination_account_guid == o.destination_account_guid &&
|
634
|
-
destination_participants == o.destination_participants &&
|
635
571
|
external_wallet_guid == o.external_wallet_guid &&
|
636
|
-
|
572
|
+
customer_guid == o.customer_guid &&
|
637
573
|
network_fee_account_guid == o.network_fee_account_guid &&
|
638
|
-
payment_rail == o.payment_rail &&
|
639
|
-
beneficiary_memo == o.beneficiary_memo &&
|
640
|
-
send_as_deposit_bank_account_guid == o.send_as_deposit_bank_account_guid &&
|
641
574
|
labels == o.labels
|
642
575
|
end
|
643
576
|
|
@@ -650,7 +583,7 @@ module CybridApiBank
|
|
650
583
|
# Calculates hash code according to all attributes.
|
651
584
|
# @return [Integer] Hash code
|
652
585
|
def hash
|
653
|
-
[quote_guid, transfer_type,
|
586
|
+
[quote_guid, transfer_type, external_bank_account_guid, fiat_account_guid, send_as_deposit_bank_account_guid, payment_rail, beneficiary_memo, source_participants, destination_participants, expected_error, bank_fiat_account_guid, customer_fiat_account_guid, source_account_guid, destination_account_guid, external_wallet_guid, customer_guid, network_fee_account_guid, labels].hash
|
654
587
|
end
|
655
588
|
|
656
589
|
# Builds the object from hash
|