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,278 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module IntegrationApi
|
16
|
+
class Address
|
17
|
+
attr_accessor :address_line1
|
18
|
+
|
19
|
+
attr_accessor :address_line2
|
20
|
+
|
21
|
+
attr_accessor :city
|
22
|
+
|
23
|
+
attr_accessor :country
|
24
|
+
|
25
|
+
attr_accessor :is_primary
|
26
|
+
|
27
|
+
attr_accessor :postalcode
|
28
|
+
|
29
|
+
attr_accessor :state
|
30
|
+
|
31
|
+
attr_accessor :type
|
32
|
+
|
33
|
+
class EnumAttributeValidator
|
34
|
+
attr_reader :datatype
|
35
|
+
attr_reader :allowable_values
|
36
|
+
|
37
|
+
def initialize(datatype, allowable_values)
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
39
|
+
case datatype.to_s
|
40
|
+
when /Integer/i
|
41
|
+
value.to_i
|
42
|
+
when /Float/i
|
43
|
+
value.to_f
|
44
|
+
else
|
45
|
+
value
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def valid?(value)
|
51
|
+
!value || allowable_values.include?(value)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
56
|
+
def self.attribute_map
|
57
|
+
{
|
58
|
+
:'address_line1' => :'address_line1',
|
59
|
+
:'address_line2' => :'address_line2',
|
60
|
+
:'city' => :'city',
|
61
|
+
:'country' => :'country',
|
62
|
+
:'is_primary' => :'is_primary',
|
63
|
+
:'postalcode' => :'postalcode',
|
64
|
+
:'state' => :'state',
|
65
|
+
:'type' => :'type'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Attribute type mapping.
|
70
|
+
def self.swagger_types
|
71
|
+
{
|
72
|
+
:'address_line1' => :'String',
|
73
|
+
:'address_line2' => :'String',
|
74
|
+
:'city' => :'String',
|
75
|
+
:'country' => :'String',
|
76
|
+
:'is_primary' => :'BOOLEAN',
|
77
|
+
:'postalcode' => :'String',
|
78
|
+
:'state' => :'String',
|
79
|
+
:'type' => :'String'
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# Initializes the object
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
def initialize(attributes = {})
|
86
|
+
return unless attributes.is_a?(Hash)
|
87
|
+
|
88
|
+
# convert string to symbol for hash key
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
90
|
+
|
91
|
+
if attributes.has_key?(:'address_line1')
|
92
|
+
self.address_line1 = attributes[:'address_line1']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'address_line2')
|
96
|
+
self.address_line2 = attributes[:'address_line2']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'city')
|
100
|
+
self.city = attributes[:'city']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'country')
|
104
|
+
self.country = attributes[:'country']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.has_key?(:'is_primary')
|
108
|
+
self.is_primary = attributes[:'is_primary']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.has_key?(:'postalcode')
|
112
|
+
self.postalcode = attributes[:'postalcode']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.has_key?(:'state')
|
116
|
+
self.state = attributes[:'state']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.has_key?(:'type')
|
120
|
+
self.type = attributes[:'type']
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
125
|
+
# @return Array for valid properties with the reasons
|
126
|
+
def list_invalid_properties
|
127
|
+
invalid_properties = Array.new
|
128
|
+
invalid_properties
|
129
|
+
end
|
130
|
+
|
131
|
+
# Check to see if the all the properties in the model are valid
|
132
|
+
# @return true if the model is valid
|
133
|
+
def valid?
|
134
|
+
type_validator = EnumAttributeValidator.new('String', ['home', 'work', 'billing', 'mailing', 'legal', 'residence', 'postal', 'Mailing', 'Residence', 'Home', 'Work', 'Other', 'null'])
|
135
|
+
return false unless type_validator.valid?(@type)
|
136
|
+
true
|
137
|
+
end
|
138
|
+
|
139
|
+
# Custom attribute writer method checking allowed values (enum).
|
140
|
+
# @param [Object] type Object to be assigned
|
141
|
+
def type=(type)
|
142
|
+
validator = EnumAttributeValidator.new('String', ['home', 'work', 'billing', 'mailing', 'legal', 'residence', 'postal', 'Mailing', 'Residence', 'Home', 'Work', 'Other', 'null'])
|
143
|
+
unless validator.valid?(type)
|
144
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
145
|
+
end
|
146
|
+
@type = type
|
147
|
+
end
|
148
|
+
|
149
|
+
# Checks equality by comparing each attribute.
|
150
|
+
# @param [Object] Object to be compared
|
151
|
+
def ==(o)
|
152
|
+
return true if self.equal?(o)
|
153
|
+
self.class == o.class &&
|
154
|
+
address_line1 == o.address_line1 &&
|
155
|
+
address_line2 == o.address_line2 &&
|
156
|
+
city == o.city &&
|
157
|
+
country == o.country &&
|
158
|
+
is_primary == o.is_primary &&
|
159
|
+
postalcode == o.postalcode &&
|
160
|
+
state == o.state &&
|
161
|
+
type == o.type
|
162
|
+
end
|
163
|
+
|
164
|
+
# @see the `==` method
|
165
|
+
# @param [Object] Object to be compared
|
166
|
+
def eql?(o)
|
167
|
+
self == o
|
168
|
+
end
|
169
|
+
|
170
|
+
# Calculates hash code according to all attributes.
|
171
|
+
# @return [Fixnum] Hash code
|
172
|
+
def hash
|
173
|
+
[address_line1, address_line2, city, country, is_primary, postalcode, state, type].hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Builds the object from hash
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
# @return [Object] Returns the model itself
|
179
|
+
def build_from_hash(attributes)
|
180
|
+
self.class.swagger_types.each_pair do |key, type|
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
185
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
188
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
190
|
+
end
|
191
|
+
|
192
|
+
self
|
193
|
+
end
|
194
|
+
|
195
|
+
# Deserializes the data based on type
|
196
|
+
# @param string type Data type
|
197
|
+
# @param string value Value to be deserialized
|
198
|
+
# @return [Object] Deserialized data
|
199
|
+
def _deserialize(type, value)
|
200
|
+
case type.to_sym
|
201
|
+
when :DateTime
|
202
|
+
value
|
203
|
+
when :Date
|
204
|
+
value
|
205
|
+
when :String
|
206
|
+
value.to_s
|
207
|
+
when :Integer
|
208
|
+
value.to_i
|
209
|
+
when :Float
|
210
|
+
value.to_f
|
211
|
+
when :BOOLEAN
|
212
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
+
true
|
214
|
+
else
|
215
|
+
false
|
216
|
+
end
|
217
|
+
when :Object
|
218
|
+
# generic object (usually a Hash), return directly
|
219
|
+
value
|
220
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
+
inner_type = Regexp.last_match[:inner_type]
|
222
|
+
value.map { |v| _deserialize(inner_type, v) }
|
223
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
+
k_type = Regexp.last_match[:k_type]
|
225
|
+
v_type = Regexp.last_match[:v_type]
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each do |k, v|
|
228
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
else # model
|
232
|
+
temp_model = IntegrationApi.const_get(type).new
|
233
|
+
temp_model.build_from_hash(value)
|
234
|
+
end
|
235
|
+
end
|
236
|
+
# Returns the string representation of the object
|
237
|
+
# @return [String] String presentation of the object
|
238
|
+
def to_s
|
239
|
+
to_hash.to_s
|
240
|
+
end
|
241
|
+
|
242
|
+
# to_body is an alias to to_hash (backward compatibility)
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
244
|
+
def to_body
|
245
|
+
to_hash
|
246
|
+
end
|
247
|
+
|
248
|
+
# Returns the object in the form of hash
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
250
|
+
def to_hash
|
251
|
+
hash = {}
|
252
|
+
self.class.attribute_map.each_pair do |attr, param|
|
253
|
+
value = self.send(attr)
|
254
|
+
hash[param] = _to_hash(value)
|
255
|
+
end
|
256
|
+
hash
|
257
|
+
end
|
258
|
+
|
259
|
+
# Outputs non-array value in the form of hash
|
260
|
+
# For object, use to_hash. Otherwise, just return the value
|
261
|
+
# @param [Object] value Any valid value
|
262
|
+
# @return [Hash] Returns the value in the form of hash
|
263
|
+
def _to_hash(value)
|
264
|
+
if value.is_a?(Array)
|
265
|
+
value.compact.map { |v| _to_hash(v) }
|
266
|
+
elsif value.is_a?(Hash)
|
267
|
+
{}.tap do |hash|
|
268
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
269
|
+
end
|
270
|
+
elsif value.respond_to? :to_hash
|
271
|
+
value.to_hash
|
272
|
+
else
|
273
|
+
value
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
end
|
278
|
+
end
|
@@ -0,0 +1,495 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module IntegrationApi
|
16
|
+
# Aggregation Account Object
|
17
|
+
class AggregationAccount
|
18
|
+
# accountCategoryId
|
19
|
+
attr_accessor :account_category_id
|
20
|
+
|
21
|
+
# account_holder
|
22
|
+
attr_accessor :account_holder
|
23
|
+
|
24
|
+
# accountName
|
25
|
+
attr_accessor :account_name
|
26
|
+
|
27
|
+
# apr
|
28
|
+
attr_accessor :apr
|
29
|
+
|
30
|
+
# apy
|
31
|
+
attr_accessor :apy
|
32
|
+
|
33
|
+
# bankLinkId
|
34
|
+
attr_accessor :bank_link_id
|
35
|
+
|
36
|
+
# businessId
|
37
|
+
attr_accessor :business_id
|
38
|
+
|
39
|
+
# category
|
40
|
+
attr_accessor :category
|
41
|
+
|
42
|
+
# clientId
|
43
|
+
attr_accessor :client_id
|
44
|
+
|
45
|
+
attr_accessor :create_date
|
46
|
+
|
47
|
+
# creditLimit
|
48
|
+
attr_accessor :credit_limit
|
49
|
+
|
50
|
+
# currencyCode
|
51
|
+
attr_accessor :currency_code
|
52
|
+
|
53
|
+
# deathBenefit
|
54
|
+
attr_accessor :death_benefit
|
55
|
+
|
56
|
+
# financial_offer_id
|
57
|
+
attr_accessor :financial_offer_id
|
58
|
+
|
59
|
+
attr_accessor :id
|
60
|
+
|
61
|
+
# institutionId
|
62
|
+
attr_accessor :institution_id
|
63
|
+
|
64
|
+
# institutionName
|
65
|
+
attr_accessor :institution_name
|
66
|
+
|
67
|
+
# interestRate
|
68
|
+
attr_accessor :interest_rate
|
69
|
+
|
70
|
+
# isActive
|
71
|
+
attr_accessor :is_active
|
72
|
+
|
73
|
+
# isLinkVerified
|
74
|
+
attr_accessor :is_link_verified
|
75
|
+
|
76
|
+
# isManual
|
77
|
+
attr_accessor :is_manual
|
78
|
+
|
79
|
+
# lastPayment
|
80
|
+
attr_accessor :last_payment
|
81
|
+
|
82
|
+
# lastPaymentDate
|
83
|
+
attr_accessor :last_payment_date
|
84
|
+
|
85
|
+
# mask
|
86
|
+
attr_accessor :mask
|
87
|
+
|
88
|
+
# maturityDate
|
89
|
+
attr_accessor :maturity_date
|
90
|
+
|
91
|
+
attr_accessor :metadata
|
92
|
+
|
93
|
+
# minimumPayment
|
94
|
+
attr_accessor :minimum_payment
|
95
|
+
|
96
|
+
# nextPaymentDate
|
97
|
+
attr_accessor :next_payment_date
|
98
|
+
|
99
|
+
attr_accessor :secondary_id
|
100
|
+
|
101
|
+
# subcategory
|
102
|
+
attr_accessor :subcategory
|
103
|
+
|
104
|
+
attr_accessor :update_date
|
105
|
+
|
106
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
107
|
+
def self.attribute_map
|
108
|
+
{
|
109
|
+
:'account_category_id' => :'account_category_id',
|
110
|
+
:'account_holder' => :'account_holder',
|
111
|
+
:'account_name' => :'account_name',
|
112
|
+
:'apr' => :'apr',
|
113
|
+
:'apy' => :'apy',
|
114
|
+
:'bank_link_id' => :'bank_link_id',
|
115
|
+
:'business_id' => :'business_id',
|
116
|
+
:'category' => :'category',
|
117
|
+
:'client_id' => :'client_id',
|
118
|
+
:'create_date' => :'create_date',
|
119
|
+
:'credit_limit' => :'credit_limit',
|
120
|
+
:'currency_code' => :'currency_code',
|
121
|
+
:'death_benefit' => :'death_benefit',
|
122
|
+
:'financial_offer_id' => :'financial_offer_id',
|
123
|
+
:'id' => :'id',
|
124
|
+
:'institution_id' => :'institution_id',
|
125
|
+
:'institution_name' => :'institution_name',
|
126
|
+
:'interest_rate' => :'interest_rate',
|
127
|
+
:'is_active' => :'is_active',
|
128
|
+
:'is_link_verified' => :'is_link_verified',
|
129
|
+
:'is_manual' => :'is_manual',
|
130
|
+
:'last_payment' => :'last_payment',
|
131
|
+
:'last_payment_date' => :'last_payment_date',
|
132
|
+
:'mask' => :'mask',
|
133
|
+
:'maturity_date' => :'maturity_date',
|
134
|
+
:'metadata' => :'metadata',
|
135
|
+
:'minimum_payment' => :'minimum_payment',
|
136
|
+
:'next_payment_date' => :'next_payment_date',
|
137
|
+
:'secondary_id' => :'secondary_id',
|
138
|
+
:'subcategory' => :'subcategory',
|
139
|
+
:'update_date' => :'update_date'
|
140
|
+
}
|
141
|
+
end
|
142
|
+
|
143
|
+
# Attribute type mapping.
|
144
|
+
def self.swagger_types
|
145
|
+
{
|
146
|
+
:'account_category_id' => :'String',
|
147
|
+
:'account_holder' => :'String',
|
148
|
+
:'account_name' => :'String',
|
149
|
+
:'apr' => :'Float',
|
150
|
+
:'apy' => :'Float',
|
151
|
+
:'bank_link_id' => :'String',
|
152
|
+
:'business_id' => :'String',
|
153
|
+
:'category' => :'String',
|
154
|
+
:'client_id' => :'String',
|
155
|
+
:'create_date' => :'DateTime',
|
156
|
+
:'credit_limit' => :'Float',
|
157
|
+
:'currency_code' => :'String',
|
158
|
+
:'death_benefit' => :'Float',
|
159
|
+
:'financial_offer_id' => :'String',
|
160
|
+
:'id' => :'String',
|
161
|
+
:'institution_id' => :'String',
|
162
|
+
:'institution_name' => :'String',
|
163
|
+
:'interest_rate' => :'Float',
|
164
|
+
:'is_active' => :'BOOLEAN',
|
165
|
+
:'is_link_verified' => :'BOOLEAN',
|
166
|
+
:'is_manual' => :'BOOLEAN',
|
167
|
+
:'last_payment' => :'Float',
|
168
|
+
:'last_payment_date' => :'DateTime',
|
169
|
+
:'mask' => :'String',
|
170
|
+
:'maturity_date' => :'DateTime',
|
171
|
+
:'metadata' => :'Hash<String, String>',
|
172
|
+
:'minimum_payment' => :'Float',
|
173
|
+
:'next_payment_date' => :'DateTime',
|
174
|
+
:'secondary_id' => :'String',
|
175
|
+
:'subcategory' => :'String',
|
176
|
+
:'update_date' => :'DateTime'
|
177
|
+
}
|
178
|
+
end
|
179
|
+
|
180
|
+
# Initializes the object
|
181
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
182
|
+
def initialize(attributes = {})
|
183
|
+
return unless attributes.is_a?(Hash)
|
184
|
+
|
185
|
+
# convert string to symbol for hash key
|
186
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
187
|
+
|
188
|
+
if attributes.has_key?(:'account_category_id')
|
189
|
+
self.account_category_id = attributes[:'account_category_id']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.has_key?(:'account_holder')
|
193
|
+
self.account_holder = attributes[:'account_holder']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.has_key?(:'account_name')
|
197
|
+
self.account_name = attributes[:'account_name']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.has_key?(:'apr')
|
201
|
+
self.apr = attributes[:'apr']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.has_key?(:'apy')
|
205
|
+
self.apy = attributes[:'apy']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.has_key?(:'bank_link_id')
|
209
|
+
self.bank_link_id = attributes[:'bank_link_id']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.has_key?(:'business_id')
|
213
|
+
self.business_id = attributes[:'business_id']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.has_key?(:'category')
|
217
|
+
self.category = attributes[:'category']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.has_key?(:'client_id')
|
221
|
+
self.client_id = attributes[:'client_id']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.has_key?(:'create_date')
|
225
|
+
self.create_date = attributes[:'create_date']
|
226
|
+
end
|
227
|
+
|
228
|
+
if attributes.has_key?(:'credit_limit')
|
229
|
+
self.credit_limit = attributes[:'credit_limit']
|
230
|
+
end
|
231
|
+
|
232
|
+
if attributes.has_key?(:'currency_code')
|
233
|
+
self.currency_code = attributes[:'currency_code']
|
234
|
+
end
|
235
|
+
|
236
|
+
if attributes.has_key?(:'death_benefit')
|
237
|
+
self.death_benefit = attributes[:'death_benefit']
|
238
|
+
end
|
239
|
+
|
240
|
+
if attributes.has_key?(:'financial_offer_id')
|
241
|
+
self.financial_offer_id = attributes[:'financial_offer_id']
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.has_key?(:'id')
|
245
|
+
self.id = attributes[:'id']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.has_key?(:'institution_id')
|
249
|
+
self.institution_id = attributes[:'institution_id']
|
250
|
+
end
|
251
|
+
|
252
|
+
if attributes.has_key?(:'institution_name')
|
253
|
+
self.institution_name = attributes[:'institution_name']
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.has_key?(:'interest_rate')
|
257
|
+
self.interest_rate = attributes[:'interest_rate']
|
258
|
+
end
|
259
|
+
|
260
|
+
if attributes.has_key?(:'is_active')
|
261
|
+
self.is_active = attributes[:'is_active']
|
262
|
+
end
|
263
|
+
|
264
|
+
if attributes.has_key?(:'is_link_verified')
|
265
|
+
self.is_link_verified = attributes[:'is_link_verified']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.has_key?(:'is_manual')
|
269
|
+
self.is_manual = attributes[:'is_manual']
|
270
|
+
end
|
271
|
+
|
272
|
+
if attributes.has_key?(:'last_payment')
|
273
|
+
self.last_payment = attributes[:'last_payment']
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.has_key?(:'last_payment_date')
|
277
|
+
self.last_payment_date = attributes[:'last_payment_date']
|
278
|
+
end
|
279
|
+
|
280
|
+
if attributes.has_key?(:'mask')
|
281
|
+
self.mask = attributes[:'mask']
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.has_key?(:'maturity_date')
|
285
|
+
self.maturity_date = attributes[:'maturity_date']
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.has_key?(:'metadata')
|
289
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
290
|
+
self.metadata = value
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
if attributes.has_key?(:'minimum_payment')
|
295
|
+
self.minimum_payment = attributes[:'minimum_payment']
|
296
|
+
end
|
297
|
+
|
298
|
+
if attributes.has_key?(:'next_payment_date')
|
299
|
+
self.next_payment_date = attributes[:'next_payment_date']
|
300
|
+
end
|
301
|
+
|
302
|
+
if attributes.has_key?(:'secondary_id')
|
303
|
+
self.secondary_id = attributes[:'secondary_id']
|
304
|
+
end
|
305
|
+
|
306
|
+
if attributes.has_key?(:'subcategory')
|
307
|
+
self.subcategory = attributes[:'subcategory']
|
308
|
+
end
|
309
|
+
|
310
|
+
if attributes.has_key?(:'update_date')
|
311
|
+
self.update_date = attributes[:'update_date']
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
316
|
+
# @return Array for valid properties with the reasons
|
317
|
+
def list_invalid_properties
|
318
|
+
invalid_properties = Array.new
|
319
|
+
if @account_name.nil?
|
320
|
+
invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
|
321
|
+
end
|
322
|
+
|
323
|
+
if @category.nil?
|
324
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
325
|
+
end
|
326
|
+
|
327
|
+
if @institution_name.nil?
|
328
|
+
invalid_properties.push('invalid value for "institution_name", institution_name cannot be nil.')
|
329
|
+
end
|
330
|
+
|
331
|
+
invalid_properties
|
332
|
+
end
|
333
|
+
|
334
|
+
# Check to see if the all the properties in the model are valid
|
335
|
+
# @return true if the model is valid
|
336
|
+
def valid?
|
337
|
+
return false if @account_name.nil?
|
338
|
+
return false if @category.nil?
|
339
|
+
return false if @institution_name.nil?
|
340
|
+
true
|
341
|
+
end
|
342
|
+
|
343
|
+
# Checks equality by comparing each attribute.
|
344
|
+
# @param [Object] Object to be compared
|
345
|
+
def ==(o)
|
346
|
+
return true if self.equal?(o)
|
347
|
+
self.class == o.class &&
|
348
|
+
account_category_id == o.account_category_id &&
|
349
|
+
account_holder == o.account_holder &&
|
350
|
+
account_name == o.account_name &&
|
351
|
+
apr == o.apr &&
|
352
|
+
apy == o.apy &&
|
353
|
+
bank_link_id == o.bank_link_id &&
|
354
|
+
business_id == o.business_id &&
|
355
|
+
category == o.category &&
|
356
|
+
client_id == o.client_id &&
|
357
|
+
create_date == o.create_date &&
|
358
|
+
credit_limit == o.credit_limit &&
|
359
|
+
currency_code == o.currency_code &&
|
360
|
+
death_benefit == o.death_benefit &&
|
361
|
+
financial_offer_id == o.financial_offer_id &&
|
362
|
+
id == o.id &&
|
363
|
+
institution_id == o.institution_id &&
|
364
|
+
institution_name == o.institution_name &&
|
365
|
+
interest_rate == o.interest_rate &&
|
366
|
+
is_active == o.is_active &&
|
367
|
+
is_link_verified == o.is_link_verified &&
|
368
|
+
is_manual == o.is_manual &&
|
369
|
+
last_payment == o.last_payment &&
|
370
|
+
last_payment_date == o.last_payment_date &&
|
371
|
+
mask == o.mask &&
|
372
|
+
maturity_date == o.maturity_date &&
|
373
|
+
metadata == o.metadata &&
|
374
|
+
minimum_payment == o.minimum_payment &&
|
375
|
+
next_payment_date == o.next_payment_date &&
|
376
|
+
secondary_id == o.secondary_id &&
|
377
|
+
subcategory == o.subcategory &&
|
378
|
+
update_date == o.update_date
|
379
|
+
end
|
380
|
+
|
381
|
+
# @see the `==` method
|
382
|
+
# @param [Object] Object to be compared
|
383
|
+
def eql?(o)
|
384
|
+
self == o
|
385
|
+
end
|
386
|
+
|
387
|
+
# Calculates hash code according to all attributes.
|
388
|
+
# @return [Fixnum] Hash code
|
389
|
+
def hash
|
390
|
+
[account_category_id, account_holder, account_name, apr, apy, bank_link_id, business_id, category, client_id, create_date, credit_limit, currency_code, death_benefit, financial_offer_id, id, institution_id, institution_name, interest_rate, is_active, is_link_verified, is_manual, last_payment, last_payment_date, mask, maturity_date, metadata, minimum_payment, next_payment_date, secondary_id, subcategory, update_date].hash
|
391
|
+
end
|
392
|
+
|
393
|
+
# Builds the object from hash
|
394
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
395
|
+
# @return [Object] Returns the model itself
|
396
|
+
def build_from_hash(attributes)
|
397
|
+
self.class.swagger_types.each_pair do |key, type|
|
398
|
+
if type =~ /\AArray<(.*)>/i
|
399
|
+
# check to ensure the input is an array given that the attribute
|
400
|
+
# is documented as an array but the input is not
|
401
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
402
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
403
|
+
end
|
404
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
405
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
406
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
407
|
+
end
|
408
|
+
|
409
|
+
self
|
410
|
+
end
|
411
|
+
|
412
|
+
# Deserializes the data based on type
|
413
|
+
# @param string type Data type
|
414
|
+
# @param string value Value to be deserialized
|
415
|
+
# @return [Object] Deserialized data
|
416
|
+
def _deserialize(type, value)
|
417
|
+
case type.to_sym
|
418
|
+
when :DateTime
|
419
|
+
value
|
420
|
+
when :Date
|
421
|
+
value
|
422
|
+
when :String
|
423
|
+
value.to_s
|
424
|
+
when :Integer
|
425
|
+
value.to_i
|
426
|
+
when :Float
|
427
|
+
value.to_f
|
428
|
+
when :BOOLEAN
|
429
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
430
|
+
true
|
431
|
+
else
|
432
|
+
false
|
433
|
+
end
|
434
|
+
when :Object
|
435
|
+
# generic object (usually a Hash), return directly
|
436
|
+
value
|
437
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
438
|
+
inner_type = Regexp.last_match[:inner_type]
|
439
|
+
value.map { |v| _deserialize(inner_type, v) }
|
440
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
441
|
+
k_type = Regexp.last_match[:k_type]
|
442
|
+
v_type = Regexp.last_match[:v_type]
|
443
|
+
{}.tap do |hash|
|
444
|
+
value.each do |k, v|
|
445
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
else # model
|
449
|
+
temp_model = IntegrationApi.const_get(type).new
|
450
|
+
temp_model.build_from_hash(value)
|
451
|
+
end
|
452
|
+
end
|
453
|
+
# Returns the string representation of the object
|
454
|
+
# @return [String] String presentation of the object
|
455
|
+
def to_s
|
456
|
+
to_hash.to_s
|
457
|
+
end
|
458
|
+
|
459
|
+
# to_body is an alias to to_hash (backward compatibility)
|
460
|
+
# @return [Hash] Returns the object in the form of hash
|
461
|
+
def to_body
|
462
|
+
to_hash
|
463
|
+
end
|
464
|
+
|
465
|
+
# Returns the object in the form of hash
|
466
|
+
# @return [Hash] Returns the object in the form of hash
|
467
|
+
def to_hash
|
468
|
+
hash = {}
|
469
|
+
self.class.attribute_map.each_pair do |attr, param|
|
470
|
+
value = self.send(attr)
|
471
|
+
hash[param] = _to_hash(value)
|
472
|
+
end
|
473
|
+
hash
|
474
|
+
end
|
475
|
+
|
476
|
+
# Outputs non-array value in the form of hash
|
477
|
+
# For object, use to_hash. Otherwise, just return the value
|
478
|
+
# @param [Object] value Any valid value
|
479
|
+
# @return [Hash] Returns the value in the form of hash
|
480
|
+
def _to_hash(value)
|
481
|
+
if value.is_a?(Array)
|
482
|
+
value.compact.map { |v| _to_hash(v) }
|
483
|
+
elsif value.is_a?(Hash)
|
484
|
+
{}.tap do |hash|
|
485
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
486
|
+
end
|
487
|
+
elsif value.respond_to? :to_hash
|
488
|
+
value.to_hash
|
489
|
+
else
|
490
|
+
value
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
494
|
+
end
|
495
|
+
end
|