hydrogen-integration-api 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +87 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/integration_api.gemspec +46 -0
- data/lib/integration_api.rb +257 -0
- data/lib/integration_api/api/accounting_api.rb +870 -0
- data/lib/integration_api/api/ach_api.rb +1109 -0
- data/lib/integration_api/api/aggregation_api.rb +616 -0
- data/lib/integration_api/api/async_api.rb +263 -0
- data/lib/integration_api/api/baas_api.rb +518 -0
- data/lib/integration_api/api/brokerage_api.rb +1091 -0
- data/lib/integration_api/api/card_api.rb +1651 -0
- data/lib/integration_api/api/iav_api.rb +186 -0
- data/lib/integration_api/api/kms_api.rb +301 -0
- data/lib/integration_api/api/kyc_api.rb +138 -0
- data/lib/integration_api/api/market_data_api.rb +127 -0
- data/lib/integration_api/api/rtp_api.rb +479 -0
- data/lib/integration_api/api/sms_api.rb +129 -0
- data/lib/integration_api/api/smtp_api.rb +129 -0
- data/lib/integration_api/api/utils_api.rb +296 -0
- data/lib/integration_api/api/webhook_api.rb +301 -0
- data/lib/integration_api/api/wire_api.rb +479 -0
- data/lib/integration_api/api_client.rb +392 -0
- data/lib/integration_api/api_error.rb +38 -0
- data/lib/integration_api/auth_configuration.rb +181 -0
- data/lib/integration_api/configuration.rb +209 -0
- data/lib/integration_api/environment.rb +26 -0
- data/lib/integration_api/models/accounting_customer_response_vo.rb +200 -0
- data/lib/integration_api/models/accounting_customer_revenue_response_vo.rb +199 -0
- data/lib/integration_api/models/accounting_final_response_vo.rb +252 -0
- data/lib/integration_api/models/accounting_invoice_payment_response_vo.rb +199 -0
- data/lib/integration_api/models/accounting_invoice_response_vo.rb +199 -0
- data/lib/integration_api/models/accounting_stats_response_vo.rb +199 -0
- data/lib/integration_api/models/ach_balance_response_vo.rb +230 -0
- data/lib/integration_api/models/ach_bank_link_request_co.rb +199 -0
- data/lib/integration_api/models/ach_bank_link_response_vo.rb +235 -0
- data/lib/integration_api/models/ach_beneficial_owner_request_co.rb +190 -0
- data/lib/integration_api/models/ach_beneficial_owner_response_vo.rb +208 -0
- data/lib/integration_api/models/ach_business_balance_response_vo.rb +226 -0
- data/lib/integration_api/models/ach_business_request_co.rb +199 -0
- data/lib/integration_api/models/ach_business_response_vo.rb +217 -0
- data/lib/integration_api/models/ach_card_link_request_co.rb +190 -0
- data/lib/integration_api/models/ach_card_link_response_vo.rb +217 -0
- data/lib/integration_api/models/ach_card_load_response_vo.rb +190 -0
- data/lib/integration_api/models/ach_card_request_co.rb +182 -0
- data/lib/integration_api/models/ach_card_reserve_request_co.rb +181 -0
- data/lib/integration_api/models/ach_card_reserve_response_vo.rb +217 -0
- data/lib/integration_api/models/ach_card_response_vo.rb +218 -0
- data/lib/integration_api/models/ach_client_request_co.rb +199 -0
- data/lib/integration_api/models/ach_client_response_vo.rb +217 -0
- data/lib/integration_api/models/ach_reserve_link_request_co.rb +181 -0
- data/lib/integration_api/models/ach_reserve_link_response_vo.rb +219 -0
- data/lib/integration_api/models/ach_status_response_vo.rb +260 -0
- data/lib/integration_api/models/ach_transfer_request_co.rb +199 -0
- data/lib/integration_api/models/ach_transfer_response_vo.rb +244 -0
- data/lib/integration_api/models/acquiree.rb +199 -0
- data/lib/integration_api/models/acquirer.rb +199 -0
- data/lib/integration_api/models/address.rb +278 -0
- data/lib/integration_api/models/aggregation_account.rb +495 -0
- data/lib/integration_api/models/aggregation_account_balance.rb +292 -0
- data/lib/integration_api/models/aggregation_account_balance_response_vo.rb +208 -0
- data/lib/integration_api/models/aggregation_account_holding.rb +370 -0
- data/lib/integration_api/models/aggregation_account_holding_response_internal_object_vo.rb +199 -0
- data/lib/integration_api/models/aggregation_account_holding_response_vo.rb +210 -0
- data/lib/integration_api/models/aggregation_account_response_internal_object_vo.rb +199 -0
- data/lib/integration_api/models/aggregation_account_response_vo.rb +208 -0
- data/lib/integration_api/models/aggregation_account_transaction.rb +329 -0
- data/lib/integration_api/models/aggregation_account_transaction_response_internal_object_vo.rb +199 -0
- data/lib/integration_api/models/aggregation_account_transaction_response_vo.rb +221 -0
- data/lib/integration_api/models/aggregation_accounts_response_vo.rb +210 -0
- data/lib/integration_api/models/aggregation_request_object.rb +226 -0
- data/lib/integration_api/models/aggregation_vendor_request_co.rb +199 -0
- data/lib/integration_api/models/apple_payload.rb +199 -0
- data/lib/integration_api/models/async_transaction.rb +217 -0
- data/lib/integration_api/models/async_transaction_vo.rb +199 -0
- data/lib/integration_api/models/attachment_vo.rb +199 -0
- data/lib/integration_api/models/baas_account_co.rb +190 -0
- data/lib/integration_api/models/baas_account_vo.rb +253 -0
- data/lib/integration_api/models/baas_balance_vo.rb +221 -0
- data/lib/integration_api/models/baas_business_vo.rb +237 -0
- data/lib/integration_api/models/baas_client_vo.rb +237 -0
- data/lib/integration_api/models/baas_statement_vo.rb +226 -0
- data/lib/integration_api/models/baas_statements_vo.rb +201 -0
- data/lib/integration_api/models/baas_sub_account_co.rb +181 -0
- data/lib/integration_api/models/baas_sub_account_vo.rb +244 -0
- data/lib/integration_api/models/baas_transactions_vo.rb +221 -0
- data/lib/integration_api/models/balances.rb +223 -0
- data/lib/integration_api/models/bank_credit.rb +282 -0
- data/lib/integration_api/models/bank_link.rb +431 -0
- data/lib/integration_api/models/bank_link_response_internal_object_vo.rb +199 -0
- data/lib/integration_api/models/bank_link_vendor_data_vo.rb +190 -0
- data/lib/integration_api/models/base_response_vo.rb +199 -0
- data/lib/integration_api/models/brokerage_account_co.rb +192 -0
- data/lib/integration_api/models/brokerage_account_vo.rb +217 -0
- data/lib/integration_api/models/brokerage_balance_vo.rb +228 -0
- data/lib/integration_api/models/brokerage_bank_link_co.rb +181 -0
- data/lib/integration_api/models/brokerage_bank_link_vo.rb +226 -0
- data/lib/integration_api/models/brokerage_create_client_co.rb +192 -0
- data/lib/integration_api/models/brokerage_create_client_vo.rb +217 -0
- data/lib/integration_api/models/brokerage_deposit_co.rb +181 -0
- data/lib/integration_api/models/brokerage_deposit_vo.rb +217 -0
- data/lib/integration_api/models/brokerage_document_co.rb +190 -0
- data/lib/integration_api/models/brokerage_document_vo.rb +226 -0
- data/lib/integration_api/models/brokerage_holding_vo.rb +226 -0
- data/lib/integration_api/models/brokerage_order_co.rb +181 -0
- data/lib/integration_api/models/brokerage_order_vo.rb +226 -0
- data/lib/integration_api/models/brokerage_performance_vo.rb +226 -0
- data/lib/integration_api/models/brokerage_securities_vo.rb +217 -0
- data/lib/integration_api/models/brokerage_statement_vo.rb +199 -0
- data/lib/integration_api/models/brokerage_transaction_vo.rb +226 -0
- data/lib/integration_api/models/brokerage_update_client_co.rb +183 -0
- data/lib/integration_api/models/brokerage_update_client_vo.rb +237 -0
- data/lib/integration_api/models/brokerage_withdrawal_co.rb +181 -0
- data/lib/integration_api/models/brokerage_withdrawal_vo.rb +217 -0
- data/lib/integration_api/models/business_address.rb +253 -0
- data/lib/integration_api/models/business_status_response_vo.rb +217 -0
- data/lib/integration_api/models/business_vendor_request_data_vo.rb +313 -0
- data/lib/integration_api/models/card_auto_reload_request_co.rb +208 -0
- data/lib/integration_api/models/card_auto_reload_response_vo.rb +226 -0
- data/lib/integration_api/models/card_balance_response_vo.rb +230 -0
- data/lib/integration_api/models/card_base_request_co.rb +199 -0
- data/lib/integration_api/models/card_business_request_co.rb +181 -0
- data/lib/integration_api/models/card_client_request_co.rb +192 -0
- data/lib/integration_api/models/card_load_request_co.rb +190 -0
- data/lib/integration_api/models/card_load_unload_response_vo.rb +235 -0
- data/lib/integration_api/models/card_pin_request_co.rb +208 -0
- data/lib/integration_api/models/card_replace_response_vo.rb +235 -0
- data/lib/integration_api/models/card_reserve_account_response_vo.rb +235 -0
- data/lib/integration_api/models/card_reserve_transfer_request_co.rb +181 -0
- data/lib/integration_api/models/card_reserve_transfer_response_vo.rb +217 -0
- data/lib/integration_api/models/card_spending_control_request_co.rb +181 -0
- data/lib/integration_api/models/card_spending_control_response_vo.rb +217 -0
- data/lib/integration_api/models/card_token_request_co.rb +242 -0
- data/lib/integration_api/models/card_token_response_vo.rb +278 -0
- data/lib/integration_api/models/card_transaction_response_vo.rb +230 -0
- data/lib/integration_api/models/card_unload_request_co.rb +190 -0
- data/lib/integration_api/models/card_update_pin_request_co.rb +208 -0
- data/lib/integration_api/models/cash.rb +213 -0
- data/lib/integration_api/models/client_address.rb +283 -0
- data/lib/integration_api/models/client_vendor_request_data_vo.rb +340 -0
- data/lib/integration_api/models/contact.rb +356 -0
- data/lib/integration_api/models/contact_address.rb +268 -0
- data/lib/integration_api/models/create_baas_business_co.rb +192 -0
- data/lib/integration_api/models/create_baas_client_co.rb +192 -0
- data/lib/integration_api/models/create_business_response_vo.rb +217 -0
- data/lib/integration_api/models/create_card_client_response_vo.rb +217 -0
- data/lib/integration_api/models/create_user_request.rb +235 -0
- data/lib/integration_api/models/customer_revenue.rb +296 -0
- data/lib/integration_api/models/dividend.rb +199 -0
- data/lib/integration_api/models/dividend_tax.rb +190 -0
- data/lib/integration_api/models/email.rb +359 -0
- data/lib/integration_api/models/email_click.rb +220 -0
- data/lib/integration_api/models/email_open.rb +205 -0
- data/lib/integration_api/models/exchange_public_token_vo.rb +227 -0
- data/lib/integration_api/models/exchange_token_co.rb +235 -0
- data/lib/integration_api/models/financial_statement.rb +362 -0
- data/lib/integration_api/models/get_card_image_response_vo.rb +217 -0
- data/lib/integration_api/models/get_card_pci_details_response_vo.rb +235 -0
- data/lib/integration_api/models/get_card_statement_response_vo.rb +282 -0
- data/lib/integration_api/models/get_card_token_response_vo.rb +278 -0
- data/lib/integration_api/models/get_transactions_response.rb +183 -0
- data/lib/integration_api/models/google_payload.rb +181 -0
- data/lib/integration_api/models/iav_aggregation_response_vo.rb +190 -0
- data/lib/integration_api/models/iav_bank_link_response_vo.rb +192 -0
- data/lib/integration_api/models/iav_request_co.rb +244 -0
- data/lib/integration_api/models/iav_response_vo.rb +199 -0
- data/lib/integration_api/models/iav_token_exchange_vendor_response_vo.rb +172 -0
- data/lib/integration_api/models/iav_vendor_request_co.rb +199 -0
- data/lib/integration_api/models/identification.rb +235 -0
- data/lib/integration_api/models/instrument.rb +199 -0
- data/lib/integration_api/models/investment.rb +283 -0
- data/lib/integration_api/models/invoice.rb +472 -0
- data/lib/integration_api/models/invoice_payment.rb +269 -0
- data/lib/integration_api/models/json_node.rb +172 -0
- data/lib/integration_api/models/kms_config.rb +307 -0
- data/lib/integration_api/models/kyc_request_co.rb +255 -0
- data/lib/integration_api/models/kyc_response_vo.rb +271 -0
- data/lib/integration_api/models/kyc_vendor_request_data_vo.rb +385 -0
- data/lib/integration_api/models/line_items.rb +278 -0
- data/lib/integration_api/models/location.rb +253 -0
- data/lib/integration_api/models/mapstringobject.rb +172 -0
- data/lib/integration_api/models/md_history_item_vo.rb +235 -0
- data/lib/integration_api/models/md_history_request_co.rb +221 -0
- data/lib/integration_api/models/md_history_response_vo.rb +183 -0
- data/lib/integration_api/models/md_quote_item_vo.rb +352 -0
- data/lib/integration_api/models/md_quote_request_co.rb +246 -0
- data/lib/integration_api/models/md_quote_response_vo.rb +183 -0
- data/lib/integration_api/models/merger_acquisition.rb +199 -0
- data/lib/integration_api/models/nucleus_transfer_fields_co.rb +190 -0
- data/lib/integration_api/models/ownership.rb +190 -0
- data/lib/integration_api/models/page_ach_transfer_response_vo.rb +258 -0
- data/lib/integration_api/models/page_kms_config.rb +258 -0
- data/lib/integration_api/models/page_webhook.rb +258 -0
- data/lib/integration_api/models/pageobject.rb +258 -0
- data/lib/integration_api/models/politically_exposed_person_dto.rb +208 -0
- data/lib/integration_api/models/portfolio_asset_size_log.rb +329 -0
- data/lib/integration_api/models/property_value_response_vo.rb +226 -0
- data/lib/integration_api/models/response_entity.rb +233 -0
- data/lib/integration_api/models/rtp_bank_link_request_co.rb +190 -0
- data/lib/integration_api/models/rtp_bank_link_response_vo.rb +235 -0
- data/lib/integration_api/models/rtp_transfer_request_co.rb +190 -0
- data/lib/integration_api/models/rtp_transfer_response_vo.rb +226 -0
- data/lib/integration_api/models/samsung_payload.rb +181 -0
- data/lib/integration_api/models/sms.rb +335 -0
- data/lib/integration_api/models/sms_response_vo.rb +226 -0
- data/lib/integration_api/models/smsvo.rb +217 -0
- data/lib/integration_api/models/smtp_response_vo.rb +226 -0
- data/lib/integration_api/models/smtp_vo.rb +273 -0
- data/lib/integration_api/models/sort.rb +233 -0
- data/lib/integration_api/models/spending_control_vendor_request_data_vo.rb +255 -0
- data/lib/integration_api/models/stat.rb +203 -0
- data/lib/integration_api/models/transaction.rb +370 -0
- data/lib/integration_api/models/update_baas_business_co.rb +183 -0
- data/lib/integration_api/models/update_baas_client_co.rb +183 -0
- data/lib/integration_api/models/update_business_response_vo.rb +217 -0
- data/lib/integration_api/models/update_card_client_response_vo.rb +217 -0
- data/lib/integration_api/models/user_response_interface.rb +172 -0
- data/lib/integration_api/models/user_response_vo.rb +235 -0
- data/lib/integration_api/models/vendor_access_config_vo.rb +202 -0
- data/lib/integration_api/models/webhook.rb +277 -0
- data/lib/integration_api/models/widget_url_vo.rb +190 -0
- data/lib/integration_api/models/wire_bank_link_request_co.rb +190 -0
- data/lib/integration_api/models/wire_bank_link_response_vo.rb +235 -0
- data/lib/integration_api/models/wire_transfer_request_co.rb +190 -0
- data/lib/integration_api/models/wire_transfer_response_vo.rb +226 -0
- data/lib/integration_api/models/zillow_property_vendor_response_vo.rb +217 -0
- data/lib/integration_api/version.rb +15 -0
- data/spec/api/accounting_api_spec.rb +234 -0
- data/spec/api/ach_api_spec.rb +259 -0
- data/spec/api/aggregation_api_spec.rb +172 -0
- data/spec/api/async_api_spec.rb +88 -0
- data/spec/api/baas_api_spec.rb +143 -0
- data/spec/api/brokerage_api_spec.rb +264 -0
- data/spec/api/card_api_spec.rb +385 -0
- data/spec/api/iav_api_spec.rb +73 -0
- data/spec/api/kms_api_spec.rb +100 -0
- data/spec/api/kyc_api_spec.rb +63 -0
- data/spec/api/market_data_api_spec.rb +57 -0
- data/spec/api/rtp_api_spec.rb +134 -0
- data/spec/api/sms_api_spec.rb +59 -0
- data/spec/api/smtp_api_spec.rb +59 -0
- data/spec/api/utils_api_spec.rb +104 -0
- data/spec/api/webhook_api_spec.rb +100 -0
- data/spec/api/wire_api_spec.rb +134 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/accounting_customer_response_vo_spec.rb +53 -0
- data/spec/models/accounting_customer_revenue_response_vo_spec.rb +53 -0
- data/spec/models/accounting_final_response_vo_spec.rb +83 -0
- data/spec/models/accounting_invoice_payment_response_vo_spec.rb +53 -0
- data/spec/models/accounting_invoice_response_vo_spec.rb +53 -0
- data/spec/models/accounting_stats_response_vo_spec.rb +53 -0
- data/spec/models/ach_balance_response_vo_spec.rb +71 -0
- data/spec/models/ach_bank_link_request_co_spec.rb +53 -0
- data/spec/models/ach_bank_link_response_vo_spec.rb +77 -0
- data/spec/models/ach_beneficial_owner_request_co_spec.rb +47 -0
- data/spec/models/ach_beneficial_owner_response_vo_spec.rb +59 -0
- data/spec/models/ach_business_balance_response_vo_spec.rb +71 -0
- data/spec/models/ach_business_request_co_spec.rb +53 -0
- data/spec/models/ach_business_response_vo_spec.rb +65 -0
- data/spec/models/ach_card_link_request_co_spec.rb +47 -0
- data/spec/models/ach_card_link_response_vo_spec.rb +65 -0
- data/spec/models/ach_card_load_response_vo_spec.rb +47 -0
- data/spec/models/ach_card_request_co_spec.rb +41 -0
- data/spec/models/ach_card_reserve_request_co_spec.rb +41 -0
- data/spec/models/ach_card_reserve_response_vo_spec.rb +65 -0
- data/spec/models/ach_card_response_vo_spec.rb +65 -0
- data/spec/models/ach_client_request_co_spec.rb +53 -0
- data/spec/models/ach_client_response_vo_spec.rb +65 -0
- data/spec/models/ach_reserve_link_request_co_spec.rb +41 -0
- data/spec/models/ach_reserve_link_response_vo_spec.rb +65 -0
- data/spec/models/ach_status_response_vo_spec.rb +75 -0
- data/spec/models/ach_transfer_request_co_spec.rb +53 -0
- data/spec/models/ach_transfer_response_vo_spec.rb +83 -0
- data/spec/models/acquiree_spec.rb +53 -0
- data/spec/models/acquirer_spec.rb +53 -0
- data/spec/models/address_spec.rb +87 -0
- data/spec/models/aggregation_account_balance_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_account_balance_spec.rb +101 -0
- data/spec/models/aggregation_account_holding_response_internal_object_vo_spec.rb +53 -0
- data/spec/models/aggregation_account_holding_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_account_holding_spec.rb +155 -0
- data/spec/models/aggregation_account_response_internal_object_vo_spec.rb +53 -0
- data/spec/models/aggregation_account_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_account_spec.rb +221 -0
- data/spec/models/aggregation_account_transaction_response_internal_object_vo_spec.rb +53 -0
- data/spec/models/aggregation_account_transaction_response_vo_spec.rb +65 -0
- data/spec/models/aggregation_account_transaction_spec.rb +125 -0
- data/spec/models/aggregation_accounts_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_request_object_spec.rb +71 -0
- data/spec/models/aggregation_vendor_request_co_spec.rb +53 -0
- data/spec/models/apple_payload_spec.rb +53 -0
- data/spec/models/async_transaction_spec.rb +65 -0
- data/spec/models/async_transaction_vo_spec.rb +53 -0
- data/spec/models/attachment_vo_spec.rb +53 -0
- data/spec/models/baas_account_co_spec.rb +47 -0
- data/spec/models/baas_account_vo_spec.rb +89 -0
- data/spec/models/baas_balance_vo_spec.rb +65 -0
- data/spec/models/baas_business_vo_spec.rb +77 -0
- data/spec/models/baas_client_vo_spec.rb +77 -0
- data/spec/models/baas_statement_vo_spec.rb +71 -0
- data/spec/models/baas_statements_vo_spec.rb +53 -0
- data/spec/models/baas_sub_account_co_spec.rb +41 -0
- data/spec/models/baas_sub_account_vo_spec.rb +83 -0
- data/spec/models/baas_transactions_vo_spec.rb +65 -0
- data/spec/models/balances_spec.rb +65 -0
- data/spec/models/bank_credit_spec.rb +95 -0
- data/spec/models/bank_link_response_internal_object_vo_spec.rb +53 -0
- data/spec/models/bank_link_spec.rb +179 -0
- data/spec/models/bank_link_vendor_data_vo_spec.rb +47 -0
- data/spec/models/base_response_vo_spec.rb +53 -0
- data/spec/models/brokerage_account_co_spec.rb +47 -0
- data/spec/models/brokerage_account_vo_spec.rb +65 -0
- data/spec/models/brokerage_balance_vo_spec.rb +71 -0
- data/spec/models/brokerage_bank_link_co_spec.rb +41 -0
- data/spec/models/brokerage_bank_link_vo_spec.rb +71 -0
- data/spec/models/brokerage_create_client_co_spec.rb +47 -0
- data/spec/models/brokerage_create_client_vo_spec.rb +65 -0
- data/spec/models/brokerage_deposit_co_spec.rb +41 -0
- data/spec/models/brokerage_deposit_vo_spec.rb +65 -0
- data/spec/models/brokerage_document_co_spec.rb +47 -0
- data/spec/models/brokerage_document_vo_spec.rb +71 -0
- data/spec/models/brokerage_holding_vo_spec.rb +71 -0
- data/spec/models/brokerage_order_co_spec.rb +41 -0
- data/spec/models/brokerage_order_vo_spec.rb +71 -0
- data/spec/models/brokerage_performance_vo_spec.rb +71 -0
- data/spec/models/brokerage_securities_vo_spec.rb +65 -0
- data/spec/models/brokerage_statement_vo_spec.rb +53 -0
- data/spec/models/brokerage_transaction_vo_spec.rb +71 -0
- data/spec/models/brokerage_update_client_co_spec.rb +41 -0
- data/spec/models/brokerage_update_client_vo_spec.rb +77 -0
- data/spec/models/brokerage_withdrawal_co_spec.rb +41 -0
- data/spec/models/brokerage_withdrawal_vo_spec.rb +65 -0
- data/spec/models/business_address_spec.rb +83 -0
- data/spec/models/business_status_response_vo_spec.rb +65 -0
- data/spec/models/business_vendor_request_data_vo_spec.rb +125 -0
- data/spec/models/card_auto_reload_request_co_spec.rb +59 -0
- data/spec/models/card_auto_reload_response_vo_spec.rb +71 -0
- data/spec/models/card_balance_response_vo_spec.rb +71 -0
- data/spec/models/card_base_request_co_spec.rb +53 -0
- data/spec/models/card_business_request_co_spec.rb +41 -0
- data/spec/models/card_client_request_co_spec.rb +47 -0
- data/spec/models/card_load_request_co_spec.rb +47 -0
- data/spec/models/card_load_unload_response_vo_spec.rb +77 -0
- data/spec/models/card_pin_request_co_spec.rb +59 -0
- data/spec/models/card_replace_response_vo_spec.rb +77 -0
- data/spec/models/card_reserve_account_response_vo_spec.rb +77 -0
- data/spec/models/card_reserve_transfer_request_co_spec.rb +41 -0
- data/spec/models/card_reserve_transfer_response_vo_spec.rb +65 -0
- data/spec/models/card_spending_control_request_co_spec.rb +41 -0
- data/spec/models/card_spending_control_response_vo_spec.rb +65 -0
- data/spec/models/card_token_request_co_spec.rb +63 -0
- data/spec/models/card_token_response_vo_spec.rb +87 -0
- data/spec/models/card_transaction_response_vo_spec.rb +71 -0
- data/spec/models/card_unload_request_co_spec.rb +47 -0
- data/spec/models/card_update_pin_request_co_spec.rb +59 -0
- data/spec/models/cash_spec.rb +53 -0
- data/spec/models/client_address_spec.rb +87 -0
- data/spec/models/client_vendor_request_data_vo_spec.rb +143 -0
- data/spec/models/contact_address_spec.rb +77 -0
- data/spec/models/contact_spec.rb +143 -0
- data/spec/models/create_baas_business_co_spec.rb +47 -0
- data/spec/models/create_baas_client_co_spec.rb +47 -0
- data/spec/models/create_business_response_vo_spec.rb +65 -0
- data/spec/models/create_card_client_response_vo_spec.rb +65 -0
- data/spec/models/create_user_request_spec.rb +77 -0
- data/spec/models/customer_revenue_spec.rb +95 -0
- data/spec/models/dividend_spec.rb +53 -0
- data/spec/models/dividend_tax_spec.rb +47 -0
- data/spec/models/email_click_spec.rb +59 -0
- data/spec/models/email_open_spec.rb +53 -0
- data/spec/models/email_spec.rb +149 -0
- data/spec/models/exchange_public_token_vo_spec.rb +71 -0
- data/spec/models/exchange_token_co_spec.rb +77 -0
- data/spec/models/financial_statement_spec.rb +137 -0
- data/spec/models/get_card_image_response_vo_spec.rb +65 -0
- data/spec/models/get_card_pci_details_response_vo_spec.rb +77 -0
- data/spec/models/get_card_statement_response_vo_spec.rb +107 -0
- data/spec/models/get_card_token_response_vo_spec.rb +87 -0
- data/spec/models/get_transactions_response_spec.rb +41 -0
- data/spec/models/google_payload_spec.rb +41 -0
- data/spec/models/iav_aggregation_response_vo_spec.rb +47 -0
- data/spec/models/iav_bank_link_response_vo_spec.rb +47 -0
- data/spec/models/iav_request_co_spec.rb +83 -0
- data/spec/models/iav_response_vo_spec.rb +53 -0
- data/spec/models/iav_token_exchange_vendor_response_vo_spec.rb +35 -0
- data/spec/models/iav_vendor_request_co_spec.rb +53 -0
- data/spec/models/identification_spec.rb +77 -0
- data/spec/models/instrument_spec.rb +53 -0
- data/spec/models/investment_spec.rb +89 -0
- data/spec/models/invoice_payment_spec.rb +83 -0
- data/spec/models/invoice_spec.rb +197 -0
- data/spec/models/json_node_spec.rb +35 -0
- data/spec/models/kms_config_spec.rb +107 -0
- data/spec/models/kyc_request_co_spec.rb +89 -0
- data/spec/models/kyc_response_vo_spec.rb +101 -0
- data/spec/models/kyc_vendor_request_data_vo_spec.rb +173 -0
- data/spec/models/line_items_spec.rb +83 -0
- data/spec/models/location_spec.rb +83 -0
- data/spec/models/mapstringobject_spec.rb +35 -0
- data/spec/models/md_history_item_vo_spec.rb +77 -0
- data/spec/models/md_history_request_co_spec.rb +65 -0
- data/spec/models/md_history_response_vo_spec.rb +41 -0
- data/spec/models/md_quote_item_vo_spec.rb +155 -0
- data/spec/models/md_quote_request_co_spec.rb +63 -0
- data/spec/models/md_quote_response_vo_spec.rb +41 -0
- data/spec/models/merger_acquisition_spec.rb +53 -0
- data/spec/models/nucleus_transfer_fields_co_spec.rb +47 -0
- data/spec/models/ownership_spec.rb +47 -0
- data/spec/models/page_ach_transfer_response_vo_spec.rb +89 -0
- data/spec/models/page_kms_config_spec.rb +89 -0
- data/spec/models/page_webhook_spec.rb +89 -0
- data/spec/models/pageobject_spec.rb +89 -0
- data/spec/models/politically_exposed_person_dto_spec.rb +59 -0
- data/spec/models/portfolio_asset_size_log_spec.rb +113 -0
- data/spec/models/property_value_response_vo_spec.rb +71 -0
- data/spec/models/response_entity_spec.rb +57 -0
- data/spec/models/rtp_bank_link_request_co_spec.rb +47 -0
- data/spec/models/rtp_bank_link_response_vo_spec.rb +77 -0
- data/spec/models/rtp_transfer_request_co_spec.rb +47 -0
- data/spec/models/rtp_transfer_response_vo_spec.rb +71 -0
- data/spec/models/samsung_payload_spec.rb +41 -0
- data/spec/models/sms_response_vo_spec.rb +71 -0
- data/spec/models/sms_spec.rb +137 -0
- data/spec/models/smsvo_spec.rb +65 -0
- data/spec/models/smtp_response_vo_spec.rb +71 -0
- data/spec/models/smtp_vo_spec.rb +101 -0
- data/spec/models/sort_spec.rb +71 -0
- data/spec/models/spending_control_vendor_request_data_vo_spec.rb +89 -0
- data/spec/models/stat_spec.rb +47 -0
- data/spec/models/transaction_spec.rb +167 -0
- data/spec/models/update_baas_business_co_spec.rb +41 -0
- data/spec/models/update_baas_client_co_spec.rb +41 -0
- data/spec/models/update_business_response_vo_spec.rb +65 -0
- data/spec/models/update_card_client_response_vo_spec.rb +65 -0
- data/spec/models/user_response_interface_spec.rb +35 -0
- data/spec/models/user_response_vo_spec.rb +77 -0
- data/spec/models/vendor_access_config_vo_spec.rb +53 -0
- data/spec/models/webhook_spec.rb +87 -0
- data/spec/models/widget_url_vo_spec.rb +47 -0
- data/spec/models/wire_bank_link_request_co_spec.rb +47 -0
- data/spec/models/wire_bank_link_response_vo_spec.rb +77 -0
- data/spec/models/wire_transfer_request_co_spec.rb +47 -0
- data/spec/models/wire_transfer_response_vo_spec.rb +71 -0
- data/spec/models/zillow_property_vendor_response_vo_spec.rb +65 -0
- data/spec/spec_helper.rb +111 -0
- metadata +909 -0
@@ -0,0 +1,104 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Integration API
|
3
|
+
|
4
|
+
#The Hydrogen Integration API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.3.1
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.21
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for IntegrationApi::UtilsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'UtilsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = IntegrationApi::UtilsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of UtilsApi' do
|
30
|
+
it 'should create an instance of UtilsApi' do
|
31
|
+
expect(@instance).to be_instance_of(IntegrationApi::UtilsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_token_exchange_using_post
|
36
|
+
# Retrieve token based on certain vendor specific value
|
37
|
+
# Retrieve the token.
|
38
|
+
# @param exchange_token_co exchangeTokenCO
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [ExchangePublicTokenVO]
|
41
|
+
describe 'create_token_exchange_using_post test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for create_user_using_post
|
48
|
+
# Create user in vendor
|
49
|
+
# Create user in vendor.
|
50
|
+
# @param create_user_request createUserRequest
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [UserResponseVO]
|
53
|
+
describe 'create_user_using_post test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_audit_log_all_using_get
|
60
|
+
# Gel all audit log
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [BOOLEAN] :ascending ascending
|
63
|
+
# @option opts [Date] :end_date end_date
|
64
|
+
# @option opts [String] :event event
|
65
|
+
# @option opts [String] :integration_type integration_type
|
66
|
+
# @option opts [BOOLEAN] :is_request is_request
|
67
|
+
# @option opts [String] :nucleus_aggregation_account_id nucleus_aggregation_account_id
|
68
|
+
# @option opts [String] :nucleus_client_id nucleus_client_id
|
69
|
+
# @option opts [String] :order_by order_by
|
70
|
+
# @option opts [Integer] :page page
|
71
|
+
# @option opts [String] :request_type request_type
|
72
|
+
# @option opts [Integer] :size size
|
73
|
+
# @option opts [Date] :start_date start_date
|
74
|
+
# @option opts [String] :vendor_name vendor_name
|
75
|
+
# @return [Pageobject]
|
76
|
+
describe 'get_audit_log_all_using_get test' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for get_widget_link_using_get
|
83
|
+
# Retrieve widget link
|
84
|
+
# Retrieve the widget link.
|
85
|
+
# @param nucleus_client_id nucleus_client_id
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [BOOLEAN] :is_business is_business
|
88
|
+
# @option opts [BOOLEAN] :is_mobile_webview is_mobile_webview
|
89
|
+
# @option opts [String] :member_id member_id
|
90
|
+
# @option opts [Float] :message_version message_version
|
91
|
+
# @option opts [String] :mode mode
|
92
|
+
# @option opts [String] :nucleus_aggregation_account_id nucleus_aggregation_account_id
|
93
|
+
# @option opts [String] :nucleus_bank_link_id nucleus_bank_link_id
|
94
|
+
# @option opts [String] :vendor_name vendor_name
|
95
|
+
# @option opts [BOOLEAN] :wait_for_full_aggregation wait_for_full_aggregation
|
96
|
+
# @option opts [String] :webview_url_scheme webview_url_scheme
|
97
|
+
# @return [WidgetUrlVO]
|
98
|
+
describe 'get_widget_link_using_get test' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Integration API
|
3
|
+
|
4
|
+
#The Hydrogen Integration API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.3.1
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.21
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for IntegrationApi::WebhookApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'WebhookApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = IntegrationApi::WebhookApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of WebhookApi' do
|
30
|
+
it 'should create an instance of WebhookApi' do
|
31
|
+
expect(@instance).to be_instance_of(IntegrationApi::WebhookApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_webhook_using_post
|
36
|
+
# Create a webhook
|
37
|
+
# One active webhook service is allowed at all times.
|
38
|
+
# @param webhook_request webhookRequest
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Webhook]
|
41
|
+
describe 'create_webhook_using_post test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for delete_webhook_using_delete
|
48
|
+
# Delete a webhook
|
49
|
+
# Permanently delete a webhook for your business. The webhook_id must be provided.
|
50
|
+
# @param webhook_id UUID webhook_id
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [nil]
|
53
|
+
describe 'delete_webhook_using_delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_webhook_all_using_get
|
60
|
+
# List all webhooks
|
61
|
+
# Get information for all webhooks defined for your business.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [BOOLEAN] :ascending ascending
|
64
|
+
# @option opts [String] :filter filter
|
65
|
+
# @option opts [String] :order_by order_by
|
66
|
+
# @option opts [Integer] :page page
|
67
|
+
# @option opts [Integer] :size size
|
68
|
+
# @return [PageWebhook]
|
69
|
+
describe 'get_webhook_all_using_get test' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for get_webhook_using_get
|
76
|
+
# Retrieve a webhook
|
77
|
+
# Retrieve the information for a specific webhook. The webhook_id must be provided.
|
78
|
+
# @param webhook_id UUID webhook_id
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [Webhook]
|
81
|
+
describe 'get_webhook_using_get test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for update_webhook_using_put
|
88
|
+
# Update a webhook
|
89
|
+
# Update a webhook for your business. The webhook_id must be provided
|
90
|
+
# @param webhook webhook
|
91
|
+
# @param webhook_id UUID webhook_id
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [Webhook]
|
94
|
+
describe 'update_webhook_using_put test' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Integration API
|
3
|
+
|
4
|
+
#The Hydrogen Integration API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.3.1
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.21
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for IntegrationApi::WireApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'WireApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = IntegrationApi::WireApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of WireApi' do
|
30
|
+
it 'should create an instance of WireApi' do
|
31
|
+
expect(@instance).to be_instance_of(IntegrationApi::WireApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for cancel_wire_transfer_using_delete
|
36
|
+
# Cancel the Wire transfer
|
37
|
+
# @param nucleus_funding_id nucleus_funding_id
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [WireTransferResponseVO]
|
40
|
+
describe 'cancel_wire_transfer_using_delete test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create_wire_bank_link_using_post
|
47
|
+
# Create bank link
|
48
|
+
# @param request request
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [WireBankLinkResponseVO]
|
51
|
+
describe 'create_wire_bank_link_using_post test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for delete_wire_bank_link_using_delete
|
58
|
+
# Delete bank link
|
59
|
+
# @param nucleus_bank_link_id nucleus_bank_link_id
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @return [WireBankLinkResponseVO]
|
62
|
+
describe 'delete_wire_bank_link_using_delete test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for get_list_of_wire_transfers_using_get
|
69
|
+
# Get a list of Wire transfers
|
70
|
+
# @param nucleus_client_id nucleus_client_id
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [Array<WireTransferResponseVO>]
|
73
|
+
describe 'get_list_of_wire_transfers_using_get test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for get_wire_bank_link_using_get
|
80
|
+
# Get bank link
|
81
|
+
# @param nucleus_bank_link_id nucleus_bank_link_id
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @return [WireBankLinkResponseVO]
|
84
|
+
describe 'get_wire_bank_link_using_get test' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# unit tests for get_wire_client_bank_links_using_get
|
91
|
+
# Get client bank links
|
92
|
+
# @param nucleus_client_id nucleus_client_id
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [Array<WireBankLinkResponseVO>]
|
95
|
+
describe 'get_wire_client_bank_links_using_get test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# unit tests for get_wire_transfer_using_get
|
102
|
+
# Get the Wire transfer
|
103
|
+
# @param nucleus_funding_id nucleus_funding_id
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [WireTransferResponseVO]
|
106
|
+
describe 'get_wire_transfer_using_get test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for submit_wire_transfer_using_post
|
113
|
+
# Submit a Wire transfer
|
114
|
+
# @param transfer_request transferRequest
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @return [WireTransferResponseVO]
|
117
|
+
describe 'submit_wire_transfer_using_post test' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for update_wire_bank_link_using_put
|
124
|
+
# Update bank link
|
125
|
+
# @param nucleus_bank_link_id nucleus_bank_link_id
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @return [WireBankLinkResponseVO]
|
128
|
+
describe 'update_wire_bank_link_using_put test' do
|
129
|
+
it 'should work' do
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
end
|
@@ -0,0 +1,243 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Integration API
|
3
|
+
|
4
|
+
#The Hydrogen Integration API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.3.1
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.21
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe IntegrationApi::ApiClient do
|
16
|
+
context 'initialization' do
|
17
|
+
context 'URL stuff' do
|
18
|
+
context 'host' do
|
19
|
+
it 'removes http from host' do
|
20
|
+
IntegrationApi.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(IntegrationApi::Configuration.default.host).to eq('example.com')
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'removes https from host' do
|
25
|
+
IntegrationApi.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(IntegrationApi::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'removes trailing path from host' do
|
30
|
+
IntegrationApi.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(IntegrationApi::Configuration.default.host).to eq('hobo.com')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'base_path' do
|
36
|
+
it "prepends a slash to base_path" do
|
37
|
+
IntegrationApi.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(IntegrationApi::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
+
end
|
40
|
+
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
42
|
+
IntegrationApi.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(IntegrationApi::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
+
end
|
45
|
+
|
46
|
+
it "ends up as a blank string if nil" do
|
47
|
+
IntegrationApi.configure { |c| c.base_path = nil }
|
48
|
+
expect(IntegrationApi::Configuration.default.base_path).to eq('')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
|
+
let(:config) { IntegrationApi::Configuration.new }
|
56
|
+
let(:api_client) { IntegrationApi::ApiClient.new(config) }
|
57
|
+
|
58
|
+
it 'defaults to nil' do
|
59
|
+
expect(IntegrationApi::Configuration.default.params_encoding).to eq(nil)
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
61
|
+
|
62
|
+
request = api_client.build_request(:get, '/test')
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'can be customized' do
|
67
|
+
config.params_encoding = :multi
|
68
|
+
request = api_client.build_request(:get, '/test')
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'timeout in #build_request' do
|
74
|
+
let(:config) { IntegrationApi::Configuration.new }
|
75
|
+
let(:api_client) { IntegrationApi::ApiClient.new(config) }
|
76
|
+
|
77
|
+
it 'defaults to 0' do
|
78
|
+
expect(IntegrationApi::Configuration.default.timeout).to eq(0)
|
79
|
+
expect(config.timeout).to eq(0)
|
80
|
+
|
81
|
+
request = api_client.build_request(:get, '/test')
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'can be customized' do
|
86
|
+
config.timeout = 100
|
87
|
+
request = api_client.build_request(:get, '/test')
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe '#build_request' do
|
93
|
+
let(:config) { IntegrationApi::Configuration.new }
|
94
|
+
let(:api_client) { IntegrationApi::ApiClient.new(config) }
|
95
|
+
|
96
|
+
it 'does not send multipart to request' do
|
97
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_not_including(:multipart))
|
98
|
+
api_client.build_request(:get, '/test')
|
99
|
+
end
|
100
|
+
|
101
|
+
context 'when the content type is multipart' do
|
102
|
+
it 'sends multipart to request' do
|
103
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_including(multipart: true))
|
104
|
+
api_client.build_request(:get, '/test', {header_params: { 'Content-Type' => 'multipart/form-data'}})
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
describe '#deserialize' do
|
110
|
+
it "handles Array<Integer>" do
|
111
|
+
api_client = IntegrationApi::ApiClient.new
|
112
|
+
headers = { 'Content-Type' => 'application/json' }
|
113
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
114
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
115
|
+
expect(data).to be_instance_of(Array)
|
116
|
+
expect(data).to eq([12, 34])
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'handles Array<Array<Integer>>' do
|
120
|
+
api_client = IntegrationApi::ApiClient.new
|
121
|
+
headers = { 'Content-Type' => 'application/json' }
|
122
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
123
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
124
|
+
expect(data).to be_instance_of(Array)
|
125
|
+
expect(data).to eq([[12, 34], [56]])
|
126
|
+
end
|
127
|
+
|
128
|
+
it 'handles Hash<String, String>' do
|
129
|
+
api_client = IntegrationApi::ApiClient.new
|
130
|
+
headers = { 'Content-Type' => 'application/json' }
|
131
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
132
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
133
|
+
expect(data).to be_instance_of(Hash)
|
134
|
+
expect(data).to eq(:message => 'Hello')
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe "#object_to_hash" do
|
139
|
+
it 'ignores nils and includes empty arrays' do
|
140
|
+
# uncomment below to test object_to_hash for model
|
141
|
+
# api_client = IntegrationApi::ApiClient.new
|
142
|
+
# _model = IntegrationApi::ModelName.new
|
143
|
+
# update the model attribute below
|
144
|
+
# _model.id = 1
|
145
|
+
# update the expected value (hash) below
|
146
|
+
# expected = {id: 1, name: '', tags: []}
|
147
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
describe '#build_collection_param' do
|
152
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
153
|
+
let(:api_client) { IntegrationApi::ApiClient.new }
|
154
|
+
|
155
|
+
it 'works for csv' do
|
156
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
157
|
+
end
|
158
|
+
|
159
|
+
it 'works for ssv' do
|
160
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
161
|
+
end
|
162
|
+
|
163
|
+
it 'works for tsv' do
|
164
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
165
|
+
end
|
166
|
+
|
167
|
+
it 'works for pipes' do
|
168
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
169
|
+
end
|
170
|
+
|
171
|
+
it 'works for multi' do
|
172
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
173
|
+
end
|
174
|
+
|
175
|
+
it 'fails for invalid collection format' do
|
176
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe '#json_mime?' do
|
181
|
+
let(:api_client) { IntegrationApi::ApiClient.new }
|
182
|
+
|
183
|
+
it 'works' do
|
184
|
+
expect(api_client.json_mime?(nil)).to eq false
|
185
|
+
expect(api_client.json_mime?('')).to eq false
|
186
|
+
|
187
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
188
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
189
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
190
|
+
|
191
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
192
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
193
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
describe '#select_header_accept' do
|
198
|
+
let(:api_client) { IntegrationApi::ApiClient.new }
|
199
|
+
|
200
|
+
it 'works' do
|
201
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
202
|
+
expect(api_client.select_header_accept([])).to be_nil
|
203
|
+
|
204
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
205
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
206
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
207
|
+
|
208
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
209
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
describe '#select_header_content_type' do
|
214
|
+
let(:api_client) { IntegrationApi::ApiClient.new }
|
215
|
+
|
216
|
+
it 'works' do
|
217
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
218
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
219
|
+
|
220
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
221
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
222
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
223
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
224
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
describe '#sanitize_filename' do
|
229
|
+
let(:api_client) { IntegrationApi::ApiClient.new }
|
230
|
+
|
231
|
+
it 'works' do
|
232
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
233
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
234
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
235
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
236
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
237
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
238
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
239
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
240
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|