plaid 14.0.0 → 14.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -2
- data/Gemfile.lock +2 -2
- data/Makefile +1 -1
- data/lib/plaid/api/plaid_api.rb +718 -5
- data/lib/plaid/api_client.rb +1 -1
- data/lib/plaid/api_error.rb +1 -1
- data/lib/plaid/configuration.rb +1 -1
- data/lib/plaid/models/account_access.rb +1 -1
- data/lib/plaid/models/account_assets.rb +3 -3
- data/lib/plaid/models/account_assets_all_of.rb +1 -1
- data/lib/plaid/models/account_balance.rb +2 -2
- data/lib/plaid/models/account_base.rb +3 -3
- data/lib/plaid/models/account_filter.rb +1 -1
- data/lib/plaid/models/account_filters_response.rb +1 -1
- data/lib/plaid/models/account_identity.rb +3 -3
- data/lib/plaid/models/account_identity_all_of.rb +1 -1
- data/lib/plaid/models/account_selection_cardinality.rb +1 -1
- data/lib/plaid/models/account_subtype.rb +2 -1
- data/lib/plaid/models/account_type.rb +1 -1
- data/lib/plaid/models/accounts_balance_get_request.rb +1 -1
- data/lib/plaid/models/accounts_balance_get_request_options.rb +2 -2
- data/lib/plaid/models/accounts_get_request.rb +1 -1
- data/lib/plaid/models/accounts_get_request_options.rb +1 -1
- data/lib/plaid/models/accounts_get_response.rb +1 -1
- data/lib/plaid/models/ach_class.rb +1 -1
- data/lib/plaid/models/address.rb +1 -1
- data/lib/plaid/models/address_data.rb +1 -1
- data/lib/plaid/models/address_data_nullable.rb +1 -1
- data/lib/plaid/models/address_nullable.rb +1 -1
- data/lib/plaid/models/application.rb +2 -2
- data/lib/plaid/models/application_get_request.rb +1 -1
- data/lib/plaid/models/application_get_response.rb +1 -1
- data/lib/plaid/models/apr.rb +1 -1
- data/lib/plaid/models/asset_report.rb +2 -2
- data/lib/plaid/models/asset_report_audit_copy_create_request.rb +1 -1
- data/lib/plaid/models/asset_report_audit_copy_create_response.rb +1 -1
- data/lib/plaid/models/asset_report_audit_copy_get_request.rb +1 -1
- data/lib/plaid/models/asset_report_audit_copy_remove_request.rb +1 -1
- data/lib/plaid/models/asset_report_audit_copy_remove_response.rb +1 -1
- data/lib/plaid/models/asset_report_create_request.rb +1 -1
- data/lib/plaid/models/asset_report_create_request_options.rb +1 -1
- data/lib/plaid/models/asset_report_create_response.rb +1 -1
- data/lib/plaid/models/asset_report_filter_request.rb +1 -1
- data/lib/plaid/models/asset_report_filter_response.rb +1 -1
- data/lib/plaid/models/asset_report_get_request.rb +1 -1
- data/lib/plaid/models/asset_report_get_response.rb +1 -1
- data/lib/plaid/models/asset_report_item.rb +2 -2
- data/lib/plaid/models/asset_report_pdf_get_request.rb +1 -1
- data/lib/plaid/models/asset_report_refresh_request.rb +1 -1
- data/lib/plaid/models/asset_report_refresh_request_options.rb +1 -1
- data/lib/plaid/models/asset_report_refresh_response.rb +1 -1
- data/lib/plaid/models/asset_report_remove_request.rb +1 -1
- data/lib/plaid/models/asset_report_remove_response.rb +1 -1
- data/lib/plaid/models/asset_report_transaction.rb +2 -2
- data/lib/plaid/models/asset_report_transaction_all_of.rb +1 -1
- data/lib/plaid/models/asset_report_user.rb +1 -1
- data/lib/plaid/models/assets_error_webhook.rb +1 -1
- data/lib/plaid/models/assets_product_ready_webhook.rb +1 -1
- data/lib/plaid/models/auth_get_numbers.rb +1 -1
- data/lib/plaid/models/auth_get_request.rb +1 -1
- data/lib/plaid/models/auth_get_request_options.rb +1 -1
- data/lib/plaid/models/auth_get_response.rb +1 -1
- data/lib/plaid/models/automatically_verified_webhook.rb +1 -1
- data/lib/plaid/models/bank_initiated_return_risk.rb +1 -1
- data/lib/plaid/models/bank_transfer.rb +2 -2
- data/lib/plaid/models/bank_transfer_balance.rb +1 -1
- data/lib/plaid/models/bank_transfer_balance_get_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_balance_get_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_cancel_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_cancel_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_create_request.rb +4 -4
- data/lib/plaid/models/bank_transfer_create_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_direction.rb +1 -1
- data/lib/plaid/models/bank_transfer_event.rb +1 -1
- data/lib/plaid/models/bank_transfer_event_list_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_event_list_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_event_sync_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_event_sync_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_event_type.rb +1 -1
- data/lib/plaid/models/bank_transfer_failure.rb +1 -1
- data/lib/plaid/models/bank_transfer_get_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_get_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_list_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_list_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_migrate_account_request.rb +2 -2
- data/lib/plaid/models/bank_transfer_migrate_account_response.rb +2 -2
- data/lib/plaid/models/bank_transfer_network.rb +1 -1
- data/lib/plaid/models/bank_transfer_receiver_details.rb +1 -1
- data/lib/plaid/models/bank_transfer_status.rb +1 -1
- data/lib/plaid/models/bank_transfer_sweep.rb +316 -0
- data/lib/plaid/models/bank_transfer_sweep_account.rb +238 -0
- data/lib/plaid/models/bank_transfer_sweep_get_request.rb +277 -0
- data/lib/plaid/models/bank_transfer_sweep_get_response.rb +239 -0
- data/lib/plaid/models/bank_transfer_type.rb +1 -1
- data/lib/plaid/models/bank_transfer_user.rb +2 -2
- data/lib/plaid/models/bank_transfers_events_update_webhook.rb +1 -1
- data/lib/plaid/models/categories_get_response.rb +1 -1
- data/lib/plaid/models/category.rb +1 -1
- data/lib/plaid/models/cause.rb +1 -1
- data/lib/plaid/models/connected_application.rb +3 -3
- data/lib/plaid/models/country_code.rb +1 -1
- data/lib/plaid/models/credit_card_liability.rb +4 -4
- data/lib/plaid/models/credit_filter.rb +1 -1
- data/lib/plaid/models/customer_initiated_return_risk.rb +1 -1
- data/lib/plaid/models/deductions.rb +232 -0
- data/lib/plaid/models/default_update_webhook.rb +1 -1
- data/lib/plaid/models/deposit_switch_address_data.rb +1 -1
- data/lib/plaid/models/deposit_switch_alt_create_request.rb +1 -1
- data/lib/plaid/models/deposit_switch_alt_create_response.rb +1 -1
- data/lib/plaid/models/deposit_switch_create_request.rb +1 -1
- data/lib/plaid/models/deposit_switch_create_request_options.rb +1 -1
- data/lib/plaid/models/deposit_switch_create_response.rb +1 -1
- data/lib/plaid/models/deposit_switch_get_request.rb +1 -1
- data/lib/plaid/models/deposit_switch_get_response.rb +3 -3
- data/lib/plaid/models/deposit_switch_state_update_webhook.rb +1 -1
- data/lib/plaid/models/deposit_switch_target_account.rb +1 -1
- data/lib/plaid/models/deposit_switch_target_user.rb +1 -1
- data/lib/plaid/models/deposit_switch_token_create_request.rb +1 -1
- data/lib/plaid/models/deposit_switch_token_create_response.rb +2 -2
- data/lib/plaid/models/depository_filter.rb +1 -1
- data/lib/plaid/models/distribution_details.rb +263 -0
- data/lib/plaid/models/document_metadata.rb +240 -0
- data/lib/plaid/models/earnings.rb +232 -0
- data/lib/plaid/models/earnings_total.rb +304 -0
- data/lib/plaid/models/email.rb +1 -1
- data/lib/plaid/models/employee.rb +30 -6
- data/lib/plaid/models/employee_income_summary_field_string.rb +1 -1
- data/lib/plaid/models/employer.rb +1 -1
- data/lib/plaid/models/employer_income_summary_field_string.rb +1 -1
- data/lib/plaid/models/employers_search_request.rb +1 -1
- data/lib/plaid/models/employers_search_response.rb +1 -1
- data/lib/plaid/models/employment_details.rb +230 -0
- data/lib/plaid/models/error.rb +1 -1
- data/lib/plaid/models/external_payment_options.rb +1 -1
- data/lib/plaid/models/external_payment_refund_details.rb +1 -1
- data/lib/plaid/models/external_payment_schedule_base.rb +4 -4
- data/lib/plaid/models/external_payment_schedule_get.rb +4 -4
- data/lib/plaid/models/external_payment_schedule_request.rb +4 -4
- data/lib/plaid/models/health_incident.rb +3 -3
- data/lib/plaid/models/historical_balance.rb +2 -2
- data/lib/plaid/models/historical_update_webhook.rb +1 -1
- data/lib/plaid/models/holding.rb +1 -1
- data/lib/plaid/models/holdings_default_update_webhook.rb +1 -1
- data/lib/plaid/models/holdings_override.rb +289 -0
- data/lib/plaid/models/identity_get_request.rb +1 -1
- data/lib/plaid/models/identity_get_request_options.rb +1 -1
- data/lib/plaid/models/identity_get_response.rb +1 -1
- data/lib/plaid/models/incident_update.rb +2 -2
- data/lib/plaid/models/income_breakdown.rb +2 -1
- data/lib/plaid/models/income_summary.rb +1 -1
- data/lib/plaid/models/income_summary_field_number.rb +1 -1
- data/lib/plaid/models/income_summary_field_string.rb +1 -1
- data/lib/plaid/models/income_verification_create_request.rb +1 -1
- data/lib/plaid/models/income_verification_create_response.rb +1 -1
- data/lib/plaid/models/income_verification_documents_download_request.rb +17 -10
- data/lib/plaid/models/income_verification_documents_download_response.rb +1 -1
- data/lib/plaid/models/income_verification_paystub_get_request.rb +252 -0
- data/lib/plaid/models/income_verification_paystubs_get_request.rb +17 -10
- data/lib/plaid/models/income_verification_paystubs_get_response.rb +23 -2
- data/lib/plaid/models/income_verification_refresh_request.rb +17 -10
- data/lib/plaid/models/income_verification_refresh_response.rb +1 -1
- data/lib/plaid/models/income_verification_status_webhook.rb +1 -1
- data/lib/plaid/models/income_verification_summary_get_request.rb +17 -10
- data/lib/plaid/models/income_verification_summary_get_response.rb +1 -1
- data/lib/plaid/models/income_verification_taxforms_get_request.rb +252 -0
- data/lib/plaid/models/income_verification_taxforms_get_response.rb +263 -0
- data/lib/plaid/models/income_verification_webhook_status.rb +1 -1
- data/lib/plaid/models/inflow_model.rb +1 -1
- data/lib/plaid/models/initial_update_webhook.rb +1 -1
- data/lib/plaid/models/institution.rb +1 -1
- data/lib/plaid/models/institution_status.rb +1 -1
- data/lib/plaid/models/institutions_get_by_id_request.rb +1 -1
- data/lib/plaid/models/institutions_get_by_id_request_options.rb +1 -1
- data/lib/plaid/models/institutions_get_by_id_response.rb +1 -1
- data/lib/plaid/models/institutions_get_request.rb +1 -1
- data/lib/plaid/models/institutions_get_request_options.rb +1 -1
- data/lib/plaid/models/institutions_get_response.rb +1 -1
- data/lib/plaid/models/institutions_search_account_filter.rb +1 -1
- data/lib/plaid/models/institutions_search_payment_initiation_options.rb +1 -1
- data/lib/plaid/models/institutions_search_request.rb +1 -1
- data/lib/plaid/models/institutions_search_request_options.rb +1 -1
- data/lib/plaid/models/institutions_search_response.rb +1 -1
- data/lib/plaid/models/investment_filter.rb +1 -1
- data/lib/plaid/models/investment_holdings_get_request_options.rb +1 -1
- data/lib/plaid/models/investment_transaction.rb +4 -4
- data/lib/plaid/models/investments_default_update_webhook.rb +1 -1
- data/lib/plaid/models/investments_holdings_get_request.rb +1 -1
- data/lib/plaid/models/investments_holdings_get_response.rb +1 -1
- data/lib/plaid/models/investments_transactions_get_request.rb +1 -1
- data/lib/plaid/models/investments_transactions_get_request_options.rb +1 -1
- data/lib/plaid/models/investments_transactions_get_response.rb +1 -1
- data/lib/plaid/models/investments_transactions_override.rb +319 -0
- data/lib/plaid/models/item.rb +1 -1
- data/lib/plaid/models/item_access_token_invalidate_request.rb +1 -1
- data/lib/plaid/models/item_access_token_invalidate_response.rb +1 -1
- data/lib/plaid/models/item_application_list_request.rb +1 -1
- data/lib/plaid/models/item_application_list_response.rb +1 -1
- data/lib/plaid/models/item_application_list_user_auth.rb +1 -1
- data/lib/plaid/models/item_application_scopes_update_request.rb +29 -5
- data/lib/plaid/models/item_application_scopes_update_response.rb +1 -1
- data/lib/plaid/models/item_error_webhook.rb +1 -1
- data/lib/plaid/models/item_get_request.rb +1 -1
- data/lib/plaid/models/item_get_response.rb +1 -1
- data/lib/plaid/models/item_import_request.rb +1 -1
- data/lib/plaid/models/item_import_request_options.rb +1 -1
- data/lib/plaid/models/item_import_request_user_auth.rb +1 -1
- data/lib/plaid/models/item_import_response.rb +1 -1
- data/lib/plaid/models/item_product_ready_webhook.rb +1 -1
- data/lib/plaid/models/item_public_token_create_request.rb +1 -1
- data/lib/plaid/models/item_public_token_create_response.rb +1 -1
- data/lib/plaid/models/item_public_token_exchange_request.rb +1 -1
- data/lib/plaid/models/item_public_token_exchange_response.rb +1 -1
- data/lib/plaid/models/item_remove_request.rb +1 -1
- data/lib/plaid/models/item_remove_response.rb +1 -1
- data/lib/plaid/models/item_status.rb +1 -1
- data/lib/plaid/models/item_status_investments.rb +3 -3
- data/lib/plaid/models/item_status_last_webhook.rb +2 -2
- data/lib/plaid/models/item_status_nullable.rb +1 -1
- data/lib/plaid/models/item_status_transactions.rb +3 -3
- data/lib/plaid/models/item_webhook_update_request.rb +1 -1
- data/lib/plaid/models/item_webhook_update_response.rb +1 -1
- data/lib/plaid/models/jwk_public_key.rb +3 -1
- data/lib/plaid/models/jwt_header.rb +1 -1
- data/lib/plaid/models/liabilities_default_update_webhook.rb +1 -1
- data/lib/plaid/models/liabilities_get_request.rb +1 -1
- data/lib/plaid/models/liabilities_get_request_options.rb +1 -1
- data/lib/plaid/models/liabilities_get_response.rb +1 -1
- data/lib/plaid/models/liabilities_object.rb +1 -1
- data/lib/plaid/models/liability_override.rb +2 -2
- data/lib/plaid/models/link_token_account_filters.rb +1 -1
- data/lib/plaid/models/link_token_create_request.rb +3 -3
- data/lib/plaid/models/link_token_create_request_account_subtypes.rb +1 -1
- data/lib/plaid/models/link_token_create_request_auth.rb +1 -1
- data/lib/plaid/models/link_token_create_request_deposit_switch.rb +1 -1
- data/lib/plaid/models/link_token_create_request_income_verification.rb +1 -1
- data/lib/plaid/models/link_token_create_request_payment_initiation.rb +1 -1
- data/lib/plaid/models/link_token_create_request_user.rb +3 -3
- data/lib/plaid/models/link_token_create_response.rb +2 -2
- data/lib/plaid/models/link_token_eu_config.rb +1 -1
- data/lib/plaid/models/link_token_get_metadata_response.rb +1 -1
- data/lib/plaid/models/link_token_get_request.rb +1 -1
- data/lib/plaid/models/link_token_get_response.rb +3 -3
- data/lib/plaid/models/loan_filter.rb +1 -1
- data/lib/plaid/models/location.rb +1 -1
- data/lib/plaid/models/meta.rb +1 -1
- data/lib/plaid/models/mfa.rb +1 -1
- data/lib/plaid/models/mortgage_interest_rate.rb +1 -1
- data/lib/plaid/models/mortgage_liability.rb +5 -5
- data/lib/plaid/models/mortgage_property_address.rb +1 -1
- data/lib/plaid/models/net_pay.rb +230 -0
- data/lib/plaid/models/numbers.rb +1 -1
- data/lib/plaid/models/numbers_ach.rb +1 -1
- data/lib/plaid/models/numbers_ach_nullable.rb +1 -1
- data/lib/plaid/models/numbers_bacs.rb +1 -1
- data/lib/plaid/models/numbers_bacs_nullable.rb +1 -1
- data/lib/plaid/models/numbers_eft.rb +1 -1
- data/lib/plaid/models/numbers_eft_nullable.rb +1 -1
- data/lib/plaid/models/numbers_international.rb +1 -1
- data/lib/plaid/models/numbers_international_nullable.rb +1 -1
- data/lib/plaid/models/override_account_type.rb +1 -1
- data/lib/plaid/models/override_accounts.rb +20 -2
- data/lib/plaid/models/owner.rb +1 -1
- data/lib/plaid/models/owner_override.rb +1 -1
- data/lib/plaid/models/pay.rb +258 -0
- data/lib/plaid/models/pay_frequency.rb +1 -1
- data/lib/plaid/models/pay_period_details.rb +4 -4
- data/lib/plaid/models/payment_amount.rb +1 -1
- data/lib/plaid/models/payment_initiation_address.rb +1 -1
- data/lib/plaid/models/payment_initiation_metadata.rb +1 -1
- data/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_create_request.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_create_response.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_get_request.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_get_response.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_list_request.rb +28 -2
- data/lib/plaid/models/payment_initiation_payment_list_response.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_token_create_request.rb +1 -1
- data/lib/plaid/models/payment_initiation_payment_token_create_response.rb +2 -2
- data/lib/plaid/models/payment_initiation_recipient.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_create_request.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_create_response.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_get_request.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_get_response.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_get_response_all_of.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_list_request.rb +1 -1
- data/lib/plaid/models/payment_initiation_recipient_list_response.rb +1 -1
- data/lib/plaid/models/payment_initiation_standing_order_metadata.rb +1 -1
- data/lib/plaid/models/payment_meta.rb +1 -1
- data/lib/plaid/models/payment_schedule_interval.rb +1 -1
- data/lib/plaid/models/payment_status_update_webhook.rb +3 -3
- data/lib/plaid/models/paystub.rb +58 -12
- data/lib/plaid/models/paystub_address.rb +297 -0
- data/lib/plaid/models/paystub_deduction.rb +1 -1
- data/lib/plaid/models/paystub_details.rb +299 -0
- data/lib/plaid/models/paystub_employer.rb +15 -6
- data/lib/plaid/models/paystub_ytd_details.rb +3 -11
- data/lib/plaid/models/pending_expiration_webhook.rb +2 -2
- data/lib/plaid/models/phone_number.rb +1 -1
- data/lib/plaid/models/processor_apex_processor_token_create_request.rb +1 -1
- data/lib/plaid/models/processor_auth_get_request.rb +1 -1
- data/lib/plaid/models/processor_auth_get_response.rb +1 -1
- data/lib/plaid/models/processor_balance_get_request.rb +14 -5
- data/lib/plaid/models/processor_balance_get_request_options.rb +220 -0
- data/lib/plaid/models/processor_balance_get_response.rb +1 -1
- data/lib/plaid/models/processor_bank_transfer_create_request.rb +4 -4
- data/lib/plaid/models/processor_bank_transfer_create_response.rb +2 -2
- data/lib/plaid/models/processor_identity_get_request.rb +1 -1
- data/lib/plaid/models/processor_identity_get_response.rb +1 -1
- data/lib/plaid/models/processor_number.rb +1 -1
- data/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb +1 -1
- data/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb +1 -1
- data/lib/plaid/models/processor_token_create_request.rb +3 -3
- data/lib/plaid/models/processor_token_create_response.rb +1 -1
- data/lib/plaid/models/product_access.rb +1 -1
- data/lib/plaid/models/product_status.rb +2 -2
- data/lib/plaid/models/product_status_breakdown.rb +1 -1
- data/lib/plaid/models/products.rb +1 -1
- data/lib/plaid/models/projected_income_summary_field_number.rb +1 -1
- data/lib/plaid/models/pslf_status.rb +2 -2
- data/lib/plaid/models/recaptcha_required_error.rb +1 -1
- data/lib/plaid/models/recipient_bacs.rb +1 -1
- data/lib/plaid/models/recipient_bacs_nullable.rb +1 -1
- data/lib/plaid/models/requested_scopes.rb +1 -1
- data/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb +2 -2
- data/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb +2 -2
- data/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb +2 -2
- data/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb +2 -2
- data/lib/plaid/models/sandbox_income_fire_webhook_request.rb +1 -1
- data/lib/plaid/models/sandbox_income_fire_webhook_response.rb +1 -1
- data/lib/plaid/models/sandbox_item_fire_webhook_request.rb +1 -1
- data/lib/plaid/models/sandbox_item_fire_webhook_response.rb +1 -1
- data/lib/plaid/models/sandbox_item_reset_login_request.rb +1 -1
- data/lib/plaid/models/sandbox_item_reset_login_response.rb +1 -1
- data/lib/plaid/models/sandbox_item_set_verification_status_request.rb +1 -1
- data/lib/plaid/models/sandbox_item_set_verification_status_response.rb +1 -1
- data/lib/plaid/models/sandbox_oauth_select_accounts_request.rb +1 -1
- data/lib/plaid/models/sandbox_processor_token_create_request.rb +1 -1
- data/lib/plaid/models/sandbox_processor_token_create_request_options.rb +1 -1
- data/lib/plaid/models/sandbox_processor_token_create_response.rb +1 -1
- data/lib/plaid/models/sandbox_public_token_create_request.rb +1 -1
- data/lib/plaid/models/sandbox_public_token_create_request_options.rb +1 -1
- data/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb +1 -1
- data/lib/plaid/models/sandbox_public_token_create_response.rb +1 -1
- data/lib/plaid/models/sandbox_transfer_simulate_request.rb +270 -0
- data/lib/plaid/models/sandbox_transfer_simulate_response.rb +225 -0
- data/lib/plaid/models/scopes.rb +1 -1
- data/lib/plaid/models/scopes_context.rb +37 -0
- data/lib/plaid/models/scopes_nullable.rb +1 -1
- data/lib/plaid/models/security.rb +1 -1
- data/lib/plaid/models/security_override.rb +270 -0
- data/lib/plaid/models/sender_bacs_nullable.rb +1 -1
- data/lib/plaid/models/servicer_address_data.rb +1 -1
- data/lib/plaid/models/signal_address_data.rb +1 -1
- data/lib/plaid/models/signal_decision_report_request.rb +1 -1
- data/lib/plaid/models/signal_decision_report_response.rb +1 -1
- data/lib/plaid/models/signal_device.rb +1 -1
- data/lib/plaid/models/signal_evaluate_core_attributes.rb +2 -2
- data/lib/plaid/models/signal_evaluate_request.rb +1 -1
- data/lib/plaid/models/signal_evaluate_response.rb +1 -1
- data/lib/plaid/models/signal_person_name.rb +1 -1
- data/lib/plaid/models/signal_return_report_request.rb +1 -1
- data/lib/plaid/models/signal_return_report_response.rb +1 -1
- data/lib/plaid/models/signal_scores.rb +1 -1
- data/lib/plaid/models/signal_user.rb +1 -1
- data/lib/plaid/models/standalone_account_type.rb +1 -1
- data/lib/plaid/models/standalone_currency_code_list.rb +1 -1
- data/lib/plaid/models/standalone_investment_transaction_type.rb +3 -3
- data/lib/plaid/models/student_loan.rb +7 -7
- data/lib/plaid/models/student_loan_repayment_model.rb +1 -1
- data/lib/plaid/models/student_loan_status.rb +2 -2
- data/lib/plaid/models/student_repayment_plan.rb +1 -1
- data/lib/plaid/models/taxform.rb +233 -0
- data/lib/plaid/models/taxpayer_id.rb +257 -0
- data/lib/plaid/models/total.rb +284 -0
- data/lib/plaid/models/transaction.rb +17 -6
- data/lib/plaid/models/transaction_all_of.rb +16 -5
- data/lib/plaid/models/transaction_base.rb +2 -2
- data/lib/plaid/models/transaction_code.rb +1 -1
- data/lib/plaid/models/transaction_data.rb +2 -2
- data/lib/plaid/models/transaction_override.rb +3 -3
- data/lib/plaid/models/transactions_get_request.rb +1 -1
- data/lib/plaid/models/transactions_get_request_options.rb +1 -1
- data/lib/plaid/models/transactions_get_response.rb +1 -1
- data/lib/plaid/models/transactions_refresh_request.rb +1 -1
- data/lib/plaid/models/transactions_refresh_response.rb +1 -1
- data/lib/plaid/models/transactions_removed_webhook.rb +1 -1
- data/lib/plaid/models/transfer.rb +453 -0
- data/lib/plaid/models/transfer_authorization.rb +313 -0
- data/lib/plaid/models/transfer_authorization_create_request.rb +401 -0
- data/lib/plaid/models/transfer_authorization_create_response.rb +239 -0
- data/lib/plaid/models/transfer_authorization_decision_rationale.rb +274 -0
- data/lib/plaid/models/transfer_authorization_device.rb +230 -0
- data/lib/plaid/models/transfer_authorization_proposed_transfer.rb +342 -0
- data/lib/plaid/models/transfer_cancel_request.rb +245 -0
- data/lib/plaid/models/transfer_cancel_response.rb +225 -0
- data/lib/plaid/models/transfer_create_request.rb +489 -0
- data/lib/plaid/models/transfer_create_response.rb +239 -0
- data/lib/plaid/models/transfer_direction.rb +38 -0
- data/lib/plaid/models/transfer_event.rb +390 -0
- data/lib/plaid/models/transfer_event_list_request.rb +434 -0
- data/lib/plaid/models/transfer_event_list_response.rb +241 -0
- data/lib/plaid/models/transfer_event_sync_request.rb +305 -0
- data/lib/plaid/models/transfer_event_sync_response.rb +241 -0
- data/lib/plaid/models/transfer_event_type.rb +42 -0
- data/lib/plaid/models/transfer_failure.rb +231 -0
- data/lib/plaid/models/transfer_get_request.rb +245 -0
- data/lib/plaid/models/transfer_get_response.rb +239 -0
- data/lib/plaid/models/transfer_list_request.rb +340 -0
- data/lib/plaid/models/transfer_list_response.rb +241 -0
- data/lib/plaid/models/transfer_network.rb +37 -0
- data/lib/plaid/models/transfer_receiver_details.rb +255 -0
- data/lib/plaid/models/transfer_status.rb +40 -0
- data/lib/plaid/models/transfer_type.rb +37 -0
- data/lib/plaid/models/transfer_user_address_in_request.rb +260 -0
- data/lib/plaid/models/transfer_user_address_in_response.rb +265 -0
- data/lib/plaid/models/transfer_user_in_request.rb +254 -0
- data/lib/plaid/models/transfer_user_in_response.rb +257 -0
- data/lib/plaid/models/user_custom_password.rb +1 -1
- data/lib/plaid/models/user_permission_revoked_webhook.rb +1 -1
- data/lib/plaid/models/verification_expired_webhook.rb +1 -1
- data/lib/plaid/models/verification_refresh_status.rb +1 -1
- data/lib/plaid/models/verification_status.rb +1 -1
- data/lib/plaid/models/w2.rb +437 -0
- data/lib/plaid/models/w2_box12.rb +231 -0
- data/lib/plaid/models/w2_state_and_local_wages.rb +286 -0
- data/lib/plaid/models/warning.rb +1 -1
- data/lib/plaid/models/webhook_update_acknowledged_webhook.rb +1 -1
- data/lib/plaid/models/webhook_verification_key_get_request.rb +1 -1
- data/lib/plaid/models/webhook_verification_key_get_response.rb +1 -1
- data/lib/plaid/models/ytd_gross_income_summary_field_number.rb +1 -1
- data/lib/plaid/models/ytd_net_income_summary_field_number.rb +1 -1
- data/lib/plaid/version.rb +2 -2
- data/lib/plaid.rb +62 -2
- data/pkg/plaid-14.0.0.gem +0 -0
- data/pkg/plaid-14.1.0.gem +0 -0
- data/plaid.gemspec +1 -1
- metadata +65 -3
- data/lib/plaid/models/standalone_investment_transaction_subtype.rb +0 -650
@@ -0,0 +1,434 @@
|
|
1
|
+
=begin
|
2
|
+
#The Plaid API
|
3
|
+
|
4
|
+
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2020-09-14_1.26.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Plaid
|
17
|
+
# Defines the request schema for `/transfer/event/list`
|
18
|
+
class TransferEventListRequest
|
19
|
+
# Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body.
|
20
|
+
attr_accessor :client_id
|
21
|
+
|
22
|
+
# Your Plaid API `secret`. The `secret` is required and may be provided either in the `PLAID-SECRET` header or as part of a request body.
|
23
|
+
attr_accessor :secret
|
24
|
+
|
25
|
+
# The start datetime of transfers to list. This should be in RFC 3339 format (i.e. `2019-12-06T22:35:49Z`)
|
26
|
+
attr_accessor :start_date
|
27
|
+
|
28
|
+
# The end datetime of transfers to list. This should be in RFC 3339 format (i.e. `2019-12-06T22:35:49Z`)
|
29
|
+
attr_accessor :end_date
|
30
|
+
|
31
|
+
# Plaid’s unique identifier for a transfer.
|
32
|
+
attr_accessor :transfer_id
|
33
|
+
|
34
|
+
# The account ID to get events for all transactions to/from an account.
|
35
|
+
attr_accessor :account_id
|
36
|
+
|
37
|
+
# The type of transfer. This will be either `debit` or `credit`. A `debit` indicates a transfer of money into your origination account; a `credit` indicates a transfer of money out of your origination account.
|
38
|
+
attr_accessor :transfer_type
|
39
|
+
|
40
|
+
# Filter events by event type.
|
41
|
+
attr_accessor :event_types
|
42
|
+
|
43
|
+
# The maximum number of transfer events to return. If the number of events matching the above parameters is greater than `count`, the most recent events will be returned.
|
44
|
+
attr_accessor :count
|
45
|
+
|
46
|
+
# The offset into the list of transfer events. When `count`=25 and `offset`=0, the first 25 events will be returned. When `count`=25 and `offset`=25, the next 25 bank transfer events will be returned.
|
47
|
+
attr_accessor :offset
|
48
|
+
|
49
|
+
# The origination account ID to get events for transfers from a specific origination account.
|
50
|
+
attr_accessor :origination_account_id
|
51
|
+
|
52
|
+
# Indicates the direction of the transfer: `outbound`: for API-initiated transfers `inbound`: for payments received by the FBO account.
|
53
|
+
attr_accessor :direction
|
54
|
+
|
55
|
+
class EnumAttributeValidator
|
56
|
+
attr_reader :datatype
|
57
|
+
attr_reader :allowable_values
|
58
|
+
|
59
|
+
def initialize(datatype, allowable_values)
|
60
|
+
@allowable_values = allowable_values.map do |value|
|
61
|
+
case datatype.to_s
|
62
|
+
when /Integer/i
|
63
|
+
value.to_i
|
64
|
+
when /Float/i
|
65
|
+
value.to_f
|
66
|
+
else
|
67
|
+
value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def valid?(value)
|
73
|
+
!value || allowable_values.include?(value)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
78
|
+
def self.attribute_map
|
79
|
+
{
|
80
|
+
:'client_id' => :'client_id',
|
81
|
+
:'secret' => :'secret',
|
82
|
+
:'start_date' => :'start_date',
|
83
|
+
:'end_date' => :'end_date',
|
84
|
+
:'transfer_id' => :'transfer_id',
|
85
|
+
:'account_id' => :'account_id',
|
86
|
+
:'transfer_type' => :'transfer_type',
|
87
|
+
:'event_types' => :'event_types',
|
88
|
+
:'count' => :'count',
|
89
|
+
:'offset' => :'offset',
|
90
|
+
:'origination_account_id' => :'origination_account_id',
|
91
|
+
:'direction' => :'direction'
|
92
|
+
}
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns all the JSON keys this model knows about
|
96
|
+
def self.acceptable_attributes
|
97
|
+
attribute_map.values
|
98
|
+
end
|
99
|
+
|
100
|
+
# Attribute type mapping.
|
101
|
+
def self.openapi_types
|
102
|
+
{
|
103
|
+
:'client_id' => :'String',
|
104
|
+
:'secret' => :'String',
|
105
|
+
:'start_date' => :'Time',
|
106
|
+
:'end_date' => :'Time',
|
107
|
+
:'transfer_id' => :'String',
|
108
|
+
:'account_id' => :'String',
|
109
|
+
:'transfer_type' => :'String',
|
110
|
+
:'event_types' => :'Array<TransferEventType>',
|
111
|
+
:'count' => :'Integer',
|
112
|
+
:'offset' => :'Integer',
|
113
|
+
:'origination_account_id' => :'String',
|
114
|
+
:'direction' => :'String'
|
115
|
+
}
|
116
|
+
end
|
117
|
+
|
118
|
+
# List of attributes with nullable: true
|
119
|
+
def self.openapi_nullable
|
120
|
+
Set.new([
|
121
|
+
:'start_date',
|
122
|
+
:'end_date',
|
123
|
+
:'transfer_id',
|
124
|
+
:'account_id',
|
125
|
+
:'transfer_type',
|
126
|
+
:'count',
|
127
|
+
:'offset',
|
128
|
+
:'origination_account_id',
|
129
|
+
:'direction'
|
130
|
+
])
|
131
|
+
end
|
132
|
+
|
133
|
+
# Initializes the object
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
def initialize(attributes = {})
|
136
|
+
if (!attributes.is_a?(Hash))
|
137
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::TransferEventListRequest` initialize method"
|
138
|
+
end
|
139
|
+
|
140
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
141
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
142
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
143
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::TransferEventListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
144
|
+
end
|
145
|
+
h[k.to_sym] = v
|
146
|
+
}
|
147
|
+
|
148
|
+
if attributes.key?(:'client_id')
|
149
|
+
self.client_id = attributes[:'client_id']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'secret')
|
153
|
+
self.secret = attributes[:'secret']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'start_date')
|
157
|
+
self.start_date = attributes[:'start_date']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'end_date')
|
161
|
+
self.end_date = attributes[:'end_date']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'transfer_id')
|
165
|
+
self.transfer_id = attributes[:'transfer_id']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'account_id')
|
169
|
+
self.account_id = attributes[:'account_id']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'transfer_type')
|
173
|
+
self.transfer_type = attributes[:'transfer_type']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'event_types')
|
177
|
+
if (value = attributes[:'event_types']).is_a?(Array)
|
178
|
+
self.event_types = value
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'count')
|
183
|
+
self.count = attributes[:'count']
|
184
|
+
else
|
185
|
+
self.count = 25
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'offset')
|
189
|
+
self.offset = attributes[:'offset']
|
190
|
+
else
|
191
|
+
self.offset = 0
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.key?(:'origination_account_id')
|
195
|
+
self.origination_account_id = attributes[:'origination_account_id']
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.key?(:'direction')
|
199
|
+
self.direction = attributes[:'direction']
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
204
|
+
# @return Array for valid properties with the reasons
|
205
|
+
def list_invalid_properties
|
206
|
+
invalid_properties = Array.new
|
207
|
+
if !@count.nil? && @count > 25
|
208
|
+
invalid_properties.push('invalid value for "count", must be smaller than or equal to 25.')
|
209
|
+
end
|
210
|
+
|
211
|
+
if !@count.nil? && @count < 1
|
212
|
+
invalid_properties.push('invalid value for "count", must be greater than or equal to 1.')
|
213
|
+
end
|
214
|
+
|
215
|
+
|
216
|
+
if !@offset.nil? && @offset < 0
|
217
|
+
invalid_properties.push('invalid value for "offset", must be greater than or equal to 0.')
|
218
|
+
end
|
219
|
+
|
220
|
+
|
221
|
+
invalid_properties
|
222
|
+
end
|
223
|
+
|
224
|
+
# Check to see if the all the properties in the model are valid
|
225
|
+
# @return true if the model is valid
|
226
|
+
def valid?
|
227
|
+
transfer_type_validator = EnumAttributeValidator.new('String', ["debit", "credit", "null"])
|
228
|
+
return false unless transfer_type_validator.valid?(@transfer_type)
|
229
|
+
return false if !@count.nil? && @count > 25
|
230
|
+
return false if !@count.nil? && @count < 1
|
231
|
+
return false if !@offset.nil? && @offset < 0
|
232
|
+
direction_validator = EnumAttributeValidator.new('String', ["inbound", "outbound", "null"])
|
233
|
+
return false unless direction_validator.valid?(@direction)
|
234
|
+
true
|
235
|
+
end
|
236
|
+
|
237
|
+
# Custom attribute writer method checking allowed values (enum).
|
238
|
+
# @param [Object] transfer_type Object to be assigned
|
239
|
+
def transfer_type=(transfer_type)
|
240
|
+
validator = EnumAttributeValidator.new('String', ["debit", "credit", "null"])
|
241
|
+
unless validator.valid?(transfer_type)
|
242
|
+
fail ArgumentError, "invalid value for \"transfer_type\", must be one of #{validator.allowable_values}."
|
243
|
+
end
|
244
|
+
@transfer_type = transfer_type
|
245
|
+
end
|
246
|
+
|
247
|
+
# Custom attribute writer method with validation
|
248
|
+
# @param [Object] count Value to be assigned
|
249
|
+
def count=(count)
|
250
|
+
if !count.nil? && count > 25
|
251
|
+
fail ArgumentError, 'invalid value for "count", must be smaller than or equal to 25.'
|
252
|
+
end
|
253
|
+
|
254
|
+
if !count.nil? && count < 1
|
255
|
+
fail ArgumentError, 'invalid value for "count", must be greater than or equal to 1.'
|
256
|
+
end
|
257
|
+
|
258
|
+
|
259
|
+
@count = count
|
260
|
+
end
|
261
|
+
|
262
|
+
# Custom attribute writer method with validation
|
263
|
+
# @param [Object] offset Value to be assigned
|
264
|
+
def offset=(offset)
|
265
|
+
if !offset.nil? && offset < 0
|
266
|
+
fail ArgumentError, 'invalid value for "offset", must be greater than or equal to 0.'
|
267
|
+
end
|
268
|
+
|
269
|
+
|
270
|
+
@offset = offset
|
271
|
+
end
|
272
|
+
|
273
|
+
# Custom attribute writer method checking allowed values (enum).
|
274
|
+
# @param [Object] direction Object to be assigned
|
275
|
+
def direction=(direction)
|
276
|
+
validator = EnumAttributeValidator.new('String', ["inbound", "outbound", "null"])
|
277
|
+
unless validator.valid?(direction)
|
278
|
+
fail ArgumentError, "invalid value for \"direction\", must be one of #{validator.allowable_values}."
|
279
|
+
end
|
280
|
+
@direction = direction
|
281
|
+
end
|
282
|
+
|
283
|
+
# Checks equality by comparing each attribute.
|
284
|
+
# @param [Object] Object to be compared
|
285
|
+
def ==(o)
|
286
|
+
return true if self.equal?(o)
|
287
|
+
self.class == o.class &&
|
288
|
+
client_id == o.client_id &&
|
289
|
+
secret == o.secret &&
|
290
|
+
start_date == o.start_date &&
|
291
|
+
end_date == o.end_date &&
|
292
|
+
transfer_id == o.transfer_id &&
|
293
|
+
account_id == o.account_id &&
|
294
|
+
transfer_type == o.transfer_type &&
|
295
|
+
event_types == o.event_types &&
|
296
|
+
count == o.count &&
|
297
|
+
offset == o.offset &&
|
298
|
+
origination_account_id == o.origination_account_id &&
|
299
|
+
direction == o.direction
|
300
|
+
end
|
301
|
+
|
302
|
+
# @see the `==` method
|
303
|
+
# @param [Object] Object to be compared
|
304
|
+
def eql?(o)
|
305
|
+
self == o
|
306
|
+
end
|
307
|
+
|
308
|
+
# Calculates hash code according to all attributes.
|
309
|
+
# @return [Integer] Hash code
|
310
|
+
def hash
|
311
|
+
[client_id, secret, start_date, end_date, transfer_id, account_id, transfer_type, event_types, count, offset, origination_account_id, direction].hash
|
312
|
+
end
|
313
|
+
|
314
|
+
# Builds the object from hash
|
315
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
316
|
+
# @return [Object] Returns the model itself
|
317
|
+
def self.build_from_hash(attributes)
|
318
|
+
new.build_from_hash(attributes)
|
319
|
+
end
|
320
|
+
|
321
|
+
# Builds the object from hash
|
322
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
323
|
+
# @return [Object] Returns the model itself
|
324
|
+
def build_from_hash(attributes)
|
325
|
+
return nil unless attributes.is_a?(Hash)
|
326
|
+
self.class.openapi_types.each_pair do |key, type|
|
327
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
328
|
+
self.send("#{key}=", nil)
|
329
|
+
elsif type =~ /\AArray<(.*)>/i
|
330
|
+
# check to ensure the input is an array given that the attribute
|
331
|
+
# is documented as an array but the input is not
|
332
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
333
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
334
|
+
end
|
335
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
336
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
self
|
341
|
+
end
|
342
|
+
|
343
|
+
# Deserializes the data based on type
|
344
|
+
# @param string type Data type
|
345
|
+
# @param string value Value to be deserialized
|
346
|
+
# @return [Object] Deserialized data
|
347
|
+
def _deserialize(type, value)
|
348
|
+
case type.to_sym
|
349
|
+
when :Time
|
350
|
+
Time.parse(value)
|
351
|
+
when :Date
|
352
|
+
Date.parse(value)
|
353
|
+
when :String
|
354
|
+
value.to_s
|
355
|
+
when :Integer
|
356
|
+
value.to_i
|
357
|
+
when :Float
|
358
|
+
value.to_f
|
359
|
+
when :Boolean
|
360
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
361
|
+
true
|
362
|
+
else
|
363
|
+
false
|
364
|
+
end
|
365
|
+
when :Object
|
366
|
+
# generic object (usually a Hash), return directly
|
367
|
+
value
|
368
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
369
|
+
inner_type = Regexp.last_match[:inner_type]
|
370
|
+
value.map { |v| _deserialize(inner_type, v) }
|
371
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
372
|
+
k_type = Regexp.last_match[:k_type]
|
373
|
+
v_type = Regexp.last_match[:v_type]
|
374
|
+
{}.tap do |hash|
|
375
|
+
value.each do |k, v|
|
376
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
377
|
+
end
|
378
|
+
end
|
379
|
+
else # model
|
380
|
+
# models (e.g. Pet) or oneOf
|
381
|
+
klass = Plaid.const_get(type)
|
382
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
# Returns the string representation of the object
|
387
|
+
# @return [String] String presentation of the object
|
388
|
+
def to_s
|
389
|
+
to_hash.to_s
|
390
|
+
end
|
391
|
+
|
392
|
+
# to_body is an alias to to_hash (backward compatibility)
|
393
|
+
# @return [Hash] Returns the object in the form of hash
|
394
|
+
def to_body
|
395
|
+
to_hash
|
396
|
+
end
|
397
|
+
|
398
|
+
# Returns the object in the form of hash
|
399
|
+
# @return [Hash] Returns the object in the form of hash
|
400
|
+
def to_hash
|
401
|
+
hash = {}
|
402
|
+
self.class.attribute_map.each_pair do |attr, param|
|
403
|
+
value = self.send(attr)
|
404
|
+
if value.nil?
|
405
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
406
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
407
|
+
end
|
408
|
+
|
409
|
+
hash[param] = _to_hash(value)
|
410
|
+
end
|
411
|
+
hash
|
412
|
+
end
|
413
|
+
|
414
|
+
# Outputs non-array value in the form of hash
|
415
|
+
# For object, use to_hash. Otherwise, just return the value
|
416
|
+
# @param [Object] value Any valid value
|
417
|
+
# @return [Hash] Returns the value in the form of hash
|
418
|
+
def _to_hash(value)
|
419
|
+
if value.is_a?(Array)
|
420
|
+
value.compact.map { |v| _to_hash(v) }
|
421
|
+
elsif value.is_a?(Hash)
|
422
|
+
{}.tap do |hash|
|
423
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
424
|
+
end
|
425
|
+
elsif value.respond_to? :to_hash
|
426
|
+
value.to_hash
|
427
|
+
else
|
428
|
+
value
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
end
|
433
|
+
|
434
|
+
end
|
@@ -0,0 +1,241 @@
|
|
1
|
+
=begin
|
2
|
+
#The Plaid API
|
3
|
+
|
4
|
+
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2020-09-14_1.26.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Plaid
|
17
|
+
# Defines the response schema for `/transfer/event/list`
|
18
|
+
class TransferEventListResponse
|
19
|
+
attr_accessor :transfer_events
|
20
|
+
|
21
|
+
# A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
|
22
|
+
attr_accessor :request_id
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'transfer_events' => :'transfer_events',
|
28
|
+
:'request_id' => :'request_id'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'transfer_events' => :'Array<TransferEvent>',
|
41
|
+
:'request_id' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::TransferEventListResponse` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::TransferEventListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'transfer_events')
|
67
|
+
if (value = attributes[:'transfer_events']).is_a?(Array)
|
68
|
+
self.transfer_events = value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'request_id')
|
73
|
+
self.request_id = attributes[:'request_id']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
78
|
+
# @return Array for valid properties with the reasons
|
79
|
+
def list_invalid_properties
|
80
|
+
invalid_properties = Array.new
|
81
|
+
if @transfer_events.nil?
|
82
|
+
invalid_properties.push('invalid value for "transfer_events", transfer_events cannot be nil.')
|
83
|
+
end
|
84
|
+
|
85
|
+
if @request_id.nil?
|
86
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
87
|
+
end
|
88
|
+
|
89
|
+
invalid_properties
|
90
|
+
end
|
91
|
+
|
92
|
+
# Check to see if the all the properties in the model are valid
|
93
|
+
# @return true if the model is valid
|
94
|
+
def valid?
|
95
|
+
return false if @transfer_events.nil?
|
96
|
+
return false if @request_id.nil?
|
97
|
+
true
|
98
|
+
end
|
99
|
+
|
100
|
+
# Checks equality by comparing each attribute.
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def ==(o)
|
103
|
+
return true if self.equal?(o)
|
104
|
+
self.class == o.class &&
|
105
|
+
transfer_events == o.transfer_events &&
|
106
|
+
request_id == o.request_id
|
107
|
+
end
|
108
|
+
|
109
|
+
# @see the `==` method
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def eql?(o)
|
112
|
+
self == o
|
113
|
+
end
|
114
|
+
|
115
|
+
# Calculates hash code according to all attributes.
|
116
|
+
# @return [Integer] Hash code
|
117
|
+
def hash
|
118
|
+
[transfer_events, request_id].hash
|
119
|
+
end
|
120
|
+
|
121
|
+
# Builds the object from hash
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
# @return [Object] Returns the model itself
|
124
|
+
def self.build_from_hash(attributes)
|
125
|
+
new.build_from_hash(attributes)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Builds the object from hash
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
130
|
+
# @return [Object] Returns the model itself
|
131
|
+
def build_from_hash(attributes)
|
132
|
+
return nil unless attributes.is_a?(Hash)
|
133
|
+
self.class.openapi_types.each_pair do |key, type|
|
134
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
135
|
+
self.send("#{key}=", nil)
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
137
|
+
# check to ensure the input is an array given that the attribute
|
138
|
+
# is documented as an array but the input is not
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
141
|
+
end
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
143
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
# Deserializes the data based on type
|
151
|
+
# @param string type Data type
|
152
|
+
# @param string value Value to be deserialized
|
153
|
+
# @return [Object] Deserialized data
|
154
|
+
def _deserialize(type, value)
|
155
|
+
case type.to_sym
|
156
|
+
when :Time
|
157
|
+
Time.parse(value)
|
158
|
+
when :Date
|
159
|
+
Date.parse(value)
|
160
|
+
when :String
|
161
|
+
value.to_s
|
162
|
+
when :Integer
|
163
|
+
value.to_i
|
164
|
+
when :Float
|
165
|
+
value.to_f
|
166
|
+
when :Boolean
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
|
+
true
|
169
|
+
else
|
170
|
+
false
|
171
|
+
end
|
172
|
+
when :Object
|
173
|
+
# generic object (usually a Hash), return directly
|
174
|
+
value
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each do |k, v|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
else # model
|
187
|
+
# models (e.g. Pet) or oneOf
|
188
|
+
klass = Plaid.const_get(type)
|
189
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
if value.nil?
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
|
+
end
|
215
|
+
|
216
|
+
hash[param] = _to_hash(value)
|
217
|
+
end
|
218
|
+
hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Outputs non-array value in the form of hash
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
223
|
+
# @param [Object] value Any valid value
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
225
|
+
def _to_hash(value)
|
226
|
+
if value.is_a?(Array)
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
228
|
+
elsif value.is_a?(Hash)
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
231
|
+
end
|
232
|
+
elsif value.respond_to? :to_hash
|
233
|
+
value.to_hash
|
234
|
+
else
|
235
|
+
value
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|