apimatic-plaid-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +192 -0
- data/bin/console +15 -0
- data/lib/plaid/api_helper.rb +10 -0
- data/lib/plaid/apis/accounts_api.rb +70 -0
- data/lib/plaid/apis/application_api.rb +35 -0
- data/lib/plaid/apis/asset_report_api.rb +301 -0
- data/lib/plaid/apis/auth_api.rb +43 -0
- data/lib/plaid/apis/bank_transfer_api.rb +287 -0
- data/lib/plaid/apis/base_api.rb +65 -0
- data/lib/plaid/apis/categories_api.rb +34 -0
- data/lib/plaid/apis/deposit_switch_api.rb +106 -0
- data/lib/plaid/apis/employers_api.rb +40 -0
- data/lib/plaid/apis/identity_api.rb +38 -0
- data/lib/plaid/apis/income_api.rb +220 -0
- data/lib/plaid/apis/institutions_api.rb +92 -0
- data/lib/plaid/apis/investments_api.rb +61 -0
- data/lib/plaid/apis/item_api.rb +267 -0
- data/lib/plaid/apis/liabilities_api.rb +47 -0
- data/lib/plaid/apis/link_api.rb +62 -0
- data/lib/plaid/apis/payment_initiation_api.rb +236 -0
- data/lib/plaid/apis/processor_api.rb +189 -0
- data/lib/plaid/apis/sandbox_api.rb +302 -0
- data/lib/plaid/apis/signal_api.rb +97 -0
- data/lib/plaid/apis/transactions_api.rb +111 -0
- data/lib/plaid/apis/transfer_api.rb +214 -0
- data/lib/plaid/apis/webhook_verification_key_api.rb +36 -0
- data/lib/plaid/client.rb +208 -0
- data/lib/plaid/configuration.rb +198 -0
- data/lib/plaid/exceptions/api_exception.rb +21 -0
- data/lib/plaid/exceptions/error_error_exception.rb +110 -0
- data/lib/plaid/http/api_response.rb +19 -0
- data/lib/plaid/http/auth/plaid_client_id.rb +52 -0
- data/lib/plaid/http/auth/plaid_secret.rb +52 -0
- data/lib/plaid/http/auth/plaid_version.rb +52 -0
- data/lib/plaid/http/http_call_back.rb +10 -0
- data/lib/plaid/http/http_method_enum.rb +10 -0
- data/lib/plaid/http/http_request.rb +10 -0
- data/lib/plaid/http/http_response.rb +10 -0
- data/lib/plaid/http/proxy_settings.rb +22 -0
- data/lib/plaid/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/plaid/logging/sdk_logger.rb +17 -0
- data/lib/plaid/models/account.rb +185 -0
- data/lib/plaid/models/account_access.rb +89 -0
- data/lib/plaid/models/account_assets.rb +258 -0
- data/lib/plaid/models/account_balance.rb +189 -0
- data/lib/plaid/models/account_filter.rb +107 -0
- data/lib/plaid/models/account_filters_response.rb +106 -0
- data/lib/plaid/models/account_identity.rb +206 -0
- data/lib/plaid/models/account_selection_cardinality.rb +44 -0
- data/lib/plaid/models/account_subtype.rb +319 -0
- data/lib/plaid/models/account_subtype1.rb +36 -0
- data/lib/plaid/models/account_type.rb +57 -0
- data/lib/plaid/models/accounts_balance_get_request.rb +108 -0
- data/lib/plaid/models/accounts_balance_get_request_options.rb +111 -0
- data/lib/plaid/models/accounts_get_request.rb +107 -0
- data/lib/plaid/models/accounts_get_request_options.rb +76 -0
- data/lib/plaid/models/accounts_get_response.rb +104 -0
- data/lib/plaid/models/ach_class.rb +99 -0
- data/lib/plaid/models/address.rb +84 -0
- data/lib/plaid/models/address1.rb +116 -0
- data/lib/plaid/models/address2.rb +155 -0
- data/lib/plaid/models/address_data.rb +114 -0
- data/lib/plaid/models/address_data1.rb +120 -0
- data/lib/plaid/models/address_data_nullable.rb +114 -0
- data/lib/plaid/models/address_nullable.rb +84 -0
- data/lib/plaid/models/application.rb +131 -0
- data/lib/plaid/models/application_get_request.rb +98 -0
- data/lib/plaid/models/application_get_response.rb +84 -0
- data/lib/plaid/models/apr.rb +109 -0
- data/lib/plaid/models/apr_type.rb +44 -0
- data/lib/plaid/models/asset_report.rb +145 -0
- data/lib/plaid/models/asset_report_audit_copy_create_request.rb +111 -0
- data/lib/plaid/models/asset_report_audit_copy_create_response.rb +87 -0
- data/lib/plaid/models/asset_report_audit_copy_get_request.rb +101 -0
- data/lib/plaid/models/asset_report_audit_copy_remove_request.rb +101 -0
- data/lib/plaid/models/asset_report_audit_copy_remove_response.rb +85 -0
- data/lib/plaid/models/asset_report_create_request.rb +125 -0
- data/lib/plaid/models/asset_report_create_request_options.rb +104 -0
- data/lib/plaid/models/asset_report_create_response.rb +100 -0
- data/lib/plaid/models/asset_report_filter_request.rb +111 -0
- data/lib/plaid/models/asset_report_filter_response.rb +100 -0
- data/lib/plaid/models/asset_report_get_request.rb +112 -0
- data/lib/plaid/models/asset_report_get_response.rb +103 -0
- data/lib/plaid/models/asset_report_item.rb +130 -0
- data/lib/plaid/models/asset_report_pdf_get_request.rb +101 -0
- data/lib/plaid/models/asset_report_refresh_request.rb +127 -0
- data/lib/plaid/models/asset_report_refresh_request_options.rb +104 -0
- data/lib/plaid/models/asset_report_refresh_response.rb +100 -0
- data/lib/plaid/models/asset_report_remove_request.rb +101 -0
- data/lib/plaid/models/asset_report_remove_response.rb +85 -0
- data/lib/plaid/models/asset_report_transaction.rb +296 -0
- data/lib/plaid/models/asset_report_user.rb +153 -0
- data/lib/plaid/models/assets_error_webhook.rb +107 -0
- data/lib/plaid/models/assets_product_ready_webhook.rb +97 -0
- data/lib/plaid/models/auth_get_numbers.rb +141 -0
- data/lib/plaid/models/auth_get_request.rb +107 -0
- data/lib/plaid/models/auth_get_request_options.rb +78 -0
- data/lib/plaid/models/auth_get_response.rb +116 -0
- data/lib/plaid/models/auth_metadata.rb +77 -0
- data/lib/plaid/models/auth_supported_methods.rb +94 -0
- data/lib/plaid/models/automatically_verified_webhook.rb +102 -0
- data/lib/plaid/models/available_balance.rb +39 -0
- data/lib/plaid/models/bank_initiated_return_risk.rb +96 -0
- data/lib/plaid/models/bank_transfer.rb +263 -0
- data/lib/plaid/models/bank_transfer_balance.rb +85 -0
- data/lib/plaid/models/bank_transfer_balance_get_request.rb +103 -0
- data/lib/plaid/models/bank_transfer_balance_get_response.rb +97 -0
- data/lib/plaid/models/bank_transfer_cancel_request.rb +99 -0
- data/lib/plaid/models/bank_transfer_cancel_response.rb +76 -0
- data/lib/plaid/models/bank_transfer_create_request.rb +254 -0
- data/lib/plaid/models/bank_transfer_create_response.rb +84 -0
- data/lib/plaid/models/bank_transfer_direction.rb +37 -0
- data/lib/plaid/models/bank_transfer_direction1.rb +37 -0
- data/lib/plaid/models/bank_transfer_event.rb +211 -0
- data/lib/plaid/models/bank_transfer_event_list_request.rb +229 -0
- data/lib/plaid/models/bank_transfer_event_list_response.rb +94 -0
- data/lib/plaid/models/bank_transfer_event_sync_request.rb +110 -0
- data/lib/plaid/models/bank_transfer_event_sync_response.rb +94 -0
- data/lib/plaid/models/bank_transfer_event_type.rb +63 -0
- data/lib/plaid/models/bank_transfer_failure.rb +93 -0
- data/lib/plaid/models/bank_transfer_get_request.rb +99 -0
- data/lib/plaid/models/bank_transfer_get_response.rb +84 -0
- data/lib/plaid/models/bank_transfer_list_request.rb +175 -0
- data/lib/plaid/models/bank_transfer_list_response.rb +93 -0
- data/lib/plaid/models/bank_transfer_migrate_account_request.rb +117 -0
- data/lib/plaid/models/bank_transfer_migrate_account_response.rb +93 -0
- data/lib/plaid/models/bank_transfer_network.rb +41 -0
- data/lib/plaid/models/bank_transfer_receiver_details.rb +79 -0
- data/lib/plaid/models/bank_transfer_status.rb +48 -0
- data/lib/plaid/models/bank_transfer_sweep.rb +129 -0
- data/lib/plaid/models/bank_transfer_sweep_account.rb +84 -0
- data/lib/plaid/models/bank_transfer_sweep_get_request.rb +113 -0
- data/lib/plaid/models/bank_transfer_sweep_get_response.rb +85 -0
- data/lib/plaid/models/bank_transfer_sweep_list_request.rb +164 -0
- data/lib/plaid/models/bank_transfer_sweep_list_response.rb +94 -0
- data/lib/plaid/models/bank_transfer_type.rb +38 -0
- data/lib/plaid/models/bank_transfer_type1.rb +38 -0
- data/lib/plaid/models/bank_transfer_user.rb +100 -0
- data/lib/plaid/models/bank_transfers_events_update_webhook.rb +83 -0
- data/lib/plaid/models/base_model.rb +110 -0
- data/lib/plaid/models/branch.rb +49 -0
- data/lib/plaid/models/buy_type.rb +165 -0
- data/lib/plaid/models/canonical_description.rb +92 -0
- data/lib/plaid/models/cash_type.rb +305 -0
- data/lib/plaid/models/categories_get_response.rb +93 -0
- data/lib/plaid/models/category.rb +93 -0
- data/lib/plaid/models/cause.rb +88 -0
- data/lib/plaid/models/code.rb +56 -0
- data/lib/plaid/models/confidence.rb +45 -0
- data/lib/plaid/models/connected_application.rb +177 -0
- data/lib/plaid/models/country_code.rb +56 -0
- data/lib/plaid/models/country_code1.rb +36 -0
- data/lib/plaid/models/credit.rb +80 -0
- data/lib/plaid/models/credit_account.rb +83 -0
- data/lib/plaid/models/credit_card_liability.rb +164 -0
- data/lib/plaid/models/credit_filter.rb +78 -0
- data/lib/plaid/models/currency.rb +37 -0
- data/lib/plaid/models/customer_initiated_return_risk.rb +100 -0
- data/lib/plaid/models/decision.rb +48 -0
- data/lib/plaid/models/deductions.rb +103 -0
- data/lib/plaid/models/default_update_webhook.rb +119 -0
- data/lib/plaid/models/deposit_switch_address_data.rb +110 -0
- data/lib/plaid/models/deposit_switch_alt_create_request.rb +132 -0
- data/lib/plaid/models/deposit_switch_alt_create_response.rb +87 -0
- data/lib/plaid/models/deposit_switch_create_request.rb +133 -0
- data/lib/plaid/models/deposit_switch_create_request_options.rb +99 -0
- data/lib/plaid/models/deposit_switch_create_response.rb +87 -0
- data/lib/plaid/models/deposit_switch_get_request.rb +99 -0
- data/lib/plaid/models/deposit_switch_get_response.rb +277 -0
- data/lib/plaid/models/deposit_switch_state_update_webhook.rb +116 -0
- data/lib/plaid/models/deposit_switch_target_account.rb +106 -0
- data/lib/plaid/models/deposit_switch_target_user.rb +121 -0
- data/lib/plaid/models/deposit_switch_token_create_request.rb +100 -0
- data/lib/plaid/models/deposit_switch_token_create_response.rb +101 -0
- data/lib/plaid/models/depository.rb +80 -0
- data/lib/plaid/models/depository_account.rb +147 -0
- data/lib/plaid/models/depository_filter.rb +78 -0
- data/lib/plaid/models/distribution_details.rb +126 -0
- data/lib/plaid/models/document_metadata.rb +96 -0
- data/lib/plaid/models/earnings.rb +104 -0
- data/lib/plaid/models/earnings_total.rb +133 -0
- data/lib/plaid/models/email.rb +91 -0
- data/lib/plaid/models/employee.rb +107 -0
- data/lib/plaid/models/employee2.rb +85 -0
- data/lib/plaid/models/employee_income_summary_field_string.rb +90 -0
- data/lib/plaid/models/employer.rb +102 -0
- data/lib/plaid/models/employer2.rb +86 -0
- data/lib/plaid/models/employer3.rb +74 -0
- data/lib/plaid/models/employer_income_summary_field_string.rb +90 -0
- data/lib/plaid/models/employers_search_request.rb +107 -0
- data/lib/plaid/models/employers_search_response.rb +93 -0
- data/lib/plaid/models/employment_details.rb +88 -0
- data/lib/plaid/models/error.rb +172 -0
- data/lib/plaid/models/error_type.rb +76 -0
- data/lib/plaid/models/external_payment_refund_details.rb +92 -0
- data/lib/plaid/models/external_payment_schedule_base.rb +147 -0
- data/lib/plaid/models/external_payment_schedule_get.rb +140 -0
- data/lib/plaid/models/external_payment_schedule_request.rb +144 -0
- data/lib/plaid/models/fee_type.rb +287 -0
- data/lib/plaid/models/health_incident.rb +130 -0
- data/lib/plaid/models/historical_balance.rb +118 -0
- data/lib/plaid/models/historical_update_webhook.rb +124 -0
- data/lib/plaid/models/holding.rb +169 -0
- data/lib/plaid/models/holdings_default_update_webhook.rb +129 -0
- data/lib/plaid/models/holdings_override.rb +133 -0
- data/lib/plaid/models/identity_get_request.rb +107 -0
- data/lib/plaid/models/identity_get_request_options.rb +78 -0
- data/lib/plaid/models/identity_get_response.rb +101 -0
- data/lib/plaid/models/incident_update.rb +106 -0
- data/lib/plaid/models/income_breakdown.rb +106 -0
- data/lib/plaid/models/income_override.rb +84 -0
- data/lib/plaid/models/income_summary.rb +137 -0
- data/lib/plaid/models/income_summary_field_number.rb +90 -0
- data/lib/plaid/models/income_summary_field_string.rb +90 -0
- data/lib/plaid/models/income_verification_create_request.rb +99 -0
- data/lib/plaid/models/income_verification_create_response.rb +88 -0
- data/lib/plaid/models/income_verification_documents_download_request.rb +114 -0
- data/lib/plaid/models/income_verification_documents_download_response.rb +73 -0
- data/lib/plaid/models/income_verification_paystub_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_paystub_get_response.rb +100 -0
- data/lib/plaid/models/income_verification_paystubs_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_paystubs_get_response.rb +133 -0
- data/lib/plaid/models/income_verification_precheck_employer.rb +88 -0
- data/lib/plaid/models/income_verification_precheck_military_info.rb +90 -0
- data/lib/plaid/models/income_verification_precheck_request.rb +141 -0
- data/lib/plaid/models/income_verification_precheck_response.rb +101 -0
- data/lib/plaid/models/income_verification_precheck_user.rb +110 -0
- data/lib/plaid/models/income_verification_refresh_request.rb +114 -0
- data/lib/plaid/models/income_verification_refresh_response.rb +90 -0
- data/lib/plaid/models/income_verification_status_webhook.rb +117 -0
- data/lib/plaid/models/income_verification_summary_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_summary_get_response.rb +109 -0
- data/lib/plaid/models/income_verification_taxforms_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_taxforms_get_response.rb +129 -0
- data/lib/plaid/models/income_verification_webhook_status.rb +72 -0
- data/lib/plaid/models/inflow_model.rb +136 -0
- data/lib/plaid/models/initial_update_webhook.rb +121 -0
- data/lib/plaid/models/institution.rb +213 -0
- data/lib/plaid/models/institution_status.rb +211 -0
- data/lib/plaid/models/institutions_get_by_id_request.rb +120 -0
- data/lib/plaid/models/institutions_get_by_id_request_options.rb +131 -0
- data/lib/plaid/models/institutions_get_by_id_response.rb +85 -0
- data/lib/plaid/models/institutions_get_request.rb +125 -0
- data/lib/plaid/models/institutions_get_request_options.rb +154 -0
- data/lib/plaid/models/institutions_get_response.rb +102 -0
- data/lib/plaid/models/institutions_search_account_filter.rb +105 -0
- data/lib/plaid/models/institutions_search_payment_initiation_options.rb +77 -0
- data/lib/plaid/models/institutions_search_request.rb +132 -0
- data/lib/plaid/models/institutions_search_request_options.rb +136 -0
- data/lib/plaid/models/institutions_search_response.rb +94 -0
- data/lib/plaid/models/investment.rb +80 -0
- data/lib/plaid/models/investment_account_subtype.rb +501 -0
- data/lib/plaid/models/investment_filter.rb +78 -0
- data/lib/plaid/models/investment_holdings_get_request_options.rb +78 -0
- data/lib/plaid/models/investment_transaction.rb +231 -0
- data/lib/plaid/models/investments_holdings_get_request.rb +109 -0
- data/lib/plaid/models/investments_holdings_get_response.rb +142 -0
- data/lib/plaid/models/investments_transactions_get_request.rb +130 -0
- data/lib/plaid/models/investments_transactions_get_request_options.rb +96 -0
- data/lib/plaid/models/investments_transactions_get_response.rb +156 -0
- data/lib/plaid/models/investments_transactions_override.rb +151 -0
- data/lib/plaid/models/item.rb +173 -0
- data/lib/plaid/models/item_access_token_invalidate_request.rb +98 -0
- data/lib/plaid/models/item_access_token_invalidate_response.rb +86 -0
- data/lib/plaid/models/item_application_list_request.rb +100 -0
- data/lib/plaid/models/item_application_list_response.rb +95 -0
- data/lib/plaid/models/item_application_list_user_auth.rb +93 -0
- data/lib/plaid/models/item_application_scopes_update_request.rb +143 -0
- data/lib/plaid/models/item_application_scopes_update_response.rb +77 -0
- data/lib/plaid/models/item_error_webhook.rb +105 -0
- data/lib/plaid/models/item_get_request.rb +97 -0
- data/lib/plaid/models/item_get_response.rb +95 -0
- data/lib/plaid/models/item_import_request.rb +117 -0
- data/lib/plaid/models/item_import_request_options.rb +76 -0
- data/lib/plaid/models/item_import_request_user_auth.rb +83 -0
- data/lib/plaid/models/item_import_response.rb +84 -0
- data/lib/plaid/models/item_product_ready_webhook.rb +106 -0
- data/lib/plaid/models/item_public_token_create_request.rb +98 -0
- data/lib/plaid/models/item_public_token_create_response.rb +107 -0
- data/lib/plaid/models/item_public_token_exchange_request.rb +99 -0
- data/lib/plaid/models/item_public_token_exchange_response.rb +95 -0
- data/lib/plaid/models/item_remove_request.rb +97 -0
- data/lib/plaid/models/item_remove_response.rb +76 -0
- data/lib/plaid/models/item_status.rb +99 -0
- data/lib/plaid/models/item_status_investments.rb +114 -0
- data/lib/plaid/models/item_status_last_webhook.rb +98 -0
- data/lib/plaid/models/item_status_nullable.rb +99 -0
- data/lib/plaid/models/item_status_transactions.rb +114 -0
- data/lib/plaid/models/item_webhook_update_request.rb +107 -0
- data/lib/plaid/models/item_webhook_update_response.rb +85 -0
- data/lib/plaid/models/jwk_public_key.rb +150 -0
- data/lib/plaid/models/jwt_header.rb +72 -0
- data/lib/plaid/models/liabilities_default_update_webhook.rb +135 -0
- data/lib/plaid/models/liabilities_get_request.rb +108 -0
- data/lib/plaid/models/liabilities_get_request_options.rb +79 -0
- data/lib/plaid/models/liabilities_get_response.rb +111 -0
- data/lib/plaid/models/liabilities_object.rb +121 -0
- data/lib/plaid/models/liability_override.rb +326 -0
- data/lib/plaid/models/link_token_account_filters.rb +120 -0
- data/lib/plaid/models/link_token_create_request.rb +378 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes.rb +118 -0
- data/lib/plaid/models/link_token_create_request_auth.rb +77 -0
- data/lib/plaid/models/link_token_create_request_deposit_switch.rb +77 -0
- data/lib/plaid/models/link_token_create_request_income_verification.rb +94 -0
- data/lib/plaid/models/link_token_create_request_payment_initiation.rb +77 -0
- data/lib/plaid/models/link_token_create_request_update.rb +82 -0
- data/lib/plaid/models/link_token_create_request_user.rb +201 -0
- data/lib/plaid/models/link_token_create_response.rb +107 -0
- data/lib/plaid/models/link_token_eu_config.rb +75 -0
- data/lib/plaid/models/link_token_get_metadata_response.rb +140 -0
- data/lib/plaid/models/link_token_get_request.rb +97 -0
- data/lib/plaid/models/link_token_get_response.rb +132 -0
- data/lib/plaid/models/loan.rb +80 -0
- data/lib/plaid/models/loan_account.rb +173 -0
- data/lib/plaid/models/loan_filter.rb +78 -0
- data/lib/plaid/models/meta.rb +90 -0
- data/lib/plaid/models/mfa.rb +124 -0
- data/lib/plaid/models/mortgage_interest_rate.rb +86 -0
- data/lib/plaid/models/mortgage_liability.rb +295 -0
- data/lib/plaid/models/mortgage_property_address.rb +114 -0
- data/lib/plaid/models/net_pay.rb +96 -0
- data/lib/plaid/models/new_accounts_available_webhook.rb +115 -0
- data/lib/plaid/models/new_payment_status.rb +73 -0
- data/lib/plaid/models/numbers.rb +157 -0
- data/lib/plaid/models/numbers_ach.rb +113 -0
- data/lib/plaid/models/numbers_ach_nullable.rb +112 -0
- data/lib/plaid/models/numbers_bacs.rb +92 -0
- data/lib/plaid/models/numbers_bacs_nullable.rb +91 -0
- data/lib/plaid/models/numbers_eft.rb +101 -0
- data/lib/plaid/models/numbers_eft_nullable.rb +100 -0
- data/lib/plaid/models/numbers_international.rb +91 -0
- data/lib/plaid/models/numbers_international_nullable.rb +90 -0
- data/lib/plaid/models/old_payment_status.rb +73 -0
- data/lib/plaid/models/override_account_type.rb +56 -0
- data/lib/plaid/models/override_accounts.rb +230 -0
- data/lib/plaid/models/owner.rb +141 -0
- data/lib/plaid/models/owner_override.rb +131 -0
- data/lib/plaid/models/pay.rb +88 -0
- data/lib/plaid/models/pay_frequency.rb +90 -0
- data/lib/plaid/models/pay_frequency1.rb +45 -0
- data/lib/plaid/models/pay_period_details.rb +119 -0
- data/lib/plaid/models/payment_amount.rb +84 -0
- data/lib/plaid/models/payment_channel.rb +43 -0
- data/lib/plaid/models/payment_initiation_address.rb +103 -0
- data/lib/plaid/models/payment_initiation_metadata.rb +117 -0
- data/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb +85 -0
- data/lib/plaid/models/payment_initiation_payment.rb +242 -0
- data/lib/plaid/models/payment_initiation_payment_create_request.rb +140 -0
- data/lib/plaid/models/payment_initiation_payment_create_response.rb +95 -0
- data/lib/plaid/models/payment_initiation_payment_get_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_payment_get_response.rb +254 -0
- data/lib/plaid/models/payment_initiation_payment_list_request.rb +124 -0
- data/lib/plaid/models/payment_initiation_payment_list_response.rb +115 -0
- data/lib/plaid/models/payment_initiation_payment_reverse_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_payment_reverse_response.rb +99 -0
- data/lib/plaid/models/payment_initiation_payment_token_create_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_payment_token_create_response.rb +107 -0
- data/lib/plaid/models/payment_initiation_recipient.rb +131 -0
- data/lib/plaid/models/payment_initiation_recipient_create_request.rb +133 -0
- data/lib/plaid/models/payment_initiation_recipient_create_response.rb +85 -0
- data/lib/plaid/models/payment_initiation_recipient_get_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_recipient_get_response.rb +144 -0
- data/lib/plaid/models/payment_initiation_recipient_list_request.rb +89 -0
- data/lib/plaid/models/payment_initiation_recipient_list_response.rb +94 -0
- data/lib/plaid/models/payment_initiation_refund.rb +116 -0
- data/lib/plaid/models/payment_initiation_standing_order_metadata.rb +108 -0
- data/lib/plaid/models/payment_meta.rb +156 -0
- data/lib/plaid/models/payment_options.rb +122 -0
- data/lib/plaid/models/payment_schedule_interval.rb +36 -0
- data/lib/plaid/models/payment_status_update_webhook.rb +234 -0
- data/lib/plaid/models/paystub.rb +186 -0
- data/lib/plaid/models/paystub_deduction.rb +95 -0
- data/lib/plaid/models/paystub_details.rb +127 -0
- data/lib/plaid/models/paystub_override.rb +116 -0
- data/lib/plaid/models/paystub_ytd_details.rb +90 -0
- data/lib/plaid/models/pending_expiration_webhook.rb +112 -0
- data/lib/plaid/models/personal_finance_category.rb +87 -0
- data/lib/plaid/models/personal_finance_category2.rb +83 -0
- data/lib/plaid/models/phone_number.rb +91 -0
- data/lib/plaid/models/processor.rb +116 -0
- data/lib/plaid/models/processor_apex_processor_token_create_request.rb +108 -0
- data/lib/plaid/models/processor_auth_get_request.rb +100 -0
- data/lib/plaid/models/processor_auth_get_response.rb +98 -0
- data/lib/plaid/models/processor_balance_get_request.rb +111 -0
- data/lib/plaid/models/processor_balance_get_request_options.rb +98 -0
- data/lib/plaid/models/processor_balance_get_response.rb +85 -0
- data/lib/plaid/models/processor_bank_transfer_create_request.rb +248 -0
- data/lib/plaid/models/processor_bank_transfer_create_response.rb +84 -0
- data/lib/plaid/models/processor_identity_get_request.rb +101 -0
- data/lib/plaid/models/processor_identity_get_response.rb +85 -0
- data/lib/plaid/models/processor_number.rb +111 -0
- data/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb +108 -0
- data/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb +87 -0
- data/lib/plaid/models/processor_token_create_request.rb +116 -0
- data/lib/plaid/models/processor_token_create_response.rb +87 -0
- data/lib/plaid/models/product_access.rb +112 -0
- data/lib/plaid/models/product_data_type.rb +40 -0
- data/lib/plaid/models/product_status.rb +106 -0
- data/lib/plaid/models/products.rb +86 -0
- data/lib/plaid/models/projected_income_summary_field_number.rb +90 -0
- data/lib/plaid/models/pslf_status.rb +103 -0
- data/lib/plaid/models/recaptcha_required_error.rb +143 -0
- data/lib/plaid/models/recipient_bacs.rb +87 -0
- data/lib/plaid/models/recipient_bacs_nullable.rb +85 -0
- data/lib/plaid/models/refresh_interval.rb +42 -0
- data/lib/plaid/models/requested_scopes.rb +124 -0
- data/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb +97 -0
- data/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb +76 -0
- data/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb +128 -0
- data/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb +76 -0
- data/lib/plaid/models/sandbox_income_fire_webhook_request.rb +125 -0
- data/lib/plaid/models/sandbox_income_fire_webhook_response.rb +77 -0
- data/lib/plaid/models/sandbox_item_fire_webhook_request.rb +109 -0
- data/lib/plaid/models/sandbox_item_fire_webhook_response.rb +85 -0
- data/lib/plaid/models/sandbox_item_reset_login_request.rb +98 -0
- data/lib/plaid/models/sandbox_item_reset_login_response.rb +85 -0
- data/lib/plaid/models/sandbox_item_set_verification_status_request.rb +118 -0
- data/lib/plaid/models/sandbox_item_set_verification_status_response.rb +77 -0
- data/lib/plaid/models/sandbox_oauth_select_accounts_request.rb +83 -0
- data/lib/plaid/models/sandbox_processor_token_create_request.rb +111 -0
- data/lib/plaid/models/sandbox_processor_token_create_request_options.rb +92 -0
- data/lib/plaid/models/sandbox_processor_token_create_response.rb +85 -0
- data/lib/plaid/models/sandbox_public_token_create_request.rb +123 -0
- data/lib/plaid/models/sandbox_public_token_create_request_options.rb +116 -0
- data/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb +88 -0
- data/lib/plaid/models/sandbox_public_token_create_response.rb +86 -0
- data/lib/plaid/models/sandbox_transfer_simulate_request.rb +124 -0
- data/lib/plaid/models/sandbox_transfer_simulate_response.rb +76 -0
- data/lib/plaid/models/scopes.rb +109 -0
- data/lib/plaid/models/scopes_context.rb +38 -0
- data/lib/plaid/models/scopes_nullable.rb +109 -0
- data/lib/plaid/models/security.rb +252 -0
- data/lib/plaid/models/security_override.rb +131 -0
- data/lib/plaid/models/sell_type.rb +105 -0
- data/lib/plaid/models/sender_bacs_nullable.rb +85 -0
- data/lib/plaid/models/servicer_address_data.rb +117 -0
- data/lib/plaid/models/signal_decision_report_request.rb +110 -0
- data/lib/plaid/models/signal_decision_report_response.rb +77 -0
- data/lib/plaid/models/signal_evaluate_core_attributes.rb +662 -0
- data/lib/plaid/models/signal_evaluate_device.rb +90 -0
- data/lib/plaid/models/signal_evaluate_request.rb +163 -0
- data/lib/plaid/models/signal_evaluate_response.rb +99 -0
- data/lib/plaid/models/signal_evaluate_scores.rb +108 -0
- data/lib/plaid/models/signal_person_name.rb +122 -0
- data/lib/plaid/models/signal_return_report_request.rb +110 -0
- data/lib/plaid/models/signal_return_report_response.rb +77 -0
- data/lib/plaid/models/signal_user.rb +111 -0
- data/lib/plaid/models/standalone_account_type.rb +115 -0
- data/lib/plaid/models/standalone_currency_code_list.rb +86 -0
- data/lib/plaid/models/standalone_investment_transaction_type.rb +119 -0
- data/lib/plaid/models/state.rb +49 -0
- data/lib/plaid/models/status.rb +41 -0
- data/lib/plaid/models/status1.rb +48 -0
- data/lib/plaid/models/status2.rb +49 -0
- data/lib/plaid/models/status3.rb +73 -0
- data/lib/plaid/models/status_breakdown.rb +111 -0
- data/lib/plaid/models/student_loan.rb +367 -0
- data/lib/plaid/models/student_loan_repayment_model.rb +95 -0
- data/lib/plaid/models/student_loan_status.rb +86 -0
- data/lib/plaid/models/student_repayment_plan.rb +84 -0
- data/lib/plaid/models/subtype.rb +209 -0
- data/lib/plaid/models/switch_method.rb +45 -0
- data/lib/plaid/models/taxform.rb +84 -0
- data/lib/plaid/models/taxpayer_id.rb +89 -0
- data/lib/plaid/models/total.rb +110 -0
- data/lib/plaid/models/transaction.rb +426 -0
- data/lib/plaid/models/transaction_base.rb +285 -0
- data/lib/plaid/models/transaction_code.rb +87 -0
- data/lib/plaid/models/transaction_data.rb +112 -0
- data/lib/plaid/models/transaction_location.rb +143 -0
- data/lib/plaid/models/transaction_override.rb +119 -0
- data/lib/plaid/models/transaction_type.rb +48 -0
- data/lib/plaid/models/transactions_get_request.rb +128 -0
- data/lib/plaid/models/transactions_get_request_options.rb +139 -0
- data/lib/plaid/models/transactions_get_response.rb +138 -0
- data/lib/plaid/models/transactions_refresh_request.rb +98 -0
- data/lib/plaid/models/transactions_refresh_response.rb +77 -0
- data/lib/plaid/models/transactions_removed_webhook.rb +119 -0
- data/lib/plaid/models/transactions_update_investments_webhook.rb +134 -0
- data/lib/plaid/models/transfer.rb +229 -0
- data/lib/plaid/models/transfer_authorization.rb +126 -0
- data/lib/plaid/models/transfer_authorization_create_request.rb +197 -0
- data/lib/plaid/models/transfer_authorization_create_response.rb +86 -0
- data/lib/plaid/models/transfer_authorization_decision_rationale.rb +96 -0
- data/lib/plaid/models/transfer_authorization_device.rb +86 -0
- data/lib/plaid/models/transfer_authorization_proposed_transfer.rb +150 -0
- data/lib/plaid/models/transfer_cancel_request.rb +97 -0
- data/lib/plaid/models/transfer_cancel_response.rb +76 -0
- data/lib/plaid/models/transfer_create_request.rb +241 -0
- data/lib/plaid/models/transfer_create_response.rb +84 -0
- data/lib/plaid/models/transfer_event.rb +171 -0
- data/lib/plaid/models/transfer_event_list_request.rb +214 -0
- data/lib/plaid/models/transfer_event_list_response.rb +93 -0
- data/lib/plaid/models/transfer_event_sync_request.rb +110 -0
- data/lib/plaid/models/transfer_event_sync_response.rb +93 -0
- data/lib/plaid/models/transfer_event_type.rb +52 -0
- data/lib/plaid/models/transfer_failure.rb +93 -0
- data/lib/plaid/models/transfer_get_request.rb +97 -0
- data/lib/plaid/models/transfer_get_response.rb +84 -0
- data/lib/plaid/models/transfer_list_request.rb +163 -0
- data/lib/plaid/models/transfer_list_response.rb +93 -0
- data/lib/plaid/models/transfer_network.rb +37 -0
- data/lib/plaid/models/transfer_status.rb +48 -0
- data/lib/plaid/models/transfer_type.rb +146 -0
- data/lib/plaid/models/transfer_type1.rb +38 -0
- data/lib/plaid/models/transfer_type2.rb +38 -0
- data/lib/plaid/models/transfer_user_address_in_request.rb +114 -0
- data/lib/plaid/models/transfer_user_address_in_response.rb +114 -0
- data/lib/plaid/models/transfer_user_in_request.rb +105 -0
- data/lib/plaid/models/transfer_user_in_response.rb +104 -0
- data/lib/plaid/models/type.rb +52 -0
- data/lib/plaid/models/type1.rb +40 -0
- data/lib/plaid/models/type2.rb +100 -0
- data/lib/plaid/models/type3.rb +68 -0
- data/lib/plaid/models/type4.rb +60 -0
- data/lib/plaid/models/type5.rb +41 -0
- data/lib/plaid/models/unofficial_currency_code_list.rb +252 -0
- data/lib/plaid/models/update_type.rb +39 -0
- data/lib/plaid/models/user_custom_password.rb +166 -0
- data/lib/plaid/models/user_permission_revoked_webhook.rb +110 -0
- data/lib/plaid/models/value.rb +52 -0
- data/lib/plaid/models/verification_expired_webhook.rb +102 -0
- data/lib/plaid/models/verification_refresh_status.rb +29 -0
- data/lib/plaid/models/verification_status.rb +53 -0
- data/lib/plaid/models/verification_status1.rb +36 -0
- data/lib/plaid/models/verification_status3.rb +48 -0
- data/lib/plaid/models/verification_status4.rb +65 -0
- data/lib/plaid/models/w2.rb +346 -0
- data/lib/plaid/models/w2_box12.rb +88 -0
- data/lib/plaid/models/w2_state_and_local_wages.rb +152 -0
- data/lib/plaid/models/warning.rb +98 -0
- data/lib/plaid/models/webhook_update_acknowledged_webhook.rb +118 -0
- data/lib/plaid/models/webhook_verification_key_get_request.rb +98 -0
- data/lib/plaid/models/webhook_verification_key_get_response.rb +86 -0
- data/lib/plaid/models/ytd_gross_income_summary_field_number.rb +90 -0
- data/lib/plaid/models/ytd_net_income_summary_field_number.rb +90 -0
- data/lib/plaid/utilities/date_time_helper.rb +11 -0
- data/lib/plaid/utilities/file_wrapper.rb +28 -0
- data/lib/plaid.rb +565 -0
- metadata +625 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# The type of bank transfer. This will be either `debit` or `credit`. A
|
|
8
|
+
# `debit` indicates a transfer of money into the origination account; a
|
|
9
|
+
# `credit` indicates a transfer of money out of the origination account.
|
|
10
|
+
class BankTransferType
|
|
11
|
+
BANK_TRANSFER_TYPE = [
|
|
12
|
+
# TODO: Write general description for DEBIT
|
|
13
|
+
DEBIT = 'debit'.freeze,
|
|
14
|
+
|
|
15
|
+
# TODO: Write general description for CREDIT
|
|
16
|
+
CREDIT = 'credit'.freeze
|
|
17
|
+
].freeze
|
|
18
|
+
|
|
19
|
+
def self.validate(value)
|
|
20
|
+
return false if value.nil?
|
|
21
|
+
|
|
22
|
+
true
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.from_value(value, default_value = DEBIT)
|
|
26
|
+
return default_value if value.nil?
|
|
27
|
+
|
|
28
|
+
str = value.to_s.strip
|
|
29
|
+
|
|
30
|
+
case str.downcase
|
|
31
|
+
when 'debit' then DEBIT
|
|
32
|
+
when 'credit' then CREDIT
|
|
33
|
+
else
|
|
34
|
+
default_value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# The type of bank transfer. This will be either `debit` or `credit`. A
|
|
8
|
+
# `debit` indicates a transfer of money into your origination account; a
|
|
9
|
+
# `credit` indicates a transfer of money out of your origination account.
|
|
10
|
+
class BankTransferType1
|
|
11
|
+
BANK_TRANSFER_TYPE1 = [
|
|
12
|
+
# TODO: Write general description for DEBIT
|
|
13
|
+
DEBIT = 'debit'.freeze,
|
|
14
|
+
|
|
15
|
+
# TODO: Write general description for CREDIT
|
|
16
|
+
CREDIT = 'credit'.freeze
|
|
17
|
+
].freeze
|
|
18
|
+
|
|
19
|
+
def self.validate(value)
|
|
20
|
+
return false if value.nil?
|
|
21
|
+
|
|
22
|
+
true
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.from_value(value, default_value = DEBIT)
|
|
26
|
+
return default_value if value.nil?
|
|
27
|
+
|
|
28
|
+
str = value.to_s.strip
|
|
29
|
+
|
|
30
|
+
case str.downcase
|
|
31
|
+
when 'debit' then DEBIT
|
|
32
|
+
when 'credit' then CREDIT
|
|
33
|
+
else
|
|
34
|
+
default_value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# The legal name and other information for the account holder.
|
|
8
|
+
class BankTransferUser < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The account holder’s full legal name. If the transfer description is
|
|
13
|
+
# `ccd`, this should be the business name of the account holder.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :legal_name
|
|
16
|
+
|
|
17
|
+
# The account holder’s email.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :email_address
|
|
20
|
+
|
|
21
|
+
# The account holder's routing number. This field is only used in response
|
|
22
|
+
# data. Do not provide this field when making requests.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :routing_number
|
|
25
|
+
|
|
26
|
+
# A mapping from model property names to API property names.
|
|
27
|
+
def self.names
|
|
28
|
+
@_hash = {} if @_hash.nil?
|
|
29
|
+
@_hash['legal_name'] = 'legal_name'
|
|
30
|
+
@_hash['email_address'] = 'email_address'
|
|
31
|
+
@_hash['routing_number'] = 'routing_number'
|
|
32
|
+
@_hash
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# An array for optional fields
|
|
36
|
+
def self.optionals
|
|
37
|
+
%w[
|
|
38
|
+
email_address
|
|
39
|
+
routing_number
|
|
40
|
+
]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for nullable fields
|
|
44
|
+
def self.nullables
|
|
45
|
+
%w[
|
|
46
|
+
email_address
|
|
47
|
+
]
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def initialize(legal_name:, email_address: SKIP, routing_number: SKIP,
|
|
51
|
+
additional_properties: nil)
|
|
52
|
+
# Add additional model properties to the instance
|
|
53
|
+
additional_properties = {} if additional_properties.nil?
|
|
54
|
+
|
|
55
|
+
@legal_name = legal_name
|
|
56
|
+
@email_address = email_address unless email_address == SKIP
|
|
57
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
58
|
+
@additional_properties = additional_properties
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Creates an instance of the object from a hash.
|
|
62
|
+
def self.from_hash(hash)
|
|
63
|
+
return nil unless hash
|
|
64
|
+
|
|
65
|
+
# Extract variables from the hash.
|
|
66
|
+
legal_name = hash.key?('legal_name') ? hash['legal_name'] : nil
|
|
67
|
+
email_address = hash.key?('email_address') ? hash['email_address'] : SKIP
|
|
68
|
+
routing_number =
|
|
69
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
70
|
+
|
|
71
|
+
# Create a new hash for additional properties, removing known properties.
|
|
72
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
73
|
+
|
|
74
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
75
|
+
new_hash, proc { |value| value }
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# Create object from extracted values.
|
|
79
|
+
BankTransferUser.new(legal_name: legal_name,
|
|
80
|
+
email_address: email_address,
|
|
81
|
+
routing_number: routing_number,
|
|
82
|
+
additional_properties: additional_properties)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Provides a human-readable string representation of the object.
|
|
86
|
+
def to_s
|
|
87
|
+
class_name = self.class.name.split('::').last
|
|
88
|
+
"<#{class_name} legal_name: #{@legal_name}, email_address: #{@email_address},"\
|
|
89
|
+
" routing_number: #{@routing_number}, additional_properties: #{@additional_properties}>"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
93
|
+
def inspect
|
|
94
|
+
class_name = self.class.name.split('::').last
|
|
95
|
+
"<#{class_name} legal_name: #{@legal_name.inspect}, email_address:"\
|
|
96
|
+
" #{@email_address.inspect}, routing_number: #{@routing_number.inspect},"\
|
|
97
|
+
" additional_properties: #{@additional_properties}>"
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# Fired when new bank transfer events are available. Receiving this webhook
|
|
8
|
+
# indicates you should fetch the new events from `/bank_transfer/event/sync`.
|
|
9
|
+
class BankTransfersEventsUpdateWebhook < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# `BANK_TRANSFERS`
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :webhook_type
|
|
16
|
+
|
|
17
|
+
# `BANK_TRANSFERS_EVENTS_UPDATE`
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :webhook_code
|
|
20
|
+
|
|
21
|
+
# A mapping from model property names to API property names.
|
|
22
|
+
def self.names
|
|
23
|
+
@_hash = {} if @_hash.nil?
|
|
24
|
+
@_hash['webhook_type'] = 'webhook_type'
|
|
25
|
+
@_hash['webhook_code'] = 'webhook_code'
|
|
26
|
+
@_hash
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# An array for optional fields
|
|
30
|
+
def self.optionals
|
|
31
|
+
[]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# An array for nullable fields
|
|
35
|
+
def self.nullables
|
|
36
|
+
[]
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def initialize(webhook_type:, webhook_code:, additional_properties: nil)
|
|
40
|
+
# Add additional model properties to the instance
|
|
41
|
+
additional_properties = {} if additional_properties.nil?
|
|
42
|
+
|
|
43
|
+
@webhook_type = webhook_type
|
|
44
|
+
@webhook_code = webhook_code
|
|
45
|
+
@additional_properties = additional_properties
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Creates an instance of the object from a hash.
|
|
49
|
+
def self.from_hash(hash)
|
|
50
|
+
return nil unless hash
|
|
51
|
+
|
|
52
|
+
# Extract variables from the hash.
|
|
53
|
+
webhook_type = hash.key?('webhook_type') ? hash['webhook_type'] : nil
|
|
54
|
+
webhook_code = hash.key?('webhook_code') ? hash['webhook_code'] : nil
|
|
55
|
+
|
|
56
|
+
# Create a new hash for additional properties, removing known properties.
|
|
57
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
58
|
+
|
|
59
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
60
|
+
new_hash, proc { |value| value }
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
# Create object from extracted values.
|
|
64
|
+
BankTransfersEventsUpdateWebhook.new(webhook_type: webhook_type,
|
|
65
|
+
webhook_code: webhook_code,
|
|
66
|
+
additional_properties: additional_properties)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Provides a human-readable string representation of the object.
|
|
70
|
+
def to_s
|
|
71
|
+
class_name = self.class.name.split('::').last
|
|
72
|
+
"<#{class_name} webhook_type: #{@webhook_type}, webhook_code: #{@webhook_code},"\
|
|
73
|
+
" additional_properties: #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
77
|
+
def inspect
|
|
78
|
+
class_name = self.class.name.split('::').last
|
|
79
|
+
"<#{class_name} webhook_type: #{@webhook_type.inspect}, webhook_code:"\
|
|
80
|
+
" #{@webhook_code.inspect}, additional_properties: #{@additional_properties}>"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# Base model.
|
|
8
|
+
# rubocop:disable all
|
|
9
|
+
class BaseModel < CoreLibrary::BaseModel
|
|
10
|
+
# Returns a Hash representation of the current object.
|
|
11
|
+
def to_hash
|
|
12
|
+
# validating the model being serialized
|
|
13
|
+
self.class.validate(self) if self.class.respond_to?(:validate)
|
|
14
|
+
|
|
15
|
+
hash = {}
|
|
16
|
+
instance_variables.each do |name|
|
|
17
|
+
value = instance_variable_get(name)
|
|
18
|
+
name = name[1..]
|
|
19
|
+
if name == 'additional_properties'
|
|
20
|
+
additional_properties = process_additional_properties(value, self.class.names)
|
|
21
|
+
hash.merge!(additional_properties)
|
|
22
|
+
else
|
|
23
|
+
key = self.class.names.key?(name) ? self.class.names[name] : name
|
|
24
|
+
optional_fields = self.class.optionals
|
|
25
|
+
nullable_fields = self.class.nullables
|
|
26
|
+
if value.nil?
|
|
27
|
+
next unless nullable_fields.include?(name)
|
|
28
|
+
|
|
29
|
+
if !optional_fields.include?(name) && !nullable_fields.include?(name)
|
|
30
|
+
raise ArgumentError,
|
|
31
|
+
"`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value."
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
hash[key] = nil
|
|
36
|
+
unless value.nil?
|
|
37
|
+
if respond_to?("to_custom_#{name}")
|
|
38
|
+
if (value.instance_of? Array) || (value.instance_of? Hash)
|
|
39
|
+
params = [hash, key]
|
|
40
|
+
hash[key] = send("to_custom_#{name}", *params)
|
|
41
|
+
else
|
|
42
|
+
hash[key] = send("to_custom_#{name}")
|
|
43
|
+
end
|
|
44
|
+
elsif respond_to?("to_union_type_#{name}")
|
|
45
|
+
hash[key] = send("to_union_type_#{name}")
|
|
46
|
+
elsif value.instance_of? Array
|
|
47
|
+
hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
|
|
48
|
+
elsif value.instance_of? Hash
|
|
49
|
+
hash[key] = {}
|
|
50
|
+
value.each do |k, v|
|
|
51
|
+
hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v
|
|
52
|
+
end
|
|
53
|
+
else
|
|
54
|
+
hash[key] = value.is_a?(BaseModel) ? value.to_hash : value
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
hash
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Processes additional properties, ensuring no conflicts with existing properties.
|
|
63
|
+
def process_additional_properties(additional_properties, existing_prop_names)
|
|
64
|
+
hash = {}
|
|
65
|
+
additional_properties.each do |name, value|
|
|
66
|
+
check_for_conflict(name, existing_prop_names)
|
|
67
|
+
|
|
68
|
+
hash[name] = if value.is_a?(Array)
|
|
69
|
+
process_array(value)
|
|
70
|
+
elsif value.is_a?(Hash)
|
|
71
|
+
process_hash(value)
|
|
72
|
+
else
|
|
73
|
+
process_basic_value(value)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Checks if an additional property conflicts with a model's existing property.
|
|
80
|
+
def check_for_conflict(name, existing_prop_names)
|
|
81
|
+
return unless existing_prop_names.key?(name)
|
|
82
|
+
|
|
83
|
+
raise ArgumentError, "An additional property key, '#{name}' conflicts with one of the model's properties"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Processes an array of values, recursively calling `to_hash` on BaseModel objects.
|
|
87
|
+
def process_array(value)
|
|
88
|
+
value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Processes a hash of values, recursively calling `to_hash` on BaseModel objects.
|
|
92
|
+
def process_hash(value)
|
|
93
|
+
value.transform_values do |v|
|
|
94
|
+
v.is_a?(BaseModel) ? v.to_hash : v
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Processes a basic value (non-array, non-hash).
|
|
99
|
+
def process_basic_value(value)
|
|
100
|
+
value.is_a?(BaseModel) ? value.to_hash : value
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Returns a JSON representation of the curent object.
|
|
104
|
+
def to_json(options = {})
|
|
105
|
+
hash = to_hash
|
|
106
|
+
hash.to_json(options)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
# rubocop:enable all
|
|
110
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# If the user is currently serving in the US military, the branch of the
|
|
8
|
+
# military they are serving in
|
|
9
|
+
class Branch
|
|
10
|
+
BRANCH = [
|
|
11
|
+
# TODO: Write general description for ENUM_AIR_FORCE
|
|
12
|
+
ENUM_AIR_FORCE = 'AIR FORCE'.freeze,
|
|
13
|
+
|
|
14
|
+
# TODO: Write general description for ARMY
|
|
15
|
+
ARMY = 'ARMY'.freeze,
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for ENUM_COAST_GUARD
|
|
18
|
+
ENUM_COAST_GUARD = 'COAST GUARD'.freeze,
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for MARINES
|
|
21
|
+
MARINES = 'MARINES'.freeze,
|
|
22
|
+
|
|
23
|
+
# TODO: Write general description for NAVY
|
|
24
|
+
NAVY = 'NAVY'.freeze
|
|
25
|
+
].freeze
|
|
26
|
+
|
|
27
|
+
def self.validate(value)
|
|
28
|
+
return false if value.nil?
|
|
29
|
+
|
|
30
|
+
true
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.from_value(value, default_value = ENUM_AIR_FORCE)
|
|
34
|
+
return default_value if value.nil?
|
|
35
|
+
|
|
36
|
+
str = value.to_s.strip
|
|
37
|
+
|
|
38
|
+
case str.downcase
|
|
39
|
+
when 'enum_air_force' then ENUM_AIR_FORCE
|
|
40
|
+
when 'army' then ARMY
|
|
41
|
+
when 'enum_coast_guard' then ENUM_COAST_GUARD
|
|
42
|
+
when 'marines' then MARINES
|
|
43
|
+
when 'navy' then NAVY
|
|
44
|
+
else
|
|
45
|
+
default_value
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# Buying an investment
|
|
8
|
+
class BuyType < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Assignment of short option holding
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :assignment
|
|
15
|
+
|
|
16
|
+
# Inflow of assets into a tax-advantaged account
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :contribution
|
|
19
|
+
|
|
20
|
+
# Purchase to open or increase a position
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :buy
|
|
23
|
+
|
|
24
|
+
# Purchase to close a short position
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :buy_to_cover
|
|
27
|
+
|
|
28
|
+
# Purchase using proceeds from a cash dividend
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :dividend_reinvestment
|
|
31
|
+
|
|
32
|
+
# Purchase using proceeds from a cash interest payment
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :interest_reinvestment
|
|
35
|
+
|
|
36
|
+
# Purchase using long-term capital gain cash proceeds
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :long_term_capital_gain_reinvestment
|
|
39
|
+
|
|
40
|
+
# Purchase using short-term capital gain cash proceeds
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :short_term_capital_gain_reinvestment
|
|
43
|
+
|
|
44
|
+
# A mapping from model property names to API property names.
|
|
45
|
+
def self.names
|
|
46
|
+
@_hash = {} if @_hash.nil?
|
|
47
|
+
@_hash['assignment'] = 'assignment'
|
|
48
|
+
@_hash['contribution'] = 'contribution'
|
|
49
|
+
@_hash['buy'] = 'buy'
|
|
50
|
+
@_hash['buy_to_cover'] = 'buy to cover'
|
|
51
|
+
@_hash['dividend_reinvestment'] = 'dividend reinvestment'
|
|
52
|
+
@_hash['interest_reinvestment'] = 'interest reinvestment'
|
|
53
|
+
@_hash['long_term_capital_gain_reinvestment'] =
|
|
54
|
+
'long-term capital gain reinvestment'
|
|
55
|
+
@_hash['short_term_capital_gain_reinvestment'] =
|
|
56
|
+
'short-term capital gain reinvestment'
|
|
57
|
+
@_hash
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# An array for optional fields
|
|
61
|
+
def self.optionals
|
|
62
|
+
%w[
|
|
63
|
+
assignment
|
|
64
|
+
contribution
|
|
65
|
+
buy
|
|
66
|
+
buy_to_cover
|
|
67
|
+
dividend_reinvestment
|
|
68
|
+
interest_reinvestment
|
|
69
|
+
long_term_capital_gain_reinvestment
|
|
70
|
+
short_term_capital_gain_reinvestment
|
|
71
|
+
]
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# An array for nullable fields
|
|
75
|
+
def self.nullables
|
|
76
|
+
[]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def initialize(assignment: SKIP, contribution: SKIP, buy: SKIP,
|
|
80
|
+
buy_to_cover: SKIP, dividend_reinvestment: SKIP,
|
|
81
|
+
interest_reinvestment: SKIP,
|
|
82
|
+
long_term_capital_gain_reinvestment: SKIP,
|
|
83
|
+
short_term_capital_gain_reinvestment: SKIP,
|
|
84
|
+
additional_properties: nil)
|
|
85
|
+
# Add additional model properties to the instance
|
|
86
|
+
additional_properties = {} if additional_properties.nil?
|
|
87
|
+
|
|
88
|
+
@assignment = assignment unless assignment == SKIP
|
|
89
|
+
@contribution = contribution unless contribution == SKIP
|
|
90
|
+
@buy = buy unless buy == SKIP
|
|
91
|
+
@buy_to_cover = buy_to_cover unless buy_to_cover == SKIP
|
|
92
|
+
@dividend_reinvestment = dividend_reinvestment unless dividend_reinvestment == SKIP
|
|
93
|
+
@interest_reinvestment = interest_reinvestment unless interest_reinvestment == SKIP
|
|
94
|
+
unless long_term_capital_gain_reinvestment == SKIP
|
|
95
|
+
@long_term_capital_gain_reinvestment =
|
|
96
|
+
long_term_capital_gain_reinvestment
|
|
97
|
+
end
|
|
98
|
+
unless short_term_capital_gain_reinvestment == SKIP
|
|
99
|
+
@short_term_capital_gain_reinvestment =
|
|
100
|
+
short_term_capital_gain_reinvestment
|
|
101
|
+
end
|
|
102
|
+
@additional_properties = additional_properties
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Creates an instance of the object from a hash.
|
|
106
|
+
def self.from_hash(hash)
|
|
107
|
+
return nil unless hash
|
|
108
|
+
|
|
109
|
+
# Extract variables from the hash.
|
|
110
|
+
assignment = hash.key?('assignment') ? hash['assignment'] : SKIP
|
|
111
|
+
contribution = hash.key?('contribution') ? hash['contribution'] : SKIP
|
|
112
|
+
buy = hash.key?('buy') ? hash['buy'] : SKIP
|
|
113
|
+
buy_to_cover = hash.key?('buy to cover') ? hash['buy to cover'] : SKIP
|
|
114
|
+
dividend_reinvestment =
|
|
115
|
+
hash.key?('dividend reinvestment') ? hash['dividend reinvestment'] : SKIP
|
|
116
|
+
interest_reinvestment =
|
|
117
|
+
hash.key?('interest reinvestment') ? hash['interest reinvestment'] : SKIP
|
|
118
|
+
long_term_capital_gain_reinvestment =
|
|
119
|
+
hash.key?('long-term capital gain reinvestment') ? hash['long-term capital gain reinvestment'] : SKIP
|
|
120
|
+
short_term_capital_gain_reinvestment =
|
|
121
|
+
hash.key?('short-term capital gain reinvestment') ? hash['short-term capital gain reinvestment'] : SKIP
|
|
122
|
+
|
|
123
|
+
# Create a new hash for additional properties, removing known properties.
|
|
124
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
125
|
+
|
|
126
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
127
|
+
new_hash, proc { |value| value }
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
# Create object from extracted values.
|
|
131
|
+
BuyType.new(assignment: assignment,
|
|
132
|
+
contribution: contribution,
|
|
133
|
+
buy: buy,
|
|
134
|
+
buy_to_cover: buy_to_cover,
|
|
135
|
+
dividend_reinvestment: dividend_reinvestment,
|
|
136
|
+
interest_reinvestment: interest_reinvestment,
|
|
137
|
+
long_term_capital_gain_reinvestment: long_term_capital_gain_reinvestment,
|
|
138
|
+
short_term_capital_gain_reinvestment: short_term_capital_gain_reinvestment,
|
|
139
|
+
additional_properties: additional_properties)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Provides a human-readable string representation of the object.
|
|
143
|
+
def to_s
|
|
144
|
+
class_name = self.class.name.split('::').last
|
|
145
|
+
"<#{class_name} assignment: #{@assignment}, contribution: #{@contribution}, buy: #{@buy},"\
|
|
146
|
+
" buy_to_cover: #{@buy_to_cover}, dividend_reinvestment: #{@dividend_reinvestment},"\
|
|
147
|
+
" interest_reinvestment: #{@interest_reinvestment}, long_term_capital_gain_reinvestment:"\
|
|
148
|
+
" #{@long_term_capital_gain_reinvestment}, short_term_capital_gain_reinvestment:"\
|
|
149
|
+
" #{@short_term_capital_gain_reinvestment}, additional_properties:"\
|
|
150
|
+
" #{@additional_properties}>"
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
154
|
+
def inspect
|
|
155
|
+
class_name = self.class.name.split('::').last
|
|
156
|
+
"<#{class_name} assignment: #{@assignment.inspect}, contribution: #{@contribution.inspect},"\
|
|
157
|
+
" buy: #{@buy.inspect}, buy_to_cover: #{@buy_to_cover.inspect}, dividend_reinvestment:"\
|
|
158
|
+
" #{@dividend_reinvestment.inspect}, interest_reinvestment:"\
|
|
159
|
+
" #{@interest_reinvestment.inspect}, long_term_capital_gain_reinvestment:"\
|
|
160
|
+
" #{@long_term_capital_gain_reinvestment.inspect}, short_term_capital_gain_reinvestment:"\
|
|
161
|
+
" #{@short_term_capital_gain_reinvestment.inspect}, additional_properties:"\
|
|
162
|
+
" #{@additional_properties}>"
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# Commonly used term to describe the line item.
|
|
8
|
+
class CanonicalDescription
|
|
9
|
+
CANONICAL_DESCRIPTION = [
|
|
10
|
+
# TODO: Write general description for BONUS
|
|
11
|
+
BONUS = 'BONUS'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for COMMISSION
|
|
14
|
+
COMMISSION = 'COMMISSION'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for OVERTIME
|
|
17
|
+
OVERTIME = 'OVERTIME'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENUM_PAID_TIME_OFF
|
|
20
|
+
ENUM_PAID_TIME_OFF = 'PAID TIME OFF'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_REGULAR_PAY
|
|
23
|
+
ENUM_REGULAR_PAY = 'REGULAR PAY'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for VACATION
|
|
26
|
+
VACATION = 'VACATION'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for ENUM_EMPLOYEE_MEDICARE
|
|
29
|
+
ENUM_EMPLOYEE_MEDICARE = 'EMPLOYEE MEDICARE'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for FICA
|
|
32
|
+
FICA = 'FICA'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_SOCIAL_SECURITY_EMPLOYEE_TAX
|
|
35
|
+
ENUM_SOCIAL_SECURITY_EMPLOYEE_TAX = 'SOCIAL SECURITY EMPLOYEE TAX'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for MEDICAL
|
|
38
|
+
MEDICAL = 'MEDICAL'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for VISION
|
|
41
|
+
VISION = 'VISION'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for DENTAL
|
|
44
|
+
DENTAL = 'DENTAL'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for ENUM_NET_PAY
|
|
47
|
+
ENUM_NET_PAY = 'NET PAY'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for TAXES
|
|
50
|
+
TAXES = 'TAXES'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for NOT_FOUND
|
|
53
|
+
NOT_FOUND = 'NOT_FOUND'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for OTHER
|
|
56
|
+
OTHER = 'OTHER'.freeze
|
|
57
|
+
].freeze
|
|
58
|
+
|
|
59
|
+
def self.validate(value)
|
|
60
|
+
return false if value.nil?
|
|
61
|
+
|
|
62
|
+
true
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def self.from_value(value, default_value = BONUS)
|
|
66
|
+
return default_value if value.nil?
|
|
67
|
+
|
|
68
|
+
str = value.to_s.strip
|
|
69
|
+
|
|
70
|
+
case str.downcase
|
|
71
|
+
when 'bonus' then BONUS
|
|
72
|
+
when 'commission' then COMMISSION
|
|
73
|
+
when 'overtime' then OVERTIME
|
|
74
|
+
when 'enum_paid_time_off' then ENUM_PAID_TIME_OFF
|
|
75
|
+
when 'enum_regular_pay' then ENUM_REGULAR_PAY
|
|
76
|
+
when 'vacation' then VACATION
|
|
77
|
+
when 'enum_employee_medicare' then ENUM_EMPLOYEE_MEDICARE
|
|
78
|
+
when 'fica' then FICA
|
|
79
|
+
when 'enum_social_security_employee_tax' then ENUM_SOCIAL_SECURITY_EMPLOYEE_TAX
|
|
80
|
+
when 'medical' then MEDICAL
|
|
81
|
+
when 'vision' then VISION
|
|
82
|
+
when 'dental' then DENTAL
|
|
83
|
+
when 'enum_net_pay' then ENUM_NET_PAY
|
|
84
|
+
when 'taxes' then TAXES
|
|
85
|
+
when 'not_found' then NOT_FOUND
|
|
86
|
+
when 'other' then OTHER
|
|
87
|
+
else
|
|
88
|
+
default_value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|